How do I link my old clash of clans village to my new account

Question: My clash of clans account is linked to my dads Game Center acount and I want to link it to my account. How?
Answer: If you still have a phone or device on which you can access the old account you can sign in to your new game centre account on this device and link the village to your new account. This can be done in the settings of Clash of Clans. If you do not have this device anymore you can log in to your dad's game centre on your new device, and import your village to the new phone (Clash of Clans will ask you if you want to do this after linking your dads account in the settings). After this you can remove your dad's game centre account and you will be done.
Source: My own experience with Clash of Clans


Android SurfaceFlinger

Question: I would just like to ask if SurfaceFlinger is always called for any type of drawing into the screen?
Example, displaying of JPG file to the screen.
Answer: SurfaceFlinger is not what draws your window.  It allocates a frame buffer for your window, which the framework running in your application draws directly to without interacting with SurfaceFlinger.  The only interaction SurfaceFlinger is involved with when you draw your window is to composite the final new frame buffer to the screen once you are done drawing a frame.
Comment: Thanks again for your reply. I am actually not yet developing an android application right now but I will be in the near future. I am just trying to understand how things work in android. Since I am not just studying the application framework but I am also interested in the Library layer.
Comment: To hackbod and Frank, thanks for the info. I am really confused about the SurfaceFlinger. When I checked the android documentation for Android at http://developer.android.com/guide/topics/graphics/index.html, there are two ways to draw a 2D graphic to a screen. One is on a View and the other is on a SurfaceView. I have checked the source code for SurfaceView and it seems it is actually interacting with SurfaceFlinger. However, I can not see the connection yet for drawing in the Canvas using the View. (ex. ImageView) for it seems to be calling SKIA library.
Comment: I am thinking that android graphics is getting the surface from WindowManager component. The surface is actually created by SurfaceFlinger and managed by WindowManager. Is my understanding correct?
Comment: Well first, unless you are coding in the platform itself, you simply don't care about SurfaceFlinger so don't worry about it.  The difference between a regular view and a SurfaceView really has nothing to do with SurfaceFlinger; a SurfaceView is essentially another way to create a window and this one is attached to the window of the SurfaceView's view hierarchy.  Again, this is *not* of concern for you unless you are modifying the platform.  I would really recommend you ask questions about *what* you are trying to do, not how things work, so people can give you useful answers.
Comment: Sometimes it releases and recreate again. Hence there are duplicated  same Activity  at the same app.
Answer: http://pierrchen.blogspot.jp/2014/02/what-is-surfaceflinger-in-android.html

SurfaceFlinger is an Android system service, responsible for
  compositing all the application and system surfaces into a single
  buffer that is finally to be displayed by display controller.
Let's zoom in above statement.
SurfaceFlinger is a system wide service but it is not directly
  available to application developer as Sensor  or  other services can
  be.  Every time you want to update your UI, SurfaceFlinger will kick
  in. This explains why SurfaceFlinger is a battery drainer.
Besides your application surfaces, there are system surfaces,
  including status bar, navigation bar and, when rotation happens,
  surfaces created by the system for rotation animation.   Most
  applications have only one active surface - the one of current
  foreground activity, others have more than one when SurfaceView is
  used in the view hierarchy or Presentation mode is used.
SurfaceFlinger is responsible for COMPOSITING all those surfaces. A
  common misunderstanding is that SurfaceFinger is for DRAWING. It is
  not correct. Drawing is the job of OpenGL. The interesting thing is
  SurfaceFlinger used openGL for compositing as well.
The composition result will be put in a system buffer, or native
  window, which is the source for display controller to fetch data from.
  This is what you see in the screen.
Answer: Yes, SurfaceFlinger is Android's compositor so it takes everything that will get displayed, figures out what the resulting frame will look like and then sends it off to be displayed on the screen via the graphics card's EGL interface.
You can get the idea that it controls the result of everything you see in a post by Android developer Jeff Sharkey where he tints the whole screen for nightmode. I also found a beamer presentation that looks good about this topic.

Android SurfaceFlinger


I've added the code for google translate to my site. How can I make it stay selected to the right language between pages?

Question: Every time I navigate to a different page I have to reselect the language.  Is there a way to get around this?
Comment: Do you want to give us a link to it? You specify the page language in the javascript so it should work.
Comment: I've just thought - do you mean you have to reselect the language you are translating from or to?
Comment: I think you understand now, ever time i go to another page, I have to reselect the translate language.  I've placed the translate widget code in a global header.  It doesn't seem to persist between pages though.
Comment: Sounds like you have a bug. The desired behavior is the default. Try to temporarily disable other javascript and cookie-setting code to see if there is interference.
Comment: @Itali I think you are right.  If you switch between several languages on one machine in a short time period it seems to stop working correctly.
Answer: The question doesn't really make sense, functionally.
The translation widget is triggered by the act of changing from the default selection("Select Language") to the target language. Making the widget come up with a different item selected wouldn't accomplish anything. In fact, people would probably have to change the selection to something else, wait for that translation, and then change it back to get at the language you actually want. You could conceivably use a bit of Javascript to fake a change event on the drop-down after the page loads(I have not actually tested this), but then that'll make it happen for everybody, including people who don't want it.
If you always want to translate to the same language, maybe you should look at providing translation links instead. Assuming you're using a CMS of some kind, just go to the main Google Translate page, give it some URL/language combination and submit. You'll end up at something like this:
http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=ja&u=http%3A%2F%2Fexample.com

...which is a link translating http://example.com from English to Japanese.
Then, in your CMS template, replace the value of the &u query parameter with the URL of the current page, URL-encoded.


Extract a few names from a File

Question: So, my Problem is that I have a file with a lot of names in it, and I want to extract Information by using a command. I want a few of the Names starting with a specific last name..for example "d".
It's a really big list and I want to facilitate the work.
Comment: Could you give us an example of the list of names, and an example of the output you would like?
Comment: https://en.wikipedia.org/wiki/Marathon_year_rankings this ranking for example, and i would like to exclude all people in this list featuring a d in the name.
Answer: Using the example you gave, first we need to get the data from the webpage.  I copied the first table, pasted it into a spreadsheet (LibreCalc in my case), then exported it as a csv file to list.csv.  The resulting file looks like this:
1921,2:47:29.8,Florestano Benedetti (ITA),1921-09-20,Bologna,Italy
1922,2:46:26,Gabriel Ruotsalainen (FIN),1922-09-10,Helsinki,Finland
1923,2:40:47,Aksel Jensen (DEN),1923-06-16,Windsor,England
1924,2:36:10,Shizo Kanaguri (JPN),1924-04-12,Tokyo,Japan
...

Then we can use grep, sed, awk, or anything else to process the file.  For example, using awk:
$ cat list.csv | awk -F, '$3 !~ /[Dd]/ { print; }'
1921,2:47:29.8,Florestano Benedetti (ITA),1921-09-20,Bologna,Italy
1923,2:40:47,Aksel Jensen (DEN),1923-06-16,Windsor,England
1937,2:30:38,Manuel Dias (POR),1937-03-28,Lisbon,Portugal
1938,2:30:27.6,Pat Dengis (USA),1938-05-30,Salisbury,Massachusetts,USA
...

This prints out any line where the name (the third column, hence $3) does not contain either a D or a d.  See the awk, sed, or grep man pages for further details.
Answer: Grep
Grep, searches the input files for lines containing a match to a given pattern list.
When it finds a match in a line, it copies the line to standard output by default, or does whatever other sort of output you have requested with options.
Grep can simply be invoked:
grep <string> filename

Grep can search for complicated pattern to find what you need.
Here is a list of some of the special characters used to create a regular expression:
. The period . matches any single character.
? The preceding item is optional and will be matched at most once.
* The preceding item will be matched zero or more times.
+ The preceding item will be matched one or more times.

For more details check:  man grep

Extract a few names from a File


Robot autonomous variable terrain with yaw sensor

Question: I am programming a robot to drive over variable terrain obstacles autonomously. The variable terrain could potentially knock the robot off of its initial heading, but I would like to design an autonomous sequence to correct for any change in direction. I am using a very accurate sensor with compass and yaw. What is the best way to have it correct for any changes and maintain its heading? Side to side motion does not have to stay perfect, but the heading needs to stay the same.We are currently correcting it by overpowering one side of the wheels (depending on direction of correction needed) until the heading is correct again, but this seems to be a slightly antiquated method, so I'm looking for a cleaner and more smooth method.
Comment: It looks like this may be a duplicate of another question that was asked recently. See [my answer there](http://robotics.stackexchange.com/a/9148/9720), but briefly - use a PID controller whose input is heading reference, feedback is sensor heading, and output is an adjustment to motor speed signal.
Answer: If you have the path you want the robot to stay on, it sounds like you need Pure Pursuit.  In this simple algorithm, you steer the robot to some look-ahead point on the path.  The gist of it is illustrated by this image.

This only works for non-holonomic robots, but even if you have a holonomic robot, you can do something similar.
Original algorithm proposed here:
Implementation of the Pure Pursuit Path Tracking Algorithm. R. Craig Coulter, CMU, 1992.
Answer: There's not a singular, best approach to solve your problem.  It's a qualitative problem (what's a good/viable solution?), not so much a quantitative one (how do I minimize drive time under all conditions? minimize path drift, again, under all conditions? minimize battery drain? etc).  You could turn it into a quantative problem, but that's a huge undertaking.
@Chuck's writeup looks great for PID usage.  PIDs are a great solution when you can characterize your environment, ie: properly tune your PID's variables.  A PID wouldn't be my choice because I like learning algorithms more.
So here are some other approaches and a few pros/cons.
Kalman filtering
Pros: not only addresses your drift, but it accounts for the error in your sensors.  You should keep in mind that regardless of how good a sensor is, it's not perfect, so not all of the drift occurs because of the terrain. Plug and play code exists.
Cons: very steep learning curve; matrix math.
Particle filering
Pros: very simple to code and tailor to your exact surroundings. path correction is very similar to the integral portion of a PID controller.
Cons: this addresses the error in your sensors as the main problem and the drift from the environment as a secondary problem.
SLAM with way points
Pros: one of the most heavily documented navigation methods
Cons: many, many variants to choose from; requires your robot to be stateful and remember its learned states from earlier runs, otherwise this approach is overkill; you'll need to hybridize your implementation by adding known way points to your map
I think that neural nets would be an interesting way to adjust the robot's immediate actions.  That is, change the driving techniques to correct for slippage in mud or rain.  But, again, overkill.
To throw in a few more options:

motion planning with potential functions (also called "gradient descent" and "vector field" calculation)
feed-forward / feedback reinforcement learning.

Here's a chapter on path planning.
I'd be interested to know what you choose to go with.
Good luck,
Ryan


Thunderbird addon for email address crawler

Question: I am looking for an addon to capture all email addresses to my address book from my Inbox.
I know EMail Address Crawler does the same;
https://addons.mozilla.org/en-us/thunderbird/addon/email-address-crawler/
However I have the latest Thunderbird and the addon is not compatible with the latest Thunderbird.
So is there some other addon which would work with the latest Thunderbird?
Answer: Another person seems to have picked up the slack from the original (and now unmaintained-by-the-author) code, see here:
https://nic-nac-project.org/~kaosmos/index-en.html#eac


"Though" vs. "although"

Question: Can we use though and although interchangeably? Somebody told me that the difference is that though cannot be used at the beginning of a sentence. Is that the rule?
Answer: Though can definitely be used at the beginning of a sentence, and has a long history of doing so. Consider Isaiah 1:18 from the King James Bible:

Though your sins be as scarlet, they shall be as white as snow; though they be red like crimson, they shall be as wool.

TheFreeDictionary.com cites this usage rule:

Although and though are interchangeable as conjunctions, but to start a clause, use although.

However, this seems overly fussy and prescriptive. Consider the following:

I went ahead and chopped all the wood, though no one told me to.
You left without your luggage, though I can't imagine why.

Those sound to me like perfectly fine English. They would be perfectly fine using although as well. That, to me, feels like interchangeability, pure and simple. In fact,
I can think of no examples in which though cannot be used interchangeably with although. Though your mileage may vary.
Answer: http://grammarist.com/usage/although-though/
As conjunctions, although and though are interchangeable. Although is generally considered more formal than though, though both forms appear regularly in both formal and informal writing.
Though is also an adverb, meaning however or nevertheless. In this sense, though is not interchangeable with although, which is only a conjunction.
And in these examples, though is an adverb and hence not interchangeable with although:

This weekend, though, theaters were packed. [Los Angeles Times]
There was another twist to come, though, as Pavlyuchenkova defied her
  flagging fortunes to win three games in succession.  [Independent]

http://grammar.quickanddirtytips.com/although-versus-while.aspx
In fact, "though" came before "although." In the 1300s, before "although" became one word, it was two words —"all" and "though"— with the "all" there to add emphasis to "though (5, 6)."
Comment: Upvoted for the distinction between "though" as a conjunction and "though" as an adverb. Excellent job.
Comment: +1 for 'although' suggests a stronger contrast than 'though'. Also mentioned at https://www.geeksforgeeks.org/difference-between-though-and-although/
Answer: H.W. Fowler, Modern English Usage, revised edition (1965) offers a concise and generally valid summary of the differences between though and although:

Though, although. The definite differences between the two hardly need stating. They are: first that though can and although cannot be used an adverb, placed last (He said he would come; he didn't, though); and secondly that though is alone possible in the as though idiom. In the use common to both forms, i.e. as a complete conjunction, no definite line can be drawn between them, and either is always admissible. But it is safe to say, in the first place, that though is much commoner, and, secondly, that the conditions in which although is likely to occur are (a) in the more formal style of writing, (b) in a clause that does not follow but precedes the main sentence, and perhaps (c) in stating an established fact rather than a mere hypothesis [examples omitted].

I'm not at all sure about item (c) above, but the rest seems reasonably accurate in the present day. (Fowler made these points originally in 1926, in the first edition of his book.) Especially noteworthy is how Fowler turns on its head the supposed rule about never starting a sentence with though: according to Fowler, the point isn't that you can't start a sentence with though, but that the start of a sentence is a situation where although is relatively likely to occur. Fowler's overriding contention is that though is much more commonly used than although—a state of affairs that was truer in Fowler's day than it is now, to judge from this Ngram chart of though (blue line) versus although (red line) for the years 1700–2000:

The discussion of though and although in Bryan Garner, Garner's Modern American Usage, second edition (2003) indicates how little had changed between 1965 (or indeed 1926) and 2003:

although; though. As conjunctions the words are virtually interchangeable. The only distinction is that although is more formal and dignified, though more usual in speech and familiar writing. In certain formal contexts, however, though reads better. Though serves also as an adverb [example omitted].

Garner doesn't include an example of a formal context in which though reads better than although as a conjunction, though I don't doubt that he could have done so. I am quite familiar with the shift in tone between habitual use of though and habitual use of although. For more than a decade I copyedited textbooks and university press books whose publishers strongly favored although; when I switched to magazine work, I was disconcerted at first by the many instances of though that appeared in manuscripts.
Ultimately, what sold me on though was how much easier it was to work with during copyfitting, the process of cutting lines and altering words to get a story to fit into its available layout space. You wouldn't think that an eight-letter word would be much more difficult to accommodate than a six-letter word—especially when one of the letters is an l—but you'd be wrong. Often I have run into situations where although wouldn't fit even on a heavily kerned line and would leave the line with an unsightly gappiness between the remaining words when it rolled over to the next line, but where though worked fine. (Our house style forbade hyphenation after two letters, so it was all or nothing with although.) Anyway, that's how I came to appreciate the special charms of though, and it's why I've long appreciated the interchangeability of though and although when used as conjunctions.
Answer: Although is a more proactive word then though, they mean the same thing but saying although, gets your attention much better then just saying though
Answer: In terms of SAT, that though cannot be used when starting a sentence is definite not the case.
See:
Comment: The pages are a little difficult to read, and they all seem to be questions. Could you not copy questions 7, 16 and the middle one in the 3rd photo? EDIT: But I see copying the format would be impossible using the edit tools available here. Perhaps you could crop the photos and copy the sentences below each image?
Answer: That's pretty much it. The two are practically interchangeable; however, care must be taken when using though because it has several other uses.

"Though" vs. "although"


Is the conjugacy problem in $\mathbb{Q}^n \rtimes \mathbb{Z}^m$ solvable

Question: Given two elements in $\mathbb{Q}^n \rtimes_\phi \mathbb{Z}^m$, is there an algorithm that decides if they are conjugate?  Just to be explicit, $\phi$ is a homomorphism from $\mathbb{Z}^m \to Aut(\mathbb{Q}^n)$, through which elements of $\mathbb{Z}^m$ act on $\mathbb{Q}^n$.  If the answer is unknown, can anyone point me in the direction of texts/papers that deal with decision problems in infinitely generated groups?
Answer: This is not an answer, but you will get an answer by doing this. Look at the paper by Noskov, http://link.springer.com/content/pdf/10.1007%2FBF01138933.pdf. As in that paper, reduce the problem to a commutative algebra problem, then use "Constructive" Commutative Algebra.
Comment: Here is a better link: https://www.dropbox.com/s/75vbn5lz1nxbni6/noskov.pdf


If the graph isomorphism problem can't be solved in polynomial time, do spin-networks in loop quantum gravity violate the Church-Turing thesis?

Question: If the graph isomorphism problem can't be solved in polynomial time, do spin-networks in loop quantum gravity violate the Church-Turing thesis? To determine whether or not two graphs are isomorphic (labelled in the case of spin networks, but this doesn't change anything essential) is conjectured to be unsolvable in polynomial time in the worst case scenario. It may or may not be solvable in polynomial time using quantum computers. To compute using spin-networks, we have to determine whether or not two components describe the same network when summing up over quantum states and computing bra-ket norms.
Answer: The Church-Turing thesis concerns which functions are computable. There are many computable functions with nonpolynomial complexity, so I'm not seeing why you mention polynomial time in the question. For graphs with finitely many vertices and edges, graph isomorphism is definitely computable (just hard).
If your concern is computability, then you should be more worried about whether physics really needs the real numbers, since as far as Church-Turing is concerned, they don't exist.
Comment: But could it be possible that the loop quantum gravity would allow for, if not the construction of a computer going beyond the Turing machine, then for the construction of one which could solve "NP-complete" problems in polynomial time through quantum-gravitational "computation"? Such a machine would obviously be of tremendous import in and of itself, of course.


AWS lambda hitting size limitation with ffmpeg

Question: I'm playing around with AWS lambda and trying to set up a task based on node + ffmpeg. Apparently Lambda cannot handle zip that are larger than 250Mb (I'm getting the exception Unzipped size must be smaller than 262144000 bytes)
I've followed the build guideline from ffmpeg and my final build is 377Mb:

There might be a few things I can prune, but I'm not sure I can get bellow 200+Mb. Is Lambda not fit for ffmpeg tasks? If people have used for video processing, is the only solution to drastically prune ffmpeg build?
== edit ==
As mentioned in @idbehold's answer, it's likely that I only need the binaries. I first tried with only the binaries in ./bin, but I was getting errors like:
{
  "errorMessage": "Command failed: /bin/sh -c ffprobe -v quiet -print_format json -show_format -show_streams test.mp4
  ffprobe: error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory",
  "errorType": "Error",
  "stackTrace": [
    "ffprobe: error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory",
    "",
    "ChildProcess.exithandler (child_process.js:213:12)",
    "emitTwo (events.js:87:13)",
    "ChildProcess.emit (events.js:172:7)","maybeClose (internal/child_process.js:821:16)",
    "Socket.<anonymous> (internal/child_process.js:319:11)",
    "emitOne (events.js:77:13)",
    "Socket.emit (events.js:169:7)",
    "Pipe._onclose (net.js:469:12)"
  ]
}

The lambda is just executing an input command with a child_process as in the node-exec blueprint aws function. So I thought I'd need to include those other files. I copied the binaries I obtained after following ffmpeg installation guidelines, but maybe they got linked differently in my ubuntu machine. I guess I should focus on fixing that error.
Comment: https://johnvansickle.com/ffmpeg/ this static build is just 16MB as tar.xz.
Answer: You only need the binaries from the bin folder.
Comment: that's what I first thought, and then the issue I mentioned in my edit made me thing otherwise. I'll try again.


Is a resistor needed for LEDs in this beatbox project?

Question: I'm making a LED beatbox (seen on Kipkay.com). I'm using 8 LEDs (5 millimeters, I don't know if this helps) and my power source is 12 VDC 800 mA. Do I need to add a resistor? If yes, which one should I use?
Comment: Yes, you will need resistors.  See [this earlier thread](http://electronics.stackexchange.com/questions/17179/correct-formula-for-led-current-limiting-resistor).  To determine the value of the resistor, we need to know 2 things: voltage drop across the LED (forward voltage drop), current through the LED.  Post this info, please.  This info usually comes from the LED's datasheet.  Also, are you going to light up all the LEDs at once, or one at a time, or in groups?  Are all of the 8x LEDs the same (color, model)?
Comment: Related: http://electronics.stackexchange.com/questions/56910/should-i-use-a-resistor-in-this-scenario
Answer: Yes you need a resister per LED. Assuming you want your LEDs to run at a current of about \$I_f\$ = 20mA current and your LEDs have a forward voltage of \$V_f\$ = 1.7V (this is a wild guess, check your datasheet), you'll want to size your resistors as follows:
\$ (12 - V_f) / (I_f) = R\$
So for the parameters I suggested that would be (12 - 1.7) / (0.020) = 515 ohms, and you would just pick a "common" (e.g. E12 series) resistor that is larger than that, so 560 ohms is your best bet. I gave you the equation form so you can plug in appropriate values from your datasheet, and obviously the 12 in the equation is your supply voltage. Keep in mind that the power your resistor will need to dissipate is:
\$P = I_f * I_f * R\$
So in this case 0.02 * 0.02 * 560 = 0.224 Watts, so definitely get 1/4W resistors, not 1/8W resistors.
Comment: Also why one led for each, when four 1.7v leds in series with a single resistor would work fine on 12v?
Comment: @Passerby didn't realize they were in series, thought it was 4 individual LEDs. Wasn't obvious from original post, subsequent detail seems to have been added to clarify that point


Iran "sanctions"?

Question: In the news I keep hearing about "sanctions" on Iran. For example, one article published today, said that "sanctions were lifted", but that "some sanctions still remain". Such news stories are invariably vague about exactly what these "sanctions" are. US law? EU law? UN resolution? What?
How can I find out exactly what these "sanctions" are and their terms?
Answer: From the US perspective, a readable summary of what the internet believes can be found here. For access to more authoritative documents, a good starter would be the State Department page. A summary of relevant statutes are found here, and executive orders are here. Treasury also has a page with lots of information on Iran sanctions. I'm not sure there is any way to get an exhaustive and definitive list, but this is a start.

Iran "sanctions"?


Why isnt there an Ubuntu release name starting with C (and A)

Question: Its Breezy Badger then Dapper Drake. Where are Clumsy Chameleon and Awesome Antelope?
Comment: I actually thought the reasons were more along the lines of not having anything to do with some "body parts" when Ubuntu OS was starting. I think people are more matured now.
Answer: The first two release was named randomly and came from a joke. And from the third release they decided to use alphabetical order in release names. This is documented very well in the Ubuntu Wiki page
From Mark Shuttleworth's writing, I'm quoting this from the wiki page:

Many sensible people have wondered why we chose this naming scheme. It came about as a joke on a ferry between Circular Quay and somewhere else, in Sydney, Australia:
lifeless: how long before we make a first release?
     sabdfl: it would need to be punchy. six months max.
     lifeless: six months! thats not a lot of time for polish.
     sabdfl: so we'll have to nickname it the warty warthog release
lifeless is Robert Collins. sabdfl is Mark Shuttleworth.

So, the naming convention or policy wasn't fixed before the first release as you might have been assuming. That convention is later introduced and of course it is one of the greatest feature of Ubuntu OS.

Read the history in Wiki page
Also read all the dashing naming suggestion given for upcoming releases

Though they decided to use alphabetical name after Breezy, they also decided that they might avoid some letters. I think that is why there isn't a C name after Breezy. The relevant part form the Wiki page is

We might skip a few letters, and we'll have to wrap eventually

And from 17.10 the release names will be wrapped up and will be restarted with A. So, don't forget to suggest your awesome names.
Answer: Apparently versions that were released after 6.06 were alphabetically incremented in their alliterative letter. So chances are good that there will be an A... A... coming with version 17.10 and a C... C... coming with version 18.10. For the release history with numbering and names, see below or the List of Releases on the Ubuntu Wiki.
<code> 4.10 Warty Warthog
 5.04 Hoary Hedgehog
 5.10 Breezy Badger
 ...
 6.06 Dapper Drake
 6.10 Edgy Eft
 7.04 Feisty Fawn
 7.10 Gutsy Gibbon
 8.04 Hardy Heron
 8.10 Intrepid Ibex
 9.04 Jaunty Jackalope
 9.10 Karmic Koala
10.04 Lucid Lynx
10.10 Maverick Meerkat
11.04 Natty Narwhal
11.10 Oneiric Ocelot
12.04 Precise Pangolin
12.10 Quantal Quetzal
13.04 Raring Ringtail
13.10 Saucy Salamander
14.04 Trusty Tahr
14.10 Utopic Unicorn
15.04 Vivid Vervet
15.10 Wily Werewolf
16.04 Xenial Xerus
16.10 Yakkety Yak
17.04 Zesty Zapus
17.10 Artful Aardvark
18.04 Bionic Beaver
18.10 Cosmic Cuttlefish
...
</code>
Answer: There isn't any release named with A or C for this time. But on 17.10 the name is "A". And also the 18.10 with "C" name.
Look here for additional information: Development Code Name
Answer: The first such release was Warty Warthog (released with "warts and all"), so it was certainly out of order, too, although at that time there really was no system for naming the releases.  The next release was Hoary Hedgehog (staying with the "hog" idea, I guess), and after that came Breezy Badger, and then Dapper Drake.  It appears the alphabetical idea came along with - or right after - Edgy Eft, so the "A" and "C" names weren't used just because the system wasn't yet in place.
Of course, there's also no reason to think that such a naming convention should start with the beginning of the alphabet, anyway, as after Zany Zoophyte it can just wrap around; I guess the alphabet can start wherever one prefers.


Method of images for Green's function

Question: Suppose there is a wall at $x=0$ and a particle undergoing brownian motion (in $1D$)  to the left of it can not cross the wall. The Green's function in the absence of wall is $G_{0}(x,t\mid x_{0},t_{0})$. In the presence of the wall at $x_{0}=0$ the probability of finding the particle at the wall is zero, i.e., $G(x=x_{0},t\mid x_{0}=0,t_{0})=0$. Hence using the method of images the Green's function can be written as: $G(x,t\mid x_{0}=0,t_{0})=G_{0}(x,t\mid-\epsilon,t_{0})-G_{0}(x,t\mid\epsilon,t_{0})$, here $\epsilon$ is very small positive quantity. Now if I take the velocity of the particle into consideration and write the free particle Green's function as $G_{0}(x,v,t\mid0,v_{0},t_{0})$ what should be my Green's function in the presence of the wall?
Answer: The green function can be given by:
$$G(x,t\mid x_{0}=0,t_{0})=\frac{1}{\sqrt{4\pi Dt}}[e^{{-(x-x_0-vt)}^2/4Dt}-e^{vx_0/D}e^{{-(x+x_0-vt)}^2/4Dt}]$$ where $v$ is the velocity, $D$ diffusion Coefficient and $t$ is time.
You can check that at $x=0$ the concentration is zero.

Method of images for Green's function


How to catch file download event in Firefox Extension?

Question:
Possible Duplicate:
How to hook the download dialog in a Firefox extension?

I have developed a Download Accelerator and now want to create a Firefox Extension for it.  What I need to know is when a file download is requested.  I have read about the 'observer-service' events such as 'dl-start'.  However, these events are fired after the default download dialog is displayed, I need to catch the download before the default.
Any suggestions?
Answer: I believe the answer to this question is what you are also looking for:
How to hook the download dialog in a Firefox extension?


Multiple OS on a single machine

Question: I have a new harddrive. I want to install XP, Vista and Windows 7 on it
Is it possible and what should be the order. I have heard there is some MBR rewriting issue?
Any 'simple' article/tutorials are welcome
Answer: I run Ubuntu on my computer with VirtualBox, there you can install "any" OS you want easy! Highly recommended. I run windows 7 or xp or what every I need.
Great site here by the way. Brilliant people in here.
Karsten ;)
Answer: Why all three?
The best method for this sort of thing is to choose one OS (in your case I would suggest Win7), and if you need additional ones use virtual machines to load any others on top of the host OS. The best virtual machine software is probably VMware or virtual box.
Comment: I do not have enough RAM to hold a VM..
Answer: I'd agree with the previous poster and memory is quite inexpensive, however, if you want to host multiple OS you could do worse than take a look here:
http://www.techspot.com/guides/143-dual-boot-windows7/
or
http://apcmag.com/the_definitive_dualbooting_guide_linux_vista_and_xp_stepbystep.htm
I'd partition first, with something like partedmagic http://partedmagic.com/ then install XP followed by Vista the 7 but placement of the OS on the drive may have a performance impact.
Answer: If there is any way you can remove Windows XP from the equation, perhaps by using it within Windows 7 via Windows Virtual PC "XP Mode" (www.microsoft.com/windows/virtual-pc/download.aspx), which is now also available for 32 bit processors without Hardware Assisted Virtualization, then I would highly recommend using Windows 7 VHD boot which allows you to boot from a Virtual Hard Drive (VHD) file.
Scott Hansel did a great post has a great post on his site about VHD Booting. That was enough to get me started.
Answer: For the install order of multiple local copies of Windows. If you do go the route of multi-booting, rather than virtualizing one or more of the OS's then the general rule of thumb is to always install the oldest Windows version first.
So in this case you'd install XP, then Vista, then 7. The newer version of Windows should always be able to understand the older version's boot record and boot menu workings and add themselves in, older versions can't understand the newer ones.
However I'd agree with the other posters that a virtual machine (or two) would be the ideal answer here.
Answer: There are many guides around to do this! But I've heard Grub can handle your booting stuff.
I encountered the MBR rewriting stuff before, google around and you'll find some commands in the windows installation disc that can help restore it.

Multiple OS on a single machine


Add to homescreen

Question: I've been looking for best practices where to put additional link "Add to homescreen". We need to implement it while the user logs in or has just logged in.
I do not want to use a pop-up to make it so important for the user as we are not a "rude" website. I was wondering if this is a good practice if I put a small button under the Remember password for those who just wants to open our website a little bit faster.
Comment: IT might help us to understand your particular use-case if you could include some more details. I know I'm curious about what your users my want to "Add to homescreen", what form the homescreen takes (that it allows things to be added/removed), what sort of mechanic you plan to use for the adding process, and what sort of on-boarding procedures you already have - these things all seem to play a part in suggesting what you might be able to do.
Answer: If you are talking about making user add your website to their home screen directly from the login page then you can try the following designs which don't really force user to add the website to their home screen
First Variation with a catchy attractive sentence

Or you can try this float button notification

Add to homescreen


Property transactions datasets in Europe

Question: I am looking for data on real estate transactions for as many countries as possible in Europe. These data would ideally include a home's exact location, the transaction price, the transaction date, home characteristics (e.g. number of bedrooms), and information about the transaction (like whether or not it was an arm's length transaction). I have found (via this question]) data like this on the UK, and am now looking for comparable data elsewhere in Europe. Similar datasets in the US context include ZTRAX and CoreLogic's transactions dataset. Thanks in advance!
Answer: In The Netherlands the Cadastre sells this data from 75 euro. You'll get (loosely translated most relevant points from Dutch):

transaction date
transaction price
cadastral reference
address of real estate
cadastral size

I am not endorsing this product, nor have I worked with it, so I can't comment on the quality.


Using a straight through cable between similar network devices

Question: Does using a straight through cable between two similar network devices (switch to switch, router to router, PC to PC, etc) cause any damage to the switch or the router that you are connecting? I understand that you must use a crossover cable to connect two similar network devices together.
Answer: No, it wouldn't cause any damage.
But all modern Ethernet cards support automatic crossover (Auto-MDIX), which means you can (and in many cases, should) simply use a straight-through cable and the two adapters will automatically decide how to use each pair. This feature is present in practically all Gigabit Ethernet adapters as well as huge majority of 100 Mbps "Fast Ethernet" adapters.
(Gigabit Ethernet actually uses all pairs in both directions at the same time, so if your idea of a 'crossover cable' is to just swap 2 pairs, that no longer makes sense anyway.)
What can cause damage is connecting a cable from a proprietary "Passive PoE" adapter to a device that isn't expecting PoE.
Comment: Oh ok, thank you. I wasn't aware of automatic crossover. I always heard that if you are connecting like network devices, you MUST use a crossover cable.
Comment: That _was_ true in the early days with 10 Mbps twisted-pair Ethernet, and especially in "shared medium" (hub) Ethernet where many devices almost literally share the same wires. But with "point-to-point" (switched) Ethernet taking over, manufacturers started introducing auto-crossover features in high-end switches and over time it became quite widespread even in cheap hardware. Eventually Gigabit Ethernet pretty much made it mandatory by design.


Add columns to the crystal report dynamically

Question: I am using Visual Studio and Crystal Report 2010, I need my rpt file dynamically add columns, if you insert such a new company then will get a new column in the report, as I can do this.
Answer: in the end find a solution, using the option of Crystal Report Cross Tab, this allowed me to say that the values of a column in my DataSet would be my report columns and values of another column would be the rows of the report, it worked well.
Answer: The best way to achieve this is probably to dynamically generate the report itself. There are a large number of questions and answers on that subject here and it will allow you to have complete control over the whole report


writing a relative path to a text file in java

Question: I'm working on this project, and I am accessing a lot of text files that I have put in a resources folder.  I'm having a lot of trouble writing the relative path to these files.  In the command line, I got from the directory containing the java file with a main method to the text file I want with "cd ../../../../../../../resources/Information/ConfluneceTotalLists/table.txt".  I tried writing using this in the main method to get the file, but it did not work.  How can I fix this?  Also, when a java program is running, is the current directory the one containing the java file with the main method?
Answer: Use:
System.out.println(System.getProperty("user.dir")));

To find out what the directory your Java program is running from. Then use relative paths from this location.
Answer: When a java program runs, it inherits the working directory of the program that launched it. This has nothing to do with the Java source file or class file of the main class.
Answer: cd is a unix shell command, in java it is sufficient to specify the full path (relative or absolute) when you open the file. As for the current directory, it is usually the one you run the program from. In case you're using an IDE, it would usually be the main project folder.


Can't find the release for this wiring harness connector

Question: I am unable to unlock any "tabs". The video text just says use a slot screwdriver to release the locking tabs. Any help is appreciated.
Comment: We will need a lot clearer and close up picture to be able to help with this.
Comment: Are you sure you don't put a screw driver into that open slot on the female end of that connection?
Answer: Picture is a bit fuzzy to be certain, but typical for this sort of connector would be to slide a flat screwdriver up the center (between the ridges on the left part) to pry up a tab sticking down from the end of the slot on the right part. Or, to lift the end of the slot off a tab sticking UP from the left part.
Or, sometimes, the screwdriver goes in the slot, from the right. Picture is not clear enough to tell which flavor you have, either try it, or take a better/bigger/clearer picture.
They can be pretty stiff to get apart even when unlocked, depending how long they have been together and how tight everything is. You also need 3 hands sometimes, as the locking tab won't STAY out unless you can actually get the screwdriver under it, and sometimes there isn't room, without breaking the connector, so you need someone to pry and someone to pull at the same time.
Answer: This video described what Ecnerwal said to do:
https://youtu.be/d6u5B6dJRVg?t=100
At 1:40 you'll see the flat screw driver pushed alongside the male portion of the connector into the female portion of the connector.
Comment: Glad you figured it out. If this is the best answer, you can mark it as such by clicking the checkmark icon.


How to copy text with font information as well?

Question: I wonder, how to copying text with font information? Copying any text from the website below and paste to any document have the exact font style! What is the mechanism behind it?

https://coolfont.org/
Answer: ₵ØØⱠ₣Ø₦₮.ØⱤ₲
c҉o҉o҉l҉f҉o҉n҉t҉.o҉r҉g҉
.
☾⊙⊙↳Ϝ⊙♫☂.⊙☈❡
On Mac, just copy/paste it. No special trickery required.
It's presumably dependant on whether your computer recognises &/or already contains the glyphs.
btw, they're not "fonts" as such, they're unicode glyphs.
A glyph is a 'shape'… the letter A is a glyph, just the same as  is a glyph [albeit one I don't know the meaning of].
You need to already have a font in your machine that can display the glyph, but it's told to "use that font" simply by being told to print a given glyph [shape]. Your OS then does the rest, figuring out if it has a font containing that glyph to display on your screen.
To take one character from that list as an example. Your computer is told to print the glyph Unicode: U+263E It has a look around & finds that's a 'Last Quarter Moon' so it prints ☾
There was no 'font' instruction sent to it, it figured that out for itself simply from the unicode data U+263E.
Just in case anyone doesn't have the glyphs to see my opening 4 lines, here it is as a simple screen-cap of the section. Different OSes, Browsers, etc may display these slightly differently, depending on precisely which fonts are called by the OS to display them.


EntityDataSource Where?

Question: I have a entitydatasource connecting to my database and I want to filter the results using the "Where" property. As a test I have the following:
it.CustomerID is not 6

And I get the following error:
The query syntax is not valid. Near term '6', line 6, column 25.

I guess what I'm typing in is wrong, but why?
Comment: Possibly use `!=` or `<>` instead of `is not`?
Answer: Usage of the "Where" property follows the Entity SQL language. So, i think that right syntax is:
it.CustomerID != 6

or
it.CustomerID <> 6

Entity SQL Reference - "Not Equal To" Operator: http://msdn.microsoft.com/en-us/library/vstudio/bb399278(v=vs.100).aspx
Answer: Remove 'is not' to != and make sure that we can't write any function on EntityDataSource like upper(), lower().. etc but you can do it as Linq query

EntityDataSource Where?


Tool for organizing my movies on Windows

Question: Any tool for organizing my movies (mkv, mp4, srt files)
I have lot of downloaded movies on hard drive. Are there any tools (software) for arranging them clearly and in a user friendly way on my Windows PC?
Answer: Plex
You could use Plex to set up a media library on your device. The interface is as friendly as common streaming services. It also has other features such as support for music, podcasts, and mobile apps.
Setting it up isn't complex but it's a multi-step process so you might want to search and follow an installation guide such as this one
Plex interface (source Plex support page):
Answer: Similar to the already mentioned Plex there is also Kodi which has common origins as a media player.
It doesn't require a server and may be slightly easier to set up for local content. It can store metadata about your media files in its own database.

If you don't want a media player and just something to catalog files you can try
EMDB - Erics Movie Database -  A movie collection database both for files and physical media

Data Crow - A general purpose collection and catalog database manager that can among other things manage media a movie collections.

Personal Video Database - Specifically for cataloging video and movie files


What are the scalability strategies?

Question: What are the scalability strategies for an infrastructure in a cloud?, I need to prepare a scalability plan document for a cybersecurity audit
Comment: Vertical and horizontal ?
Comment: It depends on the cloud provider, and the resources you want to scale.
Could you provide a little more context information?
Comment: I just want to know if there is a standard or methodologies for scalability strategies
Answer: A scalability strategy is a plan with a course of action to follow when the usage pattern of your applications change.
What can you, will you need to and wat are you going to do when your application sees:

a (significant) decrease in the number of customers, users, employees, assets etc.

a (significant) increase in the number of customers, users, employees, assets etc. Are you prepared for a:

a slowly ramp up
exponential growth
a one-off big spike (and can you scale down again afterwards)

Are there limits beyond which you can't scale up or down?

Your options are specific to your current application design and deployment but the most typical strategies are :

do nothing - (until things break)
scale up (and less common opposite: scaling down) - change the size of your instance / server: add/remove CPU, memory and storage
scale out - change the number of servers, deploy more instances, rather than bigger instances
do something completely different (that suits your needs best)
make it somebody else's problem (offloading / outsourcing / leverage a platform or cloud solution rather than DIY)
a combination of the above
etc.

A fairly simple three tier web application: web server, application server, database server can run on the laptop of the developer or a single VPS. With more load you can get a bigger VPS (scale up) or move the database and application servers each to a dedicated VPS (scale out). Then add a load balancer and more web servers and application servers as load increases (more scale out).
Comment: There are also further options, i.e. the combination of vertical and horizontal scaling, e.g. AWS AutoScaling groups, where you can combine different instance sizes and types, and choose different priorities according to your specific needs.

What are the scalability strategies?


What do you say to bus driver in this situation?

Question: Let's say you're on the bus and you ring the bell one stop earlier and bus driver's going to stop the bus. You want to say to him or her that you rang it by accident. What is the most natural way to say it?
Thanks in advance.
Answer: Personally, I would simply say to the bus driver :

I rang the bell by accident. My mistake.

Depending on the bus driver (such as if they are angry), this may receive a shrug or sometimes an annoyed response. However, most bus drivers here in the California will simply say something then continue on as if nothing has happened.
Comment: Do you say "on accident" in California?  To this New Yorker, it sounds a little strange; we would usually say *by* accident.
Comment: Yes, that was a typo. My apologies and my answer now reflects that suggestion.
Comment: [EL&U on on accident](https://english.stackexchange.com/questions/215)
Answer: I suggest saying 'Oops! Sorry! While flapping hand back and forth, like, waving, and making pained expression on face.
As he/she is unlikely to hear you well over the sound of the engine, and will most likely not need to much prompting to understand your meaning. Sometimes, body language is easier to use than words!


mu4e Setup: cannot create messages outside the Drafts mailbox Error

Question: I am attempting to setup mu4e to read mail from a Protonmail account. I'm using offlineimap to sync my mail dirs. However, when I try to refile or move a message from my INBOX folder to any other folder that I sync with the server I get an error like this in offlineimap:
Server responded: NO ['cannot create messages outside the Drafts mailbox']

I'm surprised that there's not much that I can find on this error. Since it doesn't seem to be a common offlineimap error I have to wonder if it has something to do with the way that mu4e moves messages around?
Here's how I can reproduce the error:

Receive a new message in my inbox
Sync my local maildir with my Protonmail account successfully using offlineimap (which points at a hydroxide process)
Run mu index
Open mu4e and refile the message to my Archive folder
Attempt to sync my mailbox again using offlineimap

Here is my .offlineimaprc file:
# ~/.offlineimaprc

[general]
accounts = protonmail
pythonfile = ~/.config/offlineimap/keyring.py
metadata = ~/.cache/offlineimap

[Account protonmail]
remoterepository = protonmail-remote
localrepository = protonmail-local

[Repository protonmail-local]
type = Maildir
localfolders = ~/.mail
sync_deletes = yes

[Repository protonmail-remote]
# delete local mails that were deleted on the remote server
expunge = yes
type = IMAP
remotehost = 127.0.0.1
remoteport= 1143
remoteuser = tompurl
remotepasseval = get_password("firstname.lastname@example.com")

folderfilter = lambda foldername: foldername in ['INBOX', 'Archive', 'Sent']
ssl = no

...and here's my mu4e config:
(add-to-list 'load-path "/home/tom/.nix-profile/share/emacs/site-lisp/mu4e")
(require 'mu4e)

(setq mu4e-maildir "~/.mail"
      mu4e-attachment-dir "~/Downloads")

(setq mu4e-sent-folder   "/Sent")
(setq mu4e-drafts-folder "/Drafts")
(setq mu4e-refile-folder "/Archive")
(setq mu4e-trash-folder  "/Trash")

(setq user-mail-address "email@example.com"
      user-full-name  "Tom Purl")

;; Get mail
(setq mu4e-get-mail-command "offlineimap"
      mu4e-change-filenames-when-moving nil
      mu4e-update-interval nil)

;; Send mail
(setq message-send-mail-function     'smtpmail-send-it
      smtpmail-auth-credentials "~/.authinfo.gpg"
      smtpmail-smtp-server "127.0.0.1"
      smtpmail-smtp-service 1025)

Here's what I've tried:

Set mu4e-change-filenames-when-moving to true, which is apparently necessary for mbsync but not offlineimap.
Set sync_deletes in my .offlineimaprc file to "no".

Otherwise I'm just stumped. I'm surprised that this isn't a much more common error because my setup is pretty vanilla.
Answer: I'm having the same issue using hydroxide/offlineimap/mu4e and poking through the issues for hydroxide on github brought me to the last entry by emersion for issue 30, who says:

Kind of. When sending a message, the ProtonMail API requires the client to create a draft message then send it (that'll implicitly copy it to Sent).
To copy and add new messages in arbitrary folders we'd need to use the import API. Some WIP code for this is in https://github.com/emersion/hydroxide/blob/master/protonmail/import.go.

This may be the cause of the issue.


Can I change the default settings for SQL Server Replication

Question: Is there a way to change the default setting in SQL Server replication? Example when I create an new article I want to have the create Non-Cluster set to true all the time.
Answer: there is no default server configuration setting to achive this task. Replication is article based and that can done after creating replication.
you can add number of articles once by add dialog wizard and then enable property by "set properties of all table articles".

Make sure reinitialization of subscription is required after changing the property.
Answer: No you cannot change the default UI settings but you can create your publication and add articles via T-SQL script using sp_addarticle and set the appropriate @schema_option.
Comment: You can also try this: in the Articles dialog, open the Articles drop-down list, then select Set Properties of all table articles, and go ahead from there.


What was the Ancient Egyptian's word for eleventh or twelfth?

Question: I am researching the 12 hours of the ancient Egyptian night, and the spiritual journey through the duat. I have been able to find the ordinal numbers for the first hour through tenth hour online, tpj () wnwt (tepi wenut) "first or head/lead hour" to mḥ-mḏw () wnwt (meh medju wenut) "tenth hour". The mḥ (meh) means completing. I can not find the word for eleventh or twelfth. The numeric system goes straight from ten to twenty. There are ways to write 11th ()  and twelfth () numerically, but I can't find the word to express it, or the pronunciation. I used Bibalex.org and Wiktionary to gather this information.  Any help with finding these words would be greatly appreciated.
Comment: This kind of question exists in an unfortunate middle ground between linguistics and History which always seems to tempt people on both sites to assert that it really belongs on the other site. Personally, I think its on-topic here, but I don't know how many users we have who have the expertise to answer it.
Comment: Just a remark: no one know how they actually said anything, since ancient Egyptian came to us only in written form. The claims about how they said this or that word are based on *reconstruction* using phonetic laws and the related languages that are spoken today.
Comment: @RogerVadim you are both correct and wrong. Our understanding of hieroglyphs is based on the Rosetta stone which had three written languages, Hieroglyphic, Demotic and ancient Greek, on it. Demotic was a descendent writing system of Hieroglyphic, based on the same spoken language, but used by the common people. More modern research has used descendent spoken language to refine the knowledgeof the words. But our understanding is based on reconstruction.
Comment: You should try posting this at r/Hieroglyphics and r/AncientEgyptian where there are users, like u/zsl454 that read and translate hieroglyphics quite well.
Comment: @T.E.D. thank you for your response. You are right. I may have to duplicate this question in a different stack.
Answer: It's possible there wasn't one.
The only reason English has words for 11 and 12 that aren't compound words is likely because we have vestiges of the Babylonian base 12/60 number system in our culture still in our time units (2 12 hour periods in a day1).
The ancient Egyptians had their own numbering system, which every source I've been able to dig up insists is base ten. If that's how they thought about numbers, it seems likely that any words they had for numbers past 9 would be compound words (unless all but one of their digits were zero). Looking around the net, I found a mnemonic glyph for 7, but that's the highest I found. This site claims they didn't even have a word for "nine".

There wasn't a symbol for every number, so multiples of values were
expressed by repeating a symbol as much as it was needed to get to the
total the Ancient Egyptians required.
For example, the Egyptians didn't have a symbol for the number nine.
In this situation, if they wanted to write down that number, they
wrote the number one symbol nine times.

If they didn't even bother with a "nine", and their number system didn't even have digits higher than that, it seems highly unlikely that they had unique words for "eleven" or "twelve".
The numbers glyph combos you included for 11 and 12, well they are very difficult to see in my browser, but according to this handy-dandy Unicode interpreter I pasted them into, the first is Hieroglyphic (Gardiners) V022 V020 Z015, and the second V022 V020 Z015A. Those are in fact the Hieroglyphic glyphs for 10's digit 1, and 10's digit 2 respectively, with a "whip" on the front. See the attached table:

The columns on this image appear to be Hieroglyphic, Hieratic, and Demotic
The whip is apparently often used in the context of taking measurements (arms or cubits). So to my barely-educated eye, it looks to me a lot like what you've found there is the Hieroglyphic representation of "11 cubits" and "12 cubits".

1 - To be fair, it appears that the Egyptians also had 12 months in a year (or rather 3 seasons with 4 months each), and 12 hours in a day on their sundials. So they weren't Napoleonic about base 10. The former of course is a fairly hard limit if you want to try to use lunar cycles for "months"
Comment: They definitely did have a word for nine. psḏw (masc.) pronounced pesedju
psḏt (fem.) pronounced pesedjet. The Pesedjet was what the greeks called The Ennead, nine gods worshipped at Heliopolis: Atum, Shu, Tefnut, Nut, Geb, Osiris, Isis, Set, and Nephthys. psḏt (9) was very important, religiously, to them.
Comment: Thank you for your answer. I have been able to find adjectives for first through tenth, and listed the websites that I was able to find them on. You might be right that there is no single word like eleventh or twelfth. Tenth is mḥ-mḏw. The glyph is U+13395, and stands for mḥ and forms ordinal numbers greater than nine from cardinal numbers.
Answer: Support for "mh" prefix below ordinal prefix after number 9. From bibalex.org. hieroglyphics.

Support for twelve as mdt swj ( mudat sinnuaj)

mdw/mdt and snwj from Wikipedia hieroglyphic numerals.
mh mdt swj
mh "completing" muh
mdt ten
snwj sinnuwaj two
muh mudat sinnuaj
Comment: Your answer is the closest one to being correct. I found the answer through Reddit. The "ten" mdw stays masculine with the 'w" ending in the compound and the "two" is feminine with the sntj, so the full answer is 'wnwt mh mdw sntj nt grh'. I found the answer here: https://ia801405.us.archive.org/28/items/ALLEN2014MiddleEgyptianAnIntroductionToTheLanguageAndCultureOfHieroglyphs/ALLEN_2014_Middle_Egyptian_An_Introduction_to_the_Language_and_Culture_of_Hieroglyphs.pdf pages 126 and page 130. 130 explains that the hours of night are considered feminine. I'm going to chose your answer.
Answer: Not sure this will help you but perhaps if you can interpret the hierogliphs in the Book of the Am-Tuat by Budge you might get an idea.  From looking at his (Budge) Egyptian Hieroglyphic Dictionary I see no entries for eleven or twelve; perhaps they used 'ten and 1', 'ten and 2' syntax?


Y-axis layer shifting on my Ender 3

Question: My 3D prints shift along the Y-axis on my Ender 3 3D printer. I don't know what to do. My Y-axis belt is tight, So I don't think that is the problem...
Answer: Check for wobble in the X gantry and Y gantry also your Y-axis belt should vibrate like a snare when you pull it and let go. Same goes for your X-axis belt. If that doesn't work see if going back to Cura 4.6 helps (it did for me) and lower your acceleration in Cura (advanced settings movement).
Comment: By definition, what are the gantrys?
Comment: I'm sorry I mean the hotend plate and the heated bed plate should not wobble so the concentric nuts should be tight but not to tight there are various video's on this. Too tight and the v-wheels will wear down and have to be replaced after a shorter period than normal. Next to that make sure all the screws that hold the frame together are tight if they aren't, it could cause resonance or unnecessary vibration.
Answer: Another issue might be layer height and extrusion i ran into minor layershifting today but after tuning my Z-offset i now have perfectly straight layers, try calibrating z-steps and e-steps there are plenty off videos on that. It does look like your layer height is pretty high, and lowering the speed (and or accelaration) with which you print can drastically improve your print quality at the cost of time. Please let me know if this worked.
Answer: You have a significant hardware problem.
It might be that your belt is slipping, or your motor is skipping, or your rollers need to be adjusted, cleaned, or replaced.
Quality is a bit potato, so it's hard to say exactly what's going on, but it looks like you are also printing way too hot. That may be compensating for wet filament or poor levelling/zeroing, either of which could lead to the nozzle dragging, possibly leading to skipping. I would expect at least the towers and maybe the print to break free if that were the case though, so I suspect it's a separate issue.

Y-axis layer shifting on my Ender 3


Workflow hosted inside WorkflowApplication, aborting on persistence

Question: I have been trying to resolve a somewhat intermittent issue working with a long running state machine running inside a WorkflowApplication. I can step through the workflow and this behaves as expected, transitioning through the states as expected, then a bookmark is reached which then persists the workflow. However, the workflow is then aborted and I get the following message:
The execution of an InstancePersistenceCommand was interrupted because the instance owner registration for owner ID 'ba26f4e9-f38b-4179-aa09-31ab9f8af337' has become invalid. This error indicates that the in-memory copy of all instances locked by this owner have become stale and should be discarded, along with the InstanceHandles. Typically, this error is best handled by restarting the host.
The Sql Instance store is initialised as follows:
<code> SqlStore = new SqlWorkflowInstanceStore(ConfigurationManager.ConnectionStrings["SqlInstanceStore"].ConnectionString);
 SqlStore.HostLockRenewalPeriod = TimeSpan.FromSeconds(15);
 SqlStore.InstanceCompletionAction = InstanceCompletionAction.DeleteAll;
 handle = SqlStore.CreateInstanceHandle();
 InstanceView sqlView = SqlStore.Execute(handle, new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(30));
 SqlStore.DefaultInstanceOwner = sqlView.InstanceOwner;
 WorkflowHost = new WorkflowApplication(WorkflowDefinition, inputs);
 WorkflowHost.Run();
</code>
To create the bookmark:
<code>context.CreateBookmark(bkmk, OnResume);
</code>
The exception doesn't really provide enough information to help troubleshooting this issue. Any help would be appreciated.
Answer: I managed to resolve this by using an overload of the instance store where I am now passing a new GUID. Need to understand this a bit more.
<code> handle = SqlStore.CreateInstanceHandle(Guid.NewGuid());
</code>


Was the Catholic title "vicar of Christ" conceived as an "assistant" or an "agent"?

Question: I was under the impression that a "vicar" was a "replacement" or "one acting in the stead of" another (an "agent") but it appears the Roman title of "vicar" seems to be more of an assistant. What is the intended significance of the title as applied to Catholic Popes? Was their title part of Roman government or just a religious title?
Comment: Have you checked the Wikipedia article on "Vicar of Christ", which is the title of the popes? If so, what remains unclear?
Comment: Are you asking if a pope has any governing authority of his own or if he only is only a sort of ambassador?
Comment: In the pastoral metaphor... If I went to the field and saw the flock would I see just "Peter" (vicarus Christus) or would I see a master shepherd and an underling (the Pope)? In which sense is he "vicarus Christus"?
Answer: Was the Catholic title "vicar of Christ" conceived as an "assistant" or an "agent"?
The short answer is: The original theological connotations of the title had a pastoral sense to it, evoking the words of Christ to the Apostle Peter, regarded by the first Catholic Pope in John 21:16-17, "Feed my lambs... Feed my sheep", so Christ made Peter his vicar.
The Catholic Encyclopedia explains the title of the Vicar of Christ as follows:

A title of the pope implying his supreme and universal primacy, both of honour and of jurisdiction, over the Church of Christ. It is founded on the words of the Divine Shepherd to St. Peter: "Feed my lambs. . . . Feed my sheep" (John 21:16-17), by which He constituted the Prince of the Apostles guardian of His entire flock in His own place, thus making him His Vicar and fulfilling the promise made in Matthew 16:18-19.
In the course of the ages other vicarial designations have been used for the pope, as Vicar of St. Peter and even Vicar of the Apostolic See (Pope Gelasius, I, Ep. vi), but the title Vicar of Christ is more expressive of his supreme headship of the Church on earth, which he bears in virtue of the commission of Christ and with vicarial power derived from Him. Thus, Innocent III appeals for his power to remove bishops to the fact that he is Vicar of Christ (cap. "Inter corporalia", 2, "De trans. ep."). He also declares that Christ has given such power only to His Vicar Peter and his successors (cap. "Quanto", 3, ibid.), and states that it is the Roman Pontiff who is "the successor of Peter and the Vicar of Jesus Christ" (cap. "Licet", 4, ibid.). The title Vicar of God used for the pope by Nicholas III (c. "Fundamenta ejus", 17, "De elect.", in 6) is employed as an equivalent for Vicar of Christ.

Wikipedia adds the follows:

Vicar of Christ (from Latin Vicarius Christi) is a term used in different ways and with different theological connotations throughout history. The original notion of a vicar is as an "earthly representative of Christ", but it's also used in the sense of "person acting as parish priest in place of a real person." The title is now used in Catholicism to refer to the bishops and more specifically to the Bishop of Rome (the pope).
The use of the term Vicar of Christ appears in the 5th century, in a synod of bishops to refer to Pope Gelasius I. The theological connotations of the title got a pastoral sense, evoking the words of Christ to the Apostle Peter, regarded by the first Catholic Pope in John 21:16-17, "Feed my lambs... Feed my sheep", so Christ made Peter his vicar and pastor with the responsibility to feed his flock (i.e. the Church) in his own place.
Comment: So using the pastoral metaphor then would you say the "Papa" is the "acting shepherd" or the "assistant shepherd"?
Comment: "Acting" might be more appropriate in this case.


How to connect 12v inverter to 24v two batteries system?

Question: I have two 545 solar panels and 50 amps mppt charge controller feeding two 12v batteries and I have a 12v 1000 watt inverter, how do I connect the inverter to the batteries? Should I connect the inverter to one of the batteries? What do you suggest?
Comment: @lShaver yes but when using the batteries in parallel, it will only give me 650watts and the rest energy isn't harvested
Comment: Looks like your charger will autodetect 12V or 24V, so you could connect the batteries in parallel and the the charger would work, then you could also connect the inverter directly to both batteries in parallel.
Comment: What's the battery capacity, and how much power do you need?
Answer: Buy a 24V inverter. There is really no other way if you want to continue using a 24 volt system. Connecting the 12V inverter to only one battery would imbalance that string.
I have a 24V to 12V DC-DC converter that gives 10 amperes, 120 watts. It cost 30 euros.
Your 1000 watt inverter due to inefficiency when giving 1000 watts takes probably more than 1100 watts in. So, nine of these 10 amperes 120 watts DC-DC converters wouldn't be enough, you would need ten. The cost: 300 euros.
The cheapest 1000 watt 24V inverter that I found costs 157 euros (modified square wave) or 180 euros (pure sine wave).
There's no comparison: converting that 24 volts into 12 volts and then converting to AC costs way more than directly converting to AC. Besides, every power conversion stage decreases efficiency.


Counting combinations with two dice

Question: You are given two identical standard dice as shown below. You can stack them one on top of the other, or place them touching side by side. In all cases the face of one die must fully touch the face of the other die (square to square). Also the face of at least one die must lie flat on the table. How many distinct ways are there to place them on a table? Two combinations are considered distinct if they visually look different, ignoring the viewer's position relative to the dice and their location on the table. Note that faces 2, 3 and 6 have multiple unique rotations. For example, two adjacent 3s can look like "//" or "\/". Similarly two adjacent 6s can look like "==", "=||" or "|| ||".
Comment: I think the asymmetric patterns on certain numbers are a bit of a red herring, as every rotation about a particular face can be inferred from the other sides of the dice. I don't think there's anything special about the asymmetric faces, since the dice as a whole are asymmetric. Two 1's side-by-side still have as many unique rotations as two 3's, which can be determined by the other sides, even if the 1 faces themselves don't look any different.
Comment: Does that include rotation of the dice, or location on the table? If so, there are a vast multitude of positions for even one die including rotation, orientation, and location on the table.
Comment: @TylerSelden good question. I tried to answer it in the puzzle. And yes I think there are MANY combinations, but it must be a finite number and I wonder what it is. I don't know the exact answer myself, but I have some bounds.
Answer: Let's start with cases where both dice are on the table.

There are 36 face-to-face combinations, but only 21 are unique since the dice are indistinguishable. For each of those 21 combinations with both dice are on the table, you can rotate each of the dice into one of 4 positions (turning it so that different faces of the die touch the table while the same face remains touching the other die), so there are 16 rotations for each face-to-face combination. There are 336 ways to put two dice on the table touching each other that are unique.

We also need the cases where the dice are stacked.

We now get to use all 36 face-to-face combinations since the dice now are distinguishable (one is on the table, one is not), but we now only have 4 rotations of each one, since the dice can only rotate relative to each other but not the table. There are 144 ways to stack the two dice that are unique.

In total, I think there are

480

ways to have the two dice touching face-to-face that look different.
Comment: @DmitryKamenetsky It's just the $\binom62=15$ ways of choosing two distinct numbers plus the $6$ ways of choosing two identical numbers.
Comment: Can you show or describe those 21 unique combinations?
Comment: @DmitryKamenetsky As another way of thinking about it, visualize the 6x6 grid of all possible two-dice combinations. Everything below the diagonal is a "repeat" (e.g. 1-6 vs. 6-1). Counting down the rows, there are 6+5+4+3+2+1 unique combinations.
Answer: A different approach:

 I think the best approach is to think of the two dice as a single die. Then, enumerate all the possible merged dice and the number of unique ways to put the merged die on a table.

 There are $24$ ways to orient a cube, so by putting one die on the left and the other on the right, there are $24^2$ possible merged dice. However, this has a fair amount of duplicate counting.

 Specifically, there are two sources of duplication. The first is that the dice are indistinguishable, so the count must be divided by two. Secondly, this method of generating merged dice also generates four orientations of each merged die (imagine rolling the merged die about its long axis).

 Therefore the actual number of possible merged dice is $\frac{24^2}{8}=72$.

 The number of ways to orient a rectangular prism is the same as a cube - $24$. However, the question specifies that the viewing angle is ignored, which divides the orientations by four. Another way to think of this is that there are $6$ sides that can face up, and spinning the die without changing the top face generates four orientations per side.

 Altogether, this approach generates $72*6$ possibilities, or $432$.

Counting combinations with two dice


If there are no poles in the magnetic field around the wire, why is the compass pointer deflected?

Question: If in a straight wire, current flows, and magnetic field is created there are no poles to it. Then why does a compass brought near it gets deflected if there are no poles?
if the direction of the magnetic field  affects the pointing of the poles then please explain how it affects ?
Answer: It is neither necessary nor useful to look for poles in the magnetic field of the wire, since its field lines are circles around the wire, so they don't have a dipolar structure.
The needle of the compass, however, is a magnetic dipole. As such, it gets a potentiel energy when it's inside a magnetic field:
$$V=-\vec{\mu}.\vec{B}$$
with $\vec{\mu}$ is the dipole moment of the needle and $\vec{B}$ the magnetic field coming from the wire.
This expression is smallest (stable equilibrium) or highest (unstable equilibrium) when both vectors are aligned, which means that the field can make the needle turn.
If necessary, you can also see it with the torque applied by the field to the needle:
$$\vec{\Gamma}=\vec{\mu}\times\vec{B}$$
Again, this shows that a torque is applied until the needle is aligned with the field.
Answer: The magnetic field around conductor having a current is having relativistic poles.
Meaning; if you select a point in the field it will be north pole to the point before it and at the same time it is a south pole to another point after it.


How is change in enthalpy in a cyclic process zero when work done is not equal to zero and the change in internal energy is equal to zero

Question: We know that change in internal energy is equal to heat supplied - work done in a cyclic process. The change in internal energy is zero and work done is non-zero. This implies that the heat given is non zero then how can the enthalpy change be 0?
Comment: Enthalpy is a state variable, so it's net change during a cycle must be zero. I suspect you are mixing this up with the fact that during an isobaric process, change in enthalpy is equal to heat, but that is *only* for an isobaric process.
Comment: I have updated my answer. Maybe it will help.
Answer: Internal  energy, pressure and volume are all state properties. A cycle returns all properties to their original values. So the change in each of these is zero. Enthalpy is defined as
$$H=U+PV$$
Therefore it too is a state property so its change is also zero.
Work and heat are energy transfers and are not properties. They depend on the processes carried out during the cycle. since $\Delta U=0$ then $W=Q$. Meaning the net work done in a cycle  equals the net heat added.

This implies that the heat given is non zero then how can the enthalpy
change be 0?

Enthalpy is defined as above. It only equals the heat transferred for a  constant pressure process, as follows.
$$\Delta H=\Delta U+\Delta (PV)$$
$$\Delta H=Q-W+P\Delta V+V\Delta P$$
For a constant pressure process, $W=P\Delta V$ and $V\Delta P=0$, and therefore
$$\Delta H=Q=mC_{p}\Delta T$$
And $\Delta H$ is positive if heat is added to the system resulting in a temperature increase. But a process does not constitute a cycle. For a cycle the temperature must return to its original value. This require us to reverse the constant pressure process to transfer the same amount of heat out of the system making $\Delta H=0$ for the cycle.
Hope this helps


Samsung Galaxy S2: Autorotation only in stand-by mode

Question: I have the problem with the auto-rotation since the GingerBread 2.3.6 and now with the ICS 4.0.3, now the rotation works only if I put in "stand by" the screen, then I rotate the phone and it rotates...the blue ball in calibration setting does not move...I tried the hard reset, the rooting (in gingerbread), the reflashing (GingerBread and ICS), nothing to do...There is only a strange fact the App GyroDroid when I had gingerbread the "linear acceleration test" did not work, now (ICS) it works...but it seems that my accelerometer works only in that test :-( What can it be? Thanks
Answer: Please be aware that home screens DO NOT rotate.
As well as this, developers can request their apps are only to be used in portrait mode - they therefore won't rotate automatically.
If you really want to rotate your screen, you can download the Set Orientation app, which will allow you to force your screen to rotate, based on a default orientation setting, or your sensor.
Comment: Oh, some home screens do -- mine does (GOLauncher EX), and AFAIK so does ADW. Some others might rotate as well. But the *Set Orientation* app might prove helpful; I cannot tell from my experience, but the app description sounds promising.


Have I really put on 14 lbs after only 4 Crossfit sessions?

Question: I'm a skinny, unfit 24-year-old male weighing 143.3 pounds (65 kg). I started Crossfit two weeks ago (along with a healthy, fruit and protein-rich diet) on the basis of 2 workouts per week.
Today, I had my 4th workout (2nd week) and went to buy a scale. When I came home, I weighed myself naked before having anything to eat to see if I had put on any weight yet. Turns out I now weigh 157.8 pounds (71.6 kg).
Is this normal? Is my scale wrong? Is this too much in too little time to be true?
Comment: How sure are you that the first weighing was accurate?
Comment: Eh, if it wasn't done under the same conditions (i.e. when you first get up, clothing, etc), I wouldn't be too startled. Digital scales have error rates,  but are generally consistent to themselves. Also, weight can fluctuate quite a few pounds in a day, and you may also be retaining water due to new training. Just keep weighing under the same conditions each day going forward, and use this as the baseline.
Comment: Well, I'm only sure to the extent that I trust all the former scales I have been using for the past year to weigh myself. Now, I'm just worried I was wrong and haven't kept track properly.
Comment: So, if someone asks me how much I weigh, do I keep saying 65kg, or can I now consider I weigh 71kg?
Comment: I'd go with the most current. But, I'd also advise against chasing a mythical weight. Use the scale to track trends, but gauge progress by the mirror. I really don't care about my weight, other than to stay within a range and have the strength to do the sports I do.
Comment: My scale changes up and down 5kg just from where it stands on the tiles. These things are just useless.
Answer: Pretty much been addressed in the comments, but for a full answer:
Short answer, no. You most likely did not gain that much weight in a short period of time.
Things that can effect scale measurements without any changes to body composition:

The scales themselves.

Most home scales tend to be fairly inaccurate.
You can step off one scale, move to another and it will have a
completely different reading.
You mentioned you bought a new scale. It is in all likelihood that it will be off a few lbs./kgs. compared to your old one.
However, the inaccuracy of a single scale is consistent. So if you use the same scale moving forward, you can use it to track changes over time. Just average the numbers over the week and you should see a gradual increase.

The placement of the scale.

Scales generally have four feet that should be placed firmly on the floor.
You need to make sure none of the feet are in any cracks of tiles.
Make sure there is nothing under the scale that could be holding up the plate of the scale.
Don't ever put a scale on a soft surface like carpet or rugs. It will negate absolutely everything.

Feet placement on the scale and how you stand on it.

The value of the scale can vary depending on where you stand on it.
Try to avoid leaning on any direction.

Although, it may be possible that you gained some weight in that time.  Dramatic increases in body weight is common when people just start working out.

Increased food intake.

There's just physically more stuff in your body so you're going to have a slight increase in body weight.

Water retention.

Increased carbohydrates will cause the body to hold more water.
Supplements such as creatine will cause water retention.
Increased salt intake either purposefully or as a side effect of increased eating will cause a lot of water retention.
Working out can cause a slight increase in water retention.

Though it wouldn't be that dramatic. Most of the weight difference sounds like it is from scale mishaps.


Can't connect to my Amazon EC2 instance either via SSH or via browser

Question: So I just launched my ec2 instance : t2.micro with Ubuntu 14.04 OS. The security group has settings enabled for letting in inbound traffic from SSH ( port 22 ) and HTTP ( port 80 ). But when I try to reach the server from the browser via its public dns : ec2-52-74-136-74.ap-southeast-1.compute.amazonaws.com it says connection refused. And if I try to ssh it says : Permission denied (publickey).
Any ideas?
Answer: That machine is up and responding on 22. Have you added your SSH key into your agent?
<code>ssh-add -l
</code>
should show it listed. Don't forget to ssh as ubuntu@
Comment: So stupid of me. Yes the pem file was not in the agents list. Thankyou.
Comment: So I used to connect with my earlier ec2 instance but I had configured the ssh key in the ~/.ssh/config file instead of adding it as an agent via `ssh-add`. But that config was for my old machine's IP, and therefore wasn't working for my new ec2 credentials.


How to unmount a VHD in Windows 7. There is no unmount option

Question: I mounted a VHD file in Windows 7 using the Disk Manager.  Once mounted, there is no option to Unmount it.  The only thing close to such an option that I can find is if I click the icon in the taskbar notification area that I use to remove USB devices... there's an option to eject the virtual hard disk.  However, when I click that, it says that it's in use and cannot be ejected.  Even though... it's not in use, I never even browsed the drive.  The disk manager is closed... and the only open files handles to the drive (according to disk performance in task manager) is SYSTEM.  Ejecting devices cleanly has been a problem since Windows XP, and it sickens me to see it persist into windows 7.
Comment: "Ejecting devices cleanly has been a problem since Windows XP, and it sickens me to see it persist into windows 7." - The problems in XP have nothing to do with what you're encountering here and do not exist in Win7 (by default; there are options you can disable to revert to the old/broken implementation).
Answer: After you attach the vhd, you can remove it by going into disk management and right clicking the left side box of the vhd drive.  The left side box is the area that says the Disk name, disk type and size.  If you right click white area of the drive, the delete command is grayed out.  Let me know if that helps.
Comment: The option is there.  I wonder why it's only there, and not in the right click menus anywhere else... such as in the top pane where the drives are listed, and the VHD is colored blue unlike the others.  The interface could really use some work, and they should put the option anywhere you right click the drive.
Answer: In diskmgmt.msc, towards the bottom, just to the left of the drive layout image, where it lists "Disk #", "Basic", etc.... right-click the VHD and select "Detach VHD".
Answer: In Disk Manager, left click on the VHD on the bottom half of the screen (where it visualizes disk space). The option to unmount is there.
Comment: Way to provide a worse answer than the already accepted answer to a two year old question.  Mad skillz.
Answer: To detach vhd in windows 7
in disk manager right click on the Disk # of the VHD (just to the left of the drive layout image  - which is in the bottom half of the screen)
from the option choose offline.. after that right click on the same place and u will get the DETACH option..
first u need to make the VHD OFFLINE and then u will get the DETACH OPTION in windows 7
Comment: Dude, you answered an "already answered" 2 year old question!
Answer: 1) Create a txt file (Example : detachTestVhd.Txt), put the lines below in it and save the file.
Select vdisk file="c:\vhdFiles\test.vhd"
detach vdisk
EXIT
2) Create a BAT file (Example : detachTestVHD.Bat), put the lines below in it and save the file to the same directory as detachTestVhd.Txt.
diskpart /s "detachTestVhd.Txt"
Run the batch file. This way, you'll be able to detach any vhd file with one click. Make sure you've replaced the VHD file name in the txt file.


UIScrollView in cocos2d

Question: I have added the UIScrollView into the COCOS2D game engine using
[[[CCDirector sharedDirector] openGLView] addSubview: tempScrollView];.
On that scroll view I have added a image view and a buttons. My problem is that the scroll view is scrolling vertically only. I want the UIScrollView to scroll horizontally only. Also I want the images to be rotate as well. I have tried the view transform property but its not working in my case.
Does any body know how to do this in cocos2d?
Comment: Hi all. I done this using cocoa xib.
Answer: Horizontaly only ? try to change contentsize. e.g.:
<code>ccp(5000,winsize.height)
</code>

UIScrollView in cocos2d


Why Wikipedia article doesn't show up on first page of Google search?

Question: I've created an article on polish Wikipedia for the person "Urszula Jędrzejczyk" and when I search for term Urszula Jędrzejczyk in google.pl the article show up on second page. Why is that, and is it possilbe to show up on first place somehow? Does links to that article from other sites matter?
Comment: This question appears to be off-topic because it is not **[about a website you control](http://webmasters.stackexchange.com/help/on-topic)**.
Comment: @JohnConde is there a SE site where I can ask this kind of questions, I was looking at area51, it have SEO site but it was mark as duplicate of this one.
Answer: As it is new content, it will still take some time for it to go up. Also, you cannot guarantee it's placement on the first place, as there might be some more relevant content (at least according to google).
Comment: I was wondering because, most of the time wikipedia is on the first place or on first page.
Comment: Yes because Wikipedia is trusted source on Google. But on the same second the article appears on Wikipedia. It takes time. it also depends a lot on the quality of content in other pages. Let's say if you google some company name (e.g. microsoft) it will give you their page, not wikipedia.


XDG_RUNTIME_DIR on eclipse-cdt

Question: I was installed SDL2 libs + eclipse, eclipse-cdt + g++ to start developing some games on Eclipse IDE.
I'm on Debian. I installed it using the apt.
The project builds normally, but does not run. The following output comes from Console window
error: XDG_RUNTIME_DIR not set in the environment.

However, the generated binarie on debug folder runs normally if I execute it out of eclipse.
What is the problem?
Answer: try this;
open eclipse settings and try setting up environment variable  "XDG_RUNTIME_DIR"  as "/run/user/1000" and apply.
open drop down menu near to "Run button" -->den open  "Run configuration" --> open  "Environment" -->> "new" >> variable as "XDG_RUNTIME_DIR" and value as "/run/user/1000"
its worked for me perfectly.
Answer: I can't find the solution for this error. Exporting XDG_RUNTIME_DIR before running eclipse apparently doesn't work.
I installed another version of Eclipse and it worked well (?)
Consider using more recent versions of eclipse-cdt than the repository's one

XDG_RUNTIME_DIR on eclipse-cdt


I want to Auto turn on/off the product, but don't know how. Can you help me?

Question: I want to Auto turn on/off the product, but don't know how. Can you help me?
Comment: In which case you need to on/off product?
Answer: You can enable/disable the product with the qty.
So if the qty is below 0, the Magento system will hide the product in the frontend.
You have to update the settings in Admin
Admin->Stores->Configuration->Catalog->Inventory.
And you have to also set the Manage Stock to Yes in the individual product.


What is the difference between the numbering of the same gate?

Question: What is the difference and purpose of having two taxilines for the same gate where one would be numbered gate 60 and the other 60A.

(Shown above: KSLC Gate A19 with A19A besides it)
Answer: This is to allow efficient use of apron space when accommodating aircraft of different sizes. Rather than making every stand large enough for the largest possible aircraft that might use it (which would take up a lot of space), it is common to have overlapping stands where a large aircraft will essentially take up two or more stands, while smaller aircraft can park side by side.
One example: Two smaller aircraft may be parked side by side, one on stand 1L and one on 1R, blocking stand 1C. In case a larger aircraft needs to park here, it will park in the middle, on stand 1C, blocking 1L and 1R. (Or just ignore the lines altogether and park in the middle of everything, as shown on the image ...)

Similar situation here. If you look closely, you can see the central yellow line has stopping positions for larger aircraft (MD11, B747, A300, ...) while the adjacent lines have stopping positions for relatively smaller aircraft (B737, ALL PROPS, ...)

It could also be that different types of aircraft needs to park in different ways. Here, the solid yellow line is used when parking helicopters, while the dotted yellow line is for parking props.
Comment: The aircraft in your first image isn't ignoring the lines. It is parking on the white line, which is a self-positioning parking position. It allows exiting the stand under own power without needing pushback.
Comment: @Bianfable Actually the white line you see is the old markings, which have been painted over because they repositioned the stands (used to be yellow). They still used that position for a transition periode until the new markings were finished :) And you are right that the old stand allowed leaving the stand by own power


Does k way merge sort defies the lower bound for sorting?

Question: Support there is a Array A with size n and let n be a multiple of k. If we divide the A into sub arrays each with elements k and sort them individually, it would require k*log(k) time. Total initial time =(n/k)klog(k)=nlog(k). And then merging the sorted sub arrays, let say using a heap of size k will cost atmost nlog(k) time. So total time = 2*nlog(k)+c which is O(nlog(k)). But we know that lower bound for sorting is n*log(n). What is wrong in my thinking?
Comment: $n=ck$, if $c$ is constant the asymptotic rates are the same.
Comment: I think you are mistaken, that merging could be done that fast. You have $\frac{n}{k}$ sorted arrays of size $k$ , so I do not see a way to merge them faster than $O(n log \frac{n}{k})$
Answer: The problem comes from merging the arrays.
What I think you're thinking when using a heap is to keep track of the smallest elements from each of the $k$-element sorted arrays, removing the smallest element $s$ them from the heap, putting $s$ in the output, and adding a new element onto the heap from the array which contained $s$.
The problem with this is that there are $n/k$ arrays, so your heap will actually contain $n/k$ elements.
As an extreme case, let $k=1$.  Then your algorithm would consist of sorting each 1-element array (which takes no time) and then merging them using heapsort.


Taking shirt off celebration

Question: Is there some logic in issuance of yellow card to a player who takes his shirt off to celebrate a goal or is it just a rule?
Comment: Just some nonsensical rule dreamed up by the FIFA officials to prove that they're indeed trying to do their job.
Answer: Short answer, its just a rule:
http://www.fifa.com/development/news/y=2004/m=6/news=clarification-law-yellow-card-for-removal-jersey-92958.html
Long answer, I personally think the player involved can be said to waste time and is delaying the restart of the game. Time wasting can be one of the logical reasons. One can also argue that the player is trying to taunt the opponents which is against the spirit of the game. Also its not common in any other sport.
Answer: This is actually a financial issue.  When a player scores a goal the first thing that happens is the camera goes straight to him in close up.  This gives everyone watching on TV a prolonged view of the shirt sponsor.  If the player takes his shirt off the sponsor misses out on valuable exposure time.  The yellow card is to make sure the sponsor gets as much exposure as possible making the shirt a valuable medium to spend your companies money on.
The rule of course then trickles down to the lowest levels of the game to ensure the game we watch on TV is as close as possible to the game we play at amateur level.
Comment: Do you have a reference for the primary reason here being financial?
Comment: This is probably one reason why it was introduced, but as far as I remember Blatter decided he didn't like it and as a result it was introduced. You'll need a reference for this answer, as at the moment it's primarily opinion-based.
Answer: FIFA Law 12 for Unsporting Behavior - A player is cautioned if he removes his jersey over his head or covers his head with his jersey.
This law was already on the books but not really enforced until 2004 when FIFA decided to make it a mandatory yellow card.  It is offensive in some countries to bare your chest and it is considered disrespectful.  There is also a famous incident where Diego Forlan was unable to get his shirt back on before the kickoff.  FIFA determined that it was unnecessary and unsporting.  In addition, you can't wear masks or do anything else that covers your face.

Taking shirt off celebration


XAJAX - Load all request at same time

Question: I Want XAJAX to laod all request at the same time. Now it loads one request, then the next request loads if the one before is finished. But i want load both at the same time. How can i do this? Defaultmode is allready set on asynchronus.
Answer: You can try to register a function in synchronous mode like this:
<code>$xajax->register(XAJAX_FUNCTION, 'xajaxFunction', array('mode'=>'synchronous'));
</code>

XAJAX - Load all request at same time