Is it ethical to have a relationship with a student after my supervision of him is complete?

Question: I am supervising a bachelor thesis and find the respective student attractive. Would it be ethical/acceptable to get into a relationship with the student after the thesis is completed?
Comment: The anticipation of the relationship would already most likely cause trouble.
Comment: Unless you are extremely scrupulous, there can easily be many bad side effects, among colleagues, in the relationship, with friends, and so on. If you imagine that this may be "the love of your life", then, commensurately,  you'd not want to tarnish the relationship and others' perceptions of it (whether they are right or wrong...). "Squeaky clean" is the U.S. English phrase. Involves waiting and doing nothing in your case, I think. May not deliver the hoped-for outcome. But/and bad compromises leave lasting stigmas... Hard to find a simple, immediate solution, unfortunately. Behave honorably.
Comment: Suggestion: edit the title to better reflect the temporal relationship here.  Is it ethical to have a relationship with a student after completing a role as the student's supervisor?  (And the answer is, I'm not sure.  But the answer to the question as stated is **hell no**.)
Comment: @FredDouglis, yes, I think it's best to put the whole thing out-of-mind "for now", at least. Quite hard to "make it be ok", and many ways to have it go wrong.
Comment: Your university likely has specific policies regarding this.  If you're a TA, then a TA handbook, at least in the US in my experience, will always mention their policies on relationships with undergrads/students.  There should be similar policies, if not similar handbooks, for professors etc.
 Have you looked for them?
Comment: Why should there be a problem if you make sure to fully grade the thesis before making a pass at him or her? Of course you might never get a chance afterwards. That is a chance you have to take.
Comment: @paulgarrett, true.  I assume the student would have no knowledge of this intent, but you're right, even thinking it may be a possible outcome sounds bad.  Is it ok "sometime later"?  There is probably some appropriate cooling-off period; years later, who cares, hours later, looks fishy.
Comment: @paulgarrett Telling not to try is obviously the easy way. Do you think there is a kind of solution?
Comment: @FredDouglis - Like that?
Comment: Yes, it clarifies what you were asking.  On the whole I tend to agree with the others who say it's a bad idea ... just not as bad as if it were contemporaneous as the original title suggested.
Answer: The ethical, and safe, thing to do -- now, actually -- would be to look for another faculty member to pass this thesis supervision responsibility to, because your objectivity has been, or could be seen to be, compromised by your feelings.
I was given some very good advice once by a senior professor: when contemplating a particular action, imagine what it would look like if described in a newspaper headline.

"Emcor Involved in Romantic Relationship with Student S/He Was Providing Direct Thesis Supervision to"

Doesn't look so good.  Compare:

"Emcor Hands Off Thesis Supervision to Colleague before Embarking on Romantic Relationship with Student"

Better, no?
This doesn't mean you can't read a draft of the thesis, or that you can't be a sounding board for the work.  It just means that you shouldn't be the thesis supervisor.
That's how I see it.  However, if you are in any doubt, do check with a department administrator.
Answer: It is neither ethical nor safe to get into any kind of relationship with a current student.  Depending on your institution, it may be prohibited conduct.  Brown's rule: "You can lust after girls, or you can lust after boys, but you can never lust after students."
Even former students aren't safe.  Some years ago a graduate whose senior project I had supervised showed up in my office and announced that she had come to take me to dinner.  We began seeing each other, and then she decided to return to our institution for a master's degree.  That resulted in a self-initiated, but very uncomfortable, meeting with dean and VPAA.
Comment: That discomfort is just part of academic life. // I had to look up VPAA: Vice Provost for Academic Administration. // I wonder why you didn't say, "She decided to return to our institution for a master's degree"?  She was an alum -- it was her institution too, I think.... // I hope the dean and vice provost told you that she could do a master's there, and you could continue teaching there, as long as you didn't have any supervisory responsibilities over her work. // Actually, I think your answer would be strengthened by rephrasing this part: "even former students aren't safe."
Comment: @aparente001  Yes, she was able to take her master's at our institution under exactly the conditions you mention.  I've edited my answer to reflect your remarks; thanks!
Answer: It is not ethical nor acceptable for you to do. After the supervision is technically over you still have power over the student, such as through reference letters.
Comment: Although I am certainly not advocating in favor of such a relationship, I think the specific difficulties you mention are likely to be surmountable.  First, this is an undergraduate student, so they may not continue in academia at all. If they do, then in many cases the grad school letters are written before the student actually graduates.  Finally, the OP could (and certainly should!) agree not to write any letters for the student.  For an undergrad, this could perhaps be detrimental to the academic career, but it would not be catastrophic.
Comment: You don't, because you obviously do not write reference letters for your partner.


Basis for American collectible coins in lieu of proof of purchase price?

Question: Say I have some silver half dollars, but no receipt of purchase.  Can I claim face value (50 cents) as the basis should I sell, or is the basis nothing?
Comment: That silver half dollar is worth almost $17.  Wow.  Silver has taken quite a ride lately.  I hope it settles down for a little while.  Since you don't have a receipt I'm guessing the IRS will want to use the $0.50 face value...more gain and thus more money for the gubmint....I don't know...just a guess.
Comment: @Muro: Right. The gains are already taxed at a much higher rate (28%) regardless of how long they've been held. :(
Comment: Okay, I guess I'm a step behind on this one ... What is the basis? Is that the taxable value of the asset or something? Are you supposed to report gains on this type of thing? I'm not a collector, but I have a few silver coins that are worth their weight in silver. I got them 10 years ago. Have I been breaking tax laws by not telling the IRS about them?
Comment: The basis is the amount you spent when you purchased the coins. This is used to calculate your gains when you sell the coins.  If you bought the coins for $10 then that is your basis.  You only pay taxes on the gains.
Comment: @Stainsor: Weeeellllll ... yes, if you sold them, there's a taxable gain.  @Muro:  Right, but my question assumes that I don't have that information.  If I don't know what I bought them for, is the basis the face value of the coin, or nothing ($0)?
Answer: I don't think zero would ever be ones basis for this type of situation. The face value is as safe harbor as you'll ever find. While you need to pay on this gain, like kids selling baseball cards, I don't know that average folk are actually claiming such small transactions.
Answer: The I.R.S. allows retroactive creation of cost basis for coins and stamps if you don't have receipts. Here's a link from an article in the Wall Street Journal that describes how to do it. Note that this was dated December 2008, so you'd need to confirm if it is still allowed by the IRS now!
It seems to work like this: You go to a coin dealer and tell them when you think you acquired your coins, item by item or lot by lot. Start with the coin(s) you think are most valuable. In your case, you have all silver half-dollars. Do some have greater value than others, based on

what year they were minted due to numismatic collectability?
different percentage silver content )for whatever reason)?
other considerations (e.g. damage)?

That is why you need a coin dealer to help you. You and the coin dealer will start with your best effort recall of when you acquired the coins. The dealer will give an estimate based on that date as to what the fair market value for the coin was, and record that as your cost basis. You'll do this for all your coins, and submit the results to the I.R.S. along with the amount you received for selling your collection.
Needless to say, you should get the coin dealer's retroactive cost basis estimate done before selling the collection! And you should probably not sell your collection to that same broker either!
As others have said, you will be paying capital gains taxes on the difference between the acquired value of the coins and the sale value. The minimum basis will never be $0.00 for the acquisition value, which was part of the question. That's because the I.R.S. will always use the value as a unit of currency as a minimum assessment of worth.
The minimum value would be the face value. That is the non-numismatic value of the coin. In your case, $0.50 per coin. So valuing all the coins at non-numismatic value maximizes the amount of taxes you would pay upon sale of your collection.
Be aware of this, though! The coin dealer won't do a retroactive cost basis estimation for free. So you need to consider that expense to decide whether it is worth it or not.


Is it true that drinking calcium carbonate or potash can help with stomach acidity?

Question: Is it true that drinking calcium carbonate or potash extracted from wood ash can help with stomach acidity ?
one of my friends told me this but i cant swallow it
Answer: Both will partially neutralize hydrochloric acid in the stomach but I am not sure I would call that "help". A stomach is supposed to be very acidic. The burning sensation is acid leaking past the spincter muscle into the esophagus, not the stomach. I have used a little calcium bicarbonate in water to rinse acid out of the esophagus with success.
Answer: Calcium carbonate is the main ingredient in TUMS and most antacid pills.
Wood ash, however is going have more with potash,  lye (Sodium/Potassium hydroxied. Calcium oxide.
Probably won't hurt you in small quantities, but tastes awful.
From wikipedia

Much wood ash contains calcium carbonate as its major component, representing 25[5] or even 45 percent.[6] Less than 10 percent is potash, and less than 1 percent phosphate; there are trace elements of iron, manganese, zinc, copper and some heavy metals.[5] However, these numbers vary, as combustion temperature is an important variable in determining wood ash composition.[3] All of these are, primarily, in the form of oxides.[3]


Go to window by buffername

Question: I would like to be able to switch to an open window by typing the name of the buffer which is displayed in it.
It would be something like C-x b which opens the selected buffer only if it is not opened in another windows and in that case the focus switch to that window.
Comment: There is no need for anything fancy, just `(select-window (get-buffer-window "NAME-OF-BUFFER"))` and/or the optional second argument ALL-FRAMES.  Perhaps consider adding a test for whether the window exists (i.e., live) so as to avoid throwing an error if you make a typographical error in the buffer-name.
Answer: For a slightly different approach, you can install the https://github.com/abo-abo/ace-window package (available from melpa) and bind ace-window to some key sequence. When you invoke it, it gives each window a letter or number, which you can type to select. If you turn on ace-window-display-mode this letter is also added to the mode line so you can see it in advance.
The answer to Defining the window pointed by "other-window" has a screencast showing it in action.
The package has extra features, for example if invoked with one universal argument it swaps the current window with the target window.
The https://github.com/abo-abo/ace-window/wiki has an extended example, with scrolling other windows, winner-mode to save and restore window configurations and so on.
Answer: You can use interactive to select a buffer, get-buffer-window to find the window showing that buffer, and select-window to switch to that window:
(defun open-window-by-buffer (buffer)
  (interactive "bBuffer: ")
  (select-window (get-buffer-window buffer) nil))

I love ido-mode for selecting things like open buffers, so here's a solution using that:
(defun open-window-by-buffer ()
  (interactive)
  (let ((buffer
         (ido-completing-read
          "Buffer: "
          (mapcar 'buffer-name (buffer-list)))))
    (select-window (get-buffer-window buffer) nil)))

Answer: If you use Icicles then you can use command icicle-select-window, bound to C-0 C-x o to trip among windows using
their buffer names.
More generally, C-x o trips among windows or frames, as follows (C-h k C-x o):

C-x o runs the command icicle-other-window-or-frame
         which is an interactive compiled Lisp function in icicles-cmd1.el.
(icicle-other-window-or-frame ARG)
Select a window or frame, by name or by order.
This command combines Emacs commands other-window and other-frame,
      together with Icicles commands icicle-select-window,
      icicle-select-frame, and icicle-choose-window-for-buffer-display.
Use the prefix argument to choose the behavior, as follows:

With no prefix arg or a non-zero numeric prefix arg:
    If the selected frame has multiple windows, then this is
    other-window.  Otherwise, it is other-frame.
With a zero prefix arg (e.g. C-0):
    If the selected frame has multiple windows, then this is
    icicle-select-window with windows in the frame as candidates.
    Otherwise (single-window frame), this is icicle-select-frame.
With plain C-u:
    If the selected frame has multiple windows, then this is
    icicle-select-window with windows from all visible frames as
    candidates.  Otherwise, this is icicle-select-frame.
With plain C-u C-u:
    Same as icicle-select-window with a negative prefix arg: Select a
    window from any frame, including iconified and invisible frames.
With plain C-u C-u C-u:
    This is icicle-choose-window-for-buffer-display, with windows from
    all frames (i.e., iconified and invisible) frames as candidates.

If you use library oneonone.el with a standalone minibuffer frame,
      and if option 1on1-remap-other-frame-command-flag is non-nil, then
      frame selection can include the standalone minibuffer frame.
By default, Icicle mode remaps all key sequences that are normally
      bound to other-window to icicle-other-window-or-frame.  If you do
      not want this remapping, then customize option
      icicle-top-level-key-bindings.

Go to window by buffername


Ribbon javascript function reference

Question: I was wondering whether there is somekind of reference available with the javascript methods called for each of the buttons in the ribbon. Question behind the question: I want to make a button on a wiki page which says "edit me", without the user having to go to the same button in the ribbon. Functionality should be exactly the same, but I need it on a different place. So what is the easiest way to find out which code the ootb "edit" button calls?
Answer: Here's a link that helped me out when I needed to find out what javascript function is bound to each ribbon button.
Basically, the steps you have to follow are (applies to sp2010, the might be slight differences in sp2013):

Find the id attribute of the ribbon button. eg. Ribbon.EditingTools.CPEditTab.Markup.Html.Menu.Html.EditSource-Menu16. Next go to 14 hive and under TEMPLATE\GLOBAL\XML\ find cmdui.xml file. This file contains the definition for all ribbon buttons in SharePoint. Search in this file by word Ribbon.EditingTools.CPEditTab.Markup.Html.Menu.Html.EditSource
Consider the Command attribute (which, in the example, is equal to EditSource)
search this command among SharePoint javascript files. Common architecture of ribbon handler involves javascript "classes" which can handle particular command. Each class has canHandleCommand method. Search under 14\layouts using pattern *.js by word (in the example, "EditSource"). Find handleCommand method in the class and take note of the line number.
in browser find this line and set a breakpoint, then you can step into to find the exact code that will be called (in the example, RTE.RichTextEditor.editSource() ). This is the handler
Answer: All you need to to is to pass some query strings to the aspx page without any JS call. As like in wiki this goes like this.

This works for every page and not only for wiki page. The valid control mode values can be found on the MSDN as the values for the display mode.

Ribbon javascript function reference


How does the GE H75 eliminate the need for hot section inspections?

Question: Operators of the Pratt & Whitney Canada PT6 will be familiar with the need for hot section inspections half way to TBO. General Electric is touting the lack of hot section inspection requirements for their GE H75 engine. How did GE eliminate the need for the added inspections?
Comment: It looks like they use single piece rotors where the PT-6 uses blades connected to a central hub to form the rotor. They also use more forgiving metals like titanium.
Answer: this is because the fact that GE H series engines do not have fuel nozzles and feed fuel into combustion chamber through a rotating shaft. this design is much less sensitive to the fuel quality and combustion deposits in comparison with usual fuel nozzles


Is it correct to write Na2B2O4 as 2NaBO2?

Question: My teacher wrote the reaction for heating of borax like this:
$$\ce{Na2B4(OH)4 .8H2O->Na2B4O7 + 10H2O}$$
$$\ce{Na2B4O7->B2O3  +Na2B2O4}$$
And told us that $\ce{Na2B2O4}$ can be written as $\ce{2NaBO2}$,is this correct?
If yes then why?
Answer: No, $\ce{Na2B2O4}$ can not be written as $\ce{2NaBO2}$. $\ce{Na2B2O4}$ means 1 mole of $\ce{Na2B2O4}$ and $\ce{2NaBO2}$ means there are 2 moles of $\ce{NaBO2}$. Both are different compounds and have different molar mass.
Actually in real $\ce{2NaBO2}$ should be written as $\ce{(NaBO2)2}$. Now, both $\ce{Na2B2O4}$ and $\ce{(NaBO2)2}$ are same.


Can No Longer Login With Ec2-user After Creating A New User

Question: I've tried looking in the forums before posting this but can't find anything that really addresses my issue.  Very simply, my problem is in the topic: I created a new user, afterwards, I can login with the new user, but when I try to use login as ec2-user, I get a message from the instance stating, "The client has disconnected from the server.  Reason: Unable to authenticate using any of the configured authentication methods."
I've been using the .pem file I got since I created this instance, which is Amazon Linux AMI.  When I created the new user, I essentially used this guide, but for completeness (since I know the devil is in the details), I can list everything that I typed.
sudo adduser exampleuser
sudo su exampleuser
mkdir .ssh (made sure I was in home dir of exampleuser)
chmod 700 .ssh
touch authorized_keys
chmod 600 authorized_keys
su
usermod -a -G ec2-user exampleuser
ssh-keygen -t rsa <asked me what filename to save as, I put exampleuser.pub>
cat exampleuser.pub >> ~/.ssh/authorized_keys
chgrp ec2-user /home/ec2-user
chmod g+rwx /home/ec2-user

Now, what probably screwed this up is that there is a program in the ec2-user home directory that the new user(s) will need to have access to, so I added them to the ec2-user group. I've looked in /etc/group and I see ec2-user is a member of "wheel" and exampleuser is a member of "ec2-user" as well as group "exampleuser", however when I type "groups ec2-user" it gives output of:
ec2-user: ec2-user wheel

while "groups exampleuser" gives output of:
exampleuser: exampleuser ec2-user

One thing I did have the presence of mind to do is create a root user (or set a root password), so I can become root on this system, hopefully this will allow me to fix things? I went back and looked at /home/ec2-user and saw that the .ssh directory had the wrong permissions so I did "su -l ec2-user" and redid "chmod 700 .ssh" as well as "chmod 600 authorized_keys", but it didn't make any difference.  I also compared the public key in authorized_keys in the /home/ec2-user with the output from PuttyGen on my .pem file and it matches.  Please tell me what I'm missing to allow me to log back in with the .pem file as ec2-user?
If there's more information that's required, please let me know and thank you.  I hope that this is in the right place, my apologies if it isn't.
Answer: I found the solution to this, it was that the permissions on the ec2-user directory were 774 instead of 744.  Changing this allowed me to be able to log back in with the ec2-user.  Hopefully, this will help somebody else out there.


Ni-NTA purification, problem with the chaperone protein

Question: I'm trying to purify the protein by Ni-NTA affinity chromatography. It seems that my protein (size about 54 kDa) is co-purified with chaperone protein (probably GroEL  - as the band is around 57kDa).
I tried the method where 4M glycerol and ATP is added to the wash buffer 1 and then I incubated this with the resin for 2 hrs in 4C, but it did not help.
Has anyone met such a problem before? I will be grateful for any advices.
Answer: If chaperone proteins are not an expected binding partner to your protein/peptide fragment then you need to use imidazole in your lysis and wash buffer ranging from 1 to 10 mM depending on how stringent you want but 1 mM worked for me. Can go higher than 10 mM if the problem does not resolve but don't go too high since imidazole is also used to get the purified proteins off the nickel beads as an elution buffer!
Comment: Also in what system are you over-expressing your protein since what you are seeing at 47 could be the result of post-translational modifications (http://www.embl.de/pepcore/pepcore_services/cloning/choice_expression_systems/comparison_expression_systems/index.html), which can increase the MW of your protein from 54 to 57 kDa! i.e. what I'm saying is how do you know you are co-puryfying a chaperone?
Comment: My lysis buffer and first wash buffer contained 10 mM Imidazole, then I made second wash with 10% buffer B in A, and eluted protein with buffer B contained 250 mM imidazole. The band of chaperone protein appear in 'second wash' fraction  and 'elution' fraction but mostly in 'elution' fraction.
Comment: The go higher, try 25 or even 50 mM in your wash buffer (and maybe lysis buffer). I know someone had this very exact problem and increasing imidazole concentration solved it! I can't remember the exact conc they used but it was between 20-50 mM (that I remember for sure!). However it might effect your purification yield, but thats the compromise you might have to make. If you have high amounts of purified protein, then it shouldn't matter!
Comment: Also try increasing your wash numbers since two is far too low! Try 5 perhaps. I do 3-5 washes.
Comment: I did western blot, so I know which band is my protein - it is below the bigger band. It is T7 expression system which is started by adding IPTG to medium in final concentration of 0.1 mM.
Comment: ah, so you did an Ab based assay of your protein after pulldown with Ni beads and the second protein did not produce any signal? or you just did a coomassie stain in a SDS-PAGE gel? Although it's commonly said in science that in _E. coli_ you don't get post-translational modifications but it does happen! (http://www.sciencedirect.com/science/article/pii/S1874391913004533) so my question is what have you done to exclude the possibility that the higher MW band is not your protein?
Comment: I don't see how "did a western blot" would not involve antibody-based staining, though.
Comment: I was confused as to whether at which stage (coomassie stain or WB) the OP was observing the extra bands when referring to WB (as commonly done) was not referring to commassie by mistake. This was just for clarification purposes.
Answer: Is it possible to clone your gene of interest onto a new plasmid (preferably with a GST/avidin/alternative tag)? If all else fails, this would probably remove the problem with elution.


Logging in as the same user multiple times in Remote Desktop Windows Server 2008

Question: Quick question:
I have a situation where I need to let multiple people on different PCs log into one server 2008 machine as administrator simultaneously over remote desktop. I have the CALs for it, it's just not set up correctly. When one user tries to log in, it boots the other out. What I need is to present to them a different session, just each as logged in as admin. Sorry for the slightly rambling post, I'm new here. Thanks!
Comment: Is this box setup as a (RD Session Host/Terminal Server)?
Comment: That's a new one for me!  I don't know the answer, but +1 for an interesting question.
Answer: A single user account can have multiple sessions in Windows 2008.  On the server, run tsconfig.msc to bring up the Remote Desktop Session Host Configuration.  Under "Configuration for server", double-click any of the general settings.  Uncheck the box next to "Restrict each user to a single session" and click OK.
Comment: @Craig, What's the equivalent of `tsconfig.msc` in the other Windows Servers? I can't seem to find it both on Server 2003-R2 and Server 2012-R2. Do you mean `tscc.msc`?
Comment: By the way, I did this for a while and now there are always two sessions I have to choose from... not sure where I should log out from but I've disabled this again after a brief discussion.
Answer: That's by design. Give their accounts the proper permissions they need on that server and have them log on as themselves instead.
Is there any special reason for them to share an account?
If the server is set up as a real Terminal Server (ie not just using the default Administrative Remote Desktop) then the single session per user enforcement should be possible to turn off. But the additional problem of never being able to reconnect to the same session seems like an annoying prospect - so setting forced logoff after some time would be essential and so on... it's just, wrong ^^
Comment: @Little_Johnn in this case I think you will have to tell them they are wrong, and it's not the way, because it's not going to work the way they want, although you'll prob want to phrase it better than that!
Comment: Well that's one way of looking at it, another is that part of an administrator's job is to promote best practice and initiate change. Should be easy to tell them it's simply impossible rather than the fact that it's also stupid ^^ But check my edit
Comment: They want it this way because they believe it is "the way" to do it. I work in a very small company and being just out of college means I have to bow to everyone's wishes, best practices be damned. Not ideal, but at least I have a 9 to 5.
Comment: That's why I used a Citrix Metaframe dedicated NT machine back in the day. It was terribly expensive but completely flexible. And yes, I took your advice: Each user logged in as themselves. Made searching logs easier for me when there were the inevitable issues.  http://toastytech.com/guis/remotecitrix.html
Comment: I seem to recall in my foggy memory something about a maximum number of RDP connections on Windows Server when it was in "admin only" mode.  I'm wondering if he doesn't have it "switched" to the proper mode, and so when one admin connects, the server follows its one and only imperative: kick the other admin out. :P  Sounds like the RDP connection settings are not right.
Answer: You can do this by setting the fSingleSessionPerUser registry key: http://remotedesktoprdp.com/force-single-session-allow-multiple-sessions-per-user
Comment: I've tested this and it works on 2008 and 2012
Answer: While you can do as Craig Putnam suggests, I would not.  Instead, create individual admin accounts on the machine for each user.  This promotes accountability.  Even with auditing disabled/not configured, some things can be tracked and you can at least have a chance at identifying the person/persons who mess up the server.
Can you otherwise clarify why it must be the way they want it?  When you give full details, we may be able to present other ideas that can be even better than what you were initially hoping for...
Answer: Yes it is possible even on windows home or home premium it can be done both manually or with a download. I use it all the time because it saves me allot of time. Its called Concurrent RDP Patcher and can be downloaded here : http://www.raymond.cc/blog/download/?did=125
This allows more than one user to access the device with only one admin logon.
Comment: I do agree however in regards to the several comments in regards to accountabillity as you would not know who did what using any other means.
Answer: If all the users are using the same username to login, I dont even see the need to spend on the CALs. I suggest you create unique accounts for all users, and activate the CALs with per user on the terminal server.
(CALs are used per user or per device basis)


Can you use a microscope without an eyepiece?

Question: Can you use a microscope without an eyepiece?
Comment: Yes, sort of. I tried it just now - take the eyepiece out and look down the tube.  However, the view area is smaller, and you lose the magnification of the eyepiece.
Comment: Do you mean without a camera too and looking straight into the tube?
Comment: yes I do mean that.
Answer: Yes, you can. I have a microscope where the data can be transferred to a screen on a computer instead of going to the eyepiece. This microscope has both an eyepiece and the option to redirect the image to a screen. However, I also have a microscope with a screen only. So, I suppose you can have a microscope without an eyepiece.
I have never come across a microscope that has neither an eyepiece nor a camera but I don't know whether it's possible or not.
Comment: You might want to edit your answer to address the OP's answer to my comment under the question.
Comment: Surely you have taken the eyepiece (or the camera) out of your microscope?  I think with most the eyepieces just slide in - mine works that way.
Comment: @jamesqf I have not taken the eyepiece out. It arrived without an eyepiece, just with a screen.
Answer: A microscope composed of a single lens is called a simple microscope. In fact you can use an objective or just the eyepiece, as a magnifying glass. Antonie van Leeuwenhoek's microscope's were simple microscopes.

Source: Wikipedia
In contrast, compound microscopes (by far the most common type nowadays) are composed of two or more lenses. I would argue that their benefits compared to simple microscopes include:

Multiplicative magnification arising from the combination of lenses.
Ease with which the objectives can be interchanged independently of the eyepiece offering different magnifications.
Easier to achieve an ergonomic design.
Advanced illumination setups, such as phase contrast.
Cheaper to provide stereoscopic vision and achieve parfocallity with two low-magnification lenses that are able to be focused independently than having two high-magnification lenses.
Some eyepieces additionally correct for aberrations.


How to create a hook?

Question: How can I create my own hook (similar to the ones Drupal core creates) for other Drupal modules to utilize?
Answer: You don't actually create hooks. You use helper functions such as module_invoke_all(), module_invoke() or drupal_alter() to invoke all functions matching the expected name pattern. The invoked functions are usually found with  module_implements().
Even if it is not needed for the hooks to work, the best practice is to document them in MODULE.api.php by creating empty stubs hook_NAME functions with documentation comments.
Comment: +1 about the documentation, that is a new coding standard from Drupal 7 and many contrib modules started using it for D6 too. Note that instead of an empty function, it's even better when you provide an example implementation to show what can be done with that hook.
Comment: Usually, you provide code for the hook listed in MODULE.api.php if there is an actual implementation of that hook.
Answer: You can also create hook, using hook_trigger_info you can create new hook, and in your module you need to implement it. As an example, suppose you want to create an archive  of nodes and put old nodes in it. You also want to trigger a hook when the archive operation is done. it is going to be some thing like this
function hook_trigger_info() {
    return array(
            'node' => array(
                    'archive_nodes' => array(
                        'label' => t('Archive old nodes'),
                    )
            )
    );
}

After defining the hook, your module is responsible for implementing the hook and actions using module_invoke() or module_invoke_all() .
You can enable the trigger module to see this new hook under the node tab.

How to create a hook?


Can I cross the border from China into Vietnam on a motorcycle?

Question: I have a 100% legally registered motorcycle and drivers license in China and I want to ride into Vietnam on a motorcycle. Is this possible with just those two, plus my passport and visa, American drivers license and an international driver's permit?
Answer: Motorbikes up to 50 cc can be ridden without a license in Vietnam, but this size of motorcycle is not suitable for extended travel throughout the country.
International Driver Permits from China aren't valid as they haven't signed the Vienna Convention On Road Traffic.
The Wikipedia article states:

The United States and China are the most notable examples of non-signatory countries

But you must hold a motorcycle license at home and have it registered on the IDP. Australia, UK, USA, and Canada have signed only the 1949 convention on IDPs, so they are not valid and you will be riding illegally.
A Vietnamese license is otherwise required.


Best way to grow Lion's Mane mushrooms?

Question: I want to have success with Lion's Mane. I tried Oak logs some years ago and got nothing.  I need info on using wood pellets and plastic bags (I have a large basement). This sounds like a faster way to get results than logs. Put me on to a link if you can or share your ideas.
Comment: To begin with, a grower will have to wait for two years after inoculation before fruiting commences, rather than just one year in the case of shiitake.
Comment: I am aware of the long wait and I read somewhere that it could be lowered in a plastic bag / straw set up in a basement.  That would sure beat waiting two years for a dud.  PS- I saw False identity and thought they were referring to  me.  I tried to fix the problem for a long time, I'm new here.
Comment: fungi perfecti sells an indoor kit... that is based on alder chips and sawdust in a spawn bag... I suspect you could do the same thing...
Answer: If this is your first time, I'd go with un-supplemented hardwood pellets.

Order some spawn from a reputable vendor. I'd start with heavy inoculation rates, say 1:5 or better (ex. 1 lb, (or more) spawn to 5 lbs. of substrate)
Prepare your substrate. This page will get you going in the right direction.
I have had pretty good results with lion's mane (and various oysters) using the non-sterile method outlined by Dr. Rush Wayne in his detailed booklet "Growing Mushrooms the Easy Way."  The photo below shows the results of one of my early grows on un-supplemented hardwood pellets using Dr. Wayne's peroxide method. Those are small baskets lined with thin plastic bags. They contained about 12lbs of substrate/spawn at a ratio of about 1:10 or so. This required no sterile technique, no special equipment, and the substrate was just hardwood fuel pellets with a few tablespoons of gypsum.
I do now use sterilized supplemented hardwood pellet blocks because they give better and faster results (fruit within a month rather than 2 months if I recall correctly). But it is a lot more work and requires a lot more equipment. But I attribute my continued interest in cultivation to those early successes I had with the peroxide method.
Answer: I find them naturally in my area fairly frequently since most of the woods here are hardwoods with multiple oak species.  Laurel oaks seem to be the primary tree species for sources.  Drop a pin for that tree and return often for repeated harvesting.  Once you ha e 10-20 trees pinned, you wont need to grow your own.

Best way to grow Lion's Mane mushrooms?


Third person POV

Question: Can writing in the third-person limited omniscient POV include internal monologue and character thoughts?
Answer: Depends on what your "limit" is.
If you are limiting yourself to one character, then yes: the Harry Potter series is told in third person limited omniscient, and we get Harry's thoughts, but no one else's (other than two or three specific chapters in the entire series). But if something doesn't happen to Harry, or if he doesn't see it or hear about it, then the reader can't know it.
If by "limited" you mean that you are telling the story as though you are describing a movie, so the reader can see actions going on at any place or time and focused on any character, but can only observe the action through the five senses, then no: you aren't giving anyone's POV.
Pick one and stick with it.
Comment: Good answer, but not all movies exclude character thoughts (which can be done as a voice-over).  Your example in the second paragraph is usually referred to as "third-person objective POV".
Comment: @Panda: Is that the correct term? Thank you. It's been a while since I learned the terms in school. :) I use the movie example as an easy way to explain to writers whom I'm editing what a specific character (and thereby the reader) can and cannot know: "Imagine you're watching a movie. Tony is jealous of Rico because Rico is flirting with Lola. But the only way we can know that is Tony's expression, words, and behavior. Don't say 'Tony is jealous;' describe him BEING jealous." To me, any movie which is giving a voiceover of a character's thoughts is being told in first person.
Answer: Constant switching between third-person and character thoughts is definitely considered bad style (advice taken from here: http://www.amazon.com/Write-Novel-Them-Misstep-Misstep/dp/0061357952, funny and useful book btw)
However, if you are telling someone's story throughout the novel - then is acceptable if you would also write down the protagonist's thoughts.
If you write several character thoughts constantly the reader might start feeling like he's going mental :)

Third person POV


Is there any non-gaussian distribution has skewness 0 and kurtosis 3?

Question: Is there any non-gaussian distribution has skewness $0$ and kurtosis $3$?
Thanks!
Comment: I don't think the downvotes and votes to close are justified, although the formulation of the question could be improved.
Answer: The discrete distribution with probabilities
\begin{align}
p(-2)&=1/12\\
p(-1)&=\ 1/6\\
p(0)&=\ 1/2\\
p(1)&= \ 1/6\\
p(2)&=1/12
\end{align}
has the same mean, variance, skewness and kurtosis as the Gaussian.
Answer: Note that in terms of cumulants $\kappa_n$, $n\ge 1$ one has
$$
{\rm Mean}=\kappa_1
$$
$$
{\rm Variance}=\kappa_2
$$
$$
{\rm Skewness}=\frac{\kappa_3}{\kappa_{2}^{\frac{3}{2}}}
$$
$$
{\rm Kurtosis}=3+\frac{\kappa_4}{\kappa_2^2}
$$
My understanding of the OP's question is whether there are RVs other than the $N(0,1)$ which satisfies $\kappa_1=0,\kappa_2=1,\kappa_3=0,\kappa_4=0$.
This is the truncated Hamburger moment problem for the sequence of moments
$$
(m_0,m_1,m_2,m_3,m_4)=(1,0,1,0,3)\ .
$$
The corresponding Hankel matrix is
$$
H_2=\left(
\begin{array}{ccc}
1 & 0 & 1\\
0 & 1 & 0\\
1 & 0 & 3
\end{array}
\right)
$$
which is nonsingular and thus has Hankel rank $3=n+1$
for a sequence of moments $(m_0,\ldots m_{2n})$.
This implies that there are infinitely many atomic measures (with $n+1$ atoms) that have the moments up to order four as the standard Gaussian. So the answer to the OP's question is yes.
The above is a particular case of a result by Curto and Fialkow in Houston J. Math. 1991.
A good account is in chapter 9 of the book "The Moment Problem" by Konrad Schmüdgen.
A perhaps more interesting question is under what extra condition does the answer become no, i.e., one has uniqueness. Being in fixed wiener chaos comes to mind because of the fourth moment theorem. There is a similar result by Newman for RV's that satisfy the Lee-Yang theorem as in ferromagnetic spin systems (see Theorem 3 in this article). Approaches to triviality of the $\phi^4$ model in dimension $\ge 4$ also use the fourth moment to show
the Gaussian property.
Answer: Yes, there is. The Laplace$(0,\frac{1}{2})$ distribution has the
required properties. Its probability density function is given by
$f(x)=\exp(-2\lvert x\rvert)$ over the real line.
Comment: ...and therefore any convex combination of the density functions of this and the Gaussian will have this property.
Comment: Lapalce$(0, \frac{1}{2})$ has skewness 0 and excess kurtosis 3. Sorry for not making clear. By kurtosis $3$ I mean excess kurtosis $= 0$, like Gaussian distribution.
Comment: I was reluctant to propose mixture-based answers with weighted normality but thank you for your comment!
Answer: Skewness and Kurtosis, opposite to the popular belief, are non-uniquely defined concepts. There are general definitions of Skewness and Kurtosis:
Convex transformations of random variables
and the definitions based on the third and fourth moments are just one of them. In fact, these definitions are not even defined for all distributions, as the Cauchy distribution, a clearly symmetric distribution, has undefined skewness and kurtosis.


Is there way to change a status of a safecracker entry with jquery?

Question: I have a safecracker entry that I would like to change the status via jquery onClick or Submit? For example, I have one button that would be "save and preview" that onClick would change the status to "preview". There would be another button onClick button "Submit for Review" that would change the status of the same form to "pending". Is this possible?
Answer: You can do it easily with the Mefu
Just create a template having mefu tag OR just put this code within a template like tempgrp/tempname:
<code>{exp:mefu:save}{/exp:mefu:save}
</code>
and put this JQuery code to post the entry status to above template:
<code>$.post("temp_grp/temp_name", { "[entry_id]:staus": "Open", mefu: "submit" }, function(data){
alert('status updates')
} );
</code>
For the same purpose, you can write the UPDATE query to update the entry status.
For the preview, use the load() of JQuery like:
<code>$.post("temp_grp/temp_name", { "[entry_id]:staus": "Open", mefu: "submit" }, function(data){
$('#container_id').load('preview_template');
} );
</code>


Should I provide a dieline around a package design?

Question: I designed a package for a client. I did the design under a dieline. This means that there are still red lines around the design. Should I send this file to my client or should I clear the dieline before sending the file?
Answer: Your dieline should go on its own layer, called DIELINE. (In the shop where I worked for a long time, it was called DIELINE — DO NOT PRINT.) Then the client can turn it on or off as needed.
Comment: You forgot to mention that the dieline should be set to overprint if possible.
Comment: @LateralTerminal good idea! I didn't work in the prepress department, so I didn't know that.
Answer: If you are going to be the middle-man between your client and the printer I would consult with the printer on what they prefer.  If you are going to be giving the designs to the client I would give them a .pdf file with the option of turning on and off the DIELINE Layer.  So you will be giving them a final .pdf file with no less than two layers, 1st Layer the design and the 2nd layer the DIELINE..  NEVER give them the raw files!
If I were you I would have asked this upfront and asked the client where they intended to get the package design printed so you could possibly consult with them on what protocol is for delivering files.
Some printers do not want them with the supplied design because they are adding their own or have a preflight standard in place before it goes to the printer.
Comment: I usually use a spot colour with overprints rather then the two layer PDF. In my experience there are still some prepress guys who don't like dual layered PDFs. Check with your printer, bottom line.
Comment: Why shouldn't you let a client have the raw files?
Comment: @StuartP.Bentley A client with raw files has the capacity to screw up the files and make them unprintable, or to alter the design radically so it looks bad and damages the designer's reputation. It depends on the client and the contract.
Answer: It is normal to provide graphics without any guides.
The dieline is usually placed into the graphic file as a separate layer for sizing and orientation purposes. A dieline is usually not printed on the final piece but is used to determine correct layout.
Answer: If your client loses orientation without dielines. Leave them in.
If your client can get the bigger picture without it, leave them out.
Answer: If you've gone to the trouble of creating a separate layer and included the dieline (also cutter trace or cutter guide), then leaving it in really isn't an issue (on the contrary).
There can sometimes be some confusion if it's all in a single layer and made up from CMYK rather than being isolated via a separate spot – this does require the designer/repro to remove the trace by selecting and deleting what can often be a series of unjoined lines. Hence the possibility that elements can be left in inadvertently.
As package producers, we have a series of internal checks for this and various possible issues – and we rarely pass artwork back if we can help – it's our job after all. But sometimes it's easier to revert to the original artwork and request that the trace is removed before re-submitting just to be sure.
Even if we've supplied the trace, we still remove it and re-apply the approved manufacturing version to ensure nothing has happened to the artwork in terms of scaling, etc., and that we're working to the correct version of the approved sample. And if it's a structural design which has been submitted by a customer, we still totally re-draw the file to ensure it's correctly specified for the die maker and works for our machines.
So ultimately it helps to have it removed, but we try to do our best however the artwork arrives.
Comment: Please don't 'sign' your posts with a link to your company--self-promotion is what your profile page is for. We have had a lot of spam attacks lately, and the community cracks down *hard* on anything looking remotely like spam. Please have a look at [how to not be a spammer](https://graphicdesign.stackexchange.com/help/promotion) to get some tips to avoid downvotes and spam flags on your answers. Thanks for understanding.


How do I write romance if I've never been in love?

Question: I've been trying to write a good romance but it's falling a little flat. I think it might be because I've never been in love before. My favorite genre is romance (for reading and writing), but I'm kind of bad at writing it. I think it might be because I don't know how to write entertaining banter or deep conversation. Is this an unfixable problem? Should I just write another genre?
Comment: I'm quite sure George Lucas never held a lightsaber before, nor did he travel faster than light, yet Star Wars was successful. Fiction is more about making a connection with the reader than about being right - and when it comes to love, right and wrong are too abstract to make a judgement about what is right/good and what is wrong/bad (within the limits of common sense).
Comment: Tom Clancy never captained a submarine or was a bookish CIA analyst-hero, either, but successfully wrote a **lot** of technothrillers.
Comment: @TimothyAWiseman : yet they have to do a lot of research to write something believable. And in case of historical fiction they have to know the time period they are writing about at least somewhat better than the average reader.
Comment: @vsz I respectfully disagree with fantasy. If they want to achieve real verisimilitude, they need to do a lot of research, but many successful fantasy writers don't even try for accuracy and still create good stories. It is so common that really doing your homework can make things seem less realistic because most people are far more used to fiction than reality. As just one example, back sheathes are all over in fiction, but they were uncommon in real life and it was...very awkward to draw any weapon longer than your arm from a back sheathe.
Comment: Fantasy authors of necessity have to write about things they don't know.
Comment: @vsz True, if you claim you are writing accurate historical fiction then you need to get the details right, but that is a different market altogether. I'm not sure that interest in historical accuracy is increasing when it comes to fantasy though. I know how hard it is to draw a sword from a back sheath, yet I think The Witcher is great. I know how very rare and difficult fighting with two swords of the same length was historically, but I still like Drizzt Do'urden.
Comment: @RonJohn In the real world most back sheath were meant as a way to transport the weapon long distances. They were normally taken off the back to either un-sheath or re-sheath. Weapons meant to be ready at hand were normally either carried on the hip or carried in the hand (renaissance walking sticks were often just nice looking clubs that could be used as a weapon). The very word for weapons meant to be ready to hand is "sidearm" for a reason.
Comment: @TimothyAWiseman : however, as interest in historical accuracy increases (thanks to more easily available information), fully disregarding historical accuracy might invite a lot of criticism. But I agree, with fantasy it's easier to maintain suspension of disbelief. However, claiming to write accurate historical fiction and failing is another piece of cake, and you will end up being ridiculed if you make too many mistakes.
Comment: @TimothyAWiseman what makes me wonder is how you **re**sheath it!!!
Comment: BTW this is an important plot point in Star Trek: Deep Space Nine when Sisko finds out that his son has been writing stories about a notable in-universe terrorist group, and worries over how he learned enough about them to write.
Answer: While it's certainly easier to write about things you've had personal experience of ("write what you know" and all that) it's certainly not impossible so I wouldn't call this an unfixable problem, rather it's a difficult one.
You mention that romance is your favorite genre to read - so you've probably got a decent amount of experience as to what works in a romance story even if you don't realise it.
My advice would be to build on that strength and work on using it to improve your own writing, read as much romance as you can both good examples of the genre but just as cruicially bad examples. Use the contrast to illustrate what works, what doesn't and why.
Take pivotal scenes of the sort you're looking to work on in a good example and break them down, take notes about what the author is doing to provoke emotional responses in the reader and then do the same analysis on a "bad" example, you should start to be able to see what's missing.
I'm not going to sugar coat it - this isn't a particularly enjoyable process, and worse it can end up ruining your ability to enjoy consuming a genre. Like when you understand how a magic trick is done it loses it's ability to impress you. But put the work in and you will get better at it.
Another key thing is that if you don't have them already you need some reliable beta readers - find some folks you trust to give you honest feedback and appreciate the genre and have them read your stuff. You're never going to have the same emotional responses to something as the author as a reader will as you know the work too well to be properly swept along in it.
Comment: It's also worth noting that the romance genre in particular is not necessarily popular because of its realism - arguably, some/much of the appeal is the lack of realism involved. So having been in love yourself won't necessarily give you many insights into what romance readers like.
Comment: @ColumbiasaysReinstateMonica: That may be, but is it because Arthur C. Clarke was never in love? Or just because he's bad at writing romance scenes? I'm not saying romance writing is easy, just that it's not necessarily based on portraying things realistically.
Comment: @V2Blast true, but IME some of the worst writing I have ever seen is bad romance. Arthur C. Clarke was usually a very good writer, but his love scenes were worse than the Star Wars prequels.
Comment: "Write what you know" is often miscontextualized. It does not just talk about personal experience; rather than to do your damn research.
Answer: You ask an interesting question. However, you should consider the validity of the premise. Apply the same logic to other scenarios.

How can I write a fight scene if I've never had a fight?
How can a write a male character's POV if I've never been a man?
How can a write a space opera if I've never been up in space?

If we get into the mechanics and technical aspects of story-telling, your lack of confidence means you cannot write romance from a first-person POV. Third-person shouldn't be a problem because I'm sure you have observed people in love. In accordance with mantra 'show don't tell' all you are required to do is show the actions of people who you believe are in love. Not describing their feelings will probably make for a better piece of writing.
The truth is 'love' is not a 'standard' feeling. It is personal to the individual. You can't get the behaviour wrong. On the one hand you can go with Shakespeare's well used trope. "The lady doth protest too much, methinks."
You should also consider that the answers aren't necessarily in a book or real life. Millions have committed their feeling to song. Joe: "I'm in love. Round and round I go, out of control - I'm in love."
Betty Hutton and Bjork couldn't control themselves. https://www.youtube.com/watch?v=horRWtbAJoI
Whitney Houston got all desperate: https://www.youtube.com/watch?v=FxYw0XPEoKE
Meatloaf had his say: https://www.youtube.com/watch?v=9X_ViIPA-Gc
The Proclaimers went big: https://www.youtube.com/watch?v=tbNlMtqrYS0
Over the centuries so many artists have written about their particular version of love - you don't actually need to redefine it.
Answer: "Don't write about something you don't know about" is common advice.
The examples mentioned above are not very useful. It's true that George Lukas never held a lightsaber, and that Tom Clancy never captained a submarine. However, their works are not about that. These are just elements in a bigger plot, comprises of adventures, epic battle, intrigue, and so on. A successful writer will definitively know something about the psychological aspects of these to impregnate them into words.
What about writing a romantic novel about someone who has never been in love?
Comment: An important omission in those comments you refer to about lightsabers and submarines are that _almost no one else_ has experience with those things either. Writing about something that 90% of the population has experience with is quite a different thing.
Answer: Don't discount your life experiences just because you don't think that they fit into the realm that is most widely agreed-upon. Just because you haven't fallen in love yet doesn't mean that you haven't experienced love.
I would like to see more diversity in how people experience and perceive the world. So that includes your love for things that you have done or experiences that you have loved. Think about those things that get you excited and make you smile even when you are not experiencing them. Then try to draw a parallel in your mind to the interaction you are trying to write.
If the interaction makes you smile there's a good chance that it will make the reader Smile as well.
Answer: Honestly, if you are writing a story, it can be anything. If you want you can refer to other romances whether it be a book or movie-- however, you could also just make it yours. Romance comes in hundreds of forms so there's really no rights or wrongs. I hope this helps.


"You are not the owner..." message when trying to access folder

Question: In the properties menu of this folder the permission is set to "root" user and group, it shows the message "you are not the owner, so you cannot change these permissions."
I am indeed the owner and only user of the machine, how can I change the permissions?
Answer: sudo chown -R username /path/to/directory

You must have sudo privileges though!
you should use -R option to operate on files and directories recursively
Comment: Please be careful suggesting that a user change the ownership of a file that belongs to root. It probably belongs to root for a good reason.
Comment: Dude i know what it does..Guess you missed this part from his question `how can I change the permissions?`
Comment: he wanted to see what's in that folder, i told him how, though i agree with your suggestion.
Comment: chown actually *sets* the permissions. To view the permissions you would use ls -l filename or ls -ld directory name.
Comment: No, I caught that. Apparently I miss read your comment about seeing the content of the folder, as seeing the ownership of the folder. My apologies
Comment: It's ok. We are both trying to help people.
Answer: This is not telling you that you don't own the computer on which the folder exists. It's telling you that you don't own the folder. This is a very different concept of ownership.
On your Ubuntu system, your user account doesn't automatically have the ability to perform any possible action--some administrative actions can only be performed by root, the superuser. However, this user is not any real person and, in Ubuntu, you don't log in as this user. Instead, Ubuntu provides facilities like sudo and gksu to perform actions as root.
You should check out the three links above. Once you've read that, if you still want to change the permissions on that folder, here's one way to do it:

Press Alt+F2.
Type in the command gksu nautilus and press Enter.
Now you have a file browser window running as root. You can change the permissions with this. Any program you open from this will run as root too. You should use this carefully and sparingly.
Make sure to close this root Nautilus window when you're done, so you don't accidentally use it for something that you don't need to be root to do.

Before you change the permissions (and/or ownership) on this folder, you should be aware that doing this to system files in Ubuntu can have negative consequences: you can make your system insecure...or even stop your system from working.
If these files have the wrong ownership/permissions because you brought them over from another system and did so as root (for example, if these are recovered documents), then go ahead.
But if these are systemwide configuration files, programs, or you're not sure what they are but you're trying to follow instructions that tell you to do something with them ...then you'll be much better off to ask specifically about them. You can edit your question or post a new question to ask if it would be safe for you to change ownership/permissions for this specific folder (provided that you can disclose what this folder is and what you are trying to accomplish).
Answer: You need admin privileges to accomplish that. RootSudo


Why is the hypothesis function $h_{\theta}(x)$ equivalent to $E[y | x; \theta]$ in generalised linear models?

Question: Reading through the CS229 lecture notes on generalised linear models, I came across the idea that a linear regression problem can be modelled as a Gaussian distribution, which is a form of the exponential family. The notes state that $h_{\theta}(x)$ is equal to $E[y | x; \theta]$. However, how can $h_{\theta}(x)$ be equal to the expectation of $y$ given input $x$ and $\theta$, since the expectation would require a sort of an averaging to take place?

Given x, our goal is to predict the expected value of $T(y)$ given $x$. In most of our examples, we will have $T(y) = y$, so this means we would like the prediction $h(x)$ output by our learned hypothesis h to satisfy $h(x) = E[y|x]$.
To show that ordinary least squares is a special case of the GLM family of models, consider the setting where the target variable y (also called the response variable in GLM terminology) is continuous, and we model the conditional distribution of y given x as a Gaussian $N(\mu,\sigma^2)$. (Here, $\mu$ may depend $x$.) So, we let the ExponentialFamily($\eta$) distribution above be the Gaussian distribution. As we saw previously, in the formulation of the Gaussian as an exponential family distribution, we had μ = η. So, we have
$$h_{\theta}(x) = E[y|x; \theta] = \mu = \eta = \theta^Tx.$$

EDIT
Upon reading other sources, $y_i \sim N(\mu_i, \sigma^2)$ meaning that each individual output has it's own normal distribution with mean $\mu_i$ and $h_{\theta}(x_i)$ is set as the mean of the normal distribution for $y_i$. In that case, then the hypothesis makes sense to be assigned the expectation.
Answer: In generalised Linear models, each output variable $y_i$ is modelled as a distribution from the exponential family, with the hypothesis function $h_{\theta}(x)$ for a given $\theta$ as the expected value of $y_i$ and maximum likelihood estimation is usually the method used to solve GLM's.


Hand-histories of successful players

Question: Are there any good players who have uploaded some of their hand-histories somewhere?  I am looking for at least a few thousand unfiltered hands including hole-cards. I need this to learn how the best play.
Comment: I think it's not only a valid, but a good question, sadly there is no shortage of self-righteous people who can't stop second-guessing. If questions whose answers have the potential to lead to morally questionable behaviour I'd suggest to make it explicitly so in the faq and be done with it. No need to engage in passive agressive discussions.
Comment: I don't think this is the sort of question we are looking for on this site. Its not likely to be useful to anyone. Please either rephrase it and expend on why you need it, or delete the question.
Comment: And just an FYI, sites that sell hand histories are doing so against the wishes of the people that were in the hands as well as against the wishes of the online poker sites themselves. So you'll generally want to avoid them.
Comment: You shouldn't look at hand histories of other players. It's better to learn by playing. If you can't improve anymore, you probably are on the edge of your game.
Comment: @ValentinGrégoire By that argument why are you even on this site.  Learn by playing.
Comment: Maybe post on http://opendata.stackexchange.com/
Answer: There are many better ways to learn than that. You're unlikely to find hand histories from professional, or highly skilled amateurs, easily available online. Releasing said hand histories would be suicide. The closest your going to get, and easily one of the most productive ways to improve your online poker game, is to watch videos of skilled players playing. They will either explain what they're doing in real time or review their play afterwards. Reading poker books, online poker forums, watching videos, and so on, is definitely more productive than going through hand histories of high stakes pro's. You would have no idea why they're doing what they're doing.
There are generally two types of players a poker regular has to concern himself with. Fish and other regulars. When playing fish all said player has to do is identify the fish's strategy and implement the maximally exploitative response. However, against another regular, said player also has to be concerned about balancing their own strategy as well. Reviewing hand histories between two regulars without knowing any poker theory, or the history between both players, will only teach you extremely bad habits.
Below are some training sites that release high quality instructional videos from professionals. And yes, you have to pay for them.

Cardrunners
Deuces Cracked
Run It Once
Tournament Poker Edge
Answer: There are many sites that sell hand histories:
Try searching Google.
If you're just looking for the way "good" players play, then you should be able to deduce that for yourself. For example, import the purchased hand histories into Holdem Manager or Poker Tracker or whatever you prefer. Filter the data for the kind of players you're looking for (e.g., look for players with large samples and good win rates in the games you want to play in). Then just review those hands.
It's pretty straightforward if you want to do this. Just search Google.

Hand-histories of successful players


What are the olfactory chemicals in whiteboard/permanent markers and what do they bind to in the nose, lungs, and brain?

Question: What are the olfactory chemicals in whiteboard/permanent markers and what do they bind to in the nose, lungs, and brain?
Comment: Anyway... [here](http://dx.doi.org/10.1002/cbdv.200890101) is one relevant paper on human olfactory receptors.
Comment: here's another paper that might shed light on the second part of your question... http://www.ploscompbiol.org/article/info%3Adoi%2F10.1371%2Fjournal.pcbi.1002224
Comment: personally i find ethanol and its closest homologs smell 'sweet'
Comment: That make some sense just looking at the mocules. They both bind to the olfactories in a similar way. using the H-OH side.
Answer: The smell of dry erase markers come from the chemicals ethanol, butanol and isopropyl alcohol. Like all chemicals inhaled through the nose, they bind to the Receptor neurons in the located in the back of the nose. The neurons interpret the chemicals using a 'lock-and-key' model but the specific way its coded and perceived in humans is still being researched and the process is not completely understood.


Ceiling Fan Capacitor Replacement

Question: I need to change out a ceiling fan capacitor, but cannot find exact replacement. 4.5uf(280v)+ 5uf (250v)+5uf(250v)....4 wire, per picture. What would be suggested replacement, based on if & the 280v to 250v?
Comment: Tried Galco in Madison Heights MI?
Answer: I found a cbb61 in about 10 seconds 5,5,4.5uf the same as you have for 6.29$ the wire colors may be different but that's not a problem it has 2 gray wires on the one side but you don't have to use both, just wire nut the extra off or put both under the same nut. On a 120v circuit 250v will be fine.
Comment: Does it have to be 5,5,4.5 or can it be 4.5,5,5?

Ceiling Fan Capacitor Replacement


Print composer changing orientation when saved to a template

Question: I am having an issue while creating a template. When I save my Print composer to a template for my peers to use, the orientation is not saved. I have changed the orientation from landscape to portrait, and then save the template and close it. when I reopen the template, the orientation automatically changes back to portrait. If I then change it back to portrait, my text boxes surrounding my map data frame are redistributed. I added a formula @layout_pagewidth = 210 and @layout_pageheight = 297 in an attempt to make the orientation permanent with no resolve.
Comment: Which QGIS version and for which platform are you using? I can confirm that this works fine for QGIS 2.12.0-Lyon on Windows 7 64-bit (both laptop and pc which I used to transfer the template file).
Comment: I am using the same QGIS 2.12.0-Lyon on Windows 7 64-bit. I save the template with the orientation set to portrait but when it is saved, closed, and re opened it has changed back to landscape. I can just hit the resize button and it fixes the issue, but when I share the template with peers that are not using Lyon, they don't have the same luxury.
Answer: I believe this is a WAD (work as designed). Before loading the template in the print composer, set the orientation manually to the correct orientation of the template. I usually add the orientation to the name of the template like A4_portrait or A4_landscape.
Comment: sorry, new to all of this


Trying to remember the name of a UML Diagramming Tool that saves its files as HTML/SVG

Question: I have used a tool that ran as a client application. It allowed for most UML Diagrams. It saved these diagrams as HTML/SVG. I cannot remember the name of the tool. So I am reaching out to the hive mind to see if anyone else remembers this tool (or is using it now).
Answer: Try digging for alternatives on draw.io her. It might be draw.io, i know it saves in either XML or HTML format, not necessarily sure about the .SVG though
Answer: I found a diagram that I had made with the tool.  Looking at the source I was able to find the product name.  It was referenced in a comment in the source.  It is called violet and can be found here: https://sourceforge.net/projects/violet/
Unfortunately, it appears to be a dead project.  Too bad I like the fact that it is lightweight and consumers of your diagrams need nothing beyond a fairly current browser.


Quantificational Logic Question (Determining Truth-Values)

Question: I was working through these questions and I just wanted to verify my answers since I don't have access to any solutions and I wanted to make sure I was on the right track:
Let the following be the non-logical symbols of CQL (classical quantificational logic): IS = {a, b, c}, VR (variables) = {x,y,z}, RS1 (one-place predicates) = {F,G,H} and RS2 (two-place predicates) = {R,S,T}.

Determine the truth-value of the formulae listed below, in
light of the following model: M = ⟨U, i⟩, where U (universe of discourse) = {1, 2} and
i: a→1;
b → 2;
S → ∅;
R → {⟨1, 1⟩, ⟨2, 2⟩}

(a) ∀x∀y(Sxy → Rxy);
Proposed Answer: True since nothing satisfies S so the antecedent is always False.
(b) ∀x∀y((Rxy ∧ Sxy) → Syx);
Proposed Answer: True (same reasoning as a)
(c) ∀x∀y((Rxy ∧ ¬Sxy) → Ryx);
Proposed Answer: True
(d) ∀x∀y((Rxy ∧ Ryx) → ∃z(Rxz ∨ Syz));
Proposed Answer: True

State the truth-value of the formulae listed below, in light of the following model: M = ⟨U, i⟩, where U = Z+10 (that is, the natural numbers 1 through 10) and R and S are interpreted as < and ≤ respectively (that is, Rab is interpreted as a < b and Sab is interpreted as a ≤ b).

(a) ∀xSxx;
Answer: True, since every number is equal to itself.
(b) ∀x∀y(Rxy → ¬Ryx);
Answer: True
(c) ∀x∀y∀z((Rxy ∧ Ryz) → Rzx);
Answer: False
(d) ∃x∀ySyx;
Answer: True (the natural number 10 satisfies this formula)
Answer: These all appear to be correct.
Comment: Great! Thank you very much for your feedback!


Garage gable fan proper installation

Question: I want to add a gable fan in my garage to help cool it and help to let out the humidity in the winter. My garage doesn't have a high peak, so there is about 24" of height at the peak on the gable and about 12" between the 2x4 vertical supports. It would seem that I would need to cut out a support in order to fit in a fan. Is this correct and what is the proper way to support the roof if a 2x4 needs to be removed in order to fit in the fan? Would it make more sense to do a roof mounted fan instead?

Comment: You probably really only need a gable vent. Let normal convection do the work.
Comment: You should not consider cutting supports to mount an exhaust fan. A fan intended for winter use would be small enough to exhaust between two of the supports. Is an exhaust fan for winter use in a garage commonly installed where you live? Where is this -- state and city or county?
Comment: If there is direct sun on the roof of this garage, then in summer it would have a high heat gain. A modern house under construction in my neighborhood has an open cell foam insulation sprayed on the underside of the roof decking. This allows any roof leaks to dry to the inside. The builder told me it gives R-30.
Answer: I hate adding anything to the roof, it just gives a place to leak.
That truss you need to cut is non-structural. It's made similar to a truss, so it will match the pitch, etc. Often carpenters will build a wall to match the pitch.
Therefore, yes, you can cut into that wall, cut through the middle 2x4 web (flat stud) and install a vent. (Make sure you don't cut the roof joists.) However, I'd add a 2x4 around the opening to stiffen the area where the vent will be installed.
However, I'd verify that that side of your house is not the windward side. (I'd prefer the leeward side.) Wind driven rain could push through the vent causing multiple problems.
Comment: I live in Denver. So in the winter we have snow and then next day it is sunny and warm. Snow melts off the cars in the garage and creates a lot of moisture. That is why I would like a vent or fan to help pull some of that out in the winter and reduce some heat in the summer. If I would install a vent to allow normal convection work, it seems like I should install a fan too since they aren't very expensive. I still would crack my garage entry door across from the vent/fan to help move the air. Does this sound right? This is a detached garage too.
Comment: @junta Hmmm...not sure how that would work. remember the same amount of air you remove will be brought into the garage too AND it will be the outside air temperature. If it's freezing outside, it could freeze the moisture indoors...before the snow turns to liquid and then turns to vapor.
Comment: In the summer, it would most likely be hotter inside a closed garage than the air temp outside. So wouldn't that thought work for hot temps? For winter, wouldn't it be the same concept as someone who runs an attic fan with soffit vents to remove moisture? Thanks for helping me think this through.
Comment: @junta We don't have snow where I live, so don't rely on me much for winter conditions. To remove hot air, yes the plan seems sound, unless you live in Phoenix and you're bring in 105 degree air, which might still be cooler then the trapped air in the attic.

Garage gable fan proper installation


How to have an object lie on a specific face

Question: I've been trying to get this object to lie flat on this face but I'm having no luck, any suggestions?
Comment: Try this answer - https://blender.stackexchange.com/a/183497/75504
Answer: Bmesh script

A script to transform the mesh object (ie alter its matrix world, not vertex coordinates) such that the active face centre is at global origin, and the face normal is oriented globally to (0, 0, -1)
Run in edit mode with a face selected.
<code>import bmesh
import bpy
from mathutils import Matrix, Vector

context = bpy.context
ob = context.edit_object
mw = ob.matrix_world
me = ob.data

bm = bmesh.from_edit_mesh(me)
f = bm.faces.active
o = mw @ f.calc_center_median()
gn = (mw.to_3x3() @ f.normal).normalized()

R = (Matrix.Translation(o) @
     gn.rotation_difference((0, 0, -1)).to_matrix().to_4x4() @
     Matrix.Translation(-o)
     )

ob.matrix_world = R @ ob.matrix_world
ob.matrix_world.translation -= o
</code>
Related
Set object local axis based on face orientation
Setting mesh's origin in python (2.8)
Align to face normal vector
Answer: In your case, this is pretty easy to do, since your mesh is already aligned to the axes.

Position the 3D cursor at the bottom vertex of the triangle you have selected. You can do this by selecting that vertex, then hitting SHIFT + S, Cursor to Selected.

Duplicate this vertex with SHIFT + D, and move it away along the x-axis.

Set the pivot point to 3D cursor. In your snap settings, Snap to Vertex, Snap with Active, and make sure Rotation is enabled. (https://i.stack.imgur.com/KmZn2.png)

Select one of the other two vertices of your target face, then with your cursor over the mesh, hit L to select the rest of the mesh while retaining your active vertex.

Press R to rotate, Y to constrain the rotation to the y axis, and snap to the vertex duplicated earlier.

These instructions work in this case as I say because your mesh is already aligned with the axes. If you need to align an object to lie on a face that has an arbitrary initial orientation, see the answer to this question: How do I orient a face so it lays flat?
It's a bit more technical and finicky, but it's really powerful once you figure it out.


Is it OK to adopt unknown breeds?

Question: I thank you all in advance for your answers.
I am a dog-lover and I'm going to adopt my first dog in a few weeks (I couldn't do so before because of lack of time and space)
Now I'm wondering if is it OK to adopt a pup from farmers who live in villages and their dogs are clearly from no specific breeds and their parents have been herding shepherd dogs in our local environment? (Western Iran)
I want to bring the dog to a small (60-70 SqM) apartment.
My main concern is the behavior. Can they be trained like a purebred? (Labs, Goldens, Border Collies, Aussies,...)
Comment: Please also keep in mind the issues in genetic health of purebreds vs mixed-breeds.  Although a purebred may be more expensive, which may lead the layman to expect that they are "better" in every way, they are more likely to have medical issues: http://www.instituteofcaninebiology.org/blog/health-of-purebred-vs-mixed-breed-dogs-the-data.  So if you can train them equally to a purebred, but expect many more years of life out of them, you have greater overall benefit of your training (and their companionship).
Comment: do you know what the mix is or the size? I can give you a better answer with more information.
Comment: As a matter of fact, I'm rather sure that they belong to no specific breed.
Not the parents nor any ancestors.
They are completely local and naturally bred.
about the size, they are almost as big as a Border Collie
Comment: and actually, it is one of my biggest wishes to somehow do a thorough work in finding out what kind of dogs they are, How smart they are, and so on....
all I know they are very very kind and loyal and never ever vicious.
Answer: First of all, dogs are dogs. The all have the same basic needs. And every dog can be trained. And even dogs of the same breed can be really different in behavior and character. But, you are right, not every breed is equally suitable for every task or life circumstances and the purebreeds are known for unique qualities.

I want to bring the dog to a small (60-70 SqM) apartment.
  My main concern is the behavior. Can they be trained like a purebred? (Labs, Goldens, Border Collies, Aussies,...)

These breeds you mentioned are really different. Border Collies and Aussies were bred for herding tasks. That means, they are highly intelligent, very sensible, need very much exercise, and are really self-confident. If you let them, they are working, running or playing until they die. They don't give up. They recognize every motion far away, because they were bred to see, if any sheep is running away.
Labs and Goldens are bred for waterfowling and hunting. They are intelligent as well, need exercise and are self-confident. They were bred to hunt the birds or other animals, but bring them to the hunter without hurting the prey. So they are really soft with their mouth. And they are much more calm than the herding dogs and not as sensible. So they are known for being excellent family dogs.
So all the breeds you mentioned are not made for small apartments, but they can be happy there, if the owner has the time and knowledge to handle their needs.
Another thing is, you can't compare "the purebreeds" with "the mixed breeds". Every breed has its qualities, things they easily learn or like to do and their weaknesses or possible problems because of the history.
And keep in mind, every dog is unique and can vary from the characteristics their breeds are known for.

Now I'm wondering if is it OK to adopt a pup from farmers who live in villages and their dogs are clearly from no specific breeds and their parents have been herding shepherd dogs in our local environment? (Western Iran)

The dogs are for herding purposes. So they are middle sized, I guess, because they need to be strong enough to handle the herded animals, but I think they will not be too big, because they would need to much to eat and wouldn't be as agile as middle sized ones.
Because they are mixed breeds, they may not as specific in their behavior and character as the purebreeds. So it is more likely that one puppy is calmer than another one,or one loves to hunt while another loves to do circus lessons, one is really attentive and sensible while the sibling is a little bit sleepy. But they were used for herding, so the may be alike the Border Collies and Aussies.
It is often said, that mixed breeds are intelligent and really loyal as well. They are easily trained. And some are convinced, that they are healthier than purebloods, because of their mixed genes.
So if you have the time, the space, and the knowledge for a pureblood herding dog like a Border Collie, than you should be able to adopt and train a mixed herding dog as well.
Answer: People adopt mutts all the time, so I don't see this as much different. In which case, you try to make an educated guess as to the dog's needs, and home it appropriately.  However, knowing the parent dogs gives you more information about what the dog's needs are. Since the parents are used as herding dogs, I would say a small apartment will not be an appropriate environment for it. In order to be an effective herding dog, the dog must be fairly intelligent and have a lot of energy. It's very difficult to keep such a dog exercised and entertained in a small apartment.
Comment: Yes, it can be true mostly. it "is" one of my concerns that they naturally need farms and a wide sight when waking up in the morning...

another thing is, as the "idiots" believe that their God has said "dogs are unclean" (!), there has never been any kind of breeding in my country for hundreds of years and the only two breeds which can be recognised as "breeds" are Salukis and Kangals, which are nowadays quite rare here in their motherland!...

Is it OK to adopt unknown breeds?


Site not accessible without www in url - Error 400 bad request

Question: A site that I am developing works with the format www.domain.com but when typing the domain without the www i.e domain.com I receive a error 400 bad request. How can I enable non-www for my site.
Comment: @AurelioDeRosa no right now I made some changes and it doest work with the www also
Answer: To solve your problem, if you're using Apache, you can use mod_rewrite in this way:

Create a text file and call it .htaccess
Open the file with a text editor and write:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^juve-news\.com [NC]
RewriteRule ^(.*)$ http://www.juve-news.com/$1 [R=301,NC,L]

Save the file and upload it in your website root folder
Comment: Mind the case: http_host => HTTP_HOST, nc => NC, on => On.
Answer: First check the DNS records for your domain. You need to have an A Record for both the www. and non-www. versions of the domain. Some providers will use an @ for the non-www. version.
Then check your server's host.conf file. This is where (in Apache at least) you tell your webserver where to direct traffic for various domains. If you have a directive for www.domain.com but not domain.com that can cause requests to fail, as your server doesn't know where to send them.
Answer: If you're using Apache, you can configure it in your control panel to always use the "www" prefix or make it to remove the "www" prefix, go to domain management and change the 'A" record to always use "www" prefix.normally this shouldn't even be a problem, because most web hosting has this already configured.


How to throw farther

Question: I play highschool baseball and spend 100% of the time in outfield I can only throw 45 yards anything I can do to throw somewhere around 60 yards?
Answer: It is hard to say without knowing your age, body type/build, and seeing your mechanics. Considering you can only throw 45 yds (135 ft. I am going to use ft. from now on because everything in baseball is measured in ft.) I can guess with almost 95% certainty that your issues are mechanical. 135 ft is only 8 ft. farther than home to second. If you are using a max-effort, crow-hop throw and cannot throw it out of the infield over second base from home plate, I have to believe that you have very inefficient energy transfer in your throwing mechanics.
It is important to note that strength and build can factor in as well, but has its limitations. Assuming that you are a normal, healthy, high-school-aged athlete, though, I am going to say that strength is not the core of this issue. The other important thing to keep in mind is that a baseball only weighs 5 ounces. Therefore, strength has a rather low point of diminishing returns on velocity  (hence why there are no MLB pitchers that look like body builders).
Key Takeaways:
Get video - Seeing yourself and being able to slow your mechanics down frame-by-frame is invaluable to identifying and visualizing where you are going wrong.
Evaluate your mechanics - get a coach (online or in-person) that knows what they're doing. If your coach does not use video.. find a new coach. Losses in energy transfer happen in fractions of a second, I don't care how long you've been coaching, you cannot see that with the naked eye - not to mention, there are literally hundreds of things to look for.
IMPROVE YOUR FLEXIBILITY - This so often gets ignored. Probably because doing yoga sounds lame, but I promise you, flexibility is incredibly important for velocity. The more torque you can create with hip/shoulder separation, and the more external rotation you can get out of your arm, the faster and further the ball is going to travel.
Play long-toss at least 2 days per week - This trains your muscles for max-effort throwing. Also, different muscle groups are engaged when throwing long-toss (most similar to an outfield throw) than pitching off of a mound or throwing at normal distances.
Continue to grow & get stronger - Like I said, strength does factor in here, and you will definitely improve velocity/distance as you get older, stronger, and grow into your body. That being said, it should not be your #1 point of emphasis, because until your mechanics are solid, you will always get more gains out of improving mechanics over improving strength.
Answer: Assuming you are already using proper form when you throw, strength training will help your distance.
If you do not have access to a weight room, body weight exercises such as push ups and pull ups will still be helpful
Throwing form:
https://www.youtube.com/watch?v=2BcXvjn2Do0
Bodyweight strength exercises if you do not have access to a weight room:
http://www.mensfitness.com/training/workout-routines/pullup-pushup-workout
Answer: Weights will not have a direct affect on how hard or how far you throw a baseball. Look at Chris Sale for example, skin and bones and throws mid to high 90's. A lot of it is technique and skill, but, the thing I can suggest that gives the most progress is long toss every single day. Get used to having your body provide power in the throw. One thing I always thought about when doing long toss is feeling your body almost guide your arm. When you start dont focus on trying to fling your arm as fast as you can, focus on the movement and let your arm follow. Also, work on the crow hop, done right the crow hop alone adds 30 to 40 feet to your throw. And like I said everyday, it builds muscle memory.
Comment: Not sure I'd recommend long-tossing every single day, especially with poor mechanics. That will lead to injury faster than anything. Other than that, you're mostly on track - especially on the strength issue
Comment: I guess my thinking is it doesn't take much effort to have good technique for throwing I never really had trouble. But when playing competitively I threw long toss just about every day and didn't really lift at all. Lifting reduces flexibility most often and for me that was a huge factor in throwing like you said it does. For me though long toss was a great way to work on my technique. One coach told me to let my legs, hips, and body turn and create the torque and the arm comes with it. A lot of people try flinging their arm as hard as possible and that'll lead to injury very fast.

How to throw farther


Transferring Through Command Line without Syncing

Question: Do you have to sync the entire blockchain before transferring from a monero wallet via the command line??
Answer: You need to have the wallet sync, but you dont are forced to have the bockchan, you can sync the wallet and transfer from it using an remote node.
When syncing the wallet will run all the blockchain (or from specific high) to check your belonging inputs
When transfering the wallet will ask the node for inputs to mix with yours, this can leak some information from your transactinon and compromise your privacy level
Answer: from the previous question: yes, unless you connect to a remote host (node), which you may or may not want to do depending on your personal level of trust in the remote host. lightweight nodes/wallets don't exist yet.


Task list - Timeline is not updated (views)

Question: I have a task list and a timeline. When I create views to sort the list, the timeline is not updated accordingly. Do you have any ideas on how to get around this?
Answer: The Timeline for a List is a simple representation of Tasks based on Dates. And it has pointers of Today, Task Dates, Start and Finish etc.
So literally, it will have no effect based on List view changes (Sorted/Filtered in your case)
Additionally,
Comment: Why would anyone like to use timelines then? If I create a view with the filter, show only "wer2323r" (from your image). Then I do not want to see timelines for other tasks.
Comment: Filter works for sure... but not the sorting.... filter limits the no. Of items but sorting just arranges them.. and so Timeline doesn't have impact because of sorting
Comment: I must be doing something wrong then, please explain how i can filter between "wer2323r" and  "qwqwdqwd" and only get the matching timeline.
Comment: It does not work with filters. I still see the same number of timelines. Please describe how you do.
Comment: Aah sorry, I was wrong.. This timeline doesn't get updated even with filtering.. What you are trying achieve is not possible using out of the box but a customized solution may work here.. Refer : https://www.ozkary.com/2016/06/sharepoint-2013-adding-multiple.html


Keynote: Scoreboard

Question: Because of the limited features in imovie i found a solution to add a scoreboard (numbers showing current score of a match) to a movie by using a keynote presentation and export this one as quicktime movie. So i created a keynote presentation with green background and a scoreboard layer. Now it would be lot of work to create a new slide, everytime the score (of a billard match) changes. So i want to automate it. If i press key '1' than player one should get one point. And if i press '2' then player to should get the point.
In powerpoint i would do this via macros. Unfortunatly in keynote there are no macros. And with animations it did not work.
Does anyone have an idea how i could automate my scoreboard keynote?
Answer: Your thread gave me an idea.  I created a scoreboard in keynote and then used screencast (search it) to record the slideshow, and then edited it in imovie.  Comment back if you'd like to see

Keynote: Scoreboard


how to open and read .alarms files in MIMIC II

Question: I have a question about the .alarms files in MIMIC-II. I am not familiar with the .alarms file type and I could not find information about this on the internet. Could someone let me know how best to open and read these .alarms files? I have tried different programs but always only some of the texts are shown correctly.
Comment: I get several hits [Googling for '.alarms file type mimic'](https://www.google.com/search?q=.alarms+file+type+mimic&ie=utf-8&oe=utf-8&client=firefox-b)
Answer: The rdann function from the wfdb toolbox can be used to open those files.


EEA Citizen planning move to UK -Can my Non-EEA partner move with me along with our EEA citizen child?

Question: Dual citizen of Finland and Zambia currently residing in Zambia, planning to move to UK. I would like my partner, a Zambian citizen, along with our child, who is also dual citizen of Finland and Zambia, to accompany. Should my partner apply for EEA family permit or would a standard visitor visa be better in this case?
Answer: There's no good reason to apply for a visitor visa, and at least one good reason not to: a visitor's visa does not authorize the holder to move to the UK.
There are many good reasons to apply for the EEA family permit, however, including the fact that it is free of charge and the fact that it should be issued quickly.
Apply for the EEA family permit.


Oven light bulb fitting problem

Question: The light bulb broke from its casing when I tried to remove it to change the bulb on my Hotpoint oven. I cannot get the fitting out as it has got mangled up by me trying to remove it with pliers. All I have managed to remove is the glass bulb as it has broken away from the metal casing which is still inside the oven. Is it safe to turn on the oven? It did trip the fuse and some of my kitchen appliances did not work which were on the same circuit as the oven. They work now as I turned the fuse lever on again. When I did turn the oven on after trying to get the metal casing out there was a small pop and a light spark darted from the casing ! I am not sure if it is safe to use. Please advise.
Answer: The wires that support the lamp filament may be shorting out causing the breaker to trip (assuming there is no damage to the socket itself).  This can create a less than safe condition because there is a live exposed wire in the broken lamp base. If used, when the oven heats up the wire could move around and short again. If the lamp can be turned off the oven could be used. I have had success using a raw potato pressed into the broken lamp base, power off. Some times turning both clockwise then counter clockwise working both directions can loosen the lamp base so it can be removed.
Comment: Not just "power off". Breaker off or fuse out! You don't want to somehow end up with a real "hot potato" :-)

Oven light bulb fitting problem


Version Control with GIT for Tex / Latex Files in One repository or split to sep. repos

Question: I am looking up at setting up version control for my latex documents. I was wondering people's typical setup for this. Do they set it up in there top folder or individual projects. I will be using GIT. Specifically can you start a new project that is in a seperate repo (but the same folder as the original GIT) and then merge it into the master branch easily. This would also be useful.
Comment: This question actually doesn't need to be Git specific. AFAIK you can have the same structures using the similar Mercurial SCM. For Subversion and similar centralized VCS it may be different. Making a question a little broader can help attracting more answers.
Answer: My setup is one repository per document (article/thesis/book/presentation). Advantages, with respect to the "one repository to rule them all":

you can share and sync the individual repositories with the colleagues you are working with. If some of them prefer another version control software, no problem, you use whatever they like.
you can check out previous versions and work in "detached head" mode without screwing up the rest of your home directory.
you can use git archive
you can use tags in a meaningful way

Disadvantages:

you need a way to handle files that are shared among projects (if there is any). Git subprojects are a mess.

I can't come up with any more disadvantages --- to me, one repo per project is the way git is meant to be used. What arguments do the supporters of the "unified repository" have?
Comment: You can use [git submodules](http://git-scm.com/book/en/Git-Tools-Submodules) for handling common files, so this disadvantage is IMO off the table. Or did you mean this by `subprojects`?
Comment: @Federico - I was leaning towards this but with the response think it's definately the way to go. Thanks
Comment: @ms4py: yes, I meant submodules. I tried them, but they had a couple of counterintuitive aspects that put me off at the beginning; it may only be due to my limited experience and git-fu though. But probably I am not alone: note that in the page you link one of the longest sections is "issues with submodules"... :)
Answer: Usually I have one git repository per project. Here I need to say, that "project" might be very many single files which compile separately: As example, when I have a lecture to give, I have exercise sheets every week in a separate file, I have a program/syllabus of the lecture, I have todo-notes for myself, I have exams and lists of students for many purposes etc. And ultimately, I might have lecture notes for the lecture still being organized in many different files. But all go into one git-repository. Now I also have a collection of macros I use in many contexts (one repository) and a bibtex collection (another git repository).
Finally, for scientific papers I have a git repository for each paper (again, with short notes etc beside the final draft in separate files). This allows to share such a repo with your coauthors who might not at all be interested into you lecture notes on a lecture 5 years ago.
So, I guess it is good to organize things in separate repos in a meaningful way, not necessarily a repo for each file, but for each "project" of files which logically belong together. Once you do that more often, it is a good idea to automatize things by certain templates, Makefiles, and shell-scripts etc.
Answer: I also have one per project. Typically also including some Marlab files that create graphics and tables.
I also have a separate project for my matlab toolboxes which I use across several projects. I plan the same for style files and macros I commonly use in LaTeX - though didn't start yet.
I abandoned such a master repo as I want my projects to be "portable". Basically by just making a copy of the folder I have a working repo for at home, or that I can give away. My master repo would easily be some GBs large. Also might include some stuff of projects that I wouldn't want to share.
Answer: Setup:
Large project folder with subfolders. One subfolder is the "GWD" => "Git working directory". Here are all *.tex-files, which will be under version control. Additionally there will be the .gitignore file. No other git repositories regarding this project. If I screw it, I'm toast.
One wonderful advantage of using git is that you can create comparisons between e.g. head and any earlier stage of your project by using latexbatchdiff. I wrote earlier about that: Using latexdiff with git