'Access request settings' missing from the subsite

Question: Site Settings> Site Permissions > 'Access request settings' is missing from Subsite. For top level site, I can see the access request settings.
Answer: Your subsite is inheriting permission from the parent, therefore this link is not applicable so it is removed from the UI.
If you want it to appear, you must click the Stop Inheriting Permissions button to break inheritance.
Answer: Because you are Inheriting the Permissions from the Root level thats why you are not seeing that option.
If you want to see then you have to Click on Stop Inheriting Permission" then You will get that.


Is Ubuntu 10.04's "Blank screen blinking with white stripes problem" resolved in ubuntu10.10?

Question: In Ubuntu 10.04 the os crashes frequently by displaying "Blank screen blinking with white stripes problem". This problem exists fpr Intel 8xx series chipset users. Now i want to know whether this issue is resolved in ubuntu 10.10 or not?
Comment: In case it matters: due to the many problems of 10.04, Ubuntu released a 10.04.1 version later on. Since 10.04[.1] is LTS (Long Time Support), you may want to give this new version a try.
Answer: According to the site below, the issue is largely resolved on Maverick but "sadly there is a kernel-bug, which prevents showing the mouse-cursor on 855GM-based systems". For these there is a quick fix dkms package that you can install.
http://glasen-hardt.de/?p=959
Answer: There are workarounds for this issue listed on the relevant Launchpad bug reports.
For i845 Launchpad bug report and upstream
For i855: Launchpad bug report and upstream

Is Ubuntu 10.04's “Blank screen blinking with white stripes problem” resolved in ubuntu10.10?


1995 4.3 Vortec w/balance shaft timing chain

Question: I replaced the timing chain because of what I thought was excessive play. The new aftermarket one seems to have as much play in it as the other one. Is this the correct chain? Or is this a normal deal?
Comment: Welcome to the site! We're glad you could make it. Which timing chain did you get? Can you show a picture of what it looks like on the engine and the slack (play) you are talking about? We truly are going to need more information from you to begin to answer your question.
Answer: Looking at the two different types of timing sets, one for the balance shaft design and one with the regular design. I've not dealt directly with the balance shaft, but I'm not seeing a huge difference between the two sets.
With that in mind, the 4.3L V6 is basically a small block chevy (SBC) 350 V8 with two cylinders lopped off. I believe regular timing set can be used in either application (V8 or V6). I'm not sure if you can use the balance shaft in either, but would doubt it. When I've done timing chains or cams on an SBC, there is a little slop in the chain, but not a whole bunch. I mean, when you tighten the chain on one side, you can move the chain a little on the other (I'd give it an approximate of 1/8" maybe a tad more ... I've never measured, so don't know exactly). This would be with a standard link type chain. If you went high tech with a double-roller, you'd have a bit more slop in it than that, but not by much. This makes me wonder if something else is going on which may be causing the slop, but I cannot think of what that may be.
Comment: In TSB 87-61-21 excessive wear/play in the timing system is measured at 8mm or 0.314" it doesn't specify a minimum. I couldn't find a spec on chain tension other than that. https://dl.dropboxusercontent.com/u/55044707/Untitled.png


Is there a good app that lets me to the app updates in one go?

Question: Right now in the market you have to manually update each app, is there an app that automates this?
Answer: I use AppBrain it automates the install procedure a bit.
Comment: But you still can't update all at once without 2.2, right? ;)
Comment: No, the AppBrain app works just fine with older versions. It merely goes through each app in turn. You do have to press buttons at each step, but it will at least go through each one without you having to go back to the market each time.
Answer: Users can update several apps at once using Android version 2.2.
An answer in the Android support forum says:

They have added this already but this
  is probably limited to market client
  app on Android 2.2 aka FroYo and
  higher firmware.

Also, I don't see anything in the market would bring this out for pre-2.2 phones, but it could be out there.
Answer: If you're after apps that automatically update themselves when an update is available, as of Android 2.2 there is an option to mark an app to automatically update. Then you'll never be bothered by an update alert for that app again (unless the security profile changes).
Comment: The only catch to this is that if you are rooted, you may experience difficulties with automatic or manual updating from time to time, especially with system applications. I suppose that does apply to any version though.
Answer: On 2.2 (all I have access to) use the Marketplace app,
open the menu, select My Apps.
All your installed apps will be shown, any with available updates will be shown at the top.
I don't see a way to then Actually update all that have available updates though.
And apparently on older versions this feature is not available as a part of the marketplace.
Comment: At the bottom of the screen will be a button that says "Update All".
Comment: I don't see it on 2.2.
Comment: If you've got the newly redesigned Market app (with the curved green area at the top) the Update All button is now at the top of the My Apps screen, if you've got pending updates to be installed.


Did Aegon have an army?

Question: When Aegon the conqueror crossed the narrow seas in Game of Thrones did he come with any sort of army or was it just his family and his dragons?
Comment: I don't think there was any information provided about that in the *tv series.*
Comment: I don't think the details have been mention yet in the TV show - but the wiki page mentions a small army http://awoiaf.westeros.org/index.php/War_of_Conquest
Comment: As @JudgeDredd mentioned, there is not much information about this in the TV shows, but you're welcome to leave this question here or migrate it to [scifi.stackexchange.com](http://scifi.stackexchange.com/) for further insights!
Answer: Using the books as a reference, Aegon Targaryen landed with a small small army composed of the Targaryen levies and those of their few vassals (chief among them the Baratheons and the Velaryons). But more importantly he had the three dragons Balerion, Vhaegar and Meraxes ridden by him and his two sisters/wives

Did Aegon have an army?


Are a deity's rank and class levels co-dependent?

Question: I'm trying my hand at making stats for a deity in D&D 3.5 (god of music, if it makes a difference) using the rules given in Deities and Demigods. So far everything makes sense except one thing: I can't tell whether or not his maximum number of class levels is supposed to be connected to his divine rank. Is there any sort of officially-stated correlation between the two, or should I just assume 40 or so levels like most core D&D deities seem to have?
Answer: There's no connection.
Deities and Demigods has a vague suggestion in the footnote on page 26:

Most deities are 20 HD outsiders with 30 to 50 character levels as well.

And that's it.
Just add as many class levels as you feel necessary to represent the "mortal" abilities of the deity.
Comment: This pretty much nails it. I found when creating my own deities that it was easiest to build their mortal versions first, then add Divine Ranks as if they were a "god-mode" (heheh) prestige class until I ended up with a deity I was happy with (usually after going back and tweaking things, but this got me to a firm base first). Of course, if you know beforehand how many Divine Ranks you want, it does give you a guide for creating their mortal version to the desired power level.
Comment: @Kromey That's actually pretty good-sounding advice; I know what sort of class levels I planned for him to have, though I suppose building divine ranks from the ground up would help me to just give him the right number of abilities to suit his portfolio better than just picking a rank and filling the slots with somewhat relevant salient abilities.

Question on building the mortal form though, do the Outsider HD grant feats, or do just his class levels?
Comment: @Cobalt If memory serves (and it's been a very long time...) adding monster HD *does* grant feats at the same rate as class levels (i.e. new feat every 4 HD). You also get your ability score point every however-many-HD, same as class levels. That said, I always liked the flavor of "ascended deities" myself, and thus built regular, run-of-the-mill (albeit very epic) characters first, then ascended them with Divine Ranks -- i.e. I didn't bother adding Outsider HD at all.
Comment: @Kromey What about base stats? For mine I just found an average for the total stat points of the D&D Core deities and allocated his stats based off that; what do you usually do about those?
Comment: @Cobalt Depends on how I'm feeling at the moment. Sometimes I'll roll stats just like I would if I were building a PC; other times I'll use an NPC stat array as a starting point; still other times I'll just start with the numbers I want to start with -- heck with the rules, I'm the gorram GM! That's what makes Divine Ranks and Deities and Demigods so awesome, you can build any character you want, however you want, and then ascend her to godhood, to fill any role you'd like. You can also of course just use an existing deity, and either "re-fluff" or tweak as needed.


Origin of "It's been a slice"

Question: What is the origin of the phrase "it's been a slice"?  I understand its meaning, but cannot find any listing of its origin, or possibly to what specifically "a slice" is referring.
Comment: If you understand its meaning, perhaps you would be so kind as to explain it to the rest of us.
Comment: I think it's short for "It's been a slice of heaven."
Comment: I was thinking a deformation of s'nice as in: "its*snice* to see you" snice = slice ? And from there the greeting: "it's been a slice."
Comment: Just speculating here, which may say more about my age than the phrase itself, but my recollection is that this phrase came in to popular use in the late '60's and early '70's. if so, I think it refers to a slice of pizza from resolving the Mary-Jane munchies with friends.
Comment: So a variant on 'a piece of cake'?
Comment: I hadn't made that connection; perhaps.
Comment: I'm just guessing here: "it's been a slice (of life)" where "slice of life" is translated from the French "tranche de la vie" and normally used to describe a realistic scene in a drama act which reminds us of everyday life. So by saying "It's been a slice" could be short for suggesting that what happened just now was part of everyday (dramatic) life. But just a guess...
Comment: That was my initial thought also. Seems the most plausible.
Answer: Meaning
The McGraw-Hill Dictionary of American Idioms and Phrasal Verbs defines it:

It's been a slice!
Sl. It's been good. Good-bye and thank you. It's been a slice! [/] It's been a slice. I hope to see you again some day.

Origin of It's been a slice!
1975
Jonathan Lighter, author of Random House Historical Dictionary of American Slang, first heard it in 1975:

I heard the ironical "It's been a slice" from a fellow graduate student in
1975. He told me he'd first heard it a year or two earlier, and that it was
short for "a slice of life."

1979
The earliest I found is in newspaper Edmonton Journal (17 October 1979) in the headline and article:

Thanks Mr. Speaker, It's Been A Real Slice!
...
Consumer Affairs Minister Julian Koziak said:
"I'm pleased to introduce this bill, as a fresh piece of legislation, being an example of deregulation. By passing this bill, we will be giving a stale legislation the bun," he said.
"Thank you, Mr. Speaker, It's been a slice."

1981
The earliest I found in Google Books is a possible 1981 snippet of Art-com magazine (Contemporary Arts Press, San Francisco Bay Area):

... the page you are reminded that they, along with the city, are reeling ahead projecting new ideas, images, and ways of survival on screens that have never been projected on before.
As my friend Miss Judy would say, " This has been a slice!"
186 pages book paper
black and white photos
paper bound U.S. $ 10
ISBN 0-937122-06-8

To check the date, the book is the 1981 Young Turks by Stephen Seemayer (Los Angeles: Astro Artz, ISBN: 0-937122-06-8). So it's no earlier than this, and if a recent book review, probably from 1981 also. Here's confirmation the magazine was published under this name between 1980 and 1984.

1984
The earliest Google Books full view is Princeton Alumni Weekly (1 June 1984, Volume 84) in Class Notes for 1984 by student, Glenn N. Huber:

I'd also like to thank my roommates, Scott T. Burgess, David K . Marion, and Bill G. Manias. for a most enjoyable year—it's been a slice. guys!

1984
It was used in the film Streets of Fire, released 1 June 1984, spoken by McCoy (played by Amy Madigan). Here's subtitles from Subzin:

00:37:36 Poker's a real interesting game when you've got all the best cards.
00:37:43 Next time, right in your nuts, pal.
00:38:03 Guys, it's been a slice.
00:38:08 - Who are you? - I'm a big fan.
00:38:10 Come on. Let's go.

I can't find a clip, so here's the trailer.

1985
Another verifiable use is in the acknowledgements section of John Howard Hutchinson's doctoral thesis Use of Camphor in Natural Product Synthesis (September 1985, University of British Columbia) (pdf):

Finally, I would like to thank my research supervisor, Dr. Thomas Money, for the unending help, support and enthusiasm which he has displayed over the past four years.
Thanks Tom - it's been a slice!

1985
Another is a snippet of Something in Common (1985) by Robert Robin:

Google snippets are often misdated. To verify, here's a contemporary review confirming Cathy is a mother with "two sons--Andy, 14, and Judd, 11". Here we can see it used by the teenager to his younger brother before leaving.
The family live in the village of Glencoe, Illinois and the father commutes to Chicago, some 25 miles away. The author is also from Chicago.

Origin of It's been a real slice!
The 1979 Edmonton Journal used both It's been a slice! and It's been a real slice!. Perhaps the "real slice" version came earlier.
1980?
Armed Forces Journal International, from I think 1980, has this (not shown in the snippet, just search results):

I've had it — life's too short to fight an uphill battle for Commanders and Staffs who won't listen (Remember CORONA ACE?) or don't believe, or maybe don't even care. So thanks for the memories, it's been a real slice of life . . . but ...

So did the phrase come from "a real slice of life"?

1984?
A snippet in the Virginia PTA Bulletin (I think from shortly after March 1984, see bottom right of snippet) shows it had a negative meaning:

Students who have had a terrible day often say, "It's been a real slice;" if they've been treated unfairly, they say they've been "munched on" or "dogged." When someone plays a trick on them, they've been "schroedered."

Summary
These don't help explain what the slice actually was, but it helps place it in time and space. My own guess is it's a playfully ambiguous suggestion the experience was a "slice of heaven"; or was it a "slice of hell"? Or perhaps, as one example shows, from "a real slice of life", a full experience.
Comment: @Mari-LouA: Thanks. I've not heard any of these phrases before, so it's all down to research! I saw "slice of heaven" and "slice of hell" in Google Books around the same time. But I've found an earlier 1979 from Canada that uses both "It's been a slice" and "It's been a real slice". Did it come from, as one example showed, "a real slice of life", a full experience?
Comment: I've not heard of the idiomatic expression "a slice of heaven" before and I didn't find any online definitions. But I did find this, a Dominican idiom which might be of interest to you: **Cielito**
-
*"(literally little piece of heaven) used to describe a small tip that is customarily given as a reward"*. Was this expression then loaned to speakers in the US? [**link**](http://steinhardt.nyu.edu/scmsAdmin/media/users/xr1/Dominican_Republic/Dominicanese.pdf)
Comment: That expression is familiar and makes greater sense to me, I admit. Funny how an expression so young, can be so difficult to trace back to.
Answer: I heard it used in the mid to late 1970s in southwestern-Ontario amongst high-school students. It was used to mean on the surface "it's been a blast", but open to ironical interpretation, meaning the get-together or whatever the event was had actually been pretty dull or lunch-bag let-down, etc. That, though, may just have been the speakers' personal spin they put on it (particularly with the variant "It's been a real slice..."
The earliest trace of it I have found to date is 1963:
"When you work with baseball programs and retarded children", he said, "It's really not a bad hobby. I play a little golf and a little tennis and sometimes I play with my seven children. An acquaintance walked over to Headlee to bid him goodby. [sic] "It's been a slice of heaven", remarked the new president in his parting greeting.
-- New Goals Proposed By Jaycee President. Phoenix, Arizona: The Arizona Republic. 29 June 1963. Page 83, Col. 4. (The person quoted is Dick Leadlee of Bountiful, Utah, speaking in Louisville, Kentucky upon election as President of US Junior Chamber of Commerce.)
Answer: 1997
Turns up in twice in Disney's animated film Hurcules. Used sarcastically when spoken by the character Meg, but used sincerely when written in the end credits.

Origin of "It's been a slice"


Can magnetic resonant inductive coupling work in magnetic resonance (specifically in NMR and MRI)?

Question: Radiofrequencies are usually used to flip polarized nuclei in a magnetic field in NMR and MRI. These RF correspond to the Larmor frequency of those nuclei.
Since the effect from the RF is usually due to the magnetic component of the electromagnetic wave, would an oscillating magnetic field be able to also flip nuclei? In resonant inductive coupling, magnetic fields can oscillate to create "magnetic waves" (if that's even a term) - https://en.wikipedia.org/wiki/Resonant_inductive_coupling.
If this oscillated at the Larmor frequency, would it be able to flip polarized nuclei?
Answer: Yes, my understanding is that MRI and NMR are performed with resonant coils. Both are near field. Typically the trick in NMR and MRI is getting the field strong enough to actually flip a nuclei, not getting it to resonate at the Larmour frequency. For MRI this is on the order of a few Tesla, which is huge.


Leviticus 20:27 - Why is this verse at the end of the chapter?

Question: This verse, "A man or a woman who has a ghost or a familiar spirit shall be put to death; they shall be pelted with stones—their bloodguilt shall be upon them," is the last verse of the chapter. However, it appears to be in the wrong place. This verse should be much earlier in the chapter, specifically after verse 6 ("And if any person turns to ghosts and familiar spirits..."). In addition, the chapter has logically ended with the previous verse ("You shall be holy to Me, for I the Lord am holy...").
Answer: Vs 6 says not to talk to the mystics (without addressing being a mystic); the rest of the chapter lists other crimes against God that separate persons from God, and whose crimes threaten the sanctity of the nation if the persons aren't removed from the nation. Vs 26 is the "refrain" command to be separated from the world and holy to God. So vs 27 then seems to underscore that the mystics themselves (already outside the realm of holiness because of the demonic-and-proud-of-it thing) should, if dying, be left to die.
I think it makes better sense in the Vulgate than the other texts, so Vulgate in English, Lev 20:27:

A man or woman in whom there is a pythonical or divining spirit, dying let them die. They shall stone them. Their blood be upon them.
Comment: I'm not sure how your explanation fits with vs 2, which talks about one who offers his child to the Molech fire-god.  Such a person should also be outside the realm of holiness.  +1 anyways.
Comment: While I don't know Latin, the Hebrew (and [every English translation](http://biblehub.com/leviticus/20-27.htm)) has the verse in the active sense - *"shall surely be put to death".*  In addition, the Latin phrase "morte moriantur\moriatur" [appears several times in that chapter](http://vulgate.org/ot/leviticus_20.htm), and is sometimes translated in the passive, "dying let him die," and sometimes in the active, "be put to death."  I don't know why there's a difference, as the same identical *active* phrase is used in the original Hebrew for all the verses.
Comment: Either way, as the phrase "dying let him die" is used several times in the chapter, your answer would have to explain why the mystics are singled out.
Answer:
Leviticus 20:27 - Why is this verse at the end of the chapter?

It would appear to be a means of emphasis after all that had preceded it.

Verses 1-6 address Israel as a nation in dealing with those who offer children to Molech.
Verses 7 and 8 deal with national sanctification.
Verses 9-21 deal with personal sins and how they are to be dealt with—
a. Verses 9-16 deal with those offenses that required the death penalty
b. Verses 17-21 touch on offenses that do not require the death penalty but to be "cut off" instead.
Verses 22-26 are another call to sanctification.
Verse 27 is a staunch reminder that Israel is to be sanctified from the other nations and that especially included those who consulted demons. Those who committed such practices were not to be merely "cut off," but were to be put to death.
Comment: Yes, but death was the punishment for several of the other prohibitions mentioned in this chapter.  Why is this one singled out?
Comment: And why does it "especially include those who consulted demons," as opposed to those who sacrifice their children?


Is it possible to get glass armor in Xbox 360 skyrim

Question: I've seen videos of people having it and it's really been irritating me because I can't find any.
Answer: Yes.
Once you reach level 36, Glass Armor begins appearing in dungeons, is sold by blacksmiths and merchants, and is worn by Thalmor patrols and soldiers . It can also be crafted if you have 70 Smithing and the Glass Smithing Perk.
Source: http://elderscrolls.wikia.com/wiki/Glass_Armor_(Skyrim)
Comment: @SkyrimFreak No problem. If my answer helped you, consider accepting it by clicking the tick below the vote buttons. We'll both get rep if you do.
Comment: @Studoku *"We'll both get rep if you do."* Sneaky you... +1
Comment: @Studoku this is my other Arquade account I'm sorry I haven't checked the check mark yet, I will most certainly do that when I get to my other device in a few days


what is a "leitmotif" and by whom has it been introduced into music language?

Question: after debating about Paraphrase in music and whether "paraphrasing" could mind something different I came to the question, that someone has been used the first time the German term of "leitmotif" which is used in French as well as in  English language. Some one must have brought it up and someone must have adapted it.
Comment: Related: There's a Youtube music educator that spends a lot of time discussing leitmotifs (in fact, it's kind of a running joke now). https://www.youtube.com/channel/UCi7l9chXMljpUft67vw78qw
Answer: Leitmotiv is a term, borrowed from the original German, that is often literally translated as "leading motive." More colloquially, it's a motive that serves to represent some aspect of a musical drama: it can be a location, an individual, an emotion, an item, etc.
It's most commonly associated with Wagner, and indeed it was popularized by Hans von Wolzogen when he made a guide to the Leitmotive of Wagner's Ring cycle. (Wagner, for what it's worth, hated the term and didn't use it.)
But von Wolzogen was not the first to use the term; the first printed use of the term was by Friedrich Wilhelm Jähns in a thematic guide to work by Carl Maria von Weber.
Discussions of Leitmotive these days are by no means limited to Wagner; they go back to von Weber (Der Freischütz especially) and earlier, and are also discussed in works by Berlioz, Richard Strauss, and others. It's become an especially important aspect of film music, especially in multi-film epics like The Lord of the Rings (which coincidentally shares source material with Wagner's Ring), Star Wars, and Harry Potter.
Comment: @guntbert Very true. That's one of the big differences between a normal *Motiv* and a *Leitmotiv*.
Comment: Regarding the end of your first paragraph: In my experience (German speaker) "Motiv" meant a sequence of notes, not "location, emotion,..."


Allele-specific bisulfite sequencing

Question: When evaluating methylation status at various CpG sites after sequencing, how much consideration should one give to random single base pair insertions and deletions. Suppose there is a CA dinucleotide; can we assume that the CA is native to the sequence or results from a G deletion especially when the latter is suspect once comparing to other sequences. Is there really a set standard sequence to compare it?
Comment: Welcome to BiologySE! Thanks for your question...can you give a little more detail about your question, specifically the rationale behind it so other individuals can follow along and better understand what you're asking? You may want to check out the help center as well, for some great tips on how to ask a great question... http://biology.stackexchange.com/help
Comment: Are you talking about when a single read in your deep-sequencing experiment has differences in base composition compared to other reads mapping to the same locus?  Are you suspecting a duplication event where the original copy is CpGpA and the copy you are referring to is CpA?
Answer: I agree with Vance, we need a little more detail to better answer your question. From what I can tell, you are asking whether a single nucleotide polymorphism (SNP) that results in the addition of a cytosine base to your sequence is of concern when examining the methylation signature of that sequence.
I would first determine whether the polymorphism is common in the population using NCBI. The more common the polymorphism, the less likely it is to have a serious effect. However, that is not to say that it doesn't have any effect.
I would then examine how much the methylation of that one site varies compared to samples without the additional cytosine base.
Finally I would determine the importance of the location of the SNP. Is it located in a CpG island? Or is it located on the shores, shelves or 'open sea'? (see work by Sandoval et al.)
Without knowing all the above it is hard to make a call on how important/unimportant the SNP is in your methylation analysis.

Allele-specific bisulfite sequencing


how to use two rfid rc522 nfc tag reader with a raspberry pi?

Question: I am currently using a rfid rc522 nfc tag reader with raspberry pi using the MFRC522-python code. In my project I need to collect data from two rfid rc522 cards at the same time, rc522 are located at two different places and I want to distinguish between them, I mean how can I tell the pi which card has detected the tag.
Answer: Your rc522 reader has "CS" pin which can be controlled to activate each rc522 reader.
You can try to toggle them one by one to be able to read the individual one.
The MFRC522-python module does not seem to allow to control/specify it, so you may need to modify the module or control GPIO pin yourself:
that's line 113 in https://github.com/mxgxw/MFRC522-python/blob/master/MFRC522.py.
Comment: Thanks for your reply, But I am not getting the Tag ID correct. If both RFID readers are connected the status is 2 and UID is also not correct, as soon as I remove one reader I get the correct UID from the other card
Comment: Please follow my suggestions above. The CS signal controls which reader is currently active. When using one, you have to disable another one.
Answer: Here's a new solution using a resistor and a FET to parallel multiple RC522 RFID readers. I tried UART interface without success, and I2C is too short range. Using SPI code from https://www.raspberrypi-spy.co.uk/2018/02/rc522-rfid-tag-read-raspberry-pi/.
IRQ is a RC522 output that stays low while an RFID is in the antenna's near field. I used this signal to short out MISO and MOSI. So as long as RFIDs are not simultaneously present at multiple detectors, one should be able to parallel multiple RC522's and they'll stay off the bus until one detects an RFID. Verified to work for 2 RC522's.
In summary, bus all the signals except IRQ. On each RC522 connect IRQ through a pull-up resistor to 3.3V (e.g., 10kohm) and to the gate of a FET, e.g., VN10K, who's source and drain connect to MOSI and MISO. IRQ is inverted, so it goes low when an RFID is detected, making the FET essentially vanish (open) and that device exerts MOSI and MISO. Otherwise, with IRQ high, the two are shorted and signals pass to other devices on the bus.
Comment: `connect IRQ through a pull-up resistor to 3.3V (e.g., 10kohm) and to the gate of a FET, e.g., VN10K, who's source and drain connect to MOSI and MISO` - please draw a schematic. Connecting something to MOSI *and* MISO means you have to short MOSI and MISO together, which is probably not what you meant.
Answer: I have a solution using Raspberry Pi at this link: https://github.com/erivandoramos/TwoRC522RPi
Comment: Welcome to Raspberry Pi! We're [trying a new policy with regard to informationless link-only answers here](http://meta.raspberrypi.stackexchange.com/q/842/5538). If this post is not edited to contain information that can stand as an answer, however minimal, in 48 hours it will be converted to Community Wiki to simplify having it corrected by the community.
Comment: Please take the [tour](http://raspberrypi.stackexchange.com/tour) and visit the [helpcenter](http://raspberrypi.stackexchange.com/help) to see how things work here.


counter table in mysql

Question: i was going through the book: High performance MySql 2nd edition. In chapter 4 it says:

An application that keeps counts in a table can run into concurrency
  problems when updating the counters. Such tables are very common in
  web applications.
To keep things as simple as possible, suppose you have a counter table
  with a single row that just counts hits on your website:
mysql> CREATE TABLE hit_counter ( cnt int unsigned not null ) ENGINE=InnoDB;

Each hit on the website updates the counter:
mysql> UPDATE hit_counter SET cnt = cnt + 1;

The problem is that this single row is effectively a global "mutex"
  for any transaction that updates the counter. It will serialize those
  transactions. You can get higher concurrency by keeping more than one
  row and updating a random row.
Below is the change:
mysql> CREATE TABLE (slot tinyint unsigned not null primary key, cnt int unsigned not null ) ENGINE=InnoDB;

Prepopulate the table by adding 100 rows to it. Now the query can just
  choose a random slot and update it:
mysql> UPDATE hit_counter SET cnt = cnt + 1 WHERE slot = RAND() *
  100;
To retrieve statistics, just use aggregate queries:
mysql> SELECT SUM(cnt) FROM hit_counter;

Here comes my doubt:
As there are two different queries one which increment the cnt and other which calculate the sum of cnt than how come it will give correct result to two different threads executing simultaneously? For example t1 fires the first query to increase the cnt  , before it fetches the sum t2 also updates the cnt than the 2nd query for t1  will fetch wrong result. Please clarify.
if you dont have the book please refer this.
Answer: It's the transaction isolation that guarantees consistent results.
In your example, if you are concerned about possible changes from other threads between the first and the second query, you should enclose your queries in a single transaction: this is implicit if you have autocommit disabled, otherwise can be explicitly declared:
START TRANSACTION;
UPDATE hit_counter SET cnt = cnt + 1 WHERE slot = RAND() * 100;
SELECT SUM(cnt) FROM hit_counter;
COMMIT;

But it must also be said that, in many real use cases (like a counter for visits on a web page), having a result which is consistent with the previous increment is not so important.
For a deep explanation about possible transaction isolation levels please refer to: http://dev.mysql.com/doc/refman/5.7/en/set-transaction.html

counter table in mysql


Is a 3D modeler considered a graphic artist?

Question: Is a 3D modeler considered a graphic artist? When I think graphic artist, I think 2D, photoshop, advertisement, comics, etc, so I am not sure if modelling falls in this category too.
Answer: This is really opinion-based......
To me, it all comes down to the final product.
If a "Graphic Artist" is designing a tri-fold brochure and during that design process, they create a 3D model of a product, an Illustration of the corporate headquarters, and a map of the area -- that does not necessary make the "Graphic Artist" a 3D Modeler, an Illustrator, or a cartographer.
Like many careers fields, "Graphic Design" can encompass many varied areas of work. But in general a "Graphic Artist" specializes in the production and reproduction of two-dimensional products. There may be areas of work that are used to facilitate the creation of those two dimensional pieces, but unless someone specifically specialized in one of those areas I don't know that a particular label would apply.
In short, I think there's a difference between a "Graphic Designer" and a "3D Modeler" --

I would expect a "3D Modeler" to be much more experienced and proficient in 3D Modeling and perhaps not be as well versed with general design principles. Their focus would be in the model, as it should be.
I'd expect a "Graphic Designer" to perhaps have some 3D modeling experience and even perhaps be fairly proficient with some things, but I'd anticipate a cap the their level of proficiency. The Designer would be much more focused on a "big picture" where the final product is concerned and any modeling would be minimal or in support of the final design. Not the end result itself.

Of course, the lines are very blurry. Its absolutely possible to be a Graphic Designer with some killer 3D Modeling kung fu. Just as it's possible to be a 3D modeler with some fantastic design skills. The reality is.. the label itself.. is far more about how that individual wants to be positioned or percieved in the market.
Answer: Depends on the kind of things the 3D modeller does with his models. All following professions use 3D modeling, some of them don't do much else:

Architects
Dental technicians
Engineers
Industrial Designers
Medical doctors
Physicist
Sculptors
...

While some of these may hold a job description 3D modeler. Im assuming that you mean a person working either in the games or film industry. These people don't usually make final pictures, although the certainly can, but rather produce assets for the 3D production.
Due to this and the fact that any person no matter what the job description can use 3D as their tool, means some may be. But also quite many are not. But if you draw a Venn diagram almost certainly the set of people who are graphic artists and included in the 3D modeler set. Most are not however.
Answer: My impression is that "Graphic Artist" is usually taken to mean a 2D artist, whether working digital or physical.   "Digital Artist" covers 2D and 3D.
A Modeler is of course 3D and digital, and had better be a good graphic artist with good eye for design.  So it's not wrong to say a modeler is a graphic artist, but it'd be like calling a physicist an Electrical Engineer. The physicist had better know the circuit theory and parts, but doesn't practice other aspects of engineering such as manufacturability or QC full time.  Likewise the Modeler doesn't need to be concerned with packaging, or adapting logos for different situations.
Comment: Except that a 3d modeler might need to. Say your making a story about characters living in a convenience store. Then you would need somebody to model all the packaging in a store in which case the modeler would need to know about packaging design. Note however that not all modellers do texturing, that may or may not be done by the modeller, but in case they do then they need to know that too.
Comment: "Graphic Artist" can work with all things visual. Paper, pen, digital displays. Some specific graphic artists are skilled draftsman or modelers. When they perform these functions they are doing graphic art.


How to calculate $p_c$ (binomial probability)

Question:
In the given image I don't understand how to calculate $p_c$, can anyone please explain?
Comment: Do you mean the whole derivation or just how to calculate $p_c$ from the equation in the last line?
Comment: just the Pc in the last line
Comment: I am stuck because I got two Pc with different power here
Answer: You can use the binomial approximation:
$$
(1 + x)^\alpha \approx 1 + \alpha x,
$$
which should be a very good approximation. The conditions for this being accurate are that $|\alpha x| \ll 1$.
When you substitute this expression into your total probability, you now have a polynomial you can solve for the roots of.
Answer: Just as in your previous question, there is no analytic solution to that problem. You're required to find some quick approximation that gives you a useful result. Rewrite the last equation as
$$p_c=\sqrt[9]{\frac{2.79\cdot 10^{-8}}{\binom{204}{9}}}\frac{1}{(1-p_c)^{195/9}}\tag{1}$$
If we boldly assume that $p_c\ll 1$ holds, we can use the following approximation:
$$\frac{1}{(1-p_c)^{195/9}}\approx 1\tag{2}$$
which, when combined with $(1)$, results in
$$p_c\approx \sqrt[9]{\frac{2.79\cdot 10^{-8}}{\binom{204}{9}}}\approx 0.003002\tag{3}$$
The exact numerical solution is
$$p_c=0.00321898475092782$$
which shows that the approximation $(3)$ is reasonably good.


Number of transitive acting groups on four letters?

Question: Constructing a group (a permutation group) which acts on a set of 4 letters transitively is easy. for example $G_{1}=\{id, (1 2)(3 4), (1 3)(2 4), (1 4)(2 3)\}$ < $S_{4}$. Can it be verified how many groups we have like $G_{1}$ ?
Answer: Although this is not an easy problem, finding all subgroups of $S_n$ first is not necessary, and is not the best way to proceed. The classification of all subgroups of $S_n$ has been completed for $n \le 18$, whereas the transitive subgroups are known for $n \le 32$. For $n=32$ there are 2801324 conjugacy classes of transitive subgroups, and their calculation is described in the paper: J. Cannon and D. Holt, The transitive groups of degree 32, Experimental Mathematics 17 (2008), 307-314.
The primitive subgroups of $S_n$ have been classified up to $n=4095$, so for a given $n$ the problem reduces to finding the imprimitive groups preserving a block system of $r$ blocks of size $b$, where $rb=n$. The possible induced actions on the block systems are just the transitive groups of degree $r$, which you can assume are already known. The idea is to first find all possible kernels of the actions on the block systems, which (in nearly all cases) are subdirect products of transitive groups of degree $b$, and then classify the groups with a given kernel and action group. This involves a large amount of computation, which becomes rapidly less feasible with increasing degree. Testing two subgroups for conjugacy in $S_n$ can be a particularly slow in difficult cases, so the principal aim is try to organise the computations so that you do as little conjugacy testing as possible.
Comment: The main intent of above question was that I wanted to find all groups, acting on four letters transitively, such that for example in that, {1,2} and {3,4} would be conjugates blocks. So, I wrote some transitive groups and then I thought how many groups should I write to find all ones here. Thanks Prof. Holt.
Answer: It's pretty straightforward to count them using a table of subgroups of $S_4$. We have three cyclic groups of order $4$, one normal Klein four-subgroup, three copies of $D_8$, the alternating group $A_4$, and $S_4$ itself, for a total of nine.
Comment: @Babak: There doesn't seem to be an easy way of doing this. See [this answer](http://math.stackexchange.com/a/79139) and [this paper](http://mathfit.ac.uk/jcm/1/lms1996-001/sub/lms1996-001.pdf) (Table 2 on p. 7) and [this more recent paper](http://www.math.colostate.edu/~hulpke/paper/ctg.pdf) for some numbers. (Note that they all count the number of transitive subgroups up to conjugacy.) The fact that in the first paper some numbers beginning at $S_{24}$ are marked as "preliminary, and not yet confirmed" seems to indicate that no efficient way to obtain this count was known.
Comment: Thanks for the answer. But are not there any other ways counting these transitively acting groups on 4 letters, without writting and checking them for transivity, dear joriki? For example to do the same for $S_{10}$, it would be a bit difficult even using GAP.


Is there a C# implementation available for Ethereum?

Question: Is there a C# / .NET / Mono implementation available for Ethereum to interact with nodes and/or the blockchain?
Comment: I am just wondering . there is no example to connect with Ethereum pool with c#. I have question and no answering yeat. if I want to connect to Ethereum pool with c# is it RPC connection or what do I need to parsing hash or the pool will assign it to you . I want to understand what is the server behavior
Answer: You can try Nethereum, it's available on GitHub. Try it on the Nethereum Playground.
It provides all the generic Web3 functionality to interact with Ethereum like:

JSON RPC methods
Contract deployment
Function call / transaction sending (encoding / decoding parameters)
Event filtering creation (encoding of parameters / decoding of topics)

Plus much more.
Comment: Its important to note that Nethereum is a web3 implementation in C#, which is fantastic.  Where as the other two mentioned below were attempts to build the entire Ethereum protocol / blockchain in C# which is a much more daunting task.
Comment: I don't believe there is, as of now, a compelling need to create a full ethereum implementation in .net. That was my original intention, and I might do it some time after Casper / Sharding is implemented. Well maybe a front of end of a Dapp using UWP or Xamarin which does not rely on a client like geth or eth.
Comment: But on those scenarios you will want a light client and don't have to download the whole chain.
Comment: Have a look at the Nethermind project, it is a full client with EVM, currently (May 2018) test-syncing with Ropsten and actively developed. You can find the source code at https://github.com/tkstanczak/nethermind
Answer: I found these two on GitHub:
cs-ethereum and Ethereum.NET.
I haven't tried them out and they look like they've been inactive for quite a while.
Answer: Microsoft came up with plugin for smart contract development using Solidity in Visual Studio.
https://visualstudiogallery.msdn.microsoft.com/96221853-33c4-4531-bdd5-d2ea5acc4799/
You can develop Ethereum smart contracts using Solidity and deploy to Testing network of Ethereum Blockchain, where you will get around 1000 dumy ETH to test your application.
Answer: Nethermind is a full .NET Core implementation
You can download Nethermind from here https://github.com/NethermindEth/nethermind/releases
It works with mainnet, rinkeby, goerli, ropsten and private chains.
Give us a shout on gitter if need any guidance
https://gitter.im/nethermindeth/nethermind
Answer: Stratis
Native #C
Essentially a copy of ethereum but learning from their mistakes in terms of coding language picked and scalability.
https://stratisplatform.com/
Comment: The website does not appear to mention Ethereum and its relevance is uncertain.


Help identify outdoor frost free faucet make & model

Question: My other outdoor frost-free faucet is a Mansfield 4000 series, but I have a difficult time trying to identify this other one.
Comment: Do you have reason to believe it's a different make/model? Does a close up inspection of the part reveal any mfgr/model info? _Why_ do you need to know, simple curiosity? Repair parts?
Comment: Either there are no markings or they have eroded. The overall construction looks visibly different from the other one, which I just posted a question about (https://diy.stackexchange.com/q/195440/104944). This document (https://www.prier.com/wp-content/uploads/2020/01/mansfield-stem.pdf) is how I determined that one's make & model. It's for future repair needs and for now mostly curiosity. I'm actually trying to fix the Mansfield. I dissembled this one trying to get some ideas but realized the difference.
Answer: Thanks to a YouTube video, this is likely some model of B&K Mueller QuarterMaster hydrants.


Using MS SQL Server Spatial database in PostgreSQL using foreign data wrapper?

Question: How to use MS SQL Server 2012 spatial database in postgresql using foreign data wrapper?
Answer: I tried using OGR_FDW but I didn't manage to make It to read the spatial data correctly. Then I tried using TDS_FDW which is a non-spatial Foreign Data Wrapper.
I'm using MS SQL Server 2008 R2 on a Windows Server and PostgreSQL 9.5 + PostGIS on a Ubuntu Server.
Install FreeTDS and UnixODBC
sudo apt install unixodbc unixodbc-dev freetds-dev sqsh freetds-bin tdsodbc libsybdb5 freetds-dev freetds-common -y

Set the env
Updated ~/.profile
~$ export ODBCINI=/etc/odbc.ini
~$ export ODBCSYSINI=/etc
~$ export FREETDSCONF=/etc/freetds/freetds.conf

Configure TDS files
sudo vim /etc/freetds/freetds.conf
  [sqlserver_win]
  host = 192.168.0.10
  port = 1433
  tds version = 7.1

sudo vim /etc/odbcinst.ini
  [FreeTDS]
  Description = TDS driver
  Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so

sudo vim /etc/odbc.ini
  [sqlserver_win]
  Driver = FreeTDS
  Server = mssql_host
  Database = dbname
  Port = 1433
  TDS_Version = 7.1

Install TDS_FDW
sudo apt install git
git clone https://github.com/tds-fdw/tds_fdw.git
cd tds_fdw
PATH=$PGHOME:$PATH make USE_PGXS=1
sudo PATH=$PGHOME/bin:$PATH make USE_PGXS=1 install

Enable the extension
psql -U postgres -h localhost
     CREATE EXTENSION tds_fdw;

Create the Foreign Server
CREATE SERVER mssql_db FOREIGN DATA WRAPPER tds_fdw OPTIONS (servername 'mssql_host', port '1433', database 'dbname');

CREATE USER MAPPING FOR postgres server mssql_db OPTIONS (username 'username', password 'userpassword');

here is the trick
Create the foreign table, get the geometry as string, copy It to your local database, add a primary key and spatial index
CREATE  FOREIGN TABLE ms_table_name(
col1 varchar (64), col2 date, geometry geometry
) SERVER mssql_db_server OPTIONS (query 'SELECT col1, col2, cast(geometry.STAsText() as varchar(max)) "geometry" FROM ms_table_name',
row_estimate_method 'showplan_all');

 CREATE TABLE pg_table_name AS (select * from ms_table_name);

 ALTER TABLE pg_table_name ADD oid serial PRIMARY KEY;

 CREATE INDEX pg_table_name_gix ON pg_table_name USING GIST (GEOMETRY);

You have to copy It locally otherwise you won't be able to use your spatial table in any GIS client (ie. QGIS). You may create a job to regularly update the local table.
The only problem I have found with that approach is that I can't read geometries with long chains of coordinates, there is string limitation somewhere I can't find
Answer: You can use Spatial Manager Desktop to export from SQL Server 2012 Spatial to PostGIS.
There is currently a free beta version ,you can download it here: http://www.spatialmanager.com/downloads/
If you need help on this feel free to tell me.
Disclaimer: I work for Opencartis (Spatial Manager developers)
Comment: You could also use ogr2ogr or FME from http://www.safe.com to do data import/export operations. There isn't even a non-spatial FDW wrapper for SQL server, let alone a spatial one. http://wiki.postgresql.org/wiki/Foreign_data_wrappers
Comment: Does this do a full data copy of the MSSQL DB to PostGIS, or does it work via foreign data wrappers?
Comment: Dear @Borja Arrue Is there any tutorial to connect postgres and mssql using spatial manager desktop?


Why does Gerrit not include the change-id into merge commits?

Question: so the git hook only puts change Id into commits. Although merge commits can be pushed to review branch even Gerrit is configured to require Change-Id in the commit messages. And when a merge commit has been pushed all the subsequent commit will depends on the merge commit - since there is no change Id. So what is the purpose not to include change Id into merge commit?
Answer: The underlying problem in Git is that commit-msg hooks are not called for merge commits without conflicts.
However, the prepare-commit-msg is called for (any) merge commits. So what I currently do to get Gerrit's Change-Id also added to merge commits without conflicts is to use a prepare-commit-msg hook like this:
#!/bin/sh

if [ "$2" = "merge" -a -f .git/MERGE_MSG ]; then
    # Explicitly call Gerrit's commit-msg hook for merge commits.
    .git/hooks/commit-msg "$1"
fi

The check for .git/MERGE_MSG ensures that commit-msg will not be called if amending a merge commit, because in that case that hook is called directly by Git anyway. Note that for merge commits with conflicts this approach will result in commit-msg being called twice, once as part of this prepare-commit-msg hook and once by Git when it calls commit-msg after committing the conflicts resolution, but that does not cause any problems as Gerrit's commit-msg hook checks whether the Change-Id has already been added and does not add it again if that's the case.
If you're now asking your self why Gerrit does not simply use only a prepare-commit-msg hook to add the Change-Id, I guess that just to prevent the user from accidentally deleting the Change-Id from the commit message. Adding it as part of a commit-msg hook after the editor has closed is just safer.
Comment: Out of curiosity, what comments would be there in the commit message in case of a non-conflicting merge?
Comment: That's good, though it does have one minor disadvantage: the `commit-msg` hook strips the comments (`#` lines) from the original commit message, before it opens in your editor.
Comment: The usual "Please enter a commit message..." and "Lines starting with..." comments. As I said, a minor disadvantage - but still, slightly different to the initial file you'd normally see in your editor.


What benefit does upgrading walls have?

Question: The cost for a level one to level two wall upgrade seems huge - 1000 gold per segment. The upgrade screen displays an increase in hitpoints but is this really noticeable? Can a wall breaker still one hit destroy a level two wall or is that the advantage?
Answer: The basic concepts of walls are to protect your Town Hall and/or resources.  At your current Town Hall level, upgrading walls may seem expensive, but the higher your Town Hall level, the higher level collectors, barracks, laboratory, and camps you can build.  These allow you to attack stronger opponents to steal their resources, by winning battles and increasing your trophies (which makes you face stronger opponents).
Stronger walls and a well planned defensive strategy will prove effective (to some degree, see the bottom of this answer) in slowing down your attackers.   While your attacker's troops are trying to get through your walls, your defenses (clan castle, archer tower(s), mortar(s), cannon(s), etc) will be trying to kill them.  I would recommend putting your defenses behind your walls.
To answer your question though: Yes, but it depends on the wall breaker's level.
See below:

You can get a lot of information from (and source of the screenshot above) from Clan of Clan's Wiki Page on walls
Also, I mentioned "to some degree" because at higher levels there are troops that can jump over walls(hog riders), fly over walls, and there is a spell that allows all troops to jump over walls!
Comment: hi, you might want to answer this: http://gaming.stackexchange.com/questions/198567/what-are-the-most-effective-attack-compositions-to-focus-on-general
Answer: Yes it is. Another replier has shown you the chart for the number of wall breakers needed to break a wall. Each wall breaker takes up 2 spaces. Assuming a level 1 wall breaker is trying to break into a zap wall, it'll take up 30 spaces of an attacker's army camp (although I hardly doubt a person with level 1 wall breakers will want to break into an attacker's zap walls).
Not only is it important in terms of wall breakers and army camp spaces, there are also a few things to note about better walls:
- it intimidates your attackers so you get attacked less (this can be counterproductive though if you only get attacked by really good players who can 3 star you)
- better clans (which I assume you'll want to enter into one day because no one wants to stay in a clan that donates level 2 giants) usually have wall requirements. eg. min skull walls.
I can understand your frustration in building walls though. I absolutely hate them now that I'm doing my skulls, but they give a certain satisfaction when you're done, right? I have seen someone in global though with almost full purple walls but level 2 defences (no joking), so don't neglect your defences in favour of walls. But try to do the walls earlier, so you won't be scrambling with idle builders towards the end of your TH level to build them up especially if you want to max everything before the next level. Do them at your TH level too because the higher your TH level, the bigger the penalty and the more difficult it is to gain resources to do your walls or anything else for that matter.
Answer: If you're a TH 7 I wouldn't worry too much about it, get your core to purple and you should be fine. But TH 8+ and definitely go to purple. Just in general, walls are great. It may look like they don't serve much purpose with hogs, loons, and jump spells being as popular as they are, but walls can seriously slow down attackers and turn a 3 star into a 2 star attack. Not to mentions, walls are extremely intimidating, and that's never a bad thing.
Answer: They make it easier to win a defence because they make people slowed down and the wall breakers won't always work at a higherlevel. These are the best things but you don't need to upgrade all of them Max level at a certain town hall but its recommended most are because of the reasons above. Wall amounts
Answer: Upgrading walls could mean winning or losing the battle because of how long they can keep intruders out. Level 3 and above are the only ones who can 1 shot a level 3 wall and it takes 2 level 1 wallbreakers to bust through a level 1 wall.

What benefit does upgrading walls have?


William James, Biography

Question: I am writing a report on William James, and I need the age that James started reading philosophy for the first time. Can anyone help?
Comment: coincidentally, a video of a talk by Alan Wallace, admiring and praising William James, has been recently posted to reddit's philosophy channel: https://www.reddit.com/r/philosophy/comments/3jp9w6/toward_the_first_revolution_in_the_mind_sciences/
Answer: Given that James wrote that:

I originally studied medicine in order to be a physiologist; but I drifted into physchology and philosophy through a kind of fatality; I never had any kind of philosophic instruction, the first lecture on psychology I heard was the first I gave. [1]

This is probably something of an exaggeration given that his father was a noted Swedenbergonian theologian, and was well connected to the intellectual and literary elites; it's likely his philosophical orientation was fixed in an unconscious kind of way through his families milieu and circle.
[1] The thought and character of William James, Vol 1 - Ralph Perry

William James, Biography


Neural Network for dates in text

Question: I wanna train a neural network to identify dates on a text, eg. "Hi, this month is december 2021", days will only be numbers (not including monday, tuesday, etc.) and months may vary, such as december, DECEMBER, DEC, dec; and years (2021, 21) , also the input can be with connectors like " december of 2021 " ,"21/12/2021","21-dec-21","21_12_21"  . How would the dataset have to be so it identifies these paremeters and what neural network type is the best?
Comment: possible duplicate https://stackoverflow.com/questions/46428870/how-to-handle-date-variable-in-machine-learning-data-pre-processing
Answer: You don't need a neural network for such a problem. Yes, date formats can varry, but they are standardized patterns. The kind of patterns can be easily matched using regular expressions, here you can find one example. It's easier, faster, and simpler to debug. With a neural network, you have no control over what it considers as a date, it will be something similar to what it saw in the training data, but with no guarantees. A neural network is an overkill in here.
If the dates contain irregularities, you can additionally use fuzzy matching.
If you insist on using a neural network (e.g. for educational purposes), to create valid date strings, you can just write a small script with several for loops iteration over years, months, days, and formats to create all the possible patterns.
from datetime import datetime

dates = []
# just an example, there are many more formats you may care about
# you may also want to use camel case, lowercase and uppercase patterns
formats = [r'%Y-%m-%d', r'%y-%m-%d', r'%Y/%m/%d', r'%d-%m-%Y', r'%d %b %Y', r'%d %B %Y']

for year in range(1900, 2022):
    for month in range(1, 13):
        for day in range(1, 31):
            for fmt in formats:
                try:
                    date = datetime(year, month, day).strftime(fmt)
                    dates.append(date)
                except ValueError:
                    # nonexistent date
                    pass

Depending on what exactly you want your model to do (classify, extract, translate to common format) you could either mix them with false examples of letter and number patterns (phone numbers, P.O. box numbers, etc) and words that are not dates, inject them into text, or create translation pairs.
Notice that for either searching valid examples or labeling them, you need first to do the homework and create the rules using regular expressions. If you want to generate the dates, you need to come up with a generator script that knows the rules. So in the end, first you need a working solution not based on a neural network. It would also serve as a baseline (if you label or generate the patterns yourself, the baseline will have perfect accuracy). The rule-based solution should be able to match nearly all the possible patterns, except for some strange typos. If you would like a fool-proof algorithm, you can have a two-step procedure:

Use the rule-based algorithm (regexes) to match the simple cases.
Extract the ambiguous maybe-dates using some very broad rules like \d{1,4}[^\d]{4,20}\d{1,4} and pass them to a neural network trained on a dataset with dates in strange formats and typos (you need to find them and label by hand first).

This would be fast since most of the work would be done by regexes rather than a neural network and have a guaranteed good base performance since in the worst case you are making mistakes on ambiguous examples.

Neural Network for dates in text


How to wire 2 lights to one switch

Question: Ontario code now requires 14/3 between the switch and the light. Can someone provide a diagram showing how to wire 2 lights controlled by one switch with power coming into the switch & 14/3 between the switch and the first light?
Comment: Is power coming first to the light fixture and then to the switch?  If so, current code in the USA also now requires 14/3 (or 12/3) to the switch to provide a neutral for a potential smart switch.   That configuration is called a "switch leg".  If power first goes to the switch and code still required /3 cable, then jay613 may be right.
Comment: Are you sure it *always* requires 14/3? That could be, but more logical is the neutral issue - i.e., if power is panel->light(s)->switch to require 14/3 for that last leg so that you have neutral at the switch for smart switches/etc. But panel->switch->light(s) could be done (technically) with switched-hot/neutral - no need to also have unswitched hot.
Comment: Do the require it for _new_ construction, any _renovation_ construction, or must all buildings be immediately upgraded? Seems that some important details are missing here...
Comment: Is the second light connected to first light or to the switch?
Answer: I found this guide to the 2018 Canadian electrical code which seems to address this issue.  It states, on page 6, that using a 2 conductor cable for a switch leg is no longer approved, and references several figures for approved switch wiring.  Page 16 shows the approved methods, and makes clear that the intent is to have a neutral in each switch box.
Answer: I've heard some places are requiring fan-capable wiring to all ceiling boxes.  IDK if your code states the motivation but maybe that's the motivation.   The third wire allows future installation of a ceiling fan. If that is what your code requires you to install, you don't need a diagram. Just daisy chain the two lights from the switch in the normal way with 2+ground wires.  In the switch, and in the light at the end of the chain you cap off the third wire.  In the middle (first light) connect the third wires together.  That way you can later install a fan at the second box without opening the first box.  You probably don't HAVE to do it this way, you can just cap off the third wire everywhere ... but why not go with the spirit of the code?
Comment: Thanks jay613. That is helpful. I am a visual person and a diagram really helps me.

How to wire 2 lights to one switch


When an experienced monk meditates how much does their mind wander?

Question: I'm wondering if most monks would go 99 pct of time with no mind wandering, just focus on breath.
Answer:
Case 38 of the Mumonkan An Ox Passes Through a Window
Case
Goso said, "For example, it's just like an ox passing through a
  laticed window. Her head, horns, and four legs have passed through.
  Why is it that her tail can't pass through?"
Mumon's Commentary
If in regard to this you are able to turn yourself upside down,
  attain one single eye, and utter a turning word, you will be able to
  repay the four obligations above and help the living beings of the
  three realms below. If you are still unable to do this, reflect again
  on the tail; then you will be able to grasp it for the first time.
The Verse:
If it passes through, it will fall into a ditch;
  If it turns back, it will be destroyed.
  This tiny little tail-
  What a strange and marvelous thing it is!

I'll let you in on a little secret - the mind never stops wandering.  Oh sure, the mind of an experienced meditator looks nothing like that of a novice, but to say that it's 99% focused on the breath is a pretty romantic view.  One thing that becomes apparent over the course of one's practice is that our illusions are depthless.  Unless you are the Buddha himself, there will always be imperfections in your awareness.  The only difference between someone who is experienced and someone who is just beginning their practice is the nature of these delusions.
To give you an example, when one first starts their meditative practice, the small mind is pretty much it's own master and it will drag itself around in limitless ways.  There is internal narration, irritation at discomfort, plagues of doubt, and an assortment of other defilements affecting the mind.  The mind of someone who has been sitting consistently for, say, ten years is much more spacious.  One's internal narration almost completely disappears.  Discomfort more or less vanishes.  Doubt has mostly been cured.  Those defilements that remain are much, much more subtle.  Most of them are completely beyond the realm of language.  Here, imperfections in awareness are dealt with in a way comparable to a master craftsman who knows how to apply his file just so to get the wood to respond in the way he wants.  Just how he could never describe the feel he uses to apply his craft, the skilled meditator simply cannot vocalize the feel they have for keeping their mind applied to a counter-point sign, for instance.
More to the point, the deeper one engages with emptiness, the more likely they are to discover a veritable ecology of subliminal mental obstacles, habitual patterns, and other phenomenon arising from the personal unconscious (e.g. those issuing from the alaya vijnana or store-house consciousness).  These subtle, unconscious phenomenon merely "perfume" the experience of the novice.  Their presence is so pervasive - like an odor from an old, soiled couch that lingers in a room - that they are mistaken as being fundamental to the nature of experience.  For the the experienced practitioner, on the other hand, these phenomenon are seen for what they are and become the fodder for much of his practice.  They are also the very things that will give rise to most of the subtle distraction he experiences in meditation.
Off the cushion, the experience is mostly the same albeit it is much, much more difficult to maintain a deep level of mindfulness with so much going on in the world.  The mind is far less stable off the cushion than it is on it.  Because of that, any disruption makes  a much larger splash.  Because there is so much going on, it is also much harder to really see the much more subtle defilements (like those arising from the alaya).  One might think that they are free from disturbance, but the truth of the matter is that their mind isn't quiet enough to see the torrents raging just underneath the surface of consciousness.
In short, no matter how experienced you are, there's always that tiny bit of tail.
Answer: Not sure about "experienced monk", but from my own perspective:
This question assumes the mind is single-threaded, that it thinks about one thing at a time. So, in this question's assumed framework, the mind can either "wander" from point to point or "stay" on one point, correct? - Which is not at all what happens as you gain experience in meditation.
Instead, as your meditation develops, you realize that the mind is in fact a lot more amorphous than our narrative of it, and that there are many, many different thoughts, perceptions, currents, and ebbs going on at various levels.
So your awareness expands. It opens. And as it expands, those trains of connected thoughts that your mind used to generate still occur. But now you can't really call it "wandering" because your scope is not limited to single thing at a time.
Those things that @000 mentioned: internal narration, discomfort, doubt - all kinds of inner drama - they come from this limited polarized mind that gets attached to one thing at a time and insists on keeping black-n-white about it. When the mind learns to be less polarized, less reified, less attached to black-and-white concepts - it no longer generates the types of polarized phenomena like wandering and inner drama. It becomes more like an ocean than like a river, more "analogue" than "discrete" etc.
So it's not like it stays on breath 99% of time - rather, it includes both breath and thoughts. And since you are no longer dragged around by your mind, there is no point in trying to keep it tied to any single object - be it breath or whatever.
Now, if we want to talk about progress in meditation, there is an entirely different aspect that improves as one gets better, which is scatter-mindedness vs. clarity.
When you are scatter-minded, your mind has a lot of noise coming from various activated ideas, memories, concerns, emotions, anxieties and so on. They send their signals all at the same time. As your meditation progresses, those noises calms down and you enter what can be called clarity or lucidity. In this state, things are "clear" - meaning, you have a sort of obvious spontaneous understanding of what's what - what's right, what's wrong, what you really want, what you missed, what's the most important thing you need to do - and so on. In this state of clarity, it is a lot easier to make fast spontaneous decisions - because you have a good connection with your "guts" and - well - your mind is clear.
So, to summarize my answer to your question: an experienced meditator's mind does not stay 99% on breath, instead his or her mind is in a state of open, expansive, effortless, all-inclusive, quiet clarity.
Answer: It depends on the monk's stage of insight. A monk can't immediately have a detached awareness that make him free from the negative effects of the wandering mind unless he already attained enlightenment in his lay life. It is possible to be a very experienced meditator but not realised Nibbana yet, so the confused mode of the mind would continue for that person, monk or lay meditator doesn't matter. Also the uncontrollability of the mind continues always, but the awareness of a person can be detached from the negative effects of the wandering mind. The important thing is not the wandering mind but how the person's relationships is with the wandering mind. If a person doesn't take his/her thoughts, feelings and emotions seriously and isn't pulled by them, then the mind can continue to wander as much as it likes and it doesn't really matter anymore.
After a person realizes Nibbana and attains enlightenment(stream-entry) gradually his awareness grows. After experiencing Nibbana many times, the disidentification process from the core of the self/ego(The core of the subconscious mind) would start for a stream-enterer, which would eventually lead a person to a really grounded spiritual state.
https://en.wikipedia.org/wiki/Four_stages_of_enlightenment
Reaching the once-returner stage makes a person's awareness detached from his mind states and his thoughts, feelings, emotions doesn't lead him to a confused state anymore. But still nothing can be compared to the bliss and happiness of Nibbana
https://en.wikipedia.org/wiki/Sakadagami

A Sakadagami's mind is very pure. Thoughts connected with greed, hatred and delusion do not arise often, and when they do, do not become obsessive.

Before achieving enlightenment, the person will continue to be in ungrounded spiritual state most of the time. This is the nature of the humanity. Also a monk or a lay meditator doesn't only focuses to their breath to practise mindfulness: https://en.wikipedia.org/wiki/Mindfulness
If the monk practises Samatha meditation, then he can achieve a no-wandering state of mind and he can have a peaceful and calm mind like the enlightened people, but generally it is not easy to achieve the goals in Samatha meditation and the person needs a good teacher to guide him.
I quote from a nice article here that explains the beauty of being detached from the wandering mind(but I will not quote the last 2 sentences about control and creating our own reality because as long as we are in a human form these two things are not possible and it is not easy to change our past karma's effects immediately):

What if We Didn't Take our Thoughts so Seriously?
We would be able to live in the present, enjoy life at a higher intensity, without having to be busy and scared of the reality from our minds.
We would feel relief, we would be free of that mental and emotional weight that our negative thoughts put on us.
We would understand that we are not what we think, we're not that voice in our head – we are much more than that.
We would detach from thoughts and we would become the observer.
We would understand the difference between the present, reality and the mental scenarios influenced by a disharmonious mind.

https://myexoticdream.net/en/what-would-happen-if-we-did-not-take-so-seriously-thoughts/


IP warming - skipping a week - what are the impacts?

Question: I've got a client that has been trucking along with their IP warming plan that I created.  But, due to unforeseen circumstances, they have to skip a week of email sends during their IP warming period.  What are the impacts (positive/negative) in skipping a whole week and resuming the following week?
Answer: It's more a neutral impact - it's neither positive or negative; aside from the time lost in getting sends up to full volume.
I would suggest that after your weeks break, to restart with about 20-30% of contacts you've already sent to in the previous week(s), who are active i.e. opened your earlier email. You obviously would need to go out with different content to them as they would have opened your Warmup email.
You can then commence bringing in (gradually) the remaining 70% of 'new' records which you didn't send to. It then depends on the quality of your 70%, which I would encourage to only bring in contacts who you know are active / never bounced. Taking this approach will allow ISPs to recognise that your quality is good, that your volumes are increasing.
ISPs recognise patterns of sending, so if there is a weeks break, it's typically recognised that it might be a newsletter being sent, but you're not penalised for taking breaks, but you are penalised for sudden spikes of bounces, so you want to trickle in new subscribers to get rid of the dirty bounce and unsubscribes.


Correct buttons hover state

Question: I'm designing an e-commerce interface, and I've a doubt about the correct hover state of the primary button.
Is it correct to style the primary button as the secondary's default on hover state as in the picture?
Answer: I think it leads to confusing two concepts: function and state.

Button function: interactive UI element
Button state: the different forms an element can take based on the
the context that it is being used in.

Image from Adobe XD
Answer: I don't suggest using one button's default state as another ones hover state, because there can be situations where you need to use both sets of buttons next to each other. Imagine having a situation where you would want to have a "ok" & a "cancel" button. Obviously because of their importance they can not be both of primary type or secondary, so there would be a problem.
What I've seen in many well established design systems is that the hover and press states are slightly different from the default state of the button.
I've attached an example from SAP fiori design system. Hope it helps!
Answer: I think this might beat the purpose of having the different states of interaction, instead you might fill the secondary button with a green color having opacity of 20% for example, take a look at the picture I've attached

this is of course applicable if you don't wish to use shadows in your design
this a link to a nice article explaining more about the matter

Correct buttons hover state


Touch ID doesn't work on MacBook Pro 2019

Question: I have troubles with Touch ID on my MacBook Pro 2019 all the time, it just don't recognize my fingers. If I try to add a new fingerprint the red lines animation doesn't show up like nothing is touching the sensor.
Answer: I was going to take my laptop to repairs but accidentally discovered the offender is my LED desktop lamp. My laptop usually sits on a stand and there is a desktop lamp shining right on the keyboard from about ~50cm. If I turn the lamp on - Touch ID stops working, if I turn the lamp off - it does work flawlessly. It seems like bright LED light shining on my finger somehow interferes with Touch ID sensor. Go figure!


PHP extension does not compile on Mac OS 10.6

Question: I'm attempting to compile a PHP extension called xtree on Mac OS 10.6 but am hitting several errors about missing symbols. I've been able to compile it successfully on a machine running Debian 4 without the missing symbol errors.
The makefile appears as:
LIBTOOL = /usr/bin/libtool
INSTALL = /usr/bin/install

PHPINC := $(shell /opt/local/bin/php-config --includes)
PHPLIBS := $(shell /opt/local/bin/php-config --libs)
PHPDEST := $(shell /opt/local/bin/php-config --extension-dir)

XTREE_LIB = xtree2.so
OBJS = xtree.lo tree.lo node.lo parser.lo string.lo token.lo xsock.lo xpath.lo buffer.lo

.SUFFIXES : .lo .c

all : ${XTREE_LIB}

clean :
    rm -f *.o
    rm -f *.lo
    rm -f *.so

.c.lo :
    gcc -fpic -DHAVE_XTREE -DPIC -DCOMPILE_DL_XTREE ${PHPINC} -c -o $@ $<

${XTREE_LIB} : ${OBJS}
    gcc -shared -L/usr/local/lib -rdynamic -o ${XTREE_LIB} ${OBJS}

install : ${XTREE_LIB}
    $(INSTALL) -c ${XTREE_LIB} ${PHPDEST}/${XTREE_LIB}

Here are a sample of errors I am receiving when compiling on a Mac.
Undefined symbols:
  "__php_stream_open_wrapper_ex", referenced from:
      _tree_load_xdf in tree.lo
      _tree_save_xdf in tree.lo
      _tree_cache_control in tree.lo
      _get_cache_header in tree.lo
      _log_cache_hits in tree.lo
      _log_cache_hits in tree.lo
      _log_cache_err in tree.lo
      _buf_load_file in buffer.lo
      _buf_save_file in buffer.lo
  "_php_info_print_table_start", referenced from:
      _zm_info_xtree in xtree.lo
  "_zend_list_insert", referenced from:
      _zif_xtree_load in xtree.lo
      _zif_xtree_xchg in xtree.lo
      _zif_xtree_new in xtree.lo

PHP is installed on running correctly on localhost and php-config is pointing to the correct location for the includes, libs, extension-dir, etc.
Talking to some of my co-workers they suggest the linker is not correctly pointing to the libraries dynamically. However, he was unfamiliar with the Mac OS linker to know how to fix this.
Any ideas?
UPDATE
I've also had the following suggested to me but with no luck either:
Anyways, here's a few random things you could try:

- In the linker line of the Makefile (starts with "gcc -shared"), add
the "-dynamiclib" parameter after "gcc".  You may also need to remove
the "-shared" and/or "-rdynamic" parameters.

- In the linker line, add "-bundle -flat_namespace -undefined
suppress".  Again, you may need to dump "-shared" and/or "-rdynamic".

Still looking for help. Thanks!
Comment: Do `/opt/local/bin/php-config --libs` and the others work?  Also, I'd expect `$(PHPLIBS)` to be used somewhere.
Comment: Yes, /opt/local/bin/php-config --libs and others work.
Answer: Try changing:
${XTREE_LIB} : ${OBJS}
    gcc -shared -L/usr/local/lib -rdynamic -o ${XTREE_LIB} ${OBJS}

to this:
${XTREE_LIB} : ${OBJS}
    gcc -shared -L/usr/local/lib -rdynamic -o ${XTREE_LIB} ${OBJS} $(PHPLIBS)


I can't able to find html video file in google analytics landing page. why?

Question: I can't able to find html video file in google analytics landing page. The has mp4 file. we need to implement anything? please give me the solution.
Answer: These views can be found under
Google Analytics > Content > Events > Top Events > Video / Seconds played.
Play around with the 'Secondary dimension' dropdown. For a better visual view select the pie chart. If your site already uses or is planning to use Google Analytics it's good to view those statistics in the same place.
Comment: Google Analytics -> Acquisition ->  Search Engine Optimization -> Landing Page

in this section i can't able to find the html video page..( file is embedded with .mp4 format)


Is "Where do you sit?" correct for asking someone where their workspace is?

Question: At work, if I had to ask someone where exactly they worked, as in where their workspace/cubicle is, what should I say? Is "where do you sit?" the usual thing to say? I'm from India and hear this phrase getting thrown around all the time. But when I look it up in context I get few results.
Comment: As others pointed out below, "Where do you sit?" is an optimal question in an open environment. For example, a classroom, where all seats are visible. Or an office where there are not generally cubicles or dividers. In these situations, the question "where do you sit?" is perfectly natural.
Comment: As an American, it sounds strange if you know which city somebody works in, and are asking for the address of his workplace.  If you know the building, and are asking which office he works in, it sounds fine.
Comment: "Where **is** your **seat**"?
Answer: "Where can I find you?" is generally a safe way to ask.
If you prefer to be specific, "Where do you sit?" or "Where's your desk?" would be fine in an office with an open plan.
If the offices have dividers, you might want to ask, "Where's your cubicle?"
If actual walls, "Where's your room?" might make more sense.
Answer: Yes. If you asked that in Australia you would be understood perfectly.
Answer: It's perfectly acceptable in South African English.
From the answers given thus far, it seems to be highly variable according to variety of English.
We have seem to have not acceptable in American English, except in highly specific contexts, and acceptable in Australian, South African and Indian Englishes.
This suggests that it might be a British/Commonwealth English thing.
Answer: "Where you sit" is definitely not standard in American English, at least not in terms of office or cubicle location.
EDIT- Per ScottM's comment, it occurs to me that the above is not entirely correct. In an open environment, where everybody is visible to everybody else, I can imagine someone looking around and asking, "So, where do you sit?" (slight emphasis on "you"), and you could respond, "Over there". Although I'm not aware of a lot of companies that work this way, I suppose it does happen.
END EDIT
It is used in Miles Law:

"Where you stand depends on where you sit."
hjspllc.com

In this context, the expression is used to indicate the fact that different organizations have different outlooks and priorities, and "where you sit" describes the organization you belong to.
Comment: As a native speaker of American English, it seems like perfectly standard English to ask, "Where do you sit?", especially if they work while sitting in the same place every day.


from the 18th to / until 30th of July

Question: I was wondering if you could help me to fill in the blank below using the proper preposition. Meanwhile I need to know the reason(s) of using one over another (In case one of these choices has privilege upon the other one.)
- I went to a French course from the 18th..........the 30th of July.
a) to
b) until
Answer: Both could be correct depending on usage.  My feeling is this:
"to" puts the empahsis on the dates, the 18th and the 30th.
"until" puts a subtle emphasis on the duration or time in between, 12 days.
"through" is another alternative but is more appropriate for a future time span, eg. "I will be taking a French course from the 18th through the 30th of July."

from the 18th to / until 30th of July


Verification of applications on Blackberry Store

Question: I need to know if the applications (contained in the blackberry store) are verified by blackberry before exposing them for downloads in the store.
Comment: -1 for not doing basic research before posting.
Comment: +1 because I think the steps of verification can be studied more rigorously
Answer: I want to help you prevent you from having to ask these type of basic answers. I will therefore show how to use Google and search for your answer:
http://lmgtfy.com/?q=blackberry+appstore+security
The first link yielded this article

To prevent an Android-style malware overload from happening on its own
  platform, and to find a big differentiator in the market, BlackBerry
  has inked a deal with Trend Micro to add security for third-party
  apps. All existing and new applications submitted to the BlackBerry
  World storefront will be scanned for potential malicious behavior.
To do that, BlackBerry is integrating Trend Micro's Mobile Application
  Reputation Service with its internal, proprietary system for analyzing
  applications.
"BlackBerry is working with Trend Micro to implement a more robust
  approach for addressing privacy and security concerns related to
  third-party applications," said Adrian Stone, director of BlackBerry
  security response and threat analysis, in a statement. "By
  incorporating Trend Micro's advanced mobile scanning and detection
  capabilities with our own internal, proprietary application analyzing
  system, we can provide another layer of protection and assurance for
  BlackBerry customers."
"The volume of malicious and high-risk mobile apps is on the rise
  across the industry," said Kevin Simzer, vice president of corporate
  development and alliances at Trend Micro. "With the speed that
  cybercriminals are targeting new platforms and applications, Trend
  Micro and BlackBerry's strategic collaboration is natural and timely
  for the security of end users. Together, the two companies can further
  secure and enhance BlackBerry customers' mobile experience."
Comment: It would be great to know how good is the system used for the task.


Why is my crop lens producing a circular image on my full-frame camera?

Question: I have a Nikon D750 that is now giving a circular image when using my Nikon 18-300 DX VR lens. It was fine before. Why has this occurred and what do I need to do to fix it?
Comment: Does this answer your question? [Why does my Nikon D750 and 18-200 lens have dark corners with no lens hood or filters attached?](https://photo.stackexchange.com/questions/86512/why-does-my-nikon-d750-and-18-200-lens-have-dark-corners-with-no-lens-hood-or-fi)
Comment: Also related: [Crop Factor: Can a full-frame Nikon Camera be set to use a DX lens, with no crop-factor?](https://photo.stackexchange.com/q/70376/15871) and [Can Nikon FX (full-frame) users use DX (APS-C) lenses?](https://photo.stackexchange.com/q/27301/15871) and [Why Is Sigma DG lens cropping on Nikon D810?](https://photo.stackexchange.com/q/89808/15871)
Answer: The 18-300 DX VR is a DX lens, as its name says.
DX, by Nikon, is the acronym for APS-C format.
The D750 is an FX body (FX by Nikon means full-frame).
So you are trying to use an APS-C lens on a full-frame body. DX lenses have a smaller image circle which likely doesn't cover the entire FX sensor size, thus producing a circular image on the D750.
Most likely, you were using this lens on your D750 in APS-C crop mode. This means you changed your D750 image area to APS-C instead of the default full-frame (FX) mode.
You can read here for more information.
You can either:

Manually set the image area to DX
Enable Auto DX crop which will leave the default image area on FX (or whatever you set it to) and automatically switch to DX mode when a DX lens is mounted

From the D750 manual, page 111:

Automatic Crop Selection To automatically select a DX crop when a DX lens is attached, select On for Image area > Auto DX crop in the shooting menus (p. 310, 318). The image area selected in the shooting menus or with the camera controls will be used only when a non-DX lens is attached. Select Off to use the currently-selected image area with all lenses.


$\lim_{n\to \infty} {a^n-b^n\over a^n+b^n}.$

Question: Find the limit $$\lim_{n\to \infty} {a^n-b^n\over a^n+b^n}.$$ How do I find this limit? Thank you.
Answer: Look at the possible cases $|a|=|b|$; $|a|<|b|$ or $|a|>|b|$.
Answer: The intuition here is that as $n$ grows, the larger of $|a|$ or $|b|$ will grow much faster than the smaller. It will come to dominate both the numerator and denominator, so you should be able to guess the limit by ignoring the smaller one. Once see the intuition and have a statement you want to prove, you should be able to find the limit using techniques you've seen before.


Our website is not resolving from our LAN because of LAN DNS configuration

Question: We have a LAN/WAN network with a Windows domain name (ourcompanyweb.org) that matches our website url (http://ourcompanyweb.org) which is hosted externally.  When I ping our website (of the same name) it returns the IP address of the local domain controller server instead of the website IP address.  Subsequently, user on the LAN/WAN cannot access the website.  What steps can I take to resolve this? Can I add a record in the DNS server that will forward the client computers to the external website? Accessing the website from outside our LAN works fine.
Answer: You can add a record in your internal DNS server that points to your website hosted on the Internet so when users hit your website URL they can be redirected to the actual public IP address. Make sure the name contains www.ourcompanyweb.org so it can be specific.
Comment: I added the record but also discovered that there were two other incorrect records for www so the resolution was still hinky until I deleted the old records.   The problem start when the webhost for the website changed ip's .


How to check version of ansible-modules-core?

Question: Is that means ansible modules are in same version with ansible

Ansible modules - these modules ship with ansible

If not then how to check which version of ansible modules I have?
Answer: Q: Are ansible modules the same version with ansible?
A: Looking at the ansible repository -> tag stable-v2.0.
https://github.com/ansible/ansible/tree/stable-2.0/lib/ansible/modules
Since ansible/modules/core is a submodule-reference to the ansible-modules repository found here. This means that when an ansible developer do a git clone --recursive to checkout the entire set of code, git will checkout codes from ansible and ansible-modules repositories to make up the "entire set of code".
So when a developer goes on to build the binary from the full ansible source code, I would assume that only one distinct version number is given to it.
Therefore, short answer is; yes. They share the same version number.
Answer: There's 99% probability that you have it the same version as Ansible "kernel", unless you installed Ansible from sources and updated modules subtrees manually.
ansible-modules-core and ansible-modules-extras were split from main ansible repo for some time, but later merged again. You can read about it here.
But Ansible packages has been always released as self-contained, so if your modules' versions are the same as Ansible version in ansible --version command.


Same html source code via two servers rendered differently

Question: I am in the process of migrating my website from one host to another and noticed strange behavior:
Identical html page served from two different hosting servers render identical on Chrome, Internet Explorer, and Edge, but differently on Firefox depending on server. Both servers run apache. The difference is in size of font and size of images. Font sizes are specified in stylesheet as em.
Any idea as to the cause or remedy?
Comment: Do you or did you have a load balancer  in front of one of the webservers?  Maybe someone was injecting html code into the page while it was traversing the interwebs.  I should add that this is a long shot at being the cause.
Answer: Firefox is upping their security and they are also in the process of moving some functionality out (Java, etc.), so it's understandable that things might not display correctly. If FF is having trouble understanding your website then maybe you can check out the view source code on the live page and see if it gives any errors? If not, the formatting may have to be changed or updated.
Comment: I use the W3C XHTML validator on pages from both servers and get a clean bill of health from each


Should a novella have chapters?

Question: Is it appropriate to use chapter breaks in works shorter than novel-length? I feel as though the text requires breakpoints peridocially, and if it were a novel, I'd place chapter breaks there, but in a shorter work (!25k words), I'm not sure whether that's appropriate. If not, what should I use?
Comment: Just pick up a novel and look how many chapters are used till the book reaches 25k words. A few, I guess, and they all make these 25k words more readable.
Answer: It is absolutely acceptable. If your story requires a shift in scenes, for example, it would be totally appropriate to indicate that with some form of break. Whether you identify this by using extra space, an image, or any other means is ultimately a matter of personal preference. The main point is that you are using a common device to let your reader know that you are making some sort of shift in your story.
Answer: Yes, chapters are appropriate for the most part. If you're writing genre fiction, your editor will almost certainly separate into chapters if you don't, anyway--readers often rely on them.
If you're not writing genre fiction, of course, you can do whatever the heck you like :) but what is important to keep in mind is that novellas are notoriously hard to structure, and chapters (or purely separating into three parts--beginning, middle and end) can aid your construction.
Comment: I was unaware that genre pieces were more conservative in this regard. Any suggestions where I can learn more about this? I just finished chapterizing a YA fantasy novel, but would love to learn more about this.

Should a novella have chapters?


There was this cartoon show that I used to watch as a kid. I don't really remember but the main characters were 2 guys and a girl?

Question: There was this cartoon show that I used to watch as a kid. I don't really remember but the main characters were 2 guys and a girl? If I'm not wrong the girl had like 2 buns and red hair ? The antagonist was a little guy which had his head in something like an aquarium filled with water and he had a really big bodyguard. The bodyguard had a lot of force but was really dumb. I think it was a monkey or something like that. Does anybody know the title? I tried to find it but I can't.
Comment: When were you a kid?
Comment: I'm 15 this year so I think it was somewhere between 2008/2009- 2015
Comment: Maybe check out https://tvtropes.org/pmwiki/pmwiki.php/Main/MobileFishbowl for the villain?
Answer: I think it's Chop Socky Chooks.
The characters seem to somewhat fit.  The girl main character has black hair, but it's in two buns.  It also was out in 2008, so that fits your estimated timeline perfectly.
The main villian (from the Wikipedia page):

Dr. Wasabi (voiced by Paul Kaye) – Dr. Wasabi is the ruler of Wasabi World and is the main antagonist of the show. He is a little piranha that has an astronaut-like attire with water filled inside (so as to allow him to breathe) He has control of every place in Wasabi World, yet he has no idea of who the Chop Socky Chooks are. He is armed with his top henchman Bubba and his Ninja Chimps. His name is retained from his green wasabi-like skin color.

(emphasis mine)  The sidekick also seems to match:

Bubba (voiced by Rupert Degas) – Bubba is a large ape and wears a suit along with a top hat. Although not big intelligently and initially illiterate, he's big in the heart. He has the dumb and strong personality like many cartoon characters. He has proved himself very useful, besides his impressive strength. His favorite comic book hero is Captain Cockroach and enjoys reading comic books after learning to read.

(emphasis mine) I found this by taking Buzz's advice and using the TV Tropes mobile fishbowl page, and found it under Western Animation.  The TV Tropes page for Chop Socky Chooks had basically all the information from the question.
Comment: This is it, thank you very much, I've been trying to find it for hours


How to remove bulb mode on canonet ql 19?

Question: I was testing my canon ql19 which seems to be in perfect working order. However I pressed the safety catch and set the camera to bulb mode and I can now not turn the ring back again. How are you meant to remove the B setting?
Answer: I'm not sure about this "safety catch" button. There's nothing in the manual that leads me to believe that something like that exists (http://www.cameramanuals.org/canon_pdf/canon_canonet_ql19e.pdf) Manual linked from Mike Butkus, who does awesome work in assembling these old manuals. Consider throwing the man some money @ https://www.butkus.org/chinon/donation_policy.htm
In general, though, attempt to "clear the slate" and start over. Wind the film advance lever making sure you get a full crank. Then use the shutter release. At this point, you should be able to adjust your shutter speed. With bulb mode, hold down the button and hear the shutter open. Keep it held down. Release a moment later and hear the shutter close. If you don't hear it close, then attempt to push the button again and it should close.
Please point out the button that you call "safety shift" as it's possible the use may have impacted the camera function. (If it's the self timer, and the self timer mechanism is broken...then you wouldn't be able to clear the slate)
Comment: My canon is probably a different generation and should work like this: https://www.manualslib.com/manual/554970/Canon-Canonet-Ql17.html?page=22#manual
Comment: I managed to remove the bulb mode, simply with the help of "magic touch". However the shutter now no longer works at all. Any suggestions?
Comment: @user5227744 when you say that it doesn't work...does the advance lever cock the mechanism or not? If you go back to B, does it function again? If this was a car problem, you're essentially saying, "turning the key doesn't start the car." Okay...what else? Sounds, lights, details! List out everything you've tried and every detail.
Comment: Ok sorry. Yes I can pull the advance lever and there is a resistance as if it were cocking something. I can also press the shutter release button, and there is a very slight click sound but the shutter blades don't move. On the other hand the aperture blades seem to function correctly. I can now enter and leave bulb mode without issue provided I press the safety catch. However the shutter blades are not moving under any circumstance. I also suspect the shutter speed ring is slightly harder to turn. However I may onlybe imagining this as it was fairly hard to turn jn the first place