text:
Q: regex to grab URL field from json subfield I have the following file:
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77rzm3", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] Eyes Wide Shut (1999) An argument about fidelity sends a married physician reeling into the night, where he finds himself in a surreal succession of sexual encounters. Starring Tom Cruise", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 1055, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77rzm3", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77rzm3/us_eyes_wide_shut_1999_an_argument_about_fidelity/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508598049.0, "url": "https://www.netflix.com/title/5670434", "whitelist_status": "all_ads", "quarantine": false, "author": "gerrardslips", "created_utc": 1508569249.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 1055, "media": null, "num_comments": 141, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "self.NetflixBestOf", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": "

Last year I posted this and I haven't seen anyone post it again this year.  But sad to say so many of these episodes are gone now.
\n\n
I dug up a few more, and if you want to add your own, you can get ideas here: https://en.wikipedia.org/wiki/List_of_Halloween_television_specials
\n\n
Links:
\n\n
Office - Halloween, S02.E05
\n\n
Office - Employee Transfer, S05.E06
\n\n
Office - Costume Contest, S07.E06
\n\n
Office - Spooked, S08.E05
\n\n
Parks and Rec - Greg Pikitis, S02.E07
\n\n
Parks and Rec - Meet n Greet, S04.E05
\n\n
Parks and Rec - Halloween Surprise, S05.E05
\n\n
70s Show - Halloween, S02.E05
\n\n
70s Show - Too Old to Trick or Treat, Too Young to Die, S03.E04
\n\n
Friends - The One with the Halloween Party, S08.E06
\n\n
F is for Family - F is for Halloween, S01.E04
\n\n
Family Guy - Halloween on Spooner Street, S09.E05
\n\n
Family Guy - Quagmire's Quagmire, S12.E03
\n
", "selftext": "Last year I posted [this](https://www.reddit.com/r/NetflixBestOf/comments/56ibei/discussion_direct_links_to_halloween_episodes_of/) and I haven't seen anyone post it again this year.  But sad to say so many of these episodes are gone now.  \n\nI dug up a few more, and if you want to add your own, you can get ideas here: https://en.wikipedia.org/wiki/List_of_Halloween_television_specials\n\nLinks:\n\nOffice - Halloween, [S02.E05](https://www.netflix.com/watch/70069637?trackId=13752289&tctx=0%2C4%2C6c95c505-fbda-4094-9d44-9257b64fc661-55459680)\n\nOffice - Employee Transfer, [S05.E06](https://www.netflix.com/watch/70126227?trackId=13752289&tctx=0%2C5%2C91d0240b-5805-4974-8dde-6cdce0cba888-86812819)\n\nOffice - Costume Contest, [S07.E06](https://www.netflix.com/watch/70189011?trackId=13752289&tctx=0%2C5%2C6c95c505-fbda-4094-9d44-9257b64fc661-55459680)\n\nOffice - Spooked, [S08.E05](https://www.netflix.com/watch/70210969?trackId=13752289&tctx=0%2C4%2C91d0240b-5805-4974-8dde-6cdce0cba888-86812819)\n\nParks and Rec - Greg Pikitis, [S02.E07](https://www.netflix.com/watch/70152017?trackId=13752289&tctx=0%2C6%2C3eecb087-07c4-40c2-8b23-0e254d28f15d-86849891)\n\nParks and Rec - Meet n Greet, [S04.E05](https://www.netflix.com/watch/70210920?trackId=13752289&tctx=0%2C4%2C925890fd-f12c-4e1b-a5dc-4193c77e689b-55577276)\n\nParks and Rec - Halloween Surprise, [S05.E05](https://www.netflix.com/watch/70286785?trackId=13752289&tctx=0%2C4%2C925890fd-f12c-4e1b-a5dc-4193c77e689b-55577276)\n\n70s Show - Halloween, [S02.E05](https://www.netflix.com/watch/70165229?trackId=13752289&tctx=0%2C4%2Cb7441e12-4218-4667-9d79-1013f6c6fd14-86967765)\n\n70s Show - Too Old to Trick or Treat, Too Young to Die, [S03.E04](https://www.netflix.com/watch/70165250?trackId=13752289&tctx=0%2C3%2Cb7441e12-4218-4667-9d79-1013f6c6fd14-86967765)\n\nFriends - The One with the Halloween Party, [S08.E06](https://www.netflix.com/watch/70274172?trackId=13752289&tctx=0%2C5%2C742ad784-352a-4409-a00e-be3f78a5fcb7-85533521)\n\nF is for Family - F is for Halloween, [S01.E04](https://www.netflix.com/watch/80028556?trackId=13752289&tctx=0%2C3%2Ca634730d-f8c8-481a-a570-38f2b486c57a-86060071)\n\nFamily Guy - Halloween on Spooner Street, [S09.E05](https://www.netflix.com/watch/70251733?trackId=13752289&tctx=0%2C4%2C3f6bb27b-4426-4e60-a68e-e96d2bb69df2-86109839)\n\nFamily Guy - Quagmire's Quagmire, [S12.E03](https://www.netflix.com/watch/80018564?trackId=13752289&tctx=0%2C2%2C3f6bb27b-4426-4e60-a68e-e96d2bb69df2-86109839)\n\n", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77toj0", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[META] Direct links to Halloween episodes.", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 67, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": true, "parent_whitelist_status": "all_ads", "name": "t3_77toj0", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77toj0/meta_direct_links_to_halloween_episodes/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508625121.0, "url": "https://www.reddit.com/r/NetflixBestOf/comments/77toj0/meta_direct_links_to_halloween_episodes/", "whitelist_status": "all_ads", "quarantine": false, "author": "tingmakpuk", "created_utc": 1508596321.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 67, "media": null, "num_comments": 2, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77rm11", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] Wheelman (2017) Getaway driver in a botched robbery puts his skills and smarts to the test when he receives shocking orders from an unknown caller", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 114, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77rm11", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77rm11/us_wheelman_2017_getaway_driver_in_a_botched/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508591782.0, "url": "https://www.netflix.com/title/80113669?s=i&trkid=13752289", "whitelist_status": "all_ads", "quarantine": false, "author": "fields", "created_utc": 1508562982.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 114, "media": null, "num_comments": 16, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77mg82", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] 1922 (2017) A farmer pens a confession admitting to his wife's murder, but her death is just the beginning of a macabre tale. Based on Stephen King's novella.", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 719, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77mg82", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77mg82/us_1922_2017_a_farmer_pens_a_confession_admitting/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508538724.0, "url": "https://www.netflix.com/title/80135164", "whitelist_status": "all_ads", "quarantine": false, "author": "youjokingright", "created_utc": 1508509924.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 719, "media": null, "num_comments": 49, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77iepy", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] Mean Girls (2004) Cady joins her new high school's most powerful clique -- but there's hell to pay when the ex-boyfriend of the clique's leader wants to be Cady's guy. Starring Lindsay Lohan", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 2440, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77iepy", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77iepy/us_mean_girls_2004_cady_joins_her_new_high/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508486071.0, "url": "https://www.netflix.com/title/60034551", "whitelist_status": "all_ads", "quarantine": false, "author": "gerrardslips", "created_utc": 1508457271.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 2440, "media": null, "num_comments": 162, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "self.NetflixBestOf", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": "

My region is the US, other than that the title pretty much says it all. I\u2019d prefer movies over shows, but I welcome all suggestions. Other than not being horror, I would also like to get away from grim and serious and thriller. Comedies, feel good movies, entertaining dramas, even kids movies that are good for adults.
\n\n
Hit me!
\n
", "selftext": "My region is the US, other than that the title pretty much says it all. I\u2019d prefer movies over shows, but I welcome all suggestions. Other than not being horror, I would also like to get away from grim and serious and thriller. Comedies, feel good movies, entertaining dramas, even kids movies that are good for adults. \n\nHit me!", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77rc7y", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[Request] I have been watching an absurd amount of horror since it\u2019s October, but now I need a palate cleanser", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 6, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": true, "parent_whitelist_status": "all_ads", "name": "t3_77rc7y", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77rc7y/request_i_have_been_watching_an_absurd_amount_of/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508587814.0, "url": "https://www.reddit.com/r/NetflixBestOf/comments/77rc7y/request_i_have_been_watching_an_absurd_amount_of/", "whitelist_status": "all_ads", "quarantine": false, "author": "CinnamonSwisher", "created_utc": 1508559014.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 6, "media": null, "num_comments": 10, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "self.NetflixBestOf", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": "

I like star wars and the lion king, not sure what to watch now \ud83d\ude33
\n\n
Edit: I'm going to watch Point Break over my holiday break, but thanks for all the great suggestions!
\n
", "selftext": "I like star wars and the lion king, not sure what to watch now \ud83d\ude33\n\nEdit: I'm going to watch Point Break over my holiday break, but thanks for all the great suggestions!", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77q8iw", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[REQUEST] Are there any movies with mentally ill or disabled people trying to climb a mountain or something?", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 7, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": 1508604821.0, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": true, "parent_whitelist_status": "all_ads", "name": "t3_77q8iw", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77q8iw/request_are_there_any_movies_with_mentally_ill_or/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508574105.0, "url": "https://www.reddit.com/r/NetflixBestOf/comments/77q8iw/request_are_there_any_movies_with_mentally_ill_or/", "whitelist_status": "all_ads", "quarantine": false, "author": "Diddler_kid", "created_utc": 1508545305.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 7, "media": null, "num_comments": 15, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77kotv", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] Best in Show (2000) Master mockumentarian Christopher Guest turns his cameras on the neurotic contestants vying for top honors in a highly competitive dog show.", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 162, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77kotv", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77kotv/us_best_in_show_2000_master_mockumentarian/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508514822.0, "url": "https://www.netflix.com/title/60002428", "whitelist_status": "all_ads", "quarantine": false, "author": "gerrardslips", "created_utc": 1508486022.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 162, "media": null, "num_comments": 15, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77koxy", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] Trading Places (1983) A streetwise hustler trades places with a wealthy investment executive as part of a bet cooked up by the rich, greedy Duke brothers. Starring Eddie Murphy", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 61, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77koxy", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77koxy/us_trading_places_1983_a_streetwise_hustler/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508514883.0, "url": "https://www.netflix.com/title/60011484", "whitelist_status": "all_ads", "quarantine": false, "author": "gerrardslips", "created_utc": 1508486083.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 61, "media": null, "num_comments": 8, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77kfwh", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] OtherLife (2017): After inventing a drug that induces time-compressed virtual realities, young Ren grapples with partner Sam over how to use their powerful creation.", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 28, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77kfwh", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77kfwh/us_otherlife_2017_after_inventing_a_drug_that/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508510695.0, "url": "https://www.netflix.com/title/80190841", "whitelist_status": "all_ads", "quarantine": false, "author": "Kevin241", "created_utc": 1508481895.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 28, "media": null, "num_comments": 4, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}
{"domain": "netflix.com", "approved_at_utc": null, "banned_by": null, "media_embed": {}, "subreddit": "NetflixBestOf", "selftext_html": null, "selftext": "", "likes": null, "suggested_sort": null, "user_reports": [], "secure_media": null, "is_reddit_media_domain": false, "saved": false, "id": "77d6xt", "banned_at_utc": null, "view_count": null, "archived": false, "clicked": false, "report_reasons": null, "title": "[US] Futurama (2013) A pizza delivery boy awakens in the 31st century after 1,000 years of cryogenic preservation and finds a job at an interplanetary delivery service. Seasons 7-10", "num_crossposts": 0, "link_flair_text": null, "mod_reports": [], "can_mod_post": false, "is_crosspostable": false, "pinned": false, "score": 1335, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "", "subreddit_id": "t5_2ro0h", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "contest_mode": false, "gilded": 0, "downs": 0, "brand_safe": true, "secure_media_embed": {}, "removal_reason": null, "author_flair_text": null, "stickied": false, "can_gild": false, "is_self": false, "parent_whitelist_status": "all_ads", "name": "t3_77d6xt", "spoiler": false, "permalink": "/r/NetflixBestOf/comments/77d6xt/us_futurama_2013_a_pizza_delivery_boy_awakens_in/", "subreddit_type": "public", "locked": false, "hide_score": false, "created": 1508431704.0, "url": "https://www.netflix.com/title/70153380", "whitelist_status": "all_ads", "quarantine": false, "author": "gerrardslips", "created_utc": 1508402904.0, "subreddit_name_prefixed": "r/NetflixBestOf", "ups": 1335, "media": null, "num_comments": 104, "visited": false, "num_reports": null, "is_video": false, "distinguished": null}

I need to print the value of the url field, when available. For example:
https://www.reddit.com/r/NetflixBestOf/comments/736jlh/meta_netflixbestof_5th_annual_31_days_of_horror/
https://www.netflix.com/title/6002748

This is my current regex (using egrep formatting by the way):
egrep -o '"url": *"[^"]*,'

It doesn't have any checks for special cases, but regardless shouldn't it at least output 1 URL? Not sure what my issue is, any help is appreciated!

A: Possibly you're missing a quote before the final comma:
'"url": *"[^"]*",'

Using non-capture groups:
'(?:"url": *")([^"]*)(?:",)'

A: The trick isn't egrep (grep -E) but you must use Perl regex
grep -Po '"url"\s*:\s*"\K(.+?)(?=")'

A: As suggested by @Andy, it is recommended to process your data as structured data, in your case JSON, right?
A few lines of Python, Perl or whatever you like, will help out:
import json
with open("input.txt") as f:
    for jdata in f:
        print(jdata)
        data = json.loads(jdata)
        print(data["url"])


text:
Q: Anomaly in cyrillic letters of TeX Gyre font sets with LuaLaTex I noticed a problem in loading TeX Gyre fonts with LuaLaTeX, since the cyrillic letters are missed to be loaded if the font is called by font name:
\setmainfont{TeX Gyre Adventor}

while are correctly loaded if called by file name
\setmainfont{texgyreadventor-regular.otf}

This last method, obviously, does not load the whole family, and I would be missing italic and bold fonts.
This is what I have calling by font name

This is what I have calling by file name

This is the code used for the previous examples
\documentclass{article}
\usepackage{fontspec}

\newif\ifTeXGyre

\TeXGyretrue

\ifTeXGyre
\setmainfont{TeX Gyre Adventor}
\else
\setmainfont{texgyreadventor-regular.otf}
\fi

\setlength{\parindent}{0pt}

\begin{document}

Hello, world\par
Здравствуй, Мир\par

{\itshape
Hello, world\par
Здравствуй, Мир\par
}

{\bfseries
Hello, world\par
Здравствуй, Мир\par
}

{\itshape\bfseries
Hello, world\par
Здравствуй, Мир\par
}

\end{document}

A: Actually, for me, neither work. and it is the same with other tex gyre fonts (tex gyre pagella). Looking at the font itself, as provided by texlive 2015, it doesn't contain any cyrillic glyphs.
Looking at the changelog from website (http://www.gust.org.pl/projects/e-foundry/tex-gyre/adventor/qag-hist.txt/view) it is due to a licensing disagreement.

Unfortunately, we were unable to receive a similar permission from
  Valek Filippov for his Cyrillic glyphs, thus there are no Cyrillic
  glyphs in any of the TeX Gyre fonts.

You must have an older version of the font in the path of your document that is picked up by your code when calling the filename directly.

A: It seems indeed that the the cyrillic glyphs were removed from the last available for download on the GUST.org version 2.004. An older version is available for download on fontsquirrel.
Original answer, not correct
I have recently run into a similar problem. I was surprised to learn from the ArTourter answer that the Cyrillic glyphs were removed due to a licence problem, as I have just downloaded the font from the link given by the font authors, and I was able to use its Cyrillic letters in other applications such as Word or Adobe Illustrator. Your question let me look for and to find the answer in Section 4.2 of the fontspec manual; it contains also the recipe how not to loose bold and italics variants. The following example works on my MikTeX system (I might need to add I use the latest luaotfload, 2.7-fix2, with luatex (and only it) updated to a version from MikTeX Next, but I don't think it makes any difference):
\documentclass[11pt,a4paper]{scrartcl}
%\title{TeX Gyre Heros test}
\usepackage{fontspec}
%\setmainfont[Ligatures=TeX]{Tex Gyre Heros}
\setmainfont{texgyreheros}[
            Ligatures=TeX,
            Extension = .otf ,
            Path = /Windows/Fonts/,
            UprightFont = *-regular ,
            BoldFont = *-bold ,]
\begin{document}
    \textbf{A test line} in Latin. Below is the test line in Cyrillic.

    \textbf{Пробная строка} кириллицей. Сверху --- латиницей.
\end{document}

This doen't answer your question, actually, but reanimates it.
UPDATE
It seems that the only reason is where the fonts are located; if Lualatex takes the fonts from Windows\Fonts directory, it doesn't know anything about the license limitations. If you copy the fonts from TDS\fonts\opentype\public\tex-gyre to Windows\Fonts, the code below gives different results depending on the path specifications. So maybe the answer is that only information from *.fd files was removed.
\documentclass[11pt,a4paper]{scrartcl}
%\title{TeX Gyre Heros test}
\usepackage{fontspec}
\setmainfont{Tex Gyre Heros}[
            Ligatures=TeX,
            Path = /Windows/Fonts/, % try to comment this line
            UprightFont = *-regular ,
            BoldFont = *-bold ,
            ItalicFont = *-italic ,
            BoldItalicFont = *-bolditalic ,
            ]
\begin{document}
    \textbf{A test line} in Latin. \emph{Below} is the test line in Cyrillic.

    \textbf{Пробная строка} кириллицей. \emph{Сверху} --- латиницей.
\end{document}

Now the question is: is it wise to download and keep in a safe place all TeX Gyre fonts, while they still have the Cyrillic glyphs?

redpajama_set_name: RedPajamaStackExchange


text:
Q: Python-Take multiple inputs using for loop and print multiple outputs through if condition This is my code which prints if a number can be divided into two even numbers.
`n=int(input("Enter no. of variables:"))
for i in range(n):
    a = list(map(int, input().rstrip().split()))
for x in a:
    if(x%2==0):
        print("Yes")
    elif(x==2 or x==0):
        print("No")
    else:
        print("No")`

I am getting the output as
Enter no. of variables:2
4
6
Yes
Only the last number entered is giving the result,
I need the output as
Enter no. of variables:2
4
6
Yes
Yes
Please help

A: You are receiving your input incorrectly. Try this:
a = []
for i in range(n):
    a.append(int(input()))

Or, as a list comprehension:
a = [int(input()) for i in range(n)]

Also, if you want to test if a number can be split into two even numbers, try x % 4 instead of x % 2.

A: for i in range(n):
    a = list(map(int, input().rstrip().split()))

Each time through this loop, you're reassigning a, discarding its previous value.

A: In your first loop, you're replacing each input list result with a new input list.
The culprit:
    a = list(map(int, input().rstrip().split()))

When your code exits the loop, a will only contain one value. To revise your approach, you could initialise a list before the loop, appending values into it when inside the loop.
a = []
for i in range(n):
    a.append(int(input()))

Additionally, since there seems to be only one number per line, simply doing int(input()) will get the number.
Your second loop might also need to be revised.

A: I believe you want:
a=[]
n=int(input("Enter no. of variables:"))
for i in range(n):
    a += list(map(int, input().rstrip().split()))
    print(a)
for x in a:
    if(x%2==0):
        print("Yes")
    elif(x==2 or x==0):
        print("No")
    else:
        print("No")

Python overwrites the value of a with the input each time, but I think what you want is for these values to accumulate. += accomplishes this with lists.
Let me know if this helps!
edit: I put the three code ticks on the same line as some of my code, so it got eaten by them.

A: In your beginning loop you keep resetting the value of a instead of adding it to the existing value of a:
for i in range(n):
    a = list(map(int, input().rstrip().split()))

The first time a = [4] but then you override it the next loop where a = [6]
To append it to a instead, you should do:
a = []
for i in range(n):
    a += list(map(int, input().rstrip().split()))

or what you are more likely going for:
a = []
for i in range(n):
    a.append(int(input().rstrip()))

The way you are doing it, calling .split() on the input generates a list which wouldn't make sense in this case, if would be better to just get the number by int(input().rstrip())
Another way to do it is using list comprehension which is more pythonic:
a = [int(input().rstrip()) for _ in range(n)]

Hope that helps!


text:
Q: Eclipse DDMS not recognizing my Backflip When I plug my Android Backflip into my computer, WIndows 7 recognizes it but it never shows up in Eclipse's DDMS. I have the USB Debugging checked under Development on the phone and I can see virtual devices I create just fine in DDMS but never anything at all for Backflip.
Does anyone know of something else that needs to be done? I see some things talking about special tasks for Linux but I am running Microsoft Windows 7!
Thanks!

A: Have you installed the USB driver for Windows? You can find instructions on how to do so at http://developer.android.com/sdk/win-usb.html.


text:
Q: Android - In-app billing almost working? I followed this guide: http://www.anddev.org/advanced-tutorials-f21/simple-inapp-billing-payment-t52060.html
I created a test account and bought an item from myself, and it worked. The item costs 9SEK (swedish), but it was drawn twice, one for 8SEK (what's this?) and the other for 9SEK (item I guess?). I also received twice the nonce JSONObject which gives the information about the purchase. Then I received a mail from Google Play saying that i bought this item, but haven't received any mail to my original account saying that an item was bought. Anyone have a clue why this happened?
Thank you.
EDIT:
I just logged in to my account and I can see that one item was selled for 9SEK, so that's okey. But where did the 8SEK come from?


text:
Q: Unexpected behavior in FIRST_VALUE() with IGNORE NULLS (Vertica) I'm seeing unexpected behavior in Vertica's FIRST_VALUE() analytic function with the IGNORE NULLS parameter. It appears to return NULL when it shouldn't.
The issue occurs in this very tiny table:
drop table if exists temp;
create table temp (time_ timestamp(6), name varchar(10));
insert into temp (time_) values ('2016-03-18 20:32:16.144');
insert into temp (time_, name) values ('2016-03-18 20:52:09.062', 'abc');

Here are the contents of the table (select * from temp):
time_                   | name
------------------------+--------
2016-03-18 20:32:16.144 | <null>
2016-03-18 20:52:09.062 | abc

Here is the query I'm running:
select time_,
  first_value(name ignore nulls) over (order by time_) first_name
from temp;

Here are the results this query returns:
time_                   | first_name
------------------------+------------
2016-03-18 20:32:16.144 | <null>
2016-03-18 20:52:09.062 | abc

Here are the results I would expect (and desire) from this query:
time_                   | first_name
------------------------+------------
2016-03-18 20:32:16.144 | abc
2016-03-18 20:52:09.062 | abc

Does the above query have a very fundamental syntax mistake? This issue occurs on Vertica Community Edition 7.1.1.

A: The function works as expected.
over (order by time_) is a shortcut for over (order by time_ range unbounded preceding) which is a shortcut for over (order by time_ range between unbounded preceding and current row), which means every row sees only the rows that preceded it, including itself.
The first row sees only itself therefore there isn't a non NULL value in its scope.
If you want the first non NULL value of the whole scope, you have to specify the whole scope:
first_value(name ignore nulls) over
    (order by time_ range between unbounded preceding and unbounded following) first_name

No, this is definitly not a bug.
You've probably have been using syntax like sum(x) over (order by y) for running totals and the default window of RANGE UNBOUNDED PRECEDING seemed very natural to you.
Since you had not define an explicit window for the FIRST_VALUE function, you have been using the same default window.
Here is another test case:
ts val
-- ----
1  NULL
2  X
3  NULL
4  Y
5  NULL

What would you expect to get from the following function?
last_value (val) order (by ts)

What would you expect to get from the following function?
last_value (val ignore nulls) order (by ts)

A: This is where my thinking takes me
select time_
      ,first_value(name) over (order by case when name is null then 1 else 0 end,time_) FirstName
from temp A
order by time_

Returns
time_               FirstName
20:32:16.1440000    abc
20:52:09.0620000    abc


text:
Q: angularjs bind template as item inside ngrepeat I have a special situation in the angularjs, i cant template inside ngRepeat that template is a parameter of item

controller code :
$scope.columns:[{ name: "id" },
            { name: "name" },
            { name: "lastName"},
            { name: "name", template: "edit"},
            { name: "name", template: "<button ng-click='del()' href='#'>del</button>" }]

and resolve function is:
  $scope.resolve = function(item,col){
         if (col.template) {
            // i dont know for this
         } else {
          return sce.trustAsHtml("" + item[col.name] + "");
           }
    }

Any help is much appreciated,
Thanks

A: I am making a few speculations on your logic, but this smells to me like the job of a directive.
Check out the plunker i made to show my point:
http://plnkr.co/edit/zW6LYKNQxgfRszwY0eV2?p=preview
Also looking at the example code you have given:
$scope.columns:[{ name: "id" },
            { name: "name" },
            { name: "lastName"},
            { name: "name", template: "edit"},
            { name: "name", template: "<button ng-click='del()' href='#'>del</button>" }]

$scope.columns = not :

A: I have already done a sample like as your sample here. In this sample, I created more a custom directive named "dynamic" to resolve and compile the HTML string automatically in AngularJS.
HTML

Javascript
var myApp = angular.module('myApp', []);
myApp.directive('dynamic', function ($compile) {
  return {
    restrict: 'A',
    replace: true,
    link: function (scope, ele, attrs) {
      scope.$watch(attrs.dynamic, function(html) {
        ele.html(html);
        $compile(ele.contents())(scope);
      });
    }
  };
});
myApp.controller('templateController', function ($scope){
    $scope.items = [{ name: "id" },
            { name: "name" },
            { name: "lastName"},
                    { id: 1, name: "name", template: "edit"},
            { name: "name", template: "<button ng-click='del()' href='#'>del</button>" }];
});

Hope this will help you!!


text:
Q: How to store a dictionary in a file (Python) I am new to python and I wanted to know if there is any way that I can store a dictionary in a file without using any module?
Example of Dictionary -
credentials = {
  "username" : "ABC",
  "email"    : "abc@email.com",
  "password" : "abc123@#"
}

A: you need to use json format
import json
credentials = {
  "username" : "ABC",
  "email"    : "abc@email.com",
  "password" : "abc123@#"
}

with open("creds.json", "w") as outfile:
    json.dump(credentials, outfile)

without Any module
credentials = {
  "username" : "ABC",
  "email"    : "abc@email.com",
  "password" : "abc123@#"
}

with open("creds.txt", "w") as outfile:
    outfile.write(str(credentials))

A: Sure you can, the simplest way is just calling str() on it:
with open("out.txt", "w") as file:
    file.write(str(<dict>))

Though it's probably not the smartest way to do it since you'll need to retrieve it back and then the problem might occur.
Instead perhaps use json.dumps() (or json.dump() if you prefer using file descriptor), or serialize it to XML (manually since there's no simple "dumps()" as for json) or pickle.dumps().
To retrieve the value back then use:

*

*ast.literal_eval() for str() (may break)

*json.loads()/json.load() for JSON

*xml.etree.ElementTree.parse for XML

*picke.loads()/picke.load() for binary pickle format

A: import os

credentials = {
  "username" : "ABC",
  "email"    : "abc@email.com",
  "password" : "abc123@#"
}

for c in credentials:
    file_data = credentials.items()
file_name = os.path.join(os.path.dirname(__file__), 'test.txt')

with open(f'{file_name}.txt', 'w') as write_file:
    write_file.write(str(file_data))


text:
Q: Sqoop fails to import any rows I'm trying to import a dummy table (cities) into HDFS with the following command:
$ sqoop import --connect jdbc:oracle:thin:@10.0.2.15:1521/XE --username system --password root --table cities --columns country,city --split-by id --target-dir /sqoop/output1

but no rows get imported.
The SQL statement that gets generated by Sqoop is
SELECT t.* FROM cities t WHERE 1=0

which is odd because 1 will never be equal to zero.
I'm running:
Hadoop 2.4.1
Sqoop 1.4.5

A: Josef try to delete split-by and set reducer (-m parameter) to 1. If it is going to be ok it means that your splitter is bad. I also had problem with connection string in format jdbc:oracle:thin:@10.0.2.15:1521/XE  (think it should be jdbc:oracle:thin:@10.0.2.15:1521:XE or jdbc:oracle:thin:@//10.0.2.15:1521/XE anyway - read this JDBC). But for me only this format is working:
jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=10.0.2.15)(port=1521))(connect_data=(service_name=XXXXXX)))

A: The statement with "where 1=0" is generated just to get the list of columns. The actual select is done in the MR job later on.
The problem was that the "cities" table didn't belong to SYSTEM user.


text:
Q: from one userform to another userform i have main user-form 1 which has all the information including list box and when user select the name of the person it will find for duplicate and if user press Yes to duplicate msgbox another user-form 2 will popup requiring password and if user enters the correct password it will popup another user-form 3 which has comment box to be updated against initial duplicate find..
problem is that it only updates comment on 1st line row on sheet 1 (where the data updates) and NOT the actual duplicate it finds using staff ID number in column G in sheet1. it only finds first line which is within User-form1 listbox not the line you have selected in User-form1.
below it is the code which works fine within User-form1 and however it dose not work of what i wants to work when placed in user-form 3
Private Sub CommandButton1_Click()
Dim p As Variant
    Dim lCol As Variant
    Dim response As Variant
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("Jobs_Allocation")
Dim y As Long

Application.EnableCancelKey = xlDisabled

If TextBox1 > False Then
  Unload Me
  lCol = frmSelector.lstSelector.List(x, 3)
Set findvalue = Sheet1.Range("G:G").Find(What:=lCol, LookIn:=xlValues)
    If Not findvalue Is Nothing Then
        adr = findvalue.Address
        Do
           Sheet1.Unprotect Password:="123"
            If findvalue.Offset(0, -1).Value = frmSelector.lstSelector.List(x, 2) Then
                findvalue.Offset(0, 6).Value = Format(Now, "HH:MM:SS")
                findvalue.Offset(0, 7).Value = TextBox1.Value
                y = sh.Range("C" & Application.Rows.Count).End(xlUp).Row
                Exit Do
            End If
            Set findvalue = Sheet1.Range("G:G").FindNext(findvalue)
        Loop While findvalue.Address <> adr
        Set findvalue = Nothing
    End If
End If

If TextBox1.Value > 0 Then
        MsgBox "You must enter the comment", vbCritical, "Error message"
        Exit Sub
    End If

End Sub

A:
I'm sorry as I'm not helping you thouroghly, but I think you need to do the loop in your CommandButton1_Click which reside in the third Userform.
I give you a very simple simulation which I hope you can implement it to your code.

From the image above, it's the first userform, in your case it's frmselector.
The listbox is named to lstselector, and (in the image) the selected item is the fourth row. So, the index number is 3, the x value in your case.
I see that to get the lCol value, you do the code :
For x = 0 To Me.lstSelector.ListCount - 1
    If Me.lstSelector.Selected(x) Then
        **If Me.txtJob.Value = Value = False Then**

            lCol = Me.lstSelector.List(x, 3)

So, disregarding the code-line I put in between two asterisk,
based on the image above, we know that the value of the lCol variable is 80.
To get the lCol value (in other words, to get the selected value on the fourth column of the lstselector in frmselector/first_userform) when running the CommandButton1_Click sub of the third userform, we need to do the loop again. Below is the example of the code, which we hope that the code will give lCol value as 80 :
Private Sub CommandButton1_Click()
With frmselector
    For x = 0 To .lstselector.ListCount - 1
    If .lstselector.Selected(x) Then Exit For
    Next
lCol = .lstselector.List(x, 3)
End With
MsgBox "The value of selected selector in frmselector is: " & lCol
End Sub


text:
Q: Share debug.keystore Is there any way to share the keystore in a android development team? The goal is to avoid unnecessary uninstall->install cycles. We tried sharing the debug.keystore from .android but it seems that that alone is not working - still getting

Re-installation failed due to different application signatures.
You must perform a full uninstall of the application. WARNING: This
  will remove the application data!

A: You can copy a debug key from one of your team and provide it to all of the team members.
The debug keystore should be located at ~/.android/debug.keystore.
A better solution IMO is to use maven and a release-keystore that gets distributed between the developers. You can check the Immopoly pom file for seeing a working example config.


text:
Q: Corrupt NTFS folder not accessible from either Windows, Mas OSX or Linux I have an external 2TB hard drive with a large number of video files from GoPro and a Sony Handycam as well as other backed up content. Recently while attempting to backup from my Mac (using a bit of a hack via OSXFUSE to allow writing to a NTFS filesystem which had been working for me up until now) I found one of my folders to be missing some folders. I removed the external HD and tried to recover it from Ubuntu, but in Ubuntu I get even less visibility of the content. See the screenshot below. The 2 folders coloured purple no longer act as folders and their names have been shortened, they should read 'Navimag Ferry' and 'Sony Hanicam' (typo from Handycam).

When I run ls -al I get the following

It seems to me that the information is there because the available space has not changed.
So far I have tried the following:
sudo ntfsfix /dev/sda1

Which gives the following output
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.

and
sudo testdisk /dev/sda1

Using testdisk I used the quick search function in analyse followed by the deeper search but both  returned Structure: Ok.

Additionally I used the undelete function but could not find the missing files or folders.
It seems to me that the link between the data and the directory structure is missing, but I am unsure how I can get this link back.
Any ideas??
Thanks,
Stu.

A: Small disclaimer / introduction
I am the author of a MSc thesis related to forensic NTFS reconstruction when metadata is partially damaged and the creator of RecuperaBit, an open source software I will mention later in this answer.
What (likely) happened

The 2 folders coloured purple no longer act as folders and their names have been shortened

NTFS file records (called MFT entries) contain some crucial elements:

*

*Flags → Some bits describing the file. In particular, one bit corresponds to the "Is this a folder?" question and another to "Is this deleted or still allocated?".

*$FILE_NAME attribute(s) → Each file has one or more file names, because NTFS is compatible with DOS 8.3 names.

*$STANDARD_INFORMATION attribute → This contains MAC (modification, access, creation) times and a bit more.

Moreover, each directory contains one $INDEX_ROOT and possibly several $INDEX_ALLOCATION attributes listing the children names (but not the MAC times).
From your output, it seems to me that the MFT entries of those two directories have been lost. You still see them as elements inside camera uploads because they are found in one of the index attributes, but when the system tries to read the records to show you the dates, it fails.
The NTFS driver works as any other "normal" OS utility to access a file system: it goes top-down. Break a node and you lose any sub-tree (the contents of those directories, basically).
Here's where advanced data recovery software can help.
Recovering the files
Since this is a programming related website, I will briefly explain how you would program a software that is able to read a NTFS partition where some MFT entries are missing:

*

*Scan the whole drive, attempting to parse any pair of sectors starting with FILE as a valid MFT entry (I am simplifying a bit here)

*Build a tree bottom up by doing this for any node:

*

*Read the id of the parent node

*If you have a node with said id, link the child to the parent

*Otherwise, create a Folder_<id> directory under Lost Files and link the child to it

*Read the $DATA attributes of each file you want to recover and copy them somewhere else

For more details related to the algorithmic techniques for file system reconstruction, check out my thesis linked above.
Tools you can try
I have mentioned a few programs in this answer on the Software Recommendations website. Those were specifically targeted to heavily damaged drives, and they included:

*

*DMDE (commercial, for Windows but has a console version for Linux)

*Restorer Ultimate (commercial, for Windows and OS X)

*RecuperaBit (open source, Python-based): It runs for sure on Linux but it has been fainly tested on Windows... like once. It should run on OS X as well.

Based on both my (biased) opinion and my test results RecuperaBit is the best one with disks showing severe damage. Yours is slightly damaged, nevertheless I would like to provide a brief guidance on how to recover two specific folders.
Recovering those two directories
First of all, run RecuperaBit on the disk. I would strongly suggest running it on a bitstream copy, but it does not write anything to it, so you might try to run it directly on the device:
mkdir /media/user/External/recovered_files
cd [full path of recuperabit]
pypy main.py /dev/sdb -o /media/user/External/recovered_files -s /media/user/External/savefile.save

Here I assume /dev/sdb is the damaged drive and you want to save the files in another drive mounted on /media/user/External. If you run the tool on the block device directly, I think you'll need sudo.
The scanning process will take a long time (sit back and relax, 2TB are a lot!), however the results are saved to savefile.save should you run the tool a second time. Type recoverable to find out the identifier of the partition you need to restore. The identifier is given by RecuperaBit and does not reflect the partition table.
Assuming it is #2, save a CSV dump of the contents:
csv 2 contents.csv

The program will print the path of the saved file. Open it with LibreOffice and find the id of the folder(s) you want to restore. For example, the root directory would have id 5, but you probably don't want to get a copy of all files if you miss only two directories.
Let's say the broken directory has id 124. Go back to RecuperaBit and type:
restore 2 124

Where #2 is still the partition identifier. It will list the files it is recovering. You can navigate to the output directory and check if what you want is there. If it is not, try again: you might have chosen the wrong identifier.


text:
Q: Webedit plugin won't work on Notepad++ 7.6.6 (x86) / Windows 8.1 Somehow, my Webedit toolbar disappeared from Notepad++ but I really need it, especially the icons to place HTML tags around selected text.
I completely uninstalled/reinstalled Notepad++ to solve it but I'm not just getting there. The weird thing is that the plugin manager claims that Webedit is installed:

But still no toolbar. Besides, I don't see any trace of webedit in the plugins menu:

Could anybody please suggest how to troubleshoot this?
Thanks in advance!

A: The WebEdit plugin is available in Notepad++ 32bit version only. If the plugin is not shown in Notepad++ Plugins Admin that can be added manually. Follow these steps:

*

*Open Notepad++ installation folder. That should be in ProgramFiles or ProgramFiles(x86) folder.

*Open plugins folder.

*Create a WebEdit folder.

*Download the plugin from this SourceForge: npp-plugins project as a ZIP file.

*Open the downloaded ZIP file and extract the files in previously created WebEdit folder.

*Close any Notepad++ window and reopen it.


text:
Q: Why is using a sequence so much slower than using a list in this example Background:
I have a sequence of contiguous, time-stamped data.
The data-sequence has holes in it, some large, others just a single missing value.
Whenever the hole is just a single missing value, I want to patch the holes using a dummy-value (larger holes will be ignored).
I would like to use lazy generation of the patched sequence, and I am thus using Seq.unfold.
I have made two versions of the method to patch the holes in the data.
The first consumes the sequence of data with holes in it and produces the patched sequence. This is what i want, but the methods runs horribly slow when the number of elements in the input sequence rises above 1000, and it gets progressively worse the more elements the input sequence contains.
The second method consumes a list of the data with holes and produces the patched sequence and it runs fast. This is however not what I want, since this forces the instantiation of the entire input-list in memory.
I would like to use the (sequence -> sequence) method rather than the (list -> sequence) method, to avoid having the entire input-list in memory at the same time.
Questions:
1) Why is the first method so slow (getting progressively worse with larger input lists)
(I am suspecting that it has to do with repeatedly creating new sequences with Seq.skip 1, but I am not sure)
2) How can I make the patching of holes in the data fast, while using an input sequence rather than an input list?
The code:
open System

// Method 1 (Slow)
let insertDummyValuesWhereASingleValueIsMissing1 (timeBetweenContiguousValues : TimeSpan) (values : seq<(DateTime * float)>) =
    let sizeOfHolesToPatch = timeBetweenContiguousValues.Add timeBetweenContiguousValues // Only insert dummy-values when the gap is twice the normal
    (None, values) |> Seq.unfold (fun (prevValue, restOfValues) ->
        if restOfValues |> Seq.isEmpty then
            None // Reached the end of the input seq
        else
            let currentValue = Seq.hd restOfValues
            if prevValue.IsNone then
                Some(currentValue, (Some(currentValue), Seq.skip 1 restOfValues  )) // Only happens to the first item in the seq
            else
                let currentTime = fst currentValue
                let prevTime = fst prevValue.Value
                let timeDiffBetweenPrevAndCurrentValue = currentTime.Subtract(prevTime)
                if timeDiffBetweenPrevAndCurrentValue = sizeOfHolesToPatch then
                    let dummyValue = (prevTime.Add timeBetweenContiguousValues, 42.0) // 42 is chosen here for obvious reasons, making this comment superfluous
                    Some(dummyValue, (Some(dummyValue), restOfValues))
                else
                    Some(currentValue, (Some(currentValue), Seq.skip 1 restOfValues))) // Either the two values were contiguous, or the gap between them was too large to patch

// Method 2 (Fast)
let insertDummyValuesWhereASingleValueIsMissing2 (timeBetweenContiguousValues : TimeSpan) (values : (DateTime * float) list) =
    let sizeOfHolesToPatch = timeBetweenContiguousValues.Add timeBetweenContiguousValues // Only insert dummy-values when the gap is twice the normal
    (None, values) |> Seq.unfold (fun (prevValue, restOfValues) ->
        match restOfValues with
        | [] -> None // Reached the end of the input list
        | currentValue::restOfValues ->
            if prevValue.IsNone then
                Some(currentValue, (Some(currentValue), restOfValues  )) // Only happens to the first item in the list
            else
                let currentTime = fst currentValue
                let prevTime = fst prevValue.Value
                let timeDiffBetweenPrevAndCurrentValue = currentTime.Subtract(prevTime)
                if timeDiffBetweenPrevAndCurrentValue = sizeOfHolesToPatch then
                    let dummyValue = (prevTime.Add timeBetweenContiguousValues, 42.0)
                    Some(dummyValue, (Some(dummyValue), currentValue::restOfValues))
                else
                    Some(currentValue, (Some(currentValue), restOfValues))) // Either the two values were contiguous, or the gap between them was too large to patch

// Test data
let numbers = {1.0..10000.0}
let contiguousTimeStamps = seq { for n in numbers -> DateTime.Now.AddMinutes(n)}

let dataWithOccationalHoles = Seq.zip contiguousTimeStamps numbers |> Seq.filter (fun (dateTime, num) -> num % 77.0 <> 0.0) // Has a gap in the data every 77 items

let timeBetweenContiguousValues = (new TimeSpan(0,1,0))

// The fast sequence-patching (method 2)
dataWithOccationalHoles |> List.of_seq |> insertDummyValuesWhereASingleValueIsMissing2 timeBetweenContiguousValues |> Seq.iter (fun pair -> printfn "%f %s" (snd pair) ((fst pair).ToString()))

// The SLOOOOOOW sequence-patching (method 1)
dataWithOccationalHoles |> insertDummyValuesWhereASingleValueIsMissing1 timeBetweenContiguousValues |> Seq.iter (fun pair -> printfn "%f %s" (snd pair) ((fst pair).ToString()))

A: Any time you break apart a seq using Seq.hd and Seq.skip 1 you are almost surely falling into the trap of going O(N^2).  IEnumerable<T> is an awful type for recursive algorithms (including e.g. Seq.unfold), since these algorithms almost always have the structure of 'first element' and 'remainder of elements', and there is no efficient way to create a new IEnumerable that represents the 'remainder of elements'.  (IEnumerator<T> is workable, but its API programming model is not so fun/easy to work with.)
If you need the original data to 'stay lazy', then you should use a LazyList (in the F# PowerPack).  If you don't need the laziness, then you should use a concrete data type like 'list', which you can 'tail' into in O(1).
(You should also check out Avoiding stack overflow (with F# infinite sequences of sequences) as an FYI, though it's only tangentially applicable to this problem.)

A: Seq.skip constructs a new sequence. I think that is why your original approach is slow.
My first inclination is to use a sequence expression and Seq.pairwise. This is fast and easy to read.
let insertDummyValuesWhereASingleValueIsMissingSeq (timeBetweenContiguousValues : TimeSpan) (values : seq<(DateTime * float)>) =
  let sizeOfHolesToPatch = timeBetweenContiguousValues.Add timeBetweenContiguousValues // Only insert dummy-values when the gap is twice the normal
  seq {
    yield Seq.hd values
    for ((prevTime, _), ((currentTime, _) as next)) in Seq.pairwise values do
      let timeDiffBetweenPrevAndCurrentValue = currentTime.Subtract(prevTime)
      if timeDiffBetweenPrevAndCurrentValue = sizeOfHolesToPatch then
        let dummyValue = (prevTime.Add timeBetweenContiguousValues, 42.0) // 42 is chosen here for obvious reasons, making this comment superfluous
        yield dummyValue
      yield next
  }


text:
Q: "Illegal mix of collations" error from MySql while running rails test suite I've recently dusted off an old Ruby on Rails project of mine.  In the past, I've never had any problems getting all the tests to pass, but now there is one test that gives me the following error:

ActiveRecord::StatementInvalid: Mysql::Error: #HY000Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=': SELECT * FROM cards WHERE (cards.l1_description = '是' AND cards.l2_word = '')

So I go to my test db and ask:
mysql> use flashcard_test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show full columns from cards;
+----------------+--------------+-------------------+------+-----+---------+----------------+---------------------------------+---------+
| Field          | Type         | Collation         | Null | Key | Default | Extra          | Privileges                      | Comment |
+----------------+--------------+-------------------+------+-----+---------+----------------+---------------------------------+---------+
| id             | int(11)      | NULL              | NO   | PRI | NULL    | auto_increment | select,insert,update,references |         |
| l2_word        | varchar(255) | latin1_swedish_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| l1_description | text         | latin1_swedish_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| l1_id          | int(11)      | NULL              | YES  |     | NULL    |                | select,insert,update,references |         |
| l2_id          | int(11)      | NULL              | YES  |     | NULL    |                | select,insert,update,references |         |
+----------------+--------------+-------------------+------+-----+---------+----------------+---------------------------------+---------+
5 rows in set (0.01 sec)

And as you can see, the collation is latin1_swedish_ci, and presumably if it were "utf8_general_ci", my problems would be solved.  Thankfully, my development database is already okay, so I go and
rake db:test:clone_structure

and back to MySql and check again in the test db
mysql> show full columns from cards;
+----------------+--------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
| Field          | Type         | Collation       | Null | Key | Default | Extra          | Privileges                      | Comment |
+----------------+--------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
| id             | int(11)      | NULL            | NO   | PRI | NULL    | auto_increment | select,insert,update,references |         |
| l2_word        | varchar(255) | utf8_general_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| l1_description | text         | utf8_general_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| l1_id          | int(11)      | NULL            | YES  |     | NULL    |                | select,insert,update,references |         |
| l2_id          | int(11)      | NULL            | YES  |     | NULL    |                | select,insert,update,references |         |
+----------------+--------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
5 rows in set (0.00 sec)

Ah, so now everything is looking good, so once again I
rake test

But I get the same problem all over again, and when I check my test db, I find that the collation column has been reset to latin1_swedish_ci.
I do not understand very well how rake test works, but my working hypothesis is that it recreates the DB using schema.rb.  Now, in one of my migrations, I've got
 class CreateCards < ActiveRecord::Migration
   def self.up
     create_table :cards, :options => "DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci"  do |t|
       t.column :english_word, :string
       t.column :chinese_description, :text
     end
   end

   def self.down
     drop_table :cards
   end
 end

And this apparently has taken care of the collate problem there.  (I've got another migration which renames english_word and chinese_description to l2_word and l1_description, respectively.)  But this information has not made it into schema.rb.  And somehow, apparently, MySql has decided to assume that I want latin1_swedish_ci.
So, to summarize, what I think I need to do is somehow edit something so that I'll be using the utf8_general_ci collation, and then my problems will go away (right?).  But I cannot figure out how to make the code that gets run when you "rake test" do this.  Can anybody help?
For what it's worth, both the test and development databases were created as
create database flashcard_test default character set utf8 default collate utf8_general_ci;

and
create database flashcard_development default character set utf8 default collate utf8_general_ci;

And my database.yml has
development:
  adapter: mysql
  database: flashcard_development
  username: root
  password:
  encoding: utf8

test:
  adapter: mysql
  database: flashcard_test
  username: root
  password:
  encoding: utf8
  collation: utf8_general_ci

http://nhw.pl/wp/2008/09/16/mysql-collate-setting-in-rails-application seems to suggest that this problem has something to do with the connection between RoR and MySql, but I haven't had any luck with the suggestions there.

A: Adding the collation: utf8_general_ci to your database.yml file like you have done should do the trick. Try recreating the test database using "rake RAILS_ENV=test db:migrate:reset db:fixtures load" - warning this will clear all data you have there beyond the fixtures.
That worked for me. To verify see the collation on the database, tables, and columns you can execute the following:
-- Database Collations:
SELECT schema_name,default_character_set_name,default_collation_name
FROM information_schema.SCHEMATA
WHERE schema_name not IN ('mysql');

-- Table Collations:
SELECT T.table_schema, T.table_name, T.TABLE_COLLATION, CCSA.CHARACTER_SET_NAME
FROM information_schema.`TABLES` T,
 information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA
WHERE CCSA.collation_name = T.table_collation
AND T.table_schema not IN ('mysql');

-- Column Collations:
SELECT table_schema, table_name, column_name, collation_name, character_set_name
FROM information_schema.`COLUMNS` C
WHERE C.table_schema not IN ('mysql')
ORDER BY 1,2,4;

Everything in your test database should now have the collation specified in database.yml.


text:
Q: How to use semaphores We have two processes A and B that will run concurrently:
ProcessA:
Statement A1;
Statement A2;
Process B
Statement B1;
Statement B2;
By use of semaphore(s) how can I state that A1 is executed before B2 and B1 is executed before  A2.


text:
Q: Java Applet not caching I'm having a problem with a Java applet I've deployed that is refusing to be cached in the jvm's "sticky" cache (or by the browser).  For some reason every time a user loads the page this applet is on, the jvm re-downloads the jar file from the server which causes a long delay.
The webpage containing the applet is being accessed via the internet, so according to Sun's Java applet documentation I'm using an <applet> tag rather than an <object> or <embed> tag.
Any help debugging or identifying the problem would be much appreciated.
Below is the full applet tag I'm using:
<applet alt="Scanning Applet failed to load" archive="scanning.jar"
        code="scanning.scanlet.class" codebase="/java/" codetype="application/java"
        height="30" mayscript="True" name="scanlet" width="200">
    <param name="domain" value="192.168.12.23" />
    <param name="publishName" value="scan_attachment" />
    <param name="publishURL" value="http://192.168.12.23/draft/update/52" />
    <param name="curURL" value="http://192.168.12.23/draft/edit/52" />

Your browser is unable to process the Java <APPLET> tag needed to display this applet

One solution would be to download a better web browser like
Mozilla's Firefox

</applet>

A: I had the very same problem and found a trick that need to be applied server side. It seems that jars aren't cached if their mime type is incorrect. Please check your server reply using the application/java-archive mime type.
Another problem I found is related to a specific jar. My archive parameter was listing many jars, but only a few were cached. I found that all jars upto a specific one where cached, all remaining jars weren't cached at all.
While loading applet, I pressed "5" in its java console and found this message just after the last cached jar: cache: signed entry  missing from jar . I still don't know what is wrong with this file, but I moved that jar at the end of the archive parameter list. This "fixed" the problem.

A: Personally I solved the caching issues by using cache_archive and cache_version parameters docummented at http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/applet_caching.html
My cache_version is based on the actual file modification date, e.g.
val archive = libs.map("/" + _.getPath).mkString (", ")
val version = libs.map(_.getUpdated / 1000 / 20 - 59281420).mkString (", ")

and to work with MSIE it looks as:
if (msie) {
  cms write <OBJECT
    classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab"
    width="100%" height="100%">
    ...
    <PARAM name="cache_archive" value={archive}/>
    <PARAM name="cache_version" value={version}/>
  </OBJECT>
} else {
  cms write <applet ...
    cache_archive={archive} cache_version={version}></applet>
}

A: This official article describes how you can change your APPLET tag to increase caching:
http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

A: For me I had to remove the Jar files from the Archive tag and just have it in the cache_archive parameter, and specify the versions that way it doesn't piggy back to the server for last modified date
Fixed it in firefox for me


text:
Q: Keyboard shortcut for a button In C# (Microsoft Visual Studio 2010), how can I assign a keyboard shortcut to a button such as the following?
    private void closeButton_Click(object sender, EventArgs e)
    {
        // Close the program
        this.Close();
    }

I know I can use the "&" character in the button's Text and create an Alt - n shortcut, but I'd like to create a single keypress shortcut, such as c to execute the above.

A: Here's a different approach:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
    switch(keyData)
    {
         case Keys.F2:
             // do something...
             return true;
         case Keys.F3:
             // do something...
             return true;
         case Keys.F4:
             // do something...
             return true;
         default:
             return base.ProcessCmdKey(ref msg, keyData);
    }
}

You don't need to change KeyPreview value.

A: if you want add Ctrl + S in switch statment so you can also try below code.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
    {
        switch (keyData)
        {
            case Keys.Control | Keys.S:
                // do something...
                return true;
            case Keys.Control |Keys.Alt | Keys.S:
                // do something...
                return true;
            case Keys.F2:
                // do something...
                return true;
            case Keys.F3:
                // do something...
                return true;
            case Keys.F4:
                // do something...
                return true;
            default:
                return base.ProcessCmdKey(ref msg, keyData);
        }
    }

A: KeyDown is your friend ;) For example, if you want the shortcut key A while Shift is pressed, try this:
    void Form1_KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyCode == Keys.A && e.Shift)
            // Do something
    }

If you want a "real" keyboard shortcut you can use hooks.
Look at Stack Overflow question RegisterHotKeys and global keyboard hooks?.


text:
Q: How can preserve my manual edit of an expression when exporting to LaTeX? Context
I would like to use the Mathematica front end to pre-process
expressions before exporting them to LateX, for the sake of readability.
Example
Say I have this expression
   (16*((-3 + r^2)*BesselI[0, r^2/8]^2 - ((-48 + 16*r^2 + r^4)*BesselI[0, r^2/8]*
   BesselI[1, r^2/8])/r^2 +
   15*BesselI[1, r^2/8]^2)*Cos[2*\[Theta]])/(3*Sqrt[3]*E^(r^2/4))

which looks like this in Mathematica

Once I edit it by hand within Mathematica, it might look like this:
(notice that its more publishable in that form)

(This is a great feature of the Front-End by the way!).
If I then select the expression and choose the export to latex menu, Mathematica exports the original (unedited) equation.
Question
How do I tell Mathematica to mind its own business and export to LaTeX the result of my edit, not its re-processing of it?
EDIT
Following the suggestion of @Nasser, I tried

So it does not really preserve the original expression?

A: For the notebook interface, you can use HoldForm[] like this
expr2 = HoldForm[16 E^(-(r^2/4)) cos (2 \[Theta]) /(3 Sqrt[3])];
expr3 = HoldForm[((r^2 - 3) BesselI[0,r^2/8]^2 + 15 BesselI[1,r^2/8]^2 -
        ((r^4 + 16 r^2 - 48) BesselI[1,r^2/8] BesselI[0,r^2/8])/r^2)];
TraditionalForm[expr2 expr3]

which gives

Which is what you wanted. Now, for Latex export
TeXForm[expr2 expr3]

which gives the tex expression. I copied this to my texlive box and run latex on it:
\documentclass[12pt,notitlepage]{article}%
\begin{document}
$\left(\left(r^2-3\right) I_0\left(\frac{r^2}{8}\right){}^2+15 I_1
\left(\frac{r^2}{8}\right){}^2-\frac{\left(r^4+16
   r^2-48\right) I_1\left(\frac{r^2}{8}\right) I_0\left(\frac{r^2}{8}\right)}
{r^2}\right) \frac{16 e^{-\frac{r^2}{4}}
   \cos  (2 \theta )}{3 \sqrt{3}}$
\end{document}

and here is the pdf file result


text:
Q: Able to alter code of libraries imported with Gradle (Android Studio)? Is it possible to alter the code of a library imported through Gradle in Android Studio? I am thinking it isn't possible since the libraries get added in at runtime?
Is there anything equivalent of extensions in Swift in Java? An extension in Swift is basically a way to add more functions/methods to an existing class. Without directly altering the original source code.
Thanks in advance!

A:
Is it possible to alter the code of a library imported through Gradle in Android Studio?

Not as you are defining it, per your Swift extension reference.

An extension in Swift is basically a way to add more functions/methods to an existing class. Without directly altering the original source code.

Java does not have this, sorry.


text:
Q: Install PHP on XP / IIS 5.1? I am trying to install PHP onto my development box (XP SP3 / IIS 5.1)  I've got PHP 5.2.6 stable downloaded (the MSI installer package) and I am getting an error "Cannot find httpd.conf".  After that the install seems to breeze by quickly (more quickly than I would have expected) and when I try to execute a simple PHP script from my localhost test directory that I created, I get a slew of missing DLL errors.  I have seen posts out there which indicate that its possible and has been done.  I dont see any bug reports for this MSI at PHP.NET support.  Any ideas?

A: Not sure if you already have this but I use WAMP from http://www.wampserver.com/en
It's easy and simple to set up, it has an icon in the system tray to show that its active and you can make it go online or available to the outside by clicking the icon and setting it. I used this when I was first learning PHP since it has everything in one, no need to setup any other service like IIS.

A: Probably the installer didn't configure your server to use PHP properly. Check out Microsoft's page on enabling PHP on IIS or alternatively switch to Apache if that's a viable option.

A: I'll see if I can remember it correctly:

*

*Unzip PHP zip file into c:\Program Files\php (or run the installer)

*Copy php5ts.dll into c:\windows\system32

*Copy php.ini.dist into c:\windows and rename it to php.ini

*Edit c:\windows\php.ini and look for extension dir - make it point to c:\Program Files\php\extensions (or wherever you put it)

*This is where my memory gets fuzzy: Edit your IIS application settings, add a script map for .php files, and set the executable to php5ts.dll

*Profit!?!??!?!


text:
Q: When I add an item to a listbox from a separate listbox, how do I find the string from the item added and search for that string within a text file? I am working on an online shopping cart application and am quite new to Visual Basic 2010. I have two listbox's one for the current items in stock and another for the cart. When a user clicks an item in stock it is added to the second list box, how do I find the string of this item added so that I can then search for it within a text file and finds its cost using an array of records?
Many thanks in advance


text:
Q: Which one to use — "support" or "sports"? I have read about many times like as given below:

Nokia N8 Mobile Support A 12-Megapixel Camera.

and

Nokia N8 Mobile Sports A 12-Megapixel Camera.

So my questions are:

*

*Is there any difference in the meaning of those two words here?

*If yes, then when should one use support and when sports?

A: The first one should read supports, not support. Also, support doesn't really make sense in the context you gave: when talking about devices, to support means to have the ability to use something with the device, but to sport means simply to have a feature.
For example, my netbook sports (has) USB connectors, therefore it supports USB devices.

A: The word that works here is "sports" and it means the same as "features" would in

Nokia n8 Mobile features a 12-megapixel camera.

It might also support such a camera, but that is not the intent of the copywriter or reviewer in such a case.


text:
Q: Ruby counterpart of Lua _ variable name When fiddling with redis gem I found #multi and #pipelined methods, which allow grouping operations, whose results are later returned as an array.
getresult, delresult = redis.multi do
  redis.get key
  redis.del key
end

I'd like to store getresult, and omit delresult. In Lua typical practice is to use _ as variable name for dropped values. Is there similar idiom in ruby?

A: It's exactly the same. You use _ for ignored variables.
getresult, _ = redis.multi do
  redis.get key
  redis.del key
end

A: You can use _ to ignore one param or * any number of them
 def test(_);end
 test(1,2) #=> wrong number of arguments (2 for 1)
 def test(*);end
 test(1,2,3,4) #=> works fine

Same works for assignment.


text:
Q: Can't close Excel App with vba in a scheduled task I have made a code in vba which works with different Workbooks and Worksheets. This code must be execute in a scheduled task. But for an unknow reason I have a problem with it :
When I execute it manually, it works fine and excel closes itself. But with my scheduled task,  Excel closes all Workbooks and Worksheets but it stays open.
Here you have my code :
    Set xlApp = GetObject(, "excel.application")
    Set wkbMe = xlApp.ActiveWorkbook
    test = False

    xlApp.DisplayAlerts = False
    xlApp.AskToUpdateLinks = False

    'Open files
    xlApp.Workbooks.Open Filename:=MarketDataPath & WbRiskedge, ReadOnly:=True
    xlApp.Workbooks.Open Filename:=MarketDataPath & WbMarketData, ReadOnly:=True
    Set WorksheetIncoming = xlApp.Workbooks(WbMarketData).Worksheets(wsIncoming)
    Set WorksheetMarketdata = xlApp.Workbooks(WbMarketData).Worksheets(WsMarketData)

    xlApp.Workbooks.Open Filename:=GTPath & WbGoodTime, ReadOnly:=True
    Cells.Copy
    WorksheetIncoming.Activate
    Range("A1").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
                                            :=False, Transpose:=False
    Workbooks(WbGoodTime).Close
    WorksheetMarketdata.Calculate
    Worksheets(wsMarketDataForWebsite).Calculate
    Worksheets(wsMarketDataForWebsite).Activate

    If test = False Then
        Application.Run "MarketEnv.xlsm!subCreateCSV"
    End If
    Workbooks(WbMarketData).Close , False
    Workbooks(WbRiskedge).Close , False
    xlApp.DisplayAlerts = True
    xlApp.AskToUpdateLinks = True
    ThisWorkbook.Save
    ThisWorkbook.Saved = True
    xlApp.Quit
    End Sub

I have tried different solutions found on the web but nothing work. Even if I only make :
 Set xlApp = GetObject(, "excel.application")
 xlApp.Quit
 End Sub

my excel stays open.
Anyone can help me plz ?

A: Okay, this seems long winded... but here goes.
The problem you are seeing is because there can be more than one instance of the Excel Application on a machine at a given time.
When you are manually running the file, you are likely using the default behavior, which is that when you open a workbook directly it opens in your already loaded Excel Application.
This means that when you use:
Set xlApp = GetObject(, "excel.application")

It is actually returning the current Excel.Application.
However, when you load it via the scheduled task, it generates a new Excel.Application in order to handle your task. When it calls the code I quoted it ends up referencing the Excel.Application you already had open (probably).
Since your scheduled workbook is running in a different instance of Excel.Application, when you run xlApp.Quit it only quits that other Excel and not the one actually running the code.
If you want to also close your automated Excel, you will need to add Application.Quit to the end of your sub. Yes, I do mean use both xlApp.Quit AND Application.Quit.
Now technically, you could have more than one Excel Applications open when you load the new one. If you want to close all instances of Excel, the simplest way I know would be to kill all of them via a vbscript call to a program like this which terminates all processes named excel.exe. Note I did not test this on Win 7:
Dim objWMIService, objProcess, colProcess
Dim strComputer, strProcessKill, strFilePath
strComputer = "."
strProcessKill = "'excel.exe'"

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")

Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & strProcessKill)
For Each objProcess In colProcess
        objProcess.Terminate
Next
WScript.Quit

Edit: I just wanted to add that you can replicate the behavior of the scheduled task manually by doing the following:

*

*Have Excel already open.

*Navigate through your start menu and open Excel.

*From the new instance of Excel, open your workbook.

OR

*

*Have Excel already open.

*Run the following Excel.exe [path of workbook in quotes]
Edit 2:
Due to your request, I've written this short vbscript file that will close all open Excel Applications without upsetting auto-recover. If you also want to avoid any, "Do you want to save ..." alerts uncomment the commented section.
On Error Resume Next
Dim xlApp
Set xlApp = GetObject(, "Excel.Application")
Do While Err.Number <> 429
    'For each wb in xlApp.Workbooks
    '    wb.saved = true
    'next
    xlApp.Quit
    Set xlApp = Nothing
    Set xlApp = GetObject(, "Excel.Application")
Loop
Wscript.quit

To run it, just include the following at the end of your Excel VBA.
Shell "wscript.exe [path of .vbs file]"

A: I can see you have opened more than one workbook instances with your excel application. You need to close all workbook instances to get the plain excel application and than quit it.
try this: (pseudo code)
dim xlApp as Excel.Application
dim wBook as Excel.Workbook
dim wSheet as Excel.Worksheet

Set xlApp = new Excel.Application
Set wBook = xlApp.Workbooks.Add(wb_Path)
Set wSheet = wBook.Sheets(1)

wSheet.Range("A1").Value = "Hello this is a test from vbcode"
wbook.close saveChanges:= true
xlApp.quit

Above code will open your workbook. write a custom message on your worksheet
saves the changes and closes. and the xlapp will also be terminated/destroyed.


text:
Q: Acceder a carpetas compartidas en Python En un entorno Workgroup de Windows, necesito acceder con Python a carpetas compartidas en otras estaciones para hacer diversas operaciones de archivo (verificar, copiar, borrar, etc.)
Debo conectarme mediante usuario y contraseña; y desconectarme luego de finalizado el proceso.
Algo similar al NET USE que ya trae Windows.
¿Alguien me puede indicar como hacerlo desde Python?


text:
Q: How to make a astable multivibrator? Whats wrong with this circuit? Do i nees to change th value of the resistor or capacitor?

A: What is wrong? - impossible to say but most likely you've wired it up wrongly
Here's a circuit to build that should work if you connect it correctly and here's a way of building the circuit and testing it along the way so you don't end up with multiple faults.
(1) build one of the transistor 'switches' (LED1, R1, Q1 and R2) first.
(2) connect power to the circuit (sub-system) - the led should turn on.
(If not make sure the components are the correct way around and that you have power).
(3) to test the bjt is working temporarily short the base connection to ground (0V) with a wire and the LED should turn off.
(4) Once you're happy that this little circuit (sub-system) is working repeat (1 -3) for the second 'switch' circuit. (LED2,R4,BJT2,R3)
(5) With both 'switches' working add the two cross coupled capacitors (C1,C2) making certain you get the capacitors the right way around.
Power up and the LEDs should flash.


text:
Q: What is the order that iOS remove the app(in background) in memory? I wonder that..
What is the order that iOS remove the app(in background) in memory?
Memory usage size DESC? enter background order?

A: Do you mean applicationWillTerminate:?

This method lets your app know that it is about to be terminated and purged from memory entirely. You should use this method to perform any final clean-up tasks for your app, such as freeing shared resources, saving user data, and invalidating timers. Your implementation of this method has approximately five seconds to perform any tasks and return. If the method does not return before time expires, the system may kill the process altogether.

See the events your app should respond to in UIApplicationDelegate Protocol Reference


text:
Q: how can i resolving this error in executing test.py? **usage: test.py [-h] --model_path MODEL_PATH [--testsize TESTSIZE]
           [--test_datasets TEST_DATASETS [TEST_DATASETS ...]]
           [--data_path DATA_PATH] [--save_path SAVE_PATH] [--multi_load]

test.py: error: the following arguments are required: --model_path
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2**