Anyone knows the correct way of parenting the mesh to the rig?

Question: So, I got myself a robot and rigged it a bit, but when I parent the mesh to the rig with "automatic weights" it goes all laggy, so I think that automatic weights isn't the correct way of parenting this kind of robot, but what is?
Answer: Your mesh is set to flat shaded and then smoothed by subdivision modifier that cranks the model to 4 million faces and that is way it is getting laggy. This is not a proper way to make smooth models.
Select the mesh, find "Shading" in the left panel and click "Smooth". This provides smoothing that makes the subsurface modifier unnecessary. If you need some edges sharp, add an edge split modifier. You can further teak which edges are sharp and which smooth if you untick "edge angle" and go into edit mode, select the sharp edges and CTRL-E -> mark sharp and only those edges will be sharp.
The mesh seems to deform well with the amount of faces without subsurface modifier although the resolution still seems little high at certain places depending on the intended use.
Comment: Do you perhaps have a video on the edge splitting? I don't understand it
Answer: first use the great advice of kheetor to reduce amount of vertices in the mesh to avoid lags, and then retouch a bit a rig itself. if you want automatic weights to work for you you need to length the main bone toward the top of the hat. or if you want the body and the hat to bent then just add some extra bones on its spine. the hat would have a single bone. and of course fingers - they are not covered with bones. and it seems that it's better for its both legs being attached to the wheel to be affected by a single bone (bone chain) instead of two. otherwise you'll have a headache trying to animate the legs ;-)
if nothing works, try to use the "Weight paint mode" (just select a bone and paint its weight manually on the mesh). it's the ultimate solution =)


Send link to Careers application message

Question: Can we provide a way of sharing a link to view a message in the Careers site?  Primarily if we want to share a copy of the cover letter to peers so they can have an example.
Comment: As an employer or as a developer?
Comment: As the job applicant.
Answer: We have no way for an applicant to share a message sent to an employer with other developers; we haven't really had any concrete reasons for allowing this. Sharing of a cover letter doesn't seem like a good reason; a cover letter should be something that's personal to an individual not something that's shared around and re-used...
On the other hand, if you really want to share your cover letter, can't you just copy/paste it to the intended recipient?
Comment: Laziness. Plus it's too big to share in a chat it is easier to just sent them a link.


What is the shortest possible game with 18 queens?

Question: This question demonstrates a game in which all 16 pawns promote for a total of 18 queens on the board. It takes 80 moves...

What is the shortest sequence of moves that achieves this goal?
Answer: Here is a solution in 96 plies. Found by Friedrich Burchard & Friedrich Hariu, it was published in the German magazine feenschach issue #33 in 1976 on page 22. It can be viewed and downloaded as a PDF (the challenge was issued in #31.
<code>[Title "Friedrich Burchard & Friedrich Hariuc, feenschach #33 1976, Page 22"]
[FEN ""]
[startply "96"]

1. e4 f5 2. e5 Nf6 3. exf6 e5 4. g4 e4 5. Ne2 e3 6. Ng3 e2 7. h4 f4 8. h5 fxg3 9. h6 g5 10. Rh4 gxh4 11. g5 g2 12. g6 Bg7 13. hxg7 g1=Q 14. f4 h3 15. f5 h2 16. b4 a5 17. b5 a4 18. b6 a3 19. Bb2 Ra7 20. bxa7 axb2 21. a4 b5 22. a5 b4 23. a6 b3 24. c4 h1=Q 25. c5 h5 26. c6 Bb7 27. cxb7 c5 28. d4 c4 29. d5 Nc6 30. dxc6 c3 31. c7 c2 32. c8=Q c1=Q 33. b8=Q Qc7 34. a8=Q d5 35. a7 d4 36. Nc3 dxc3 37. Qa6 c2 38. Qa8b7 c1=Q 39. a8=Q Qd5 40. gxh8=Q+ Kd7 41. g7 bxa1=Q 42. g8=Q b2 43. f7 b1=Q 44. f8=Q h4 45. f6 h3 46. f7 h2 47. Qfa3 h1=Q 48. f8=Q exf1=Q+
</code>
Credit goes to d'alar'cop for his PSE answer.
Answer:
Edit: best known is 96 half-moves by Friedrich Burchard & Friedrich Hariuc (1976). (link to answer)

My best score 104 half-moves:
<code>[FEN ""]

1.a4 b5 2.a5 b4 3.a6 Bb7 4.axb7 h5 5.bxa8=Q h4 6.g4 h3 7.Bg2 hxg2 8.Ra3 bxa3 9.b4 gxh1=Q 10.e4 a2 11.b5 a1=Q 12.b6 a5 13.b7 d5 14.c4 Nd7 15.c5 Nb6 16.cxb6 Rh5 17.gxh5 g5 18.h6 g4 19.h7 g3 20.h4 a4 21.h5 a3 22.h8=Q a2 23.h6 axb1=Q 24.h7 g2 25.Bb2 d4 26.Bc3 dxc3 27.d4 c2 28.b8=Q c1=Q 29.b7 e5 30.Ke2 c5 31.Nf3 c4 32.Qba7 Bc5 33.dxc5 c3 34.Nd4 exd4 35.f4 Kd7 36.e5 Ne7 37.f5 Ng6 38.fxg6 f5 39.g7 f4 40.g8=Q Qca3 41.c6+ Ke7 42.e6 Kd6 43.c7 c2 44.Qhg7 c1=Q 45.Qc2 d3+ 46.Kf3 d2+ 47.Ke4 d1=Q 48.c8=Q f3 49.e7 f2 50.e8=Q f1=Q 51.h8=Q Qc7 52.b8=Q g1=Q+
</code>
Conclusion: it is impossible to make it in 80 half moves as it is required to bring the king to safety and in order to make some pawns swap files, you need to sacrifice minor pieces (at least some of them must not remain in their original squares).
I think it can be improved, but not that much.
Also, yes, the type of promotion affects makes the output differ because queens cover much space and you need to protect the king.
Answer: How about this strategy:
<code>[FEN ""]

1. a4 b5 2. Na3 b4 3. h4 bxa3 4. b4 a5 5. b5 Na6 6. bxa6 Rb8 7. a7 Rb5 8. axb5 c5 9. Rb1 c4 10. Rb3 cxb3 11. Nh3 g5 12. c4 g4 13. c5 gxh3 14. g4 h5 15. g5 Nh6  16. gxh6 Rg8 17. h7 Rg5 18. hxg5 f5 19. Rg1 h2 20. Rg4 fxg4 21. g6 h4 22. c6 Bb7 23. cxb7 g3 24. b6 b2 25. a8=Q a2 26. b8=Q a4 27. b7 a3 28. Qf4 b1=Q 29. b8=Q a1=Q 30. Qbb4 a2 31. Qfc4 e5 32. f4 e4 33. Bg2 h3 34. Bf3 exf3 35. f5 g2 36. d4 Qab2 37. Qdc2 a1=Q 38. Kd2 f2 39. d5 h1=Q 40. d6 f1=Q 41. f6 Be7 42. dxe7 d5 43. g7 Kd7 44. g8=Q d4 45. e4 d3 46. e5 g1=Q 47. f7 Qc6 48. h8=Q h2 49. f8=Q h1=Q 50. e6+ Kc7 51. e8=Q Qbg7 52. Qbb2 Q1g6 53. Qff6 Qhh7 54. Kc3 d2 55. Qgf8 dxc1=Q 56. e7 Q8d7 57. Qef7 Q6h6 58. e8=Q
</code>
Answer: As it appears, 48.0 moves may indeed be optimal. Here are more 48.0 moves proofs, sourced from rec.games.chess. The PGNs were sourced elsewhere.
<code>[Title "Andreas Rein, Die Welt 1989"]
[FEN ""]
[startply "96"]

1. h4 g5 2. h5 g4 3. Rh2 g3 4. h6 gxh2 5. g4 e5 6. g5 Ne7 7. g6 a5 8. g7 a4 9. g8=Q a3 10. Qg2 Bg7 11. f4 c5 12. f5 c4 13. f6 c3 14. fxe7 f5 15. b4 Kf7 16. hxg7 h5 17. b5 h4 18. b6 h3 19. Bb2 f4 20. e4 f3 21. d4 d5 22. Nd2 Bf5 23. Kf2 cxd2 24. Kg3 Kg6 25. c4 Kg5 26. exf5 e4 27. c5 axb2 28. Bc4 dxc4 29. a4 f2 30. Qdf3 Ra7 31. bxa7 b5 32. a5 b4 33. a6 b3 34. c6 c3 35. c7 c2 36. d5 e3 37. d6 e2 38. d7 hxg1=Q 39. gxh8=Q bxa1=Q 40. axb8=Q h2 41. f6 b2 42. f7 h1=Q 43. a7 b1=Q 44. e8=Q Qdf6 45. c8=Q c1=Q 46. d8=Q d1=Q 47. a8=Q e1=Q 48. f8=Q f1=Q+
</code>

<code>[TItle "Theodor Burian, Rochade Europa 11/1997"]
[FEN ""]
[startply "96"]

1. b4 a5 2. b5 a4 3. b6 a3 4. Bb2 axb2 5. a4 Ra7 6. bxa7 b5 7. h4 c5 8. h5 g5 9. h6 Bg7 10. hxg7 h5 11. g4 h4 12. a5 Rh5 13. gxh5 b4 14. f4 e5 15. f5 d5 16. f6 Ne7 17. fxe7 f5 18. h6 f4 19. e4 Bf5 20. exf5 Kf7 21. f6 f3 22. h7 g4 23. a6 g3 24. h8=Q g2 25. Kf2 h3 26. Kg3 c4 27. d4 c3 28. Nd2 cxd2 29. c4 b3 30. c5 e4 31. Bc4 dxc4 32. d5 h2 33. d6 f2 34. Qdh5+ Ke6 35. a8=Q gxh1=Q 36. e8=Q+ Qe7 37. a7 e3 38. d7 hxg1=Q+ 39. Qg2 c3 40. a8=Q f1=Q 41. c6 e2 42. c7 bxa1=Q 43. cxb8=Q b2 44. d8=Q c2 45. f7 b1=Q 46. g8=Q c1=Q 47. Qgh7 d1=Q 48. f8=Q e1=Q+
</code>
In a comment on the answer to the PSE version of this question, linked in the other answer, user @Dennis Jaheruddin came up with a provable lower bound for this challenge.

"It takes 80 moves to move pawns forward. Obviously, they cannot capture the king and queen so there are only 6 promotion fields left on each side. Basically, this means it takes at least 4 half moves to clear additional promotion fields. Then there are 8 pawn rows that block each other, each conflict will need to be solved by capturing at least 1 piece that is not in its starting position, hence we need another 8 half moves. Now we already have a lower bound of 92 and there are still some issues to solve. As such 96 is probably optimal."

Proving that more four half moves are necessary would be a momumentable and solve this challenge. However, it seems no one knows where to start. Neither do I. As such, we are stuck at 92/96 proven plies. Hopefully, that day comes sooner rather than later.


How can I make anonymous calls for everyone but contact list?

Question: I want to show my caller id to everyone in my contact list but be anonymous for new numbers... do you know a method/app?
Answer: One possibility would be to prefix all numbers in your contact list by *31# (which turns the callerID on for that call only), while having callerID disabled in your settings. Depending on whether the phone app is intelligent enough to detect this as to not belonging to the number, incoming calls should still be matched fine (you could of course first try it out with one number to check).
Second possibility is the other way around: Having callerID globally enabled, and prefix manually entered numbers by #31#.
Being unsure which method to use, take a third option and a look at Prefixer, which should be able to do the one or the other for you -- depending on how you configure that app.
Answer: Go to Settings → Call Settings → Additional settings → Caller ID.
Comment: In that place you can just set it "for all" – but not "for all BUT". Or what should OP do once followed your advice to "go there"?


Experiment Prediction: How much light can pass through an opening?

Question: The flow of current through a wire is limited to the size of the wire. Water through a pipe is limited by the size of the pipe. What about light? Is it limited in a similar way?
Let's say I drill a 1,000nm hole in a piece of 1/4 inch steel. I then shine a 5mw red laser through the hole. Does the hole restrict how much light can pass through the hole at any given moment? Let's say I increase the light through the hole by adding more lasers. Will the hole slowly start to restrict light's passage. Is there a limit to how much light can "fit" through the hole at the same time?
Example Experiment: I shine the laser through the hole. I then measure the light with a photo diode and let's say I get 1 volt. Now I increase the amount of light through the hole by adding another laser of the same size. Would I now see 2 volts? What if do this again? Would I see 3 volts? Would each additional laser produce the same gain as the one before it?  I understand the lasers would all have to be angled toward the hole by the same amount to actually perform this test. I also understand may need to perfect the measuring device, but I think you get the point.
Answer: Light consists of photons which are boson. Bosons like to exists in the same state. So if you can manage to let one photon pass through a specific hole, then you can pass an arbitrary number of identical photons through that same hole. In other words, the size of the hole does not put any limit on the number of photons (or the amount of light) that can pass through that hole.
Answer: There are always boundary conditions that only become relevant when you scale the process. You want to see an effect with a small hole, otherwise you would simply make your hole so large that no effect occurs.
If the hole is small enough so that diffraction effects occur behind it, the metal around the hole will melt if the light intensity is high enough.


Magento Order Email Notification not sent to admin sometimes

Question: I used magento application. Here sometimes order email sent to admin sometimes and sometimes not sending. I want to solve this issue.
Answer: Since Magento 1.9.1.x, Magento transactional emails (orders, invoices...) are being sent by queue.
And this queue process is handled by cronjob. You have to make sure that your cronjob is up and running.
For your information: http://support.xtento.com/wiki/Setting_up_the_Magento_cronjob
Hope it helps.
Comment: @nithya Please consider to mark it as an answer if it solved your problem. Avoid to use comment like 'thanks' because it against Stackoverflow rules :)


Russian-to-English questions

Question: Most questions so far are about how to translate something from English into Russian. Are "reverse" questions (that is from-Russian-to-English questions) ok for this site?
Comment: Add the outcome of this question to the answer [here](http://meta.russian.stackexchange.com/q/110/71).
Answer: Explanations of Russian words and idioms are welcome. "What does [obscure Russian idiom] mean?" can be asked, both in Russian and English.
But we should not welcome questions on how to express something in English. The question "How to express [something] in one word in Russian?" is fine, but "How to express [something] in one word in English?" is not, regardless of whether "[something]" is Russian or English.

What does быть сытым по горло mean? (Good fit for our site)
Which single English word best conveys the feeling of бабушка? (Bad fit for our site)
Comment: @kotekzot: How? Native speakers are at least as welcome to discuss the Russian language as everyone else, in either Russian or English. But they're not supposed to discuss English, or biology for that matter.
Comment: An English speaker can ask what an idiom means and get an explanation in English, which is half a translation. Why should the same luxury not be afforded to Russian speakers?
Comment: @kotekzot: Maybe my answer was unclear. I meant that: An English/Russian speaker can ask what a _Russian_ idiom means and get an explanation in English/Russian. That is, as long as the question is about the meaning of Russian words/idioms, it's fine, regardless of whether she asked in Russian or English. What we should not accept is questions looking for specific English translations, e.g. single-word translations of words when their meaning is already clear, or direct translation of color names when an image or explanation would suffice.
Comment: Nice edit! [word-choice] questions are on-topic at English.SE, so there is still a place for all every question.
Comment: support the multilingual idiom mapping proposal that is supposed to be a right place for asking questions like this: http://area51.stackexchange.com/proposals/41712/multilingual-idiom-mapping
Answer: Yes, it wouldn't be natural to allow questions about translation in only one direction. The community is new and didn't produce enough questions to serve as the example what can be asked and what not (this is the task of private beta), but bi-directional transaction questions are the part of German Language and Usage, for example.
Answer: I completely disagree, if we allow questions like this what stops us from welcoming questions like 'Russian-to-Turkish'?
Comment: The fact that the site is in *English* and about *Russian* and has no association in any way to Turkish. Then again some questions involving Turkish would surely be on topic, such as loanwords between the two languages.
Comment: hippietrail, by your logic if this SE was in German, the German would have more favor over any other language, the same true for Turkish if you think about it, now, what happens when the SE engine is developed to the point when the choice of the site language is solely on the user? there is no favor language anymore and your point becomes useless.
Comment: I don't think Russian-to-Turkish would work, because this is not a site about Turkish, but Turkish-to-Russian, why not? Always provided that the OP explains in an exhaustive and well-researched way, of course.
Answer: To address problems like this I suggest that you consider voting to support the proposal on multi-lingual idiom mapping QnN that I just created: http://area51.stackexchange.com/proposals/41712/multilingual-idiom-mapping
Please vote if you think questions like this aren't welcome here.

Russian-to-English questions


What is the effect called whereby people don't offer help when in a crowd because they assume someone else will help?

Question: If you are in a crowd and you hear someone call for help you assume that someone else will deal with it. If you are alone and you hear someone call for help you go and help them. What is that effect called?
Comment: Meh, someone else will answer this question.
Comment: OK sure @Christiaan, you've cajoled me into action by singling me out. :-)
Comment: Isn't this just Apathy on the part of the person doing nothing?
Comment: Coincidentally, I know that some talked about this in a TEDx-talk: https://www.youtube.com/watch?v=gHXc-HlL0t4 It is not a scientific explanation - the talk is rather one of the motivational kind - but it may be a nice start.
Comment: @ArnonWeinberg  :))  - would be interesting to hear your thoughts on this, though. I sense a kind of boredom (high mehness factor :-) in your comment, but for the common ground troops it's actually an interesting question :) +1
Answer: It's called the bystander effect:

The bystander effect, or bystander apathy, is a social psychological
  phenomenon that refers to cases in which individuals do not offer any
  means of help to a victim when other people are present. The
  probability of help is inversely related to the number of bystanders.
  In other words, the greater the number of bystanders, the less likely
  it is that any one of them will help.

It was highlighted by the Murder of Kitty Genovese, which is part of the negative image of New Yorkers as apathetic, and is therefore sometimes also called "Genovese syndrome".
The bystander effect is a sub-type of Diffusion of responsibility.
Comment: Thanks. I wanted the correct term for a discussion at the amatuer orchestra I'm in. there are way more first and second violinists than any other section in the orchestra (e.g. there's one harpist, two bassoonists, and nine second violinists). But last week none of the violinists showed up! I'm guessing that's a 'diffusion of responsibility' issue.


Use of Serializable other than Writing& Reading object to/from File

Question: In Which Cases it is a good coding practice to use implements serializable other than Writing & Reading object to/from file.In a project i went through code. A class using implements serializable even if in that class/project no any Writing/Reading objects to/from file?
Comment: Just be aware that implementing `Serializable` is not as straightforward as it might seem.  It breaks encapsulation, represents an extralinguistic mechanism for object creation, and can cause security vulnerabilities.  It causes implementation details that would otherwise be hidden to be exported as part of the class's API.  For certain classes, great care must be used in order to develop a good serialized form.
Comment: What _is_ the purpose of the serializable class that you mention?
Comment: @jaco0646
The class about which i am talking is a pogo class.and its implements serializable. and in a different class we are setting some values in the pogo class field using different service.
Comment: Is RMI used in your project?
Comment: @yadav..Yes we are calling some other service
Answer: If the object leaves the JVM it was created in, the class should implement Serializable.
Serialization is a method by which an object can be represented as a sequence of bytes that includes the object's data as well as information about the object's type and the types of data stored in the object.
After a serialized object has been written into a file, it can be read from the file and deserialized that is, the type information and bytes that represent the object and its data can be used to recreate the object in memory.
This is the main purpose of de-serialization. To get the object information, object type, variable type information from a written(loosely speaking) representation of an object. And hence serialization is required in the first place, to make this possible.
So, whenever, your object has a possibility of leaving the JVM, the program is being executed in, you should make the class, implement Serializable.
Reading/Writing objects into files (Memory), or passing an object over internet or any other type of connection. Whenever the object, leaves the JVM it was created in, it should implement Serializable, so that it can be serialized and deserialized for recognition once it enters back into another/same JVM.
Many good reads at :

1: Why Java needs Serializable interface?
2: What is the purpose of Serialization in Java?
Comment: But in my case there is no any possibility that object is going to leave jvm.......:(
Comment: Then there is no need to implement the Serializable interface. :)
I hope I could explain why it is needed.
Answer: Benefits of serialization:

To persist data for future use.
To send data to a remote computer using client/server Java technologies like RMI , socket programming etc.
To flatten an object into array of bytes in memory.
To send objects between the servers in a cluster.
To exchange data between applets and servlets.
To store user session in Web applications
To activate/passivate enterprise java beans.

You can refer to this article for more details.
Answer: If you ever expect your object to be used as data in a RMI setting, they should be serializable, as RMI either needs objects Serializable (if they are to be serialized and sent to the remote side) or to be a UnicastRemoteObject if you need a remote reference.
Answer: In earlier versions of java (before java 5) marker interfaces were good way to declare meta data but currently we having annotation which are more powerful to declare meta data for classes.
Annotation provides the very flexible and dynamic capability and we can provide the configuration for annotation meta deta that either we want to send that information in byte code or at run time.
Here If you are not willing to read & write object then there is one purpose left of serialization is, declare metadata for class and if you are goint to declare meta data for class then personally I suggest you don't use serialization just go for annotation.
Annotation is better choice than marker interface and JUnit is a perfect example of using Annotation e.g. @Test for specifying a Test Class. Same can also be achieved by using Test marker interface.
There is one more example which indicate that Annotations are better choice @ThreadSafe looks lot better than implementing ThraedSafe marker interface.
Answer: There are other cases in which you want to send an object by value instead of by reference:

Sending objects over the network.

Can't really send objects by reference here.

Multithreading, particularly in Android

Android uses Serializable/Parcelable to send information between Activities. It has something to do with memory mapping and multithreading. I don't really understand this though.
Answer: Along with Martin C's answer I want to add  that - if you use Serializable then you can easily load your Object graph to memory. For example you have a Student class which have a Deportment. So if you serialize your Student then the Department also be saved. Moreover it also allow you -
1. to rename variables in a serialized class while maintaining backwards-compatibility.
2. to access data from deleted fields in a new version (in other words, change the internal representation of your data while maintaining backwards-compatibility).
Answer: Some frameworks/environments might depend upon data objects being serializable. For example in J2EE, the HttpSession attributes must be serializable in order to benefit from Session Persistence. Also RMI and other dark ages artifacts use serialization.
Therefore, though you might not immediately need your data objects to be serializable, it might make sense to declare Serializable just in case (It is almost free, unless you need to go through the pain of declaring readObject/writeObject methods)


Plugging in/Unplugging dynamic mics with the channel on

Question: Is it true that plugging in/unplugging dynamic mics when the channel is turned on can lead to damage to the mic? If it is true, shouldn't it be true of damage to any equipment connected using XLR connectors?
Answer: Certainly, some old capacitor microphones could be damaged by phantom power, so you were always expected to wait 30 seconds after turning off phantom power before unplugging the microphone, and never to plug in microphones while phantom power was on!
Not so sure it is an issue these days - of more concern is that when you unplug, you may get a very loud signal at the amps or desk - which could potentially damage them!
Comment: I understand what you are saying, but I was asking about dynamic microphones, which don't use phantom power. I had read somewhere that if the mixer channel is on, plugging/unplugging a *dynamic* mic could damage the mic. But this doesn't make sense to me so I asked here.


Can I share source code/software from Microchip through my website?

Question: I've done some projects including bootloader for PIC microcontrollers. But all these are done by modifying official microchip codes. Also want to share official drivers and softwares. I want to share this open. Is this possible? Is there any legal problems by doing this?
Answer: IANAL.  Best to contact Microchip.  That said, in the file "Microchip Application Solutions Users Agreement.pdf", which accompanies one of the many Microchip source libraries I have on my system, section 1(b)(i)(1) (Software License Grant) states:
Licensee may use, modify, copy, and distribute the Software identified in the subheading of this Section 1(b)(i) when such Software is embedded in a Microchip Product that is either integrated into Licensee Product or Third Party Product pursuant to Section 1(d) below.
The part that says you can distribute would, it seems to me, allow you to publish the software on your site, i.e. as one means of distributing it.
However, the tricky party here is the phrase "when such Software is embedded in a Microchip Product that is either integrated into Licensee Product".  To me, this means any such source code you want to put on your site, you need to be actually using in a product.
Since you are probably not producing any real products (maybe you are), then I would think just using the source in one of your own projects would count.  But you can't just through up all of their source code on your site willy nilly whether you are using it yourself or not.
So check the individual license file that comes with each of the libraries you want to publish source from, and check if they include verbiage such as that above.
Comment: That document is only applicable on the 'accompanying software' - so with what software is this document shipped?
Comment: @CamilStaps yes, I indicated it came with one of several Microchip libraries I have, I just chose one as an example.  This one is "Microchip Solutions v2010-10-19" which is fairly large -- 400 MB and over 6000 files.
Comment: What about the code libraries? I didn't see many Microchip sample codes in the open web as much as Atmel.
Comment: @Basheer I'm not sure quite what your question is, but you will need to look at the license file for each library to see what your rights are.
Answer: What licence is the code released under? Look on their website or in the code headers or top lines. It's usually included there, then search for that licence and see what the terms of use are. My guess is that if you never had to log in or pay to get access to that code you can probably share it as long as you attribute it to Microchip.
Answer: Microchip.com, section About Us » Legal Information » Copyright Usage Guidelines:

If you would like to reproduce, translate, and/or reprint Microchip copyrighted material for commercial purposes you must request Microchip's written permission by following the 3-step process described below. Microchip's written permission is not required for personal use or educational (non-profit) use of copyrighted material.

So it seems like you'll have to contact them, but if your usage is strictly personal or educational, you don't need to (but it would still be good to do so, to be sure). See the article itself for the full text.
Of course, some code examples (like the small ones in datasheets on how to set pins, etc.) are too small to be copyrighted.


Why does the amount of adipose tissue contribute the most to the total body water amount in humans?

Question: I don't quite get this concept. An obese individual will have a greater fat content in their body, and thus will have 45% water in their bodies (for example), versus a slim person that will have 75% of body water and a much lower fat level.
Is this because fat is made up of about 10% water, so the more fat you have in your body, the more water it "takes up" from the entire body water supply of your body?
Comment: Are you sure of your numbers? Can you name a source?
Comment: I am getting these numbers from my professor's notes, Dr. Melissa A. Vollrath, and she got them from the textbook Vander's Human Physiology: The Mechanisms of Body Function (14th edition)
Answer: Fat mass does not take up water.  It brings with it less water percentage than lean mass and so a person with more fat mass will have relatively less % body water.  Additional mass as fat contributed relatively less water than additional mass as lean tissue.
Consider a 50 kg individual who is extremely lean.  From your numbers, if this individual is 75% water (will will assume lean tissue is 75% water) that is 50 * .75 = 37.5kg water and 12.5kg nonwater body mass.
Now this 50 kg individual puts on 50 kg of fat.  The fat is 10% water (from your numbers) so an additional 10 kg of water.  This individual its now 47.5kg water and 52.5 nonwater; since this obese person weighs 100 kg now she has 47.5% water, similar to your example.
Suppose instead your 50kg person grew up into a 100 kg performance athlete.  Still no fat.  She is still 75% water because the lean tissue has 75% water.
It has to do with the % water each type of body mass brings with it.  This is with no special knowledge; using just the numbers in your example which is what your professor wants you to use.
Comment: Considering 100 kg fat or lean person - fat seems to substitute water? Water instead of fat?
Comment: @PeterBernhard - it is % water by weight of biological tissue.  Biological tissue lean or fat has some % water.  The % water is greater in lean tissue than in fat tissue.
Comment: no chatting: interesting you mention "athlete", as "obese" just put on more absolute kg weight than the lean ones (non athletics).
Answer: All living cells have water content. Fat tissue is made up of living cells, but fat cells have much more triglyceride and lipid content than water content. So fat tissue still has some water content even though it is mostly made of lipids.
An obese person should have more total body water because of this, and also he/she will usually have more muscle mass in the lower body as well.
The obese person will have a smaller percentage of water relative to their mass than a lean or muscular person would.


Viewing a git log

Question: I can run git log --pretty='format:%ci::%an <%ae>::%s::%H!!!' --since=1/1/1900 on a cloned repository. Is it possible to get the same output without having to clone the repository first?
Answer: I think it is not possible. You can do a git ls-remote to list the files. But there is no equivalent for seeing the logs.
If the git project has a web interface, you might probably be able to browse it through the web interface.
A similar thread is here.
Answer: You should be able to perform that operation on any git repo.
No, you don't have to clone the repo first, but you have to have one.
Either by init or forking.
I think your asking if you can view logs remotely.
However, this currently isn't supported.
Git remote log and changes request

Viewing a git log


How to use same drive to access files from Windows and Ubuntu

Question: Can I use the same internal hard drive to save my files from Ubuntu and Windows? I dual boot Ubuntu and Windows 10, and the data drive I wish to share is D: in Windows.
Comment: There is no such thing as "Drive D" in Ubuntu. But you can use one disk or a partition in both OS.
Answer: Yes, so long as you understand the differences.
Linux (and therefore Ubuntu) don't use drive letters. Instead, they name drives, and name partitions and volumes of storage made from drives.
When you run sudo gparted -l in a Ubuntu terminal window, you will see each drive and how it is subdivided for storage for Windows, Linux, and other OS.
Ubuntu can access files and folders on a Windows NTFS drive like D: and it will appear under its Linux name in the Ubuntu file manager, GNOME Files AKA Nautilus. Just use it when you need it.
It doesn't work the other way; you can't automagically access files on an Ubuntu ext4 formatted drive from Windows, or other Linux formatted drives using other types of drive partitions. There are drivers which can be added to Windows to enable that, but every time I have tried them, the Ubuntu drive gets corrupted and I lose date.


How Can A .dll File Read a .txt File?

Question: I would like my Browser Helper Object which is simply a .dll, to be able to read a text file. I have tried using a pointer to a FILE, as well as ifstream in("file name goes here"). Before implementing these two methods of reading files into the BHO, I tested them individually, and made sure each example dealt with similar data types and locations. Both of them worked without a problem, yet testing the BHO reveals that the file cant even be opened. I have searched google for an alternative method, and after exhausting all other options, I'm hoping that someone would be able to provide me with some guidance/resource. Anything is appreciated; I will keep trying to find a solution and will post what I can in the event that someone else may have the same problem.
Comment: FYI, this question is tagged with `C` language, but talks about the `C++ ifstream`.
Comment: I know! files don't read each other. Was that the answer? Is this like those "what did the spoon say to the knife" jokes?
Answer: Are you providing an absolute path to the file?  If you're just using a relative path you may not be in the same working directory while running IE.
Comment: thank you, I realized I had to use the absolute path name to the file.
Answer: I think you might be a victim of the IE protected mode.
http://www.codeproject.com/KB/vista-security/PMSurvivalGuide.aspx
Under protected mode your addin might not have access to registry and file system as you might like.

How Can A .dll File Read a .txt File?


Which breeds of pigs are suitable for bacons?

Question: I have always wondered what breeds of pig are used in the preparation of bacon (esp in USA).
Answer: There is no hog that is a required breed for bacon, and you can make bacon out of just about any hog. Bacon is just a cured, smoked pork belly. They used to use Heritage breed hogs, like the Tamworth hog, to make bacon, but today they use a mixed breed hog to cover a more broad demand of different pig products. It's likely that you'll still find bacon made out of this breed of hog, but a larger brand is likely to use mixed breed which create a good balance of meat qualities in the loin, belly, ribs, and hind quarter.
Many claim that Tamworth and similar breeds produce better bacon, but I personally cannot vouch. I have never compared the 2, and I'm generally uncertain what breed of hog I'm eating most of the time.
For more reading you can see here.


Installing GUI on Ubuntu server 15.04 without internet connection

Question: I'm trying to figure out how I can install the GUI on my Ubuntu server without an actual internet connection to do the downloading of the software to the server. I have a portable hotspot for internet connections used with my laptop(which also runs ubuntu). I'm just running into a brick wall in trying to figure this out. Any suggestions will be greatly appreciated
Comment: You can use Keryx. See this post: http://askubuntu.com/questions/974/how-can-i-install-software-or-packages-without-internet-offline. Or you can use an alternate CD as described [here](http://ubuntuforums.org/showthread.php?t=972693)
Comment: @Ron keryx is old project and stopped, Also there is no alternate CD for ubuntu 15.04.
Comment: @Paul Wesselkamper: You can not share Internet between server and laptop?
Comment: A possibly-helpful Ubuntu help page: https://help.ubuntu.com/community/AptGet/Offline/Repository/
Answer: Install the Synaptic package manager in your laptop which also run same Ubuntu version.
Open Synaptic and look for the packages you want to install.
Mark the packages you want to install for installation: Right-click --- Mark to install.
Once marked, go to:  File --- Generate package download script.
You chose a path where you want to save the script. In that same route downloaded packages are stored.
Close Synaptic. Go to the path you chose in the previous step and run the script for downloading double click.
It will take a while until you download all the packages and dependencies.
Copy the files to the computer without Internet connection and install them.
sudo dpkg -i *.deb

Answer: You have many choices to do that:

create an offline repository
Simple trick but needs to make another installion of same version of your server.

So what to do?

create a VM or physical machine as you like contain the same version of your Ubuntu server

This VM/physical must have Internet connection and must be virgin same as the offline version

Clean the archives(not really needed but just to be sure)
sudo apt-get clean

Now Install the GUI on it
sudo apt-get install ubuntu-desktop

Now after the installation complete, go to the directory /var/cache/apt/archives

Copy the *.deb from this directory and burn it to CD or just use some USB or any other storage device

Now copy all *.deb to the offline machine

Now install all these packages using the command:
sudo dpkg -i /path-to-debs/*.deb

Note: you may face some errors in output, just run the same command again and everything will go smoothly


How to say "suit yourself"?

Question: How to translate "suit yourself"? I'm curious as to how it translates to Latin. In certain contexts, it can come off as rude or sarcastic, even though, it's used in formal conversations and is not intended to be offensive.
Comment: Would it work to say "to each his own" work in place of "suit yourself" for your purposes?  if so, I would use "suum cuique" .  Or I might quote the Latin maxim "de gustibus non est disputandum".  "There's no arguing about tastes." Neither would be rude to say.
Answer: I would translate this with a common Plautine injunction:

Age ut lubet!

or simply:

Ut lubet! / Ut libet!

Examples
Here are some examples in context:

Immo age, út lubet, bíbe, es, disperde rem. (Plautus, Casina 247)
Go ahead, suit yourself! Drink, eat, waste your money!

Or:

Med. ...ibi meo arbitratu potero curare hominem.
  Sen. Age ut lubet. (Plautus, Menaechmi 949)
Med.: In my opinion I can cure the man there.
  Sen: Suit yourself.

More polite, with sis (= si vis):

Ant. Eamus, mea germana.
  Ad. Age sis, ut lubet. (Plautus, Poenulus 329)
Ant. Let's go, sister.
  Ad.: Sure, as you wish!

This lubet is colloquial and less common in later works, though Cicero does use ut lubet once. A more standard way of saying this would be ut libet. For example:

nam mihi in mentem non venerat. 'non credo' inquis. ut libet; sed plane gaudeo, quoniam τὸ νεμεσᾶν interest   τοῦ φθονεῖν. (Cicero, Epistulae ad Atticum 5.19.1)
For it had not even occurred to me. "I don't believe you," you say. Suit yourself. But I am quite glad, for resentment is not the same as ill-will.

Ut lubet can easily be inserted with another verb in the imperative, e.g. perge ut lubet. This can be translation: go right ahead, ironically or not.
Comment: In classical, post-Plautine Latin, would this be _Age ut libet?_
Comment: @BenKovitz Added: Cicero uses *ut lubet* once and *ut libet* various times: I included an example of the latter case.
Answer: I'm not familiar with an actual idiom for this purpose, but let me propose a phrase the Romans would likely find natural.
Here is a phrase with similar idea:

neque me Iuppiter neque di omnes id prohibebunt, si volent,
  quin sic faciam ut constitui.
  (Plautus, Amphitruo, 1051–1052)

In addition, the phrase sic facito is ubiquitous in Cato's De agri cultura.
These two can be adapted to say "suit yourself":

Sic facito, ut constituisti!
  Do as you have decided!
  Suit yourself!

This is certainly not the only way to express the idea.
This just happens to be a structure for which I find support in extant literature.
The future imperative is not necessary; the present imperative fac is also fine, but for some reason I like it better with the future one.
The phrase Sic facito, ut constituisti! is polite.
But like anything else, it can be used sarcastically or in a negative tone.
I would consider the tone to be fairly close to that of the English idiom.

How to say "suit yourself"?


Dependency tree with "seem"

Question: Could someone please tell me what's the dep. tree of "John seemed to fall asleep"? The problem is I don't know if "John" depends on "seem" or "fall".
Comment: _Fall_. It's raised to subject position; _seem_ takes a sentential complement with either A-Raising or Extraposition obligatory. Of course, that's not a proper dependency description.
Comment: @johnlawlerinexile Thanks. So the fact that "John" agrees with "seem" (as in "John seems...") is irrelevant for dependencies, right?
Comment: That depends on what you mean by "dependencies". There are a lot of ways to approach it. I was just saying how I'd describe it, which is not in a dependency tree.
Answer: Many modern DGs would give the sentence the following structure in surface syntax:

While seem is indeed a raising verb, that does not change the fact that the subject is generally positioned as an immediate dependent of the finite verb in many modern DGs. The position of John immediately in front of the seemed and the fact that John agrees with seemed (compare: *They seems...) are strong indicators that John is an immediate dependent of seemed.
If one chooses a DG approach that acknowledges both deep and surface syntax, then one could view John as a dependent of fall below the surface (i.e. in deep syntax).
Answer: In surface syntax it's "John - seemed". In deep syntax it depends on the theory. "John" would depend on "fall" but sometimes there are two heads and one would say that the subject of "seem" is athematic, i.e., it has no thematic role. XDG does it this way, for example.

Dependency tree with "seem"


Value of $n$ required for harmonic series to cross a certain value.

Question: what is the value of $n$ so that the partial sum $S_n$ of the harmonic series ie $\sum _1 ^n \frac{1}{x} \geq y$ where $y$ is a natural number.
I started with $2,3$ and got answers for $n$ as $4,11$. But for $5$ its $83$. Seeing this I have a strong belief that there's a formula which can be used to calculate $n$ quickly. Also if there is formula can it be used for irrational ,rational numbers. Note i tried integration but it obviously doesn't work for small $y$.
Answer: From this answer, to compute the smallest $n$ such that $H_n$ exceeds an integer $N$,
$$log\left(n+\frac{1}{2}\right)+\gamma>N$$
$$log\left(n+\frac{1}{2}\right)>N-\gamma$$
$$n+\frac{1}{2}>e^{N-\gamma}$$
$$n>e^{N-\gamma}-\frac{1}{2}$$
so
$$n=\lceil e^{N-\gamma}-\frac{1}{2}\rceil$$
Answer: The $n$-th harmonic number $H_n$ behaves like $\log(n)+\gamma$, where $\gamma$ is the Euler-Mascheroni constant.
It follows that $H_n=N$ has a solution close to $n=\exp\left(N-\gamma\right)$.
Answer: It can be shown by induction that:
$$\sum_{k=1}^{2^n} \frac1{k} > \frac{n}{2}$$
Hence
$$\sum_{k=1}^{4^n}\frac1{k} > n$$
This isn't optimal but nice.


Can we render post chat survey form to user(Agent) once chat window is closed instead of Customer?

Question: I have a requirement on salesforce live agent that instead of showing post chat survey form to customer, we need to display the form to agent and agent will complete the survey. Please guide me whether it is feasible or not.
Answer: We can use onChatEnded() method to display an feedback edit page to the agent in event handler.


About Tomcat as httpServer

Question: I'd like to know if it is possible to configure (and if yes: how) Tomcat acting like http web server without using Apache isapi.
Answer: Tomcat is a servlet container which also serves web applications on http/https protocol. So in it's default avatar, any web app deployed on Tomcat runs on the defined port (default 8080
) and thus Tomcat is acting as a web server.
You dont need Apache to front it for static content. Just drop your webapp into TOMCAT_HOME/webapps and start the Tomcat server.
Access it on http://localhost:8080/<webapp>
Comment: Just another question: I heard about a security risk in doing this. Is it true?
Comment: Not really, the latest Tomcats are quite stable and secure. Read this http://www.tomcatexpert.com/blog/2010/03/24/myth-or-truth-one-should-always-use-apache-httpd-front-apache-tomcat-improve-perform article too

About Tomcat as httpServer


Usage of "shall we?"

Question: What does it mean and where would I use it?
Answer: If you are in a situation where a group is gathering to do something (go out for lunch, start a meeting, etc.), "Shall we?" would mean something like "Are we now all ready and is it now time to proceed with what we are here for?".  (Or more simply, "Should we now proceed?", but that explains "shall" in terms of "should".)
Comment: If someone says "shall we?", the usual response in my area of New England is actually "we shall" or just "let's".
Comment: and it doesn't suppose to have a reply, right?
Answer: Shall is used in questions indicating offers or suggestions.

Shall I send you the book?

Shall we go?
Comment: According to OED.
Comment: According to NOAD.
Comment: According to both:)
Answer: Shall we is a polite expression for Let's go. A Spanish equivalent would be Vámanos.
Comment: I would add the adjective, deferential, as well. And, indeed, the interrogative (in contradiction of "Parts of Speech"), has been transformed by the asking (by the pretense) into an imperative.

Usage of "shall we?"


Difference between Mosfet and Voltage Regulator?

Question: I'm new to electronics and was wondering what was the difference between a Mosfet and a voltage regulator?
Comment: Short answer would be: Almost everything :)
Answer: MOSFETs and voltage regulators often come in similar-looking packages and usually have 3 pins each, but their functions are different.
A voltage regulator takes in a high voltage, like 12 V, and puts out a lower voltage, like 5 V. The canonical example of a voltage regulator is the LM7805. They tend to be fairly inefficient (some of the power is lost as heat).
A MOSFET is a semiconductor switch. It varies the resistance between two pins in response to a voltage on a third pin. Inside the MOSFET, the voltage on the third pin (the gate) pulls electrons into a narrow path between the other two pins (the source and drain), allowing electricity to flow. Here's a decent diagram.
Comment: @Fake Name: You're right that with a low-dropout regulator, you can get higher efficiency performance. But I think that when you're answering a question about the difference between a MOSFET and voltage regulator, it's reasonable to say that regulators tend to be less efficient compared to switchers, without going into the details. I'll change "half" to "some."
Comment: Their inefficiency is directly related to the voltage drop across the regulator. Therefore, the efficiency is **entirely** a function of application, and it not something you can make a blanket statement about. I regularly use linear regulators to regulate a noisy ~6v down to 5v.  That's a efficiency of ~80%, which is as good as a switcher generally gets.
Answer: In very basic terms, a voltage regulator is a device for building a power supply, whereas a mosfet is something you use to build an amplifier. A voltage regulator is basically an integrated circuit that has several transistors within it, while a mosfet is exactly a single transistor.
Comment: If you view the input power as a signal floating on a DC bias, then a voltage regulator is acting like a filter that attenuates (as opposed to amplifying) fluctuations in the power signal. A poor man's voltage regulator is a single zener diode: http://en.wikipedia.org/wiki/Zener_diode#Uses
Comment: @eryksun: indeed, though I was just attempting to split the difference w/o going into all the possibilities. I didn't think describing a regulator as an amplifier with zero bandwidth would help a beginner (note tag) to get oriented.
Answer: A MOSFET is a single transistor that will be able to provide a regulated voltage if used inside of a whole voltage regulator circuit (or IC). To build a (linear) voltage regulator, one needs a pass element (regulated "valve", e.g. MOSFET or biolar transistor), a voltage reference and a circuit that compares the desired, regulated output voltage to the reference voltage and adjusts the pass element such that the output will remain in regulation.
Thus, a MOSFET may act as one part inside of a voltage regulator.


How can I get jetpacks in GTA 5

Question: I saw people saying there are jetpacks in GTA 5, but how can you get them? Do they even exist in the game?
Answer: There's no jetpack in GTA V.
I tried following the instructions in the youtube video, even though it was already proved to be fake by CVG (a channel on YouTube).  This person called Jimbothy did some video editing and just trolled to a lot of people.  HoldTheKnife is another video uploader who did the same kind of thing.  Both methods do not work.  Just follow the comments under the videos.  A lot of angry people.  I hope this helps.
Answer: After a super quick google search I found the following video(ATTENTION!!! Possible spoilers inside):

What is basically says:

Get a fast car(Adder is recommended)
Go to the prison
Jump over the fence into the prison
Stay alive for 48 real time minutes
Get a chopper with machine guns(like a Little Bird)
Go to the IAA building
Find some transparent see-through windows
Shoot it
Jump out and parachute right into the window(be careful, you will lose lots of health)
Find a jetpack there
Try to use it(Right on a D-Pad)
It will disappear and say that it will now appear at 48 Woodstone Cress
48 Woodstone Cress is located not far from Franklin's house
Get there, enjoy your jetpack :)

P.S. I did not try(and will not) to get a jetpack in GTA V, so I do not know if this video is real or a good fake one
P.P.S. Assuming GTA V has an M rating and one if its' parts is Strong Language, I did not add any warning about bad language in the video
Comment: It's fake. There is no jetpack in GTA V although I suspect one will show up in DLC.

How can I get jetpacks in GTA 5


Why do I get a blank screen when booting from a CD or USB stick?

Question: I'm trying to boot the install from either a usb or cd with the iso file on them, as per umbutu install page. I set my bios to first boot from them ahead of hard drive. When I try the usb it just goes to a black screen with a small cursor blinking in the corner. When I try the cd I get the same thing and then it boots windows. What am I doing wrong?
Comment: You've said "with the iso file on them." Just to be clear, did you actually use the .iso file to make a bootable CD or USB stick, or did you just copy the .iso to your CD or USB stick?
Answer: It sounds like you've copied the ISO image to the USB stick and CD.
You need to create a bootable CD/USB stick rather than simply copy the ISO image.
There are instructions on the Ubuntu web site explaining how to create bootable media.
Scroll down to 2 Burn your CD or create a USB drive and click on Show me how.


Problem with Shopping Cart Price Rules

Question: I have a rule that has been working fine.  If a client orders more than $500 but less than $1000, they automatically receive a 5% discount.  I want to add a rule that says if they order more than $1000, they automatically receive a 10% discount.  I have tried the rule 6 times, and every time, it is applying the rule to the entire cart, even if the amount is $50.00.  I have double and triple checked the rule.  There are no conflicts with the first rule, and the conditions are written correctly.  I have re-indexed the site, and cleared the cache, after I implemented the new rule.  Not sure what to try next...assistance appreciated.
Answer: Have your tried this one? http://www.magentocommerce.com/knowledge-base/entry/how-do-i-set-up-table-rate-shipping
Hope this helps!

Problem with Shopping Cart Price Rules


How to get around the need for multiple reactors in twisted

Question: I am running a Qt application on Linux using the qt4reactor
The application sends and receives bytes on the serial port.
This works very well on Linux with the QtReactor
However when I port the application to windows then I have a problem.
On windows I use the SerialPort class from _win32SerialPort.
The doc string in _win32SerialPort is quite clear:

Requires PySerial and win32all, and needs to be used with win32eventreactor.

I assume the need to use win32eventreactor is because the addReader, addWriter methods are written for windows.
When the QtReactor is used, as soon as loseConnection is called on the transport, this calls loseConnection in twisted.internet.abstract which eventually calls the qt4reactor addWriter method (to flush the output).
This then creates a qt4reactor.TwistedSocketNotifier which tries to get a file descriptor number for select().  The abstract.fileno method is not overwritten by _win32SerialPort, so -1 is always returned and I get a

QSocketNotifier: Invalid Socket specified

I've seen many posts about multiple reactors not allowed in twisted, however I think I am correct here to assume that I need QtReactor for the Qt application and the win32eventreactor for the windows serial port.
Or is there some other workaround I can use ?
NOTE 1: when using QtReactor on windows, the serial ports work fine i.e. they can send and receive data.  It is only when I close the application that I get "Invalid Socket specified"
Note 2: Now I found a workaround.  I use the QtReactor, but when closing my application I do

serial.connectionLost(failure.Failure(Exception))

where serial is an instance of _win32serialport.SerialPort
This way abstract.loseConnection is never called which means that QtReactor addWriter is never called to flush the output.  I suspect though that the best solution involves calling loseConnection and getting the output flushed properly.
Answer: I recently added serial port supported to selectreactor, iocpreactor, and gtkreactor on Windows.  This approach can be extended to support them in the Qt reactor as well, I expect.
Answer: Call the Qt message checking/handling functions in the idle event of the Win32 reactor.
Comment: do you know where I can get an example of this ?  Or at least, where is the idle event defined ? thanks
Comment: Not a clue. I only know how to do it via my general knowledge of GUIs and event loops.


How to get angular ui grid footerTemplate to work?

Question: Angular UI-Grid has a property called footerTemplate, which is supposed to offer the possibility to create a custom footer template.
I tried entering html content (a div with some text) in a string, I've also tried adding a .html file name in the string and even the ID of a rendered div, but none of them seem to work.
It also wasn't clear for me if I need to enable showGridFooter for this or not, so I tried both, but the footerTemplate is either not shown at all, or if I set showGridFooter to true, it shows the default footer (total lines in the grid).
What am I missing here?
Answer: For angular-ui-grid 3.0.x it's working with the following example options:
$scope.options = {
                   showGridFooter: true,
                   gridFooterTemplate: '
pink floyd
'
};

For the 2.x ng-grid versions, Mokgra's version is good.
Answer: Try enclosing the footer template inside div tag like
 $scope.gridOptions = {
            showGridFooter: true,
            gridFooterTemplate: "
Message Here
"
    }

if you want to show any scope variable
$scope.SomeScopeVariable = "Message Here";

$scope.gridOptions = {
        showGridFooter: true,
        gridFooterTemplate: "
Grid Footer: {{grid.appScope.SomeScopeVariable}}
"
}

grid.appScope allows access to scope variables in templates.
tested with angular-ui-grid 3.0.x
Comment: Wow, I have been looking for grid.appScope for some time. Randomly stumbled across it here of all places. Man, ui-grid has terrible documentation.
Answer: I updated my version of ui-grid to the "pre-beta" 3.x and now I'm at the same point you are.  Using 'showGridFooter' set to true will show total rows info automatically.  Specifying a 'footerTemplate' doesn't do anything. I've tried with both 'showGridFooter' and 'showFooter' present and absent.  So the following paragraph of my answer only works for the 2.x "stable" version of ui-grid.
Wierdly, showFooter property needed set to true.  What worked for me is to add an html file to my project that contained a div full of goodies (like you were thinking). Seems like a bug.  showGridFooter property didn't work for me.
$scope.gridOptions1 = {
    showFooter: true,
    footerTemplate:'somePath/footerTemplate.html'
}

Answer: http://ui-grid.info/docs/#/tutorial/105_footer
You just simply drop html elements like a div or an anchor tag in the template.
Answer: If you want to see sum of the row values  using the code below can be helpfull
{ field: 'age',  footerCellTemplate: '
Total {{col.getAggregationValue()  }}
', aggregationType: uiGridConstants.aggregationTypes.sum }


DAM Solutions for full-length movies

Question: Are there any DAM (Digital Asset Management) solutions in the market that can handle storage & classification of full length movies (10 GB and greater).
Have heard of solutions from EMC Documentum, Artesia, Oracle UCM and the like but not sure if they handle file sizes this large ? Any open-source systems ?
Answer: I am going to go out on a a limb and say 'No'. There may be some custom ones around, but I have not seen anything that could handle videos of that size.
Personally, I have implemented the image portion of Oracle's DAM (still owned by Stellent at the time). I remember the tech being optimized for short streaming videos.
In Aust, ABC recently launched a streaming service;
http://www.abc.net.au/iview/
This, like other I have seen that are similar, seem to be limited to episodes or shows limited to 1/2 or single hour blocks.
Actually, 10gb seems like a crazy size to be entered into a CM system. As CM implies the files will be shared/ available remotely.
Are the videos uncompressed?
Do you want to stream/provide them across the network?
I would be interested to know some more details on the system you are after.
Comment: Thanks Tyronomo for your response.
My query was based on a request a friend who works in a movie production house put up one day. That set me thinking - what systems do these movie houses use for digital storage and retrieval of their movie banks (apart from betamax tapes) ?
Comment: Thats a rather interesting situation. I have a friend of a friend that now works for a TV studio. Ill drop him a line at some point and see if knows what they use.

DAM Solutions for full-length movies


What's the word for someone whose actions are very driven, and they can't be stopped?

Question: In the story Antigone, Antigone has a very strong-willed and independent personality. Her actions are based on what she believes is right. She gets this rock solid idea to do something and doesn't think about the consequences. She is very driven to go through with a plan for this idea. And no one will be able to convince her to not do anything.
   What is this called?
Comment: determined, decisive
Comment: I believe it is called "youth".
Answer: See tenacious and its synonyms:  dogged, hard-nosed, indefatigable, persistent, relentless, resolute, single-minded, staunch, steadfast, stubborn, unshakable, unyielding
There is some difference in nuance between these, and some can be combined, e.g.

She displayed a dogged persistence toward achieving her objective.


What is difference between MTU and fragment option in OpenVPN2.0 configuration?

Question: The configuration file of OpenVPN2.0 has two parameters MTU and fragment, I know what they are used for but I cannot find out the exact difference between them. Could anyone please explain me the difference between them?
Answer: If you try to send a packet that has a length of 1500 bytes and your MTU is set to 1480 bytes, the fragmentation says whether that packet can be broken into pieces (fragments) and sent or if it should be rejected.
With a VPN you generally reduce the MTU because you need to account for the VPN overhead with each packet and fragmentation will likely increase latency.
Within OpenVPN the fragment option will set the maximum size a packet can be before it is fragmented. However this will only apply to UDP traffic, so unless you are specifically having issues with that it is best to be left alone.
According to the OpenVPN manpage there isn't a straight MTU option though.
However there is an mssfix

Announce to TCP sessions running over the tunnel that they should limit their send packet sizes such that after OpenVPN has encapsulated them, the resulting UDP packet size that OpenVPN sends to its peer will not exceed max bytes.
  The max parameter is interpreted in the same way as the --link-mtu parameter, i.e. the UDP packet size after encapsulation overhead has been added in, but not including the UDP header itself.
The --mssfix option only makes sense when you are using the UDP protocol for OpenVPN peer-to-peer communication, i.e. --proto udp.
--mssfix and --fragment can be ideally used together, where --mssfix will try to keep TCP from needing packet fragmentation in the first place, and if big packets come through anyhow (from protocols other than TCP), --fragment will internally fragment them.
Both --fragment and --mssfix are designed to work around cases where Path MTU discovery is broken on the network path between OpenVPN peers.
The usual symptom of such a breakdown is an OpenVPN connection which successfully starts, but then stalls during active usage.
Comment: Does this mean fragments must always be set less than the MTU?
Answer: Both specify the maximum size of a datagram sent over a channel. `
fragmentis implemented with openVPN
whileMTU` restrictions are implemented by the IP layer.
Comment: So, we should define MTU always larger than or equal to fragment+OpenVPN_Header. Am I correct?
Comment: Under normal circumstances you should not need to set both. OpenVPN has lot of code for covering special corner cases on various OSes. So it might be necessary to ask with OpenVPN directly to get recommended settings for specific cases.
Answer: MTU is the Maximum Transfer Unit. It's the largest packet size that the connection will accommodate. The second one, 'fragment', could be the TCP 'do not fragment' flag, but it's a bit vague. If that's what it is, a 'do not fragment' flag on a packet means you can't break it up, even if it's larger than the MTU, which means it gets dropped.  VPNs have to worry about this type of thing because they basically take packets that are already at MTU size, and then they add on VPN header data, which requires them to break up each packet into smaller packets to accommodate the size change.
Answer: A maximum transmission unit (MTU) is the largest size packet or frame, specified in octets (eight-bit bytes), that can be sent in a packet- or frame-based network such as the Internet. The Internet's Transmission Control Protocol (TCP) uses the MTU to determine the maximum size of each packet in any transmission.
OpenVPN is an open source VPN daemon by James Yonan. Because OpenVPN tries to be a universal VPN tool offering a great deal of flexibility, there are a lot of options on this manual page. If you're new to OpenVPN, you might want to skip ahead to the examples section where you will see how to construct simple VPNs on the command line without even needing a configuration file.
Also note that there's more documentation and examples on the OpenVPN web site: http://openvpn.net/
And if you would like to see a shorter version of this manual, see the openvpn usage message which can be obtained by running openvpn without any parameters.
DESCRIPTION
OpenVPN is a robust and highly flexible VPN daemon. OpenVPN supports SSL/TLS security, ethernet bridging, TCP or UDP tunnel transport through proxies or NAT, support for dynamic IP addresses and DHCP, scalability to hundreds or thousands of users, and portability to most major OS platforms.
OpenVPN is tightly bound to the OpenSSL library, and derives much of its crypto capabilities from it.
OpenVPN supports conventional encryption using a pre-shared secret key (Static Key mode) or public key security (SSL/TLS mode) using client & server certificates. OpenVPN also supports non-encrypted TCP/UDP tunnels.
OpenVPN is designed to work with the TUN/TAP virtual networking interface that exists on most platforms.
Overall, OpenVPN aims to offer many of the key features of IPSec but with a relatively lightweight footprint.
OPTIONS
OpenVPN allows any option to be placed either on the command line or in a configuration file. Though all command line options are preceded by a double-leading-dash ("--"), this prefix can be removed when an option is placed in a configuration file.
--help
Show options.
--config file
Load additional config options from file where each line corresponds to one command line option, but with the leading '--' removed.
If --config file is the only option to the openvpn command, the --config can be removed, and the command can be given as openvpn file
Note that configuration files can be nested to a reasonable depth.
Double quotation characters ("") can be used to enclose single parameters containing whitespace, and "#" or ";" characters in the first column can be used to denote comments.
Note that OpenVPN 2.0 and higher performs backslash-based shell escaping, so the following mappings should be observed:
Comment: This is more a history of OpenVPN than an answer to the question.


How to remove these vertical white lines in PhpStorm 2017.3

Question: How to remove these vertical white lines in PhpStorm 2017.3?
Comment: https://intellij-support.jetbrains.com/hc/en-us/community/posts/207073015-Style-vertical-indent-guides
Comment: Why do you want to? They show you expanded codeblocks (and allow you to see that braces line up), that's useful to see
Comment: Welcome to StackOverflow. Please read the guide on how to post a question here.
Answer: They're called Vertical indent guides
Here's how to turn them off: go to Settings > Editor > Appearance and uncheck Show vertical indent guides
Answer: You might want to remove foreground on these guides instead of completly disable this feature, since something (either PhpStorm 2017.3 itself or Material Theme plugin) introduced this bug in the latest update.
Go to the Settings -> Editor -> Color Scheme -> General and look for the Guides section. Uncheck the Foreground option on Visual Guides or change its color from EEEEEE to 32424A. Hit Apply & Ok.
Now these guides should look the same as in 2017.2.


How do I use a UVmap in renderman for Blender?

Question: I am trying to render a model created using cycles in Renderman but the UV map doesn't show up.  Can anyone help me use the uv map please?
Comment: What do you mean the UV map doesn't show up? UV maps are not visible entities by themselves. Also have in mind that materials created for one render engine are not compatible with materials for other engines.
Answer: The UV maps work the exact same in Renderman as they do in Cycles. However there is something to be aware of.
You must have the image texture node loaded with the image to view it in the UV editor. (Do not have the node connected to anything just have it in the node editor by itself).
Also make sure you click "convert cycles materials to renderman materials" in the materials tab. (They wont copy exactly but it will get you started).


Trouble rendering associations with formtastic

Question: I'm build a page to manage a set of resources, and some of these resources have an association with "Effect" records. I'm trying to make it so I can have one form template handle the presence of the effects records on a resource, but am having some trouble with my conditions.
Some records work great using this code, but some records produce an argument mismatch error.
Here's a partial for the form I'm trying to create:
<%= semantic_form_for [ :manage, resource ], :html => {:class => 'default-manage-form' } do |f| %>
  <%= f.inputs do %>

    <% attributes.each do |attr| %>
      <%= f.input attr.to_sym %>
    <% end %>

    <% if resource.effects != nil && !resource.effects.empty? %>
      <%= f.inputs :modifier, :name, :value, :for => resource.effects, :name => "Effects" %>
    <% end %>

    <%= f.actions do %>

      <%= f.action :submit %>
    <% end %>
  <% end %>
<% end %>

And some records, but not all, produce this error where I'm creating the effects inputs:
wrong number of arguments (4 for 3)

How can I correct the code here so that don't crash formtastic? I'm relatively new to Rails as well so help is appreciated, thanks!
Answer: I fixed this by using the responds_to method:
<% if resource.respond_to? :effects %>
  <% resource.effects.each do |effect| %>

    <%= f.inputs :modifier, :name, :value, :for => effect %>
  <% end %>
<% end %>


math contest ranking problem?

Question: A math contest is held among 4 middle schools. Each school enters a team of 3 students. The 12 contestants are ranked from 1 (best performance) to 12 (worst performance). The team that has the overall best performance (the lowest sum of the ranks of each team's students) gets an award. In how many ways can the 12 ranks be assigned among the 4 teams without distinguishing between the individual ranks of the students in each team (since only sum of rankings matters)?
Answer: Since the students from each team are identical, lets name them as A, A, A, B, B, B, C, C, C, D, D, D.
Now arranging these 12 students in can be done in 12!/(3!)^4.

math contest ranking problem?


What does Timatic say about UK reentry on Tier 2 passport stamp

Question: What does Timatic say about UK reentry on Tier 2 passport stamp? My visa has been approved but my BRP is not ready yet. I've entered and left the UK, so my visa has been stamped but now I need to reenter.
Comment: If you have a visa, what Timatic says isn't really relevant. What is your actual concern?
Comment: My actual concern is if the airline will allow me to board and the if immigration officer will let me in.
Comment: The letter from the home office that the got with my visa says you may experience delays at the border if you leave before you get your brp. Is it as simple as saying that immigration could take an hour instead of a few minutes? Or is there some implied meaning?
Comment: @joe Is your visa sticker still valid (it's valid for 30 days normally)?
Answer: TIMATIC always says "Visa required, except...".
Since you have a visa, if it's unexpired (it usually lasts 30 days), you can board the plane and re-enter the UK.


Object gets jagged lines after doing free transformation, How to make it smooth?

Question: When I rotate the object, it is having jagged lines. It was smooth before but I am suddenly facing this problem. The first image is the original one, 2nd one after rotating a bit.
Comment: Hi Narcissus, welcome to GD.SE, it's impossible to find out what the problem is if you do not put in the question or in the tags the program you use.
Comment: In Photoshop, I assume? Try different interpolation methods when tree transform is active. I'm guessing you might have nearest neighbor as the interpolation method. Also the biggest eyesore from what I can see is that black bleeding from under the green. That's all thanks to anti-aliasing. If you put the green block in a clipping mask with the black layer, that bleed-through won't happen.
Comment: I used adobe illustrator. This problem is happening suddenly and I'm fairly new to using this software. @Danielillo
Comment: In illustrator. Looking at interpolation methods now. thanks for the reply. @Joonas
Comment: When I see some visual weirdness, the first thing I check is if GPU preview is on. You can see if it's on in the tab or window title. You can switch to CPU preview from: `View > View using CPU`.
Comment: Not solved. Can't figure out what is going wrong. :C @Joonas
Comment: Yea I thought it might not be that. I think for anyone to figure it out, they'd have to take a look at the file.
Answer: It seems like you have pixel preview mode on, Everything is shown like rasterized. Perfectly vertical and horizontal lines are still ok, but others are jagged.
Goto the View menu and uncheck Pixel Preview.


How do we add a spell in Skyrim with the Creation Kit that can spawn several variants of the same NPC?

Question: I am thinking of adding a spell that can summon a Nord, but I want it to have a random chance of spawning a female nord. I also want the NPC to appear in different armors, have different tattoos and different hairstyles. Is it possible to do this without using a script? What's the easiest way to achieve this?
Answer: You would have to have a function that is able to create new reference objects of any base object selected. The edits you talk about, character attributes, are usually manually adjusted, but there once was a mod that did loop through a list of prevously defined colours of wolf's fur to spawn differently looking enemies randomly. This mod did require SKSE.
So you would have to prepare different base objects and then call them via script and spawn them, following your own rule. Perhaps on activate event, similar as a magic effect.
The mod that could work as a proof of concept for your idea is
"Automatic Variants" - but it requires manual preparation of these encounters.
https://www.nexusmods.com/skyrim/mods/21377?tab=description
I am not sure how to access the actor properties via script and adjust them inside the script without GUI - i guess that would require much more work, to have variables randomly change these properties.
best success


For ssh connection, getting error "Failed to load key ----, invalid format, Permission denied (publickey)" in Anaconda, Windows

Question: Using Anaconda prompt in Windows I get this problem. Using latest version of ssh.
Answer: Public and private key files were not in unix format. For Powershell, it seems fine but for both Anaconda prompts (normal and Powershell) this was a problem. You can use notepad++ or some other program (ex: dos2unix) to convert them to unix format. For notepad++, you can click on the format (Windows CR LF) to change it into Unix.


Routing/filtering messages without orchestrations

Question: A lot of our use cases for Biztalk involve simply mapping and routing HL7 2.x messages from one system to another.  Implementing maps and associating them to send/recieve ports is generally straightforward, but we also need to do some content based filtering on the sending side.
For example,  we may want to only send ADT A04 and ADT A08 messages to system X if the sending facility is any 200 facilities (out of a possible 1000 facilities we have in our organization), but System Y needs ADT A04, A05, A8 for a totally different set of facilities and only for renal patients.
Because we're just routing messages and  not really managing business processes here, utilzing orchestrations for the sole purpose to call out to the business rule engine is a little overkill here, especially considering that we'd probably need a seperate orchestration for each ADT type because of how schemas work.  Is it possible to implement filter rules like this without using using orchestrations? The filters functionality of send ports looks a little too rudimentary for what we need, but at the same time I'd rather not develop and manage orchestrations.
Comment: This blog post describes a somewhat similar scenario. It uses a custom pipeline component which calls the BRE and promotes properties to indicate target subscribers: http://blogs.msdn.com/b/paolos/archive/2011/06/01/a-broker-pipeline-component-for-end-to-end-ordered-delivery.aspx
Comment: I don't have BizTalk installed at the moment, but am confident you can do what you want without orchestrations, just using send port filtering. You can (I believe, it has been a while) call out to the bre from a receive port if needed (custom pipeline code but not too difficult) to get the right promoted properties into place.
Comment: Or you can use a pre-rolled custom pipeline component.  https://brepipelineframework.codeplex.com/
Answer: You might be able to do this with property schemas...
You need to create a property schema and include the properties (from the other schemas) that you want to use for routing. Once you deploy the schema, those properties will be available for use as a filter in the send port. Start from here, you should be able to find examples somewhere...
Comment: You are right, but what I found is that the filter functionality in the send port is so clunky to work with if you are dealing with a lot of filters.  Additionally if you had a complex filter in mind "((this and this) or (this and this)) and this) you can't define that type of logic through the send port filter, to my knowledge.
Comment: This is how we do it. We don't have very complex filters though.
Comment: Not ideal, but complex filters could be achieved by assigning higher-level properties to the message in earlier processing. For example, rather than ((IsManager And IsFinance) or (IsAdmin and IsHR)) And IsActive, you could assign an IsActiveFinanceProcessor property using say a BRE receive pipeline.
Answer: As others have suggested you can use a custom pipeline component to call the Business Rules Engine.
And rather then trying to create your own, there is already an open source one available called the BizTalk Business Rules Engine Pipeline Framework
By calling BRE from the pipeline you can create complex rules which then set simple context properties on which you can route your messages.
Full disclosure: I've worked with the author of that framework when we were both at the same company.


How to delete the entire library

Question: I have XBMC installed on a HTPC.  I use it to play the movies I have copied from my DVD collection.  I store those movies on a separate server.  I had to move the files to a different location on the server.  Now when I try to play a movie I get an error stating the file does not exist.  How can I delete the entire database in XBMC so it can rebuild itself with the new correct location of the movie files?
Answer: Delete MyVideos34.db from XBMC\userdata\Database.
Comment: The same works on Linux with `~/.xbmc/userdata/Database/MyVideos*.db`. But note that this does not only delete the library content but also the settings for each source (whether they contain movies or series, the preferred language etc.).
Comment: And it seems like your favorites get corrupted and link to different locations after deleting and regenerating the DB :(.
Comment: this works with kodi too `~/.kodi/userdata/Satabase/MyVideos**.db`
Comment: Good luck doing this on Android TV without somekind of filesystem app...
Answer: You could also go to Settings > Video and clean the library. That will remove any items in the library that it can no longer find on the disk, then just rescan.
I recently migrated my XBMC library from one server to another and just changed the locations in the database, but I was using MySQL, so I'm not sure how I would do the same thing in SQLite, which is the built-in database.
Mine all moved from a NFS export on one server to a CIFS share on another.
Comment: If the 'Clean library...' item is not visible, switch your 'Settings level' at the bottom left.
Answer: What version of XBMC is this?! You might need to upgrade to the latest XBMC release which is currently 11.0 (code named "Eden").
You also didn't say what OS XBMC was running on! There is a XBMCBuntu version that runs on a stripped down version of Ubuntu (Linux). Then there's the XBMC app that runs under Windows. There's still other releaes of XBMC for other OS's like Mac too. So you your problems may be completely unrelated to XBMC but rather stem with your operating system.
But frankly, I'm inclined to think this may be a Windows problem totally unrelated to XBMC.
Comment: Actually I am running the linux version. I have had it installed for a few years now.  Back then you could download an ISO directly from xbmc.org that installed everything for you.
Comment: It is related to XBMC.  When I boot the computer it automatically boots up into XBMC.  Then it starts checking for new content.  WHen it finds new content it stores that information in its own database somewhere.  I need to find out how to delete that database so it will find everything fresh again.  Then it will have the correct file path recorded in the XBMC database, wherever that may be.

How to delete the entire library


How to initiate remote access from controlled server machine?

Question: Assume our windows 7 machine A has no public IP - it's connected to LAN and has IP like 192.168. This machine has access to Internet. How to initiate remote access from this server machine A to be able manipulate of desktop of A by client machine B the same way RDP allows or something like that? Machine B has public IP and is connected somewhere in Internet - not in the same LAN with A. So there is possibility to establish connection from A to B but not possible from B to A. A should be controlled by B. In other words I should be capable to begin session from A and later work remotely from B with A's desktop.
Updated: I have admin control only on my machine A and B.
Answer: is your A machine able to receive remote desktop session on the same lan?
if it's configured properly and the answer is yes, you must forward the remote desktop port (tcp 3389) on your A machine router to the A machine ip address
Comment: If I were network administrator It would be no question  - I will just map port of router to my machine port. I have admin control only on my machine A and B.
Answer: if your B machine have a public ip address or you have full control on the router where is B machine and you can map the port forwarding, you can install on the B machine an openvpn server , tun device configuration, and generate a couple of key and certificate (there are a lot of tutorial on internet about it)
then on the A machine you install an openvpn client, the right key and certificate generated on the B machine.
when you start the openvpn client , the A and B machine add another logical ethernet card, with a couple of ip address.
now you can start rdp using the new ip address, the tunnel bypass every router
please be carefull, in some work environments is not 'allowed to create vpn or  tunnel to the external, inform your network administrator first


Why do Karaite Jews wear a kippah in synagogues?

Question: As far as I know, the only commandments followed by Karaites are those that are in  explicitly stated in the Torah. Why wear a yarmulke if this isn't commanded in the Torah? Here is a link about Karaite Synagogue Etiquette
Comment: Welcome to Mi Yodeya! From what I know, the belief that Karaites only follow what is stated explicitly in the Torah is a myth. They have their own traditions about things.
Comment: Karaites have their own oral law, and besides, kippa is a custom, not law.
Answer: Tradition.
Karaites despite their rejection of  Rabbinic Judaism still have their  own traditions on how certain laws  are kept, they have their  own sages, and their own culture etc. Their religion is not exclusively limited to a literal understanding of Torah with no other instructions.
They wear a kippah to synagogue only because it was  traditionally Jewish elements of worship. Before kippahs, they wore a fez. Before a fez, it was a turban. But the bottom line was that head coverings were worn during prayer in their synagogues so they still are today.
Comment: It's my understanding of Karaite Jews that the issue is not with the tradition. Everyone has a tradition. The issue is calling the rabbinic tradition an "Oral Torah" and elevating their requirements to mitzvot from Hashem. Huge difference. So if they cover their head for some reason, it's a personal preference or community tradition or simple respect for the customs of someone else's synagogue. I'm not a Jew. If I visit a synagogue, I wear one out of respect. Not because I'm commanded.


Can ANOVA suffice for comparing mean of percent/proportion data?

Question: I've been handed off some data to analyze and I'm looking for something simple and straightforward.  The 1 response variable/dependent variable is average percent mortality  from 7 treatment groups (with 1 independent variable). These data can be analyzed using the the proportions (example: 30 of 50 trees died). I'm worried about meeting the assumptions of ANOVA and have considered non-parametric approach using kruskal-wallace. Any suggestions?
Comment: 1) Do you have one variable that is a binary alive/dead and another variable that gives the groups to which those alive/dead values correspond? // 2) Is there a time component to this? Should there be?
Answer: Depends how simple and straightforward you want.

The classic way to analyze proportion data in an ANOVA is to arcsine-square-root transform them, which does some combination (I forget exactly) of normalizing and stabilizing the variance.
If you have the numbers of trials per observation (in your example, "30 of 50 died", 50 is the number of trials), then a binomial GLM is the more modern way to do the problem, and is also super-easy with any stats package (Warton and Hui [2011] feel strongly that this is the right method: "For binomial data, logistic regression has greater interpretability and higher power than analyses of transformed data")
a non-parametric analysis such as Kruskal-Wallis would also be fine.
it's possible that an ANOVA would be OK if your sample sizes are large and your proportions aren't too close to 0 or 1

(I assume you have more than one sample per treatment group ...)

If you have a large number of all-zero or all-one responses in your data, it's likely that the data are overdispersed, i.e. that your data are not consistent with some of the assumptions (independent trials, equal probabilities) of the binomial distribution. In this case the easiest thing you can do is to use a quasilikelihood model, which allows the variance to be scaled relative to what would be expected from a simple (e.g. binomial) model. In R, this would be as simple as saying family = quasibinomial rather than family = binomial. A slightly more complex alternative is a beta-binomial model, which you could fit (e.g.) in the glmmTMB package with family = betabinomial. (It's also possible that you have zero-inflated responses, but then we're starting to get away from "simple and straightforward" ...)

Warton, David I., and Francis K. C. Hui. "The Arcsine Is Asinine: The Analysis of Proportions in Ecology." Ecology 92, no. 1 (January 2011): 3–10. https://doi.org/10.1890/10-0340.1.
Comment: If you have only the proportions things get a little harder. The analog of the binomial GLM is Beta regression (and this gets further complicated if you have exact values of 0 and 1 in your data). But the wording of the OP's question suggests that they know the number of trials ("example: 30 of 50 trees died").
Comment: But I do agree that I jumped to some possibly incorrect conclusions about what the OP's data looks like ...
Comment: Is it binomial if you have the proportion and not the integers whose ratio have the proportion?
Comment: @BenBolker and Dave, thanks for your kind responses. I do have the original data/number of trials. I looked into binomial GLM- that makes me feel more confident that I'm eliminating options with some reasoning. The data has a large number of 0's (no trees dies) and 1's (all trees died). I tried Kruskal Wallisfollowing with Wilcoxon comparisons, but there are too many ties.  Here's what I'm thinking for the glm: glm(formula= dead trees~herbicide treatment+site+days after treatment+diameter at breast height, family=binomial (link=logit).   I haven't used GLM in a few years, so I'm a little rusty


Why does 'pine feather period' signify the period in a woman's life when she blossoms?

Question: A book titled Flappers 2 Rappers lists youth slang from the 1920s, and one of the terms it lists is "pine feather period." "Pine feather period" is defined as a period in a woman's life when she blossoms. I can't comprehend how "pine feather period" and a woman blossoming are related. I've researched the matter and still I haven't the least notion. Can anyone please help me understand better how "pine feather period" could be used to describe a young lady blossoming?
Comment: I think your book is misreporting *pin(-)feather*, meaning the early, unfurled stage of a bird's developing feather. Google Books reports several figurative uses of *pin feather* to mean immature or adolescent.
Comment: This is the same reference work that claims (without citation) that grungy meant "envious" in 1920s slang. See [Can we authenticate the claim that "grungy" was used to mean "envious or jealous"?](http://english.stackexchange.com/questions/181695/can-we-authenticate-the-claim-that-grungy-was-used-to-mean-envious-or-jealous/) for a discussion of that dubious assertion.
Answer: It's a long-defunct slang usage, resuscitated by OP's citation and the Chicago Artists' Coalition...

Pine Feather Period marks the first of three exhibitions for the sixteen artists selected to participate in Coalition Gallery, a one-year, juried, co-operative exhibition program for emerging, contemporary Chicago artists. In the spirit of a debut, Pine Feather Period, a 1920's flapper slang phrase, describes the period of a debutante's coming out.

As StoneyB points out, it's almost certainly a mistranscription of a trivially figurative usage...

pinfeather - a feather not fully developed; especially :  a feather just emerging through the skin.

They're also (dialectally) sometimes penfeathers, but pine feather sounds unlikely to me.

Here's a 1904 example of the usage in approximately OP's sense...

You are now at the Pin-Feather Period, and Mother must teach you how to Fly. I have been giving a lot of Hard Thought to the Man Game [blah blah and I'll help you get successfully married off...]
Comment: @Edwin: Which arguably is almost a synonym for *pine feathers* here! I do think it's odd that one of these two "sources" presumably just uncritically replicated the error from the other (or perhaps an as-yet-unidentified *third* culprit). But there's no doubt [*pin feather period*](https://www.google.com/search?q=%22pin+feather+period%22&btnG=Search+Books&tbm=bks&tbo=1) was used in the early 1900s with approximately OP's sense, and the *pine* version apparently never existed. Some people are just *very* uncritical, obviously.
Comment: Then there are horsefeathers.
Comment: The trail of the troublesome pine.
Answer: Here is the actual entry in Tom Dalzell, Flappers 2 Rappers: American Youth Slang (1996):

pine feather period The period in a Flapper's life when she blossoms out

By way of documenting FumbleFingers's point that "pin-feather period" (not, as typed in Dalzell, "pine feather period") was used during the early decades of the twentieth century to refer to the period of time when a young person is at the stage of development toward independence that corresponds to an unfledged bird, I offer some examples of its use.

Google Books matches for 'pin-feather period'
The earliest Google Books match is from George Ade, "The Coming-Out Girl and a few of Her Keen Guesses," in Current Literature (1904):

"My daughter, we start out for the Country next Week," said the elderly Society Bird to her little Chick. "Us to the Summer Hotel for a bang-up Suite at a Per Diem Rate that will put a large Crimp in Papa's Income for 1904.You are now at the Pin-Feather Period, and Mother must teach you how to Fly. I have been giving a lot of Hard Thought to the Man Game for, lo, these many Moons, and, without passing myself any fragrant Cluster of Green Peas, I think I am On. Every Woman has a private Rogue's Gallery. She can give you a line on the whole Bunko Brotherhood from Sammy the Sophomore, who wears a Buckwheat-Cake instead of a Cap, up to the decrepit old Has-Ben who wants to hold your Hand because you look so much like his daughter.

Another early match is from Richmond Railroad Club, Official Proceedings (1907) [snippet]:

... gain, however, and you are to be congratulated that you escape the speech which I have been "incubating" lo these many days, and really thought that I had successfully pulled through the pin-feather period for a successful flight on the 15th.

And from Carl Werner, "The Pin-Feather Age," in The Outlook (October 18, 1913):

West as a cowboy, and how he had wondered whether he might not get a chance to join the "Bessie, the Beautiful Bowery Maid" company, which was coming to town the next week. Adventure and romance beckoned to him then as they had to me many years before, and as they will to every boy who reaches the pin-feather period.

From an unidentified article in The Silent Partner, volume 10/17 (1914/1921) [combined snippets]:

A man can spread his night sympathy and sentiment all over a side street, but there's no good in gettin' sorry for yourself the next day, just 'cause you feel bum. Getting solid in some society is liable to disturb your permanent position in business.
If you have gone over Fool's Hill, how you will appreciate this article! If you are still in your pin-feather period, you will call it preachin'.
If you fail to advance in your organization, on the pay roll ; if you do not seem to be getting on, just as you think you should, perhaps there's more than preachin' in these observations, by a man who knows that he knows.

And from Emma East, "Mary's Revenge," in Normal Instructor and Primary Plans (March 1921):

"Why a year is a long while," Mary said demurely, "and in that time I have learned the swell dresser's rule o' three—fit, lines, colors. I'm a teacher, you know, and I decided the best Way to exert an influence over the half-baked animals of the pin-feather period was to master the language they liked best, that of nifty clothes, so—"

Aside from two or three literal uses of "pin-feather period" to refer to actual young birds, and a couple of uses of "pin-feather period" in connection with the history of the American Legion (in 1922 and 1923), that's it for the Google Books search results.

Elephind newspaper database matches for 'pin-feather period'
An Elephind search of multiple newspaper databases finds a number of even older matches for the term, used figuratively. From "Brooke!" in the [Logan, Ohio, Hocking] Sent[i]nel (June 18, 1885):

The Yicker-sonians, and the unfledged political chicks, yet in the pin feather period of political life, are tscheaping distressful complaints on account of Brooks' pronounced recognition as the Hocking County Republican leader; but their wails are of no avail. Brooke will possibly nestle them under the protecting wing, hush their chitter with crumbs, or let them starve to silence.

From an untitled item again in the [Logan, Ohio] Hocking Sentinel (May 11, 1893):

Col. McKittrick, the st[or]my petrel, of the Shawnee Journal has sold his paper to Will Shriver, and contemplates going West. We regret the retirement of Bro. McKittrick from the Journalistic field in our neighborhood. He is a brilliant, enterprising dashing writer, grown out of the pin-feather period and of full-fledged wing, strong and defiant in any storm. Our best wishes are for him in what ever clime he may plume his pinions or ply his pencil.

I note here, without quoting the relevant passages, that additional instances of "pin feather period" appear—with the same metaphorical sense of young birdhood—in issues of the Hocking Sentinel from September 12, 1895; April 23, 1896; August 18, 1898; August 22, 1901; and October 22, 1903.
From "Our Tin Wedding," in the *Wichita [Kansas] Daily Eagle (*May 20, 1894):

The Daily EAGLE may be considered as having passed the pin-feather period, this morning being its tenth anniversary. Ten years ago, on the 20th of May, 1884, it essayed its first continuous flight as an Associated Press daily morning paper, in which flight of unwearying wing, bright eye and trusting heart it has never faltered.

From "A New Year and a New Eagle," again in the *Wichita [Kansas] Daily Eagle (*January 1, 1895):

The pin-feather period of the Eagle's ex[is]tence is among the almost forgotten events of the past. For years it has been recognized, far and wide, as a royal fowl of full feather. But the possibilities of a prime maturity were never fully realized.

From "Timely Topics: On the Glorious Fourth, Tribune Wheels and Blue Flame Oil Stoves, in the [Honolulu, Hawaii] Evening Bulletin (June 30, 1896):

An effort is being made to get a scream or two out of the Hawaiian eagle, but it is such a short time since he was hatched out that his scream will not amount to much in comparison with the older bird's [the American Republic], and as for flapping his wings he can't very well do that until they get beyond the pinfeather period.

Conclusions
A couple of things are immediately obvious from these search results. First, metaphorical use of the expression "pin-feather period" is present in the historical record 35 years before the dawn of the 1920s and seems to vanish after 1923. Second, the connection of the expression to young women in the first bloom of youth rests on a single (admittedly very popular) instance from 1903, written by George Ade. The various earlier instances from Ohio, Kansas, and Hawaii apply the expression to newspaper editors and reporters, to newspapers themselves, to amateur poets, to political neophytes, and to a young U.S. territorial possession. And the four instances after Ade refer to the formulating of a speech, a young man in the first bloom of youth, a newcomer to a business, and children in a schoolroom setting.
On the evidence of this limited pool of instances, it appears not only that the phrase "pine feather period" in Flappers 2 Rappers is a typographical error for "pin-feather period," but that the (correctly spelled) expression arose well before the 1920s and was not especially closely tied to the blossoming-out period in a Flapper's life during its brief era of popularity.