summary
stringlengths
15
147
text
stringlengths
1
19.3k
answer
stringlengths
32
22.6k
labels
float64
0.33
1
answer_summary
stringlengths
5
164
What are the best tips for saving money as a university student?
What are the best tips for saving money as a university student? I will be attending university this coming semester and am planning on maintaining a sustainable financial situation right now, but would like any good tips or suggestions to saving money as a student.
Get a decent job while at university - it will make all the difference. And calculate your budget and don't spend more than your budget allows Worked for me. That was the time when I had the greatest disposable income - all gone downhill since :-)
1
Calculate your budget and don't spend more than your budget
Define ListenerContainer without the jms namespace in spring jms
I want to assign an id to jms:listener-container bean but unfortunately it does not have an id property. For instance, this does not work <jms:listener-container id="jmsListenerContainer" concurrency="${jms.consumer.concurrency}" > <jms:listener id="queueHandler" destination="${jms.queue.name}" ref="queueListener" /> </jms:listener-container> To counter that, I am trying to define the container without the namespace using vanilla bean definition, like so: <bean id="jmsListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer" p:concurrency="${jms.consumer.concurrency}" p:connection-factory="jmsConnectionFactory" p:messageListener-ref="jmsMessageListener"> </bean> For this to work one needs the actual implementation class of MessageListener used by the container as defining this separately does not work <jms:listener id="jmsMessageListener" destination="${jms.queue.name}" ref="queueListener" /> This throws an The matching wildcard is strict, but no declaration can be found for element 'jms:listener'. From documentation of AbstractMessageListenerContainer: By default, only a standard JMS MessageListener object or a Spring SessionAwareMessageListener object will be accepted. This is quite inconclusive, so does anyone know how this can be done?
I would like to propose an answer to my own question. The default listener class created with jms:listener is org.springframework.jms.listener.adapter.MessageListenerAdapter Here's the complete vanilla replacement of jms namespace based configuration: <bean class="org.springframework.jms.listener.adapter.MessageListenerAdapter" id="jmsMessageListener" p:delegate-ref="queueListener" /> <!-- Not using jms namespace, as it doesn't allow to specify bean id --> <bean id="jmsListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer" p:concurrency="${jms.consumer.concurrency}" p:connection-factory-ref="jmsConnectionFactory" p:messageListener-ref="jmsMessageListener" p:destinationName="${jms.queue.name}" > </bean>
0.888889
default listener class created with jms:listener
Is it a problem with radiometric dating that carbon 14 is found in materials dated to millions of years old?
The preferred method of dating dinosaur fossils is with the radiometric dating method. And the result of this accepted method dates dinosaur fossils to around 68 million years old. However: Consider the C-14 decay rate. Its half-life ($t_{1/2}$) is only 5,730 years—that is, every 5,730 years, half of it decays away. The theoretical limit for C-14 dating is 100,000 years using AMS, but for practical purposes it is 45,000 to 55,000 years. If dinosaur bones are 65 million years old, there should not be one atom of C-14 left in them. Dinosaurs are not dated with Carbon-14, yet some researchers have claimed that there is still Carbon-14 in the bones. So what needs to be done about this inconsistency? Do these data indicate that a more accurate method needs to be derived? What solutions are available for increasing accuracy of the tests? Or do we need another dating method all together? Considering Contamination From the source linked above: Carbon-14 is considered to be a highly reliable dating technique. It's accuracy has been verified by using C-14 to date artifacts whose age is known historically. The fluctuation of the amount of C-14 in the atmosphere over time adds a small uncertainty, but contamination by "modern carbon" such as decayed organic matter from soils poses a greater possibility for error. Dr. Thomas Seiler, a physicist from Germany, gave the presentation in Singapore. He said that his team and the laboratories they employed took special care to avoid contamination. That included protecting the samples, avoiding cracked areas in the bones, and meticulous pre-cleaning of the samples with chemicals to remove possible contaminants. Knowing that small concentrations of collagen can attract contamination, they compared precision Accelerator Mass Spectrometry (AMS) tests of collagen and bioapatite (hard carbonate bone mineral) with conventional counting methods of large bone fragments from the same dinosaurs. "Comparing such different molecules as minerals and organics from the same bone region, we obtained concordant C-14 results which were well below the upper limits of C-14 dating. These, together with many other remarkable concordances between samples from different fossils, geographic regions and stratigraphic positions make random contamination as origin of the C-14 unlikely".
I actually happen to know something about the "Miller Tale" as it is called. Miller "borrowed" some dinosaur bones from a museum without telling the curators or owners what he was actually intending on doing with it. He immediately took it to be $^{14}C$ dated and received a date of roughly 40,000 years. So if Dinosaur bones are supposedly 65+ million years old, why is this? I'll tell you why. The dinosaur bones did NOT have any carbon in them. They'd been essentially completely replaced by minerals during the fossilization process. What happened was that Miller did NOT know that they were covered in a preservative made of an organic material called shellac, which is organic so it's full of carbon. This contaminated the result. What they got was a date for the shellac, not the dinosaur fossils. Onto your questions: So what research is being done to correct such an obvious dating flaw? The flaw is with creationists. We've been trying to educate creationists for decades now, but willful ignorance in favor of adhering to tradition and presuppositions is far stronger than anything that can be taught. Using this data, can a more accurate method be derived? Yes! We have dozens of independent dating methods that have accurately dated the layers of dinosaur fossils to a very high degree of accuracy. We have also used isochron dating to test for contamination and/or how well the rocks acted as closed systems. Or do we need another dating method all together? Carbon dating is very accurate. I recommend you check out This Paper from 1949. It shows that objects of known age via independent methods and recordings are corroborated by carbon dating. At what extremes of failure does it take for a scientifically approved method to become nonscientific? At the point at which it can be shown to be false and lack point of predictive capability. An ignorant creationist who lacks an understanding of radiometric dating does not constitute evidence against a well-established and well-understood process. And what does it say about science if dating something as 65 million years old when it is less then 100,000 years old becomes an acceptable margin of error? I'd answer this if it were true. Unfortunately, as I said, the ignorance of creationists does not constitute evidence against radiometric dating by any stretch of the imagination. I know this was incredibly simple and largely unscientific, but I'm dealing only with your creationist claim. I didn't know this claim was still out there. Got any other questions on radiometric dating?
0.666667
What is a dating flaw with creationists?
/var/lib for holding served data, why?
Acording to the FHS, the directories /lib and /usr/lib are both for libraries (libraries used in /sbin and user libraries, respectively). But what about the /var/lib folder? Following the same logic this folder should have something like "variable libraries" (that sounds strange) but it actually holds data generated and maintained by running programs, or as defined by the wikipedia article: State information. Persistent data modified by programs as they run, e.g., databases, packaging system metadata, etc. From a fresh view, it makes more sense to put database data and served files under /srv instead of /var/lib
This is explained in the commit to the new 3.0 version: http://bzr.linuxfoundation.org/loggerhead/lsb/devel/fhs-spec/revision/26 Specifically, /srv/ is for served, file-system structured data, /var/lib/ is for locally-consumed data. Apache will serve out of /srv as it's filesystem hierarchical. MySQL serves out of /var/lib since only mysqld accesses it and it is not filesystem hierarchical.
0.777778
Apache will serve out of /srv as filesystem hierarchical
How adding one more electron increases the ionization energy?
Elements of group 6A, compared to 5A, require less ionization energy due to the paired electrons of 6A. But a question arises: why does group 7A, compared to group 6A, require more ionization energy in spite of the paired electrons in group 7a too. Regardless of the general trend that the ionization energy increases as we go from left to right in periods, why didn't we apply the same procedure as the first comparison?
It's not just adding one more electron. Another proton is also added to the nucleus. The overall trend across a row is driven by shielding effects. In general, as you go across a row, the shielding effect is fairly small compared to the effect of increasing nuclear charge. As you note, there is a slight deviation in this trend between 5A (i.e., $\ce{N}$) and 6A (i.e., $\ce{O}$) because the extra electron in oxygen is paired. This increases the electron-electron repulsion, so the ionization energy decreases slightly. As you note, $\ce{F}$ (7A) resumes the overall trend of increasing ionization energy driven by the attractive effects of the higher effective nuclear charge $Z_{eff}$.
1
The overall trend across a row is driven by shielding effects
SPI and clock active low or high
I am trying to get SPI working on an MCU. The SCK on the MCU is labelled \$\overline{SCK}\$ which means it active low but my device has no overline on the SCK. Can I use the same clock. If not what can I do?
1) Are you sure it's SCK and not SS or CS (Slave Select / Chip Select). It is uncommon for the clock symbol to be negated. 2) If it is SCK, you might want to know that there are actually 4 SPI modes which are decided upon by the parameters CPOL and CPHA. Wikipedia explains the differences in detail. Usually a slave will support one (or more) modes and the master (your CPU) needs to be configured accordingly. Most microcontrollers I know can be configured for one of the four SPI Modes.
0.777778
What is SCK and not SS or CS?
If you attempt to predict a Roulette wheel $n$ times, what's the probability you'll get $5$ in a row at some point?
I'm talking about a Roulette wheel with $38$ equally probable outcomes. Someone mentioned that he guessed the correct number five times in a row, and said that this was surprising because the probability of this happening was $$\left(\frac{1}{38}\right)^5$$ This is true if you only play the game $5$ times. However, if you play it more than $5$ times there's a higher (should be much higher?) probability that you'll get $5$ in a row at some point. I was thinking about how surprised this person should be at their streak of $m$ correct guesses given that they play $n$ games, each with probability $p$ of success. It makes intuitive sense that their surprise should be proportional to $1/q$ (or maybe $\log(1/q)$ since $1$ in a billion doesn't surprise you $10$ times more than $1$ in $100$ million), where $q$ is the probability that they get at least one streak of $m$ correct guesses at some point in their $n$ games. So, with the Roulette example I was thinking about, $p=1/38$ and $m=5$. I tried to find an explicit formula for $q$ in terms of $n$, and encountered some difficulty, because of the non-independence of "getting a streak in the first five tries" and "getting a streak in tries $2$ through $6$" (if the first is a failure, it's much more likely that the second will be too). In summary, two questions: How do I find the probability that you get $5$ correct guesses in a row at some point if you play $n$ games of Roulette? More generally, what is the probability that you get $m$ successes at some point in a series of $n$ events, each with probability $p$ of success? The variables satisfy $\,\,\,m,n \in \mathbb{N}$, $\,\,\,m\leq n$, $\,\,\,p \in \mathbb{R}$, $\,\,\,0 \leq p \leq 1$. If we write the answer to the second question as a function $q(m,n,p)$, then we can say that $q$ should be increasing with $n$, decreasing with $m$, and increasing with $p$. It should equal $p^n$ when $m=n$ and should equal $1$ when $p=1$ and $0$ when $p=0$. I feel as though this should be a basic probability problem, but I'm having trouble solving it. Maybe some kind of recursive approach would work? Given $q(n,m,p)$, I think I could write $q(n+1,m,p)$ using the probability that the last $m-1$ results are all successes ...
To answer your general question, if the events are independent then the probability of getting only $m$ successes at a row once is $$(n-m+1)p^m(1-p)^{n-m}$$ This is because one can have success $m$ times at a row out of $n$ plays in $n-m+1$ ways and in each of these events have a probability $p^m$ of happening and the failures then happen in the rest of the $n-m$ cases with probability $(1-p)^{n-m}$. EDIT: As I understand now my previous answer does not correctly address the question. Now, let $P(m,n)$ denote the required probability which is of getting $m$ or more consecutive successes in a series of $n$ independent events. Then, basically we want the event that the first time $m>1$ consecutive successes occur. Now, let $R_k(m,n)$ denotes the probability that $m$ consecutive successes happen for the first time at $n\ge k> m$ th trail. Then we have $$R_k(m,n)=qR_{k-1}(m,n-1)+pqR_{k-2}(m,n-2)+p^2qR_{k-3}(m,n-3)+\cdots+p^{m-1}qR_{k-m}(m,n-m)$$ with $R_1(m,n)=\cdots=R_{m-1}(m,n)=0,R_{m}(m,n)=p^m$ where $q=1-p$. Now, the probability $R_{k}(m,n)$ should not depend upon the second argument as long as $k\le n$. Then calling only $R_{k}$, and defining $r=[R_1\cdots R_n]^T$, we have the equation $$R_k=qR_{k-1}+pqR_{k-2}+\cdots+qp^{m-1}R_{k-m}$$ which can be solved by solving the equation $$x^m-qx^{m-1}-\cdots-qp^{m-2}x-qp^{m-1}=0$$ to get $R_k=\sum_{i=1}^m a_i \lambda_i^k$ where $\lambda_i$ are the roots of the last equation and the coefficients $a_i$ can be obtained from the initial conditions. Then, we have $$P(n,m)=\sum_{k=n-m}^n R_k=\sum_{i=0}^m a_i \frac{\lambda_i^{n-m}(1-\lambda_i^{m+1})}{1-\lambda_i}$$
0.888889
If the events are independent then the probability of getting only $m$ successes at a row once is $$(n-m+1)
Should FPS exceed ticks/second?
I was once told that you should never re-draw a frame if the game logic has not changed since the last draw. Assuming game logic is updated once every tick, and assuming a game runs at 40 FPS @ 20 ticks/second, does that mean that every two consecutive frames will be exactly the same? If so, is there any visual difference between a game running at 40 FPS @ 20 ticks/second versus a game running at 20 FPS @ 20 ticks/second? Perhaps I don't understand game loops that well, but it seems to me that ticks/second is a limiting factor of FPS.
It depends on your design. If you have interpolation/extrapolation in your render layer, then any extra frames will add to the smoothness on animation. For example particle effects don't affect games logic and can use much higher framerates. Your GUI might work at higher framerates to respond to player interaction faster. If there's indeed no change between frames (no interpolation/extrapolation/GUI), then skipping the extra frames is beneficial, since that extra frame might overlap with next ticks frame, delaying it.
0.888889
Interpolation/extrapolation in render layer
Access admin for sub directory website
I have a website at http://www.avantalarm.com/ and I've created a development site at http://www.avantalarm.com/dev/ and everything seems to be working fine, however when I go to http://www.avantalarm.com/dev/admin to reach the development admin page, it redirects me to the main admin page for my main site. I don't know a ton about .htaccess and I'm not sure if that's the problem, but I'd love to be able to reach my dev site's admin page. Any help would be appreciated. If I can offer up any code let me know.
You can access you admin on the dev website. https://www.avantalarm.com/dev/index.php/admin I don't know what can cause this. Maybe it's a custom extension. I saw that you are using BalkeTechnologies_StoreMaintenance that has a custom router. Could be that. Anyway you now can acccess the admin on the dev website. [Edit] Also the base url should be changed in core_config_data.
0.666667
Acccess admin on dev website
How to accept email *only* from white-listed addresses in Gmail?
Possible Duplicate: How to implement a white-list-based system in Gmail? I only want to accept email from two addresses, the rest I want to delete immediately, unseen. I know how to make filters and I can white-list those two addresses. If I make 3 filter, in this order; 1) from [email protected] move to inbox, never mark as spam 2) from [email protected] move to inbox, never mark as spam 3) from *@*.* delete immediately, never move to trash can I be guaranteed that that will do what I want? For instance, can I be sure that the filters are executed in that order? I don't want to lose any mail from those two addresses. [Update] The accepted answer was almost correct, but instead of doesn't have <list of email addresses> (which did not work) I used from ~{<list of email addresses>} The tilde ~ negates and the curly braces {} delimit the list. So, mail from anyone who is not in the approved list will be filtered.
Thought I'd leave this answer here as well in case it works for you: You can try setting up a filter that only looks for emails that are NOT from the intended recipients. In the case you list int he question, you would set up your filter like this: Doesn't have: [email protected], [email protected] (Delete it) This means that the filter selects everything unless it either comes from these addresses, or contains these addresses somewhere in the email thread. By using the "Doesn't have:" field, this allows you to reply to the thread, have a non-contact reply, and still have the thread safely reach the inbox.
1
Set up a filter that only looks for emails that are NOT from the intended recipients
Why making additional payment to mortgage counts towards principal? Why does it matter?
When it comes to mortgage advice, some people recommend making an extra payment. The logic is :"These extra payments are automatically applied to your principal, not interest". Why does it matter if the extra payment is applied to the principal and not interest?
I'm not sure where the "not interest" part of your quoted statement comes from; that's not the way this advice is normally given. Perhaps you worded the statement that way because you think there are only two possibilities: payments either are applied to the principal or to the interest? If so, there's a misunderstanding here. Here are two other possibilities: (1) the mortgage holder puts the extra payments in escrow/holding, to be used in the future should you fail to make a payment; (2) the mortgage holder records the payment as being made in advance, without giving you any benefit (such as reduced interest). (Another way of thinking of this is that the mortgage holder moves up the due date, essentially giving you credit for having made the final payment. Unfortunately, this isn't just theoretical.) In short, "applied to principal" is a shorthand way of saying that the mortgage holder treats the extra payment in a particular way (which benefits you the most), and not in a way (see (1) and (2), above) that benefits the mortgage holder the most.
1
"applied to principal" is a shorthand way of saying that the mortgage holder treats the extra payment in a particular way
CodeIgniter Conditional - Multiple Tables
I'm stuck on the logic for a conditional that I need some help with. I am building a project collaboration platform where users can view open projects and join them to form a team. I've got the joining functionality working fine but I want to have a conditional set to not show the 'Join This Team' button if they are already a member of that project group. I may already have some of what is needed to do this but I'm not entirely sure how to go about it. (I had help writing the code I've already implemented) Here is the code below for joining a project: //controller public function join($project){ // Set Var $email = $this->session->userdata('email'); // Join User $this->project_model->join_project($project, $email); //Redirect to Project redirect('projects'); } //functions in model to get the members already joined and insert public function get_team_members($id){ $this->db->select('team_members.user_id, users.first_name, users.last_name, users.location'); $this->db->from('team_members'); $this->db->where('team_members.project_id', $id); $this->db->join('users', 'users.id = team_members.user_id'); return $this->db->get()->result_array(); } public function join_project($id, $email){ // Get UserID $this->db->select('id'); $this->db->from('users'); $this->db->where('email', $email); $user = $this->db->get()->row_array(); // Set Insert Data $data = array( 'project_id' => $id, 'user_id' => $user['id'] ); // Insert into Team DB $this->db->insert('team_members', $data); } //view <div class="large-4 columns widget"> <div class="row collapse top-margin"> <div class="large-4 columns"></div> <div class="large-8 column bottom-spacer"> <?php $link = base_url()."project/join/".$project['project_id']; ?> <a href="<?php echo $link; ?>" class="button primary radius extrawide"><h5>Join this Team</h5></a> </div> </div> //view for team members foreach ($team as $member){ ?> <!-- Team Member #1 --> <div class="row collapse"> <div class="large-4 columns"> <img class="left" src="<?php echo base_url();?>assets/img/user.png" alt="user img"> </div> <div class="large-8 columns member-name"> <p class="name"><strong><?php echo $member['first_name']." ".$member['last_name']; ?></strong></p> <p><span><?php echo $member['location'];?></span></p> </div> </div> <?php } ?> Any help would be greatly appreciated.
You can do with two method. Method 1. Create function is_team_member($user_email, $team_id) in your model. If user exist, true will be return else false. Pass the returned value to view via controller. Based on the value you can hide the button with use of if condition. Method 2. You can check the user email in view foreach loop. If $email == $member["email"], set flag to hide button. But in this case, your button should be under the member list. Bur, as we discussed in comment, your member list is above list. So create a variable to store the foreach html content as string. you can run the foreach loop above the button and cho the content after the button. Now based on the flag, you can hide the button. Ex for method - 1: In Controller, Team member listing function. public function index($team_id){ // Set Var $email = $this->session->userdata('email'); $data["team"] = $this->project_model->get_team_members($team_id); $data["is_joined_user"] = $this->project_model->is_team_members($team_id,$email); //load view $this->view->load("view_name", $data); } In model: public function is_team_members($team_id,$email) { $this->db->select('*'); $this->db->from('team'); $this->db->join('users', 'users.id = team.user_id'); $this->db->where("user.email",$email); $res = $this->db->get(); if($res->num_rows()>0) return true; else return false; } In view: <?php if(! $is_joined_user) { ?> <a href="<?php echo $link; ?>" class="button primary radius extrawide"><h5>Join this Team</h5></a> <?php } ?>
0.888889
Create function is_team_member in controller
convert text file column field with data dd.mm.yy to dd.mm.YYYY
How to format date for file content using linux command line tools? Input: aaa;1.70;ccc;20.01.13;zz;2013; uuu;2.70;lll;17.12.10;zz;2013; fff;3.70;nnn;31.01.98;zz;2013; auu;8.70;nuu;30.02.96;zz;2013; Output: aaa;1.70;ccc;20.01.2013;zz;2013; uuu;2.70;lll;17.12.2010;zz;2013; fff;3.70;nnn;31;01.1998;zz;2013; auu;8.70;nuu;30.02.1996;zz;2013;
Assuming that any 2-digit year between 70 and 99 occurs last century: sed 's/[7-9][0-9];$/19&/; s/[0-6][0-9];$/20&/' file Or, let someone else decide: perl -MTime::Piece -F';' -ane ' $F[-2] = Time::Piece->strptime($F[-2], "%d.%m.%y")->strftime("%d.%m.%Y"); print join(";", @F) ' file Options -MTime::Piece imports the standard Perl Time::Piece module -F';' -a options split each line by semicolons and stores the result in the @F array -n loops over the lines in the input data (stdin or files) without automatically printing each line. Code $F[-2] is the 2nd last field (which is where the date was in your original question). I use the strptime and strftime methods to parse and format the date. So, if you have dates that should be changes in columns 12 through 15, use perl -MTime::Piece -F';' -ane ' sub reformat { return Time::Piece->strptime(shift, "%d.%m.%y")->strftime("%d.%m.%Y"); } for my $i (11..14) { $F[$i] = reformat $F[$i]; } print join(";", @F) ' file
1
Perl -MTime::Piece -F'
Without a map or miniatures, how to best determine line-of-sight, etc?
I think the title says it all. Let's say you're mastering a game without the benefit of miniatures, maps, or any kind of physical representation of the environment. How would you keep track of details like line-of-sight, ranged attack viability, and all the other small nuances which go with creating a "believable-enough" environment in which your PCs live and thrive? (I admit that @LoganMacRae, who is my own DM, is an inspiration for this question. He does this with panache, and in my one-off, I feel like I have some mighty big shoes to fill!)
I'd use hiding rules. In AD&D that would be a hide in shadows roll for the thief to not be in line of sight, in d20, anybody could attempt a sneak check, or perhaps an acrobatics or tumbling check to see if they can get behind cover of some sort, and appropriately hide themselves.
0.777778
In AD&D hide in shadows roll
Amplifier damage caused by failed power supply capacitors
MY QUESTION IS THIS: Would failed power supply caps cause peripheral damage to the amp, preamp or control circuits ? Supposedly there is "protection" for "DC offset, over current and over heat" I have a Proton AM-656 amplifier with "Dynamic Power on Demand" which is a second higher voltage supply rail (switched to when needed) that creates 6db of headroom and 2 ohm stable. I did not think there was fault protection, turns out the schematic block diagram states there is. One day with the amp power on I tightened/snugged up the speaker binding post. There was a single frayed speaker wire (unnoticed) that shorted. The amp proceed to billow smoke. I looked inside to find several power supply caps having oozed their electrolyte onto the circuit board. I am shopping to recap two of my other amps and was thinking of recapping the Proton, however I do not want to waste my time if there is likely to be damage to the circuits other than electrolytic capacitors.
A more likely scenario is that the short circuit damaged the power transistors so they failed short circuit, and they in turn caused the capacitors to fail. If the amp uses discrete power transistors, these will be replaceable. If it's a custom IC or hybrid module, you're less likely to be able to find replacements. Resistance measurements on the transistor pins (compare with the "good" channel) looking for collector-emitter shorts may help confirm this scenario, and show which transistors need replacing. Or if both channels measure the same, you may be lucky and re-capping will be OK.
0.666667
The short circuit damaged power transistors so they failed short circuit
Is pretending to want to trade before playing a monopoly card objectionable?
In Settlers of Catan, I sometimes try to ask people if they want to trade a certain resource, tricking them into revealing the approximate amount of that resource in everyone's hand. After this I play the monopoly card. This has on some occasions not been received very well. Is this fair play?
I've seen people get upset over less underhanded Monopoly grabs, but I wouldn't expect the bad feeling to linger excessively. As an example, I made a legitimate trade request for a resource I knew an opponent had (it had been recently rolled), but was rejected. I responded with the Monopoly card, even though it netted only one of the resource, because I really needed it that turn. The other players were much more wary of my trade requests for the rest of the game; one even asked what would happen if they refused.
0.888889
Monopoly grabs for a resource I knew an opponent had .
What is the relationship between Gabriel and Noah in LDS/Mormon teaching?
In the summary of Noah on the lds.org site, it states that Joseph Smith taught that Noah is, in fact, the angel Gabriel. How exactly is this believed to have progressed? Did Noah exist as an angel first and then become a man? Or did Noah eventually become an angel? If he became an angel, does that mean he did not attain godhood? Is it a common believe that men become angels or angels become men?
According to LDS doctrine, it's not so much that men or angels "become" one another, as that they are the same order of creation. From the same reference, under Angels, we read: There are two kinds of beings in heaven who are called angels: those who are spirits and those who have bodies of flesh and bone. Angels who are spirits have not yet obtained a body of flesh and bone, or they are spirits who have once had a mortal body and are awaiting resurrection. Angels who have bodies of flesh and bone have either been resurrected from the dead or translated. There are many references in scripture to the work of angels. Sometimes angels speak with a voice of thunder as they deliver God’s messages (Mosiah 27:11–16). Righteous mortal men may also be called angels (JST, Gen. 19:15). Some angels serve around the throne of God in heaven (Alma 36:22). The angel Gabriel is primarily known to Christians through his role in informing Mary and Zacharias about the important roles that their unborn children would play. Genesis 9:29 informs us that Noah died, and as these events (as well as certain events in the book of Daniel that mention Gabriel) took place before the Resurrection of Jesus Christ, it's safe to say that he was, at this point, one of the spirits who "once had a mortal body and are awaiting resurrection." The distinguishing characteristic seems to be not so much one of nature as of vocation; an angel is a servant of God--generally a non-mortal one (the one exception mentioned in the reference article refers to the messengers sent to Lot in Sodom, which is a somewhat ambiguous case)--with some special mission or duty to perform.
0.888889
Angels in heaven have not yet obtained a body of flesh and bone .
What do I do wrong to get hip aches after biking?
I ride about 17 miles each session. After the ride, the outside of my hips sore: only the parts near the outermost joints, most likely the tendon (although this is only a guess). My knees are fine, my ankles are fine, etc. The only thing that might not fit perfectly for me is the seat height. I'd rather have a longer post so I can lift the seat up an inch or two. Do you think this might create the soreness in the area of the outer hips?
The web site Bike Dynamics has an online guide that could help you find the right fit. To me it sounds like you're going hard. If the thigh is swelling raising the seat could make it worse. Lowering the seat would affect knees so you need to find exact spot. You may also want to look at a roller for your Iliotibial Band, you could develop chronic ITBS if your bike fit remains poor.
1
Bike Dynamics is a web site that can help you find the right fit.
Has Jesus ever directly said he would die as a voluntary sacrafice? If so, wasn't it double sense?
I know about mentioning Jesus died to redeem mankind in evangelical literature like: For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life. (John 3:16) But I suspect these are only later interpretations. Has Jesus himself ever said his dead is a sacrifice? If so, isn't double meaning in Greek? At least in Czech, English and German you could use the phrase "he died for humans' sins" in sense of "because of" - like cause of his death was humans' fault - fault of the Romans who crucified him. (btw I think I understand the evangelical message so I'm not asking how christians get it today, so please don't make your interpretations of the direct Jesus' quote much distant) Thank you.
The most obvious answer is Jesus' words to his disciples at the Last Supper, in Matthew's version: this is my blood of the covenant, which will be shed on behalf of many for the forgiveness of sins. (Matthew 26:28, New American Bible Revised Edition)
1
Jesus' words to disciples at Last Supper, in Matthew's version
Why doesn't Perl's Spreadsheet::ParseExcel never return from $parser->parse('test.xls')?
The spreadsheet is Excel 97-2003 compatible and permissions 777 use strict; use Spreadsheet::ParseExcel; print "Content-type: text/html\n\n"; my $parser = Spreadsheet::ParseExcel->new(); print "<br>gets here:".__LINE__; my $workbook = $parser->parse('test.xls'); print "<br>never gets here:".__LINE__;
If it truly is never returning then it must be getting stuck in some kind of infinite loop. Try running your script on the command line using the Perl debugger. ~$ perl -d my_script.pl Note that CGI scripts can also be read in this way, and that they accept command line arguments in the form KEY=VAL like so ~$ perl -d my_cgi.cgi var=foo var2=bar bananas=delicious The perl debugger will tell you a list of commands it accepts if you type 'h', but the most important ones are: n: go to the next line s: step into the next line (if it is a sub, otherwise is identical to 'n') v: view the next few lines (can be used repeatedly) c: continue to a line or subroutine If you find that there is some kind of infinite loop problem, then submit it as a bug on http://rt.cpan.org (specificially, here: https://rt.cpan.org/Public/Dist/Display.html?Name=Spreadsheet-ParseExcel)
1
Perl debugger: $ perl -d my_script.pl
How can I detect connected (but logically distinct) bodies of water in a 2D map?
I have a 2D hexagonal grid map. Each hex cell has a height value used to determine if it's water or ocean. I'm trying to think of a good way to determine and label bodies of water. Oceans and inland seas are easy (using a flood fill algorithm). But what about bodies of water like the Mediterranean? Bodies of water that are attached to larger ones (where "seas" and "gulfs" differ only by the size of the opening)? Here's an example of what I'm trying to detect (the blue body of water in the middle of the image, which should be labelled differently from the larger body of ocean on the left, despite being technically connected): Any ideas?
A quick and dirty way to identify a separate but connected body of water would be to shrink all water bodies and see if gaps appear. In the example above I think that removing all water tiles which have 2 or less water tiles connected to them (marked red) would provide you with the desirable result plus some edge noise. After you have labeled the bodies, you can "flow" the water to its original state and reclaim the removed tiles for the now separate bodies. Again, this is a quick and dirty solution, it might not be good enough for the later stages of production but it will suffice to "get this working for now" and move on to some other feature.
0.888889
Quick and dirty way to identify separate but connected body of water
Khojand to Dushanbe - cost vs danger?
Currently in Khojand, Tajikistan and wanting to take a taxi or something tomorrow to Dushanbe. The taxi drivers here are like vultures - I was surrounded by the horde of them at the station outside town where the border taxi guy dropped me off. I've been quoted US$40 for a ride to Dushanbe tomorrow, in a shared cab, or $100 for just me (I'd go shared) but it's in a regular car and have no way of knowing if that's good or not. Googled without much luck. I've been told you should only take a jeep, or 4wd, but everyone says different things (taxi drivers) and it's hard to know who to trust! How it turned out - see answer at bottom, successfully made it to Dushanbe without being ripped off too badly ;)
According to all the Russian language forums I know, all people say You should not ever try to move alone (because the risk of kidnapping)! Try to form a group with other tourists, and move with them. Other problem is the highway between Khojand (Khujand) and Dushanbe is currently under reconstruction, and there can be some traffic on it. So, maybe you will have to get the bus to the Istarawshan, and after that get a car for Dushanbe. Try to find the bus station (Avtobusnyi vokzal - in Russian), there will be some info about intercity buses.
0.777778
You should not ever try to move alone (because the risk of kidnapping)
Get term weight in node object for ordering with EntityFieldQuery
Is it posiible to expose taxonomy term weight in node object ? I need to sort nodes using EntityFieldQuery by term reference field, but weight is not exposed to node object so i can say for example ->fieldOrderBy('field_custom_terms', 'weight', 'ASC'); and sort nodes by weight of terms.
No, this is not possible. You can only order on actual field values, the term weight would require a JOIN to a non-field table and EFQ is not capable of doing that. You will have to create a manual SQL query to do this. Note that Drupal by default maintains the node <-> term associations in the taxonomy_index table, that one is easier and more reliable to query than a field data table.
1
EFQ is not capable of querying the term weight
Any equivalent to CCleaner for Android?
I found a few questions about freeing internal memory, but they're mainly about deleting apps, moving them to the SD card, or deleting the data/cache. I do that on regular basis so I am looking for something else. Is there any kind of equivalent of CCleaner for Android? That would help me to find and delete files I can delete? HTC Desire on CM 7.1
Yes. SDMaid does an excellent job of finding files abandoned by the system such as interrupted Play APK downloads (cutely called the "basement corpse finder"), shrinking databases and emptying your caches. It also lists files by size so you can find space hogs, etc.
0.888889
SDMaid finds files abandoned by the system
Do you say certificate about or certificate of?
Do you say certificate about or certificate of? "Additional certificate about grading system."
Good question! I won't get into the nuance of what that certificate is all about. I'd address the question in the title -do you say certificate 'about' or 'of'. Though both convey the same meaning, in my opinion, in most of the cases, when you say 'certificate about...' it takes a phrase. I mean to say that there could be some explanation of what that certificate is all about, and not just one word. For instance a doctor's certificate about the applicant's fitness for the job On the other hand, 'certificate of' is short and terse. It directly says what is that certificate with no explanation. Say - a certificate of registration/membership/excellence/participation...and so on But I repeat, both conveys the same meaning and there's no strict rule about what I said. It's just my minute observation.
1
'certificate about' or 'of'
Controlling smoke/fire emision amount
It is possible to animate the emission of the smoke in smoke sim? I tried to insert keyframes in the fuelAmmount propierty in the flow object but it didn't work. Thanks.
Controlling the amount of fire by keyframing the Flame Rate works for me: However it doesn't affect the smoke. To affect the smoke as well, you could try animating the Volume Factor:
1
Controlling the amount of fire by keyframing the Flame Rate
What does mathematics have to do with programming?
I just started a diploma in software development. Right now we're starting out with basic Java and such (so right from the bottom you might say) - which is fine, I have no programming experience apart from knowing how to do "Hello World" in Java. I keep hearing that mathematics is pertinent to coding, but how is it so? What general examples would show how mathematics and programming go together, or are reliant on one another? I apologize of my question is vague, I'm barely starting to get a rough idea of the kind of world I'm stepping into as a code monkey student...
Math describes (say) a cubic equation. An algorithm describes how to solve that cubic equation. Constructing that (or any) algorithm in a way that can be executed by a machine is programming. Computer science is the analysis of the algorithm - its theoretical time/space efficiency, error bounds, etc. This much could be considered a branch of mathematics. Note however that computer science and programming are not actually the same thing. It is important to have a foundation in computer science if you want to be a good programmer, because it helps you to better design and reason about the algorithms you develop. But it is not a requirement. A good programmer may not be (in fact, often is not) a good mathematician, and vice versa. They are separate identifiable skills.
0.888889
Computer science and programming are not the same thing
Is there a list of Mitzvot and their corresponding body parts?
The Talmud (Makkot 23B)and the Zohar (1:170B - unverified English translation here) say that the 248 positive commandments correspond to the 248 limbs of the human body. (The Mishna (Ohalot 1:8) lists the 248 Halachic limbs). The Talmud also says that the 365 Negative commandments correspond to the days of the year. The Zohar adds that the 365 negative commandments also correspond to the 365 sinews in the human body (See Yonatan Ben Uziel Bereshit 1:27), and connects them to the days of the year. R' Chaim Vital, in Shaar HaKavanot (Shaar 1, Part 1) says that "Each of the 248 spiritual limbs gets its nourishment from a particular mitzvah that corresponds to that limb. When a person fails to perform that particular mitzvah, the corresponding limb will lack its proper nourishment..." (translation from here) Is there any source which tells us which limb (and/or sinew) each Mitzvah corresponds to? As an example, the Zohar referenced above (1:170B), connects Gid Hanasheh (sciatic nerve), one of the 365 sinews, to the prohibition of eating on Tisha B'av.
The classic Sefer Chareidim by R' Elazar Azikri (d.1600) catalogs all the mitzvos according to body parts. (R' Elazar Azikri was also the author of the poem, Yedid Nefesh.) An abbreviated version, Kitzur Sefer Chareidim, was written by R' Avraham Danzig, author of the Chayei Adam. The sefer does not attempt to establish a precise one-for-one match for each limb and sinew. It lists the limbs only in a very broad sense, eyes, arms, legs, and so on, and then lists the various mitzvos (Biblical and Rabbinic) that are performed with that part of the body. Sefer Chareidim happens to be one of my favorite seforim. I can't recommend it highly enough.
1
Sefer Chareidim by R' Elazar Azikri (d.1600)
Can you match a Windows XP product key to a service pack release?
I have a Windows XP product key on my PC, but I'm not sure which release of Windows XP it belongs to SP1, SP2, or SP3. Is there a way I can tell without trying each one? Note: In this case, I have an old PC which had an OEM XP Pro license. I don't have the media for it any more. However, I do have a media for XP Pro (off the shelf non-OEM). The Product Key on the case doesn't want to validate. So I'm presuming that there is something encoded in it as to the release it works with. I can get media, I just don't want to try each one.
For activating you dont need to know which service pack you are using If you just bought a new computer then chances are you have SP3 To find out which Service pack you have already installed (source from http://pcsupport.about.com/od/tipstricks/ht/servicepackxp.htm) 1) Click on Start and then Control Panel. 2) Click on the Performance and Maintenance link. Note: If you're viewing the Classic View of Control Panel, you won't see this link. Simply double-click on the System icon and proceed to Step 4. 3) In the Performance and Maintenance window, click on the System Control Panel icon at the bottom of the window. 4) When the System Properties window opens it should default to the General tab. If not, choose it manually. 5) In the System: area of the General tab you'll find the operating system version and the service pack level. See the screen shot on this page for an idea of what you're looking for. An Easier way would be 1) Right click on My Computer 2) Select Properties 3) Under General Tab look for your service pack version
0.777778
How to activate your SP3 Service Pack?
PDFNet SDK Convert files on Azure storage
I have a web app that needs to convert PDFs to XODs (PDFTron’s format to display documents in their WebViewer). My Web App is hosted on Azure, the PDFs are on Azure Storage. We would like to go along with the on-premises conversion via PDFNet SDK (http://www.pdftron.com/webviewer/getstarted.html, see “Choosing a deployment model for conversions), my code so far is the following: WebRequest req = HttpWebRequest.Create("url of PDF on Azure Storage here"); using (Stream stream = req.GetResponse().GetResponseStream()) { PDFDoc pdfdoc = new PDFDoc(stream); var converted = pdftron.PDF.Convert.ToXod(pdfdoc); //pdfdoc.Save(stream, pdftron.SDF.SDFDoc.SaveOptions.e_linearized); //not clear to me } My approach here is to create a stream from the file on azure storage and convert that stream to XOD. I still don’t know if I should call “Save” and in that case where the file would be saved. My questions are: Since everything runs on the cloud does it make sense to use the CloudAPI instead of the self-hosted solution or does it not make any difference? In both cases, where is the converted file stored (since I am getting it from the Azure storage and not from a local server), since I would then need to move it to my azure storage account. Does the file get saved locally (meaning on the web/worker role which is processing it) and therefore needs to be moved to the storage? Here (http://www.pdftron.com/pdfnet/samplecode.html) there are conversion code samples but they all use files on local machine, which would not be my case.
Since everything runs on the cloud does it make sense to use the CloudAPI instead of the self-hosted solution or does it not make any difference? In both cases, where is the converted file stored [...] If you were to go with the cloud solution, you would transfer your files to PDFTron's servers, where they will be converted. Then you would download the converted files. If you were to go with the on-premises solution, you would need to run DocPub CLI (https://www.pdftron.com/docpub/downloads.html) on your Azure instance, and its only communication with PDFTron would be to increment the billing counter for your PWS account (https://www.pdftron.com/pws/index.html). You'd have to decide for yourself which solution works best for you. Here (http://www.pdftron.com/pdfnet/samplecode.html) there are conversion code samples but they all use files on local machine, which would not be my case. [Note: these samples show how to use the PDFNet SDK to run conversions. To run PDFNet you would need an additional license. So you probably want to use DocPub CLI or the cloud converter instead.] The samples show how to convert the files locally, since XOD conversion would need to be run server-side. How most people do so is by setting up some web service to upload PDF (or other format) files. Then they convert the documents server-side, and place the converted XOD files someplace where the WebViewer can serve them.
0.777778
How to use CloudAPI instead of self-hosted solution?
Unrecognized element 'authentication'.
I am trying to write a simple authentication. I'm also trying to make this quick and learn about the forms authentication via web.config. So i have my authentication working if I hard code my 'user name' and 'password' into C# code and do a simple conditional. However, I get en error message 'Unrecognized element 'authentication'. Line 2: <system.web> Line 3: <customErrors mode="off"> Line 4: <authentication mode="Forms"> Line 5: <forms name=".C#FEWD" Line 6: loginUrl="/schools/admin/login/index.aspx" My web.config file looks like this: <configuration> <system.web> <customErrors mode="off"> <authentication mode="Forms"> <forms name=".C#FEWD" loginUrl="/schools/admin/login/index.aspx" protection="All" timeout="60"> <credentials passwordFormat="Clear"> <user name="schools" password="magic" /> </credentials> </forms> </authentication> <authorization> <deny users="?" /> </authorization> </customErrors> </system.web> </configuration>
Its probably just that you're missing the node terminator from your customErrors setting: <customErrors mode="off"/> More following comment: Your complete config should be: <configuration> <system.web> <customErrors mode="off" /> <authentication mode="Forms"> <forms name=".C#FEWD" loginUrl="/schools/admin/login/index.aspx" protection="All" timeout="60"> <credentials passwordFormat="Clear"> <user name="schools" password="magic" /> </credentials> </forms> </authentication> <authorization> <deny users="?" /> </authorization> </system.web> </configuration>
0.888889
Node terminator from customErrors setting
Why does my bike make a noise when I pedal hard?
When I pedal forcing a little with my right leg, the bike makes a noise that I don't know how to describe. I'll try to do it. It's like: a short "ting" a tiny bell if a small rock hits the down tube I don't know what is causing this noise, but I think that it could be any of this things: pedal crank arm/pedal connection crankset I think the material of all these things is alluminium. I don't feel anything (like a bad shifted chain) when I hear the noise. It happens when there is movement and when there is NO movement (I use the brake, so the bike doesn'e move, stand using all weight on right pedal, and it makes the noise) The pedals could be in any position, It is not in a particular position. Just pressing the right pedal. Has someone else has this "problem"? Any ideas of where this comes from? Update: Yesterday I took out the chain and stood on the right pedal, and made the noise. Then is not the chain, nor the transmission system. I put oil in the pedal axis, but had no luck. Also tried to loose the pedal, but the juncture point is too tight, and I couldn't. Today I will try to use oil in the bottom bracket. Update: here is a link to info on the bike http://www.diamondback.com/2012-sorrento maybe it helps to know the model of all the components.
Could be any number of things. The first thing to check (because ignoring it can rapidly cause expensive damage) is that the crank arms are tight. Even if they don't seem loose it doesn't hurt to put a wrench on the fixing bolts and torque them a bit. (If one moves more than a small amount, get a torque wrench and do them up right.) Likewise with the pedals. You can also get noise from a cartridge BB if the cups are not totally tight. No big emergency here, but you need to tighten them to see if that's the problem. Spokes can make a "ting" sound, especially if the wheel is relatively new. Unless there are loose spokes, though, there's not much you can do about this and it will usually go away on its own after the wheel breaks in. It's unlikely to be that the BB needs lube, unless it's been sorely neglected for years (or submerged in Sandy's tidal waters). If the bike is relatively new (a few months old), you should take it back to the shop where you bought it and ask for a "tuneup" where they would tighten the crank arms, adjust the brakes and shifters, and true up the wheels. On a new bike they should do this for free or for a nominal sum. If the bike's older a tuneup won't hurt, but expect to pay more.
1
Tires can make a "ting" sound, especially if the wheel is relatively new
Getting libraries to load with newer jQuery using jqmulti
I'm kind of a newbie to this so I could be missing something really obvious, but I'm having trouble getting specific libraries to load with jQuery 1.7 in noconflict mode using jqmulti. I'm working on a theme based off twitter_bootstrap, and the bootstrap.js library is dependent on more recent jQuery. I've got jqmulti recognizing and loading 1.7 if I check "load even if no libraries are assigned" but when I have that unchecked and attempt to use hook_jqmulti_files() to assign particular libraries, nothing happens. This is what I have in my template.php: function regent_jqmulti_files() { return array( 'sites/all/themes/regent/bootstrap/js/bootstrap.js', 'sites/all/themes/regent/bootstrap/js/bootstrap.min.js' ); } but when I look at my rendered html, the library is loaded, but nothing about noconflict mode, and jQ 1.7 is nowhere to be found. I'm sure I'm missing something basic and stupid, this being the first time I've tried to set something like this up.
As you are talking of a template.php file, I get you are talking of theme code. The only hooks a theme can implement are alter hooks (the ones called with drupal_alter() and with a name ending in _alter), in Drupal 7. (Theme functions are not hooks.) If you look at the code of drupal_alter(), you will notice it contains the following lines. // Allow the theme to alter variables after the theme system has been // initialized. global $theme, $base_theme_info; if (isset($theme)) { $theme_keys = array(); foreach ($base_theme_info as $base) { $theme_keys[] = $base->name; } $theme_keys[] = $theme; foreach ($theme_keys as $theme_key) { $function = $theme_key . '_' . $hook; if (function_exists($function)) { $functions[$cid][] = $function; } if (isset($extra_types)) { foreach ($extra_types as $extra_type) { $function = $theme_key . '_' . $extra_type . '_alter'; if (function_exists($function)) { $functions[$cid][] = $function; } } } } } Differently, module_implements() (used from any function that invokes hooks) doesn't check hooks implemented by themes.
0.888889
drupal_alter() and a name ending in _alter
Apache access to NTFS linked folders in linux
Using Apache2/PHP in Debian jessie, when I want to make a new subsection in document folder of Apache (/var/www) I simply create a link to an external folder where my php files exist and simply change the owner and permissions of the folder as follow and it works perfect. ln -s /home/myname/mynewcode /var/www/test1 chown -R www-data:www-data /home/myname/mynewcode chmod -R 755 /home/myname/mynewcode Then I could access http://localhost/test1 But when the real folder that I want to link it, is on a NTFS partition since chown and chmod do not work, I do modify the /etc/fstab by adding the following code, therefore my NTFS partitions will mount with the required permissions and owner. UUID=XXDDXDDXDDDXDDDD /media/myname/lable ntfs user,exec,uid=www-data,gid=www-data 0 2 ln -s /media/myname/lable/mynewcode2 /var/www/test2 But still I do get the permission error from Apache2 and I don't know what to do!! Forbidden You don't have permission to access /test2 on this server. Apache/2.4.10 (Debian) Server at localhost Port 80
I assume the NTFS partition belongs to a Windows machine? You can share it in Windows and mount it in Debian with mount -t cifs //windows_host/share /var/www/test2 uid=xxx,gid=xxx,rw,sec=ntlmv 0 0 So you don't need to deal with NTFS directly.
0.777778
NTFS partition belongs to Windows machine?
Where is the Zora Queen?
When I go back to Zora's Cave, the Queen is gone. I am told that she is out swimming and very late. I went to the lake and swam around but when I came back, but she is still gone. How can I find her?
She's one of the Seven Sages, so she's in one of the paintings Yuga hid in Lorule. Once you find her painting, she'll be where the sages are, in the Sacred Realm.
1
Yuga hid in Lorule in the Sacred Realm
How to render a curve without creating meshes?
I am able to render a curve by bevelling it. However, for a scientific visualisation that I am working on, this doesn't render the way I wish it to. I would like the curve to render as a fixed width line irrespective of the distance from the camera. Currently, I have to adjust the bevelling amount based on camera distance, and also play with rendering samples to get a smooth looking line. Is there a cleaner approach that I am missing? I am currently using the "cycles" renderer, but I am open to suggestions for any other renderer. Thanks! Clarification: This is an animated visualisation. Hence, the distance from camera varies continuously. Here's an example video of what I am trying to do. The comet orbit is the curve I am worried about.
You could use OpenGL render (the button in the 3D View header) in Wireframe view mode. Every curve is rendered as a line without the need for any beveling. Animations can also be OpenGL rendered. It is very fast. But there is no possibility to set the line width. It's always 1px. To support transparency you have to set the shading mode to GLSL (press N in 3D View and look for Shading).
1
OpenGL render in Wireframe view mode
How to 'select' menu items that also link to deeper items?
Currently I'm working on a navigation that doesn't take up too much screen real-estate. I came up with a pseudo off-canvas navigation with stacked menus. A user can assign nodes to a product. This is the current state of the wireframe; user chose Add nodes. Now he want's to manually search for a specific node 1 (1. Browse Nodes in wireframe). The user now can select a node to add to product 2 or go 1 level deeper into the navigation 3. and 4.. If you click on a node-link the children off that node will slide-in and stack on top of the current menu. There is also a back option to parent (second wireframe). I deliberately chose checkboxes, links and button as elements because that's their purpose; I wireframed there functionality not a design-solution. Normally I like selecting text/label also checks a checkbox, but now the label is a link too. A user could a) select that node to add to product, Or b) select node to navigate to children of that node. I could argue if it makes sense that a node will act is a leaf and a branch. A don't have any real data about how customers assign nodes. I can't wait for this input. Currently functionality of the system is that a node could be a leaf and a branch. So asking real users is no option. Maybe in the future (months from now). How to convert this into an intuitive navigation?
Is there a relationship between selecting a node and selecting its parent node? For example, if Node A has child nodes B, C and D, is it the case that selecting all of B,C and D implicitly selects A and vice versa? If so, then you don't necessarily need different click behaviors for leaf and branch nodes. Perhaps the first click on "Node A" expands it, and subsequent clicks select / deselect it (and all its children); and if B, C and D are each checked individually then A is checked automatically. You would still need a separate button / triangle to collapse the list, but that functionality is much less important, especially if the list is only on screen transiently. I am thinking here of the hierarchical checkbox lists you sometimes see in older Windows installer applications. You get a list of features, with a checkbox next to each, and if the feature has sub-features of which only some are selected, its checkbox shows a special intermediate state. I don't recall which installer type does this, and it's not brilliantly implemented anyway, but the basic idea can work well I think.
0.777778
Is there a relationship between selecting a node and selecting its parent node?
How does owning a home and paying on a mortgage fit into family savings and investment?
I'm in my mid-20's, and so I am aiming at long-term growth with higher risk in my portfolio. My financial adviser is showing me some investment allocations that put my money in some growth, mid, and value-retention locations. He doesn't seem to be taking into the equation the fact that I am putting a huge percentage of my paycheck into my home. I know home values fluctuate, but long term, it seems to be a pretty good way to at least retain value, and at best make a small return. If I am already contributing so much to my "home" investment, why would I also invest in stocks or bonds with a low rate of return, even though they are considered a "safe" part of my portfolio? Update: I think the question really has two parts. 1) How does owning a home fit into my financial portfolio? Most seem to agree that at best it is a hedge against rent or dollar inflation, and at worst it should be viewed as a liability, and has no place alongside other real investments. 2) How should one view payments on a home mortgage? How are they similar or different to investing in low-risk low-reward investments?
1) How does owning a home fit into my financial portfolio? Most seem to agree that at best it is a hedge against rent or dollar inflation, and at worst it should be viewed as a liability, and has no place alongside other real investments. Periods of high inflation are generally accompanied with high(er) interest rates. Any home is a liability, as has been pointed out in other answers; it costs money to live in, it costs money to keep in good shape, and it offers you no return unless you sell it for more than you have paid for it in total (in fact, as long as you have an outstanding mortgage, it actually costs you money to own, even when not considering things like property taxes, utilities etc.). The only way to make a home an investment is to rent it out for more than it costs you in total to own, but then you can't live in it instead. 2) How should one view payments on a home mortgage? How are they similar or different to investing in low-risk low-reward investments? Like JoeTaxpayer said in a comment, paying off your mortgage should be considered the same as putting money into a certificate of deposit with a term and return equivalent to your mortgage interest cost (adjusting for tax effects). What is important to remember about paying off a mortgage, besides the simple and not so unimportant fact that it lowers your financial risk over time, is that over time it improves your cash flow. If interest rates don't change (unlikely), then as long as you keep paying the interest vigilantly but don't pay down the principal (assuming that the bank is happy with such an arrangement), your monthly cost remains the same and will do so in perpetuity. You currently have a cash flow that enables you to pay down the principal on the loan, and are putting some fairly significant amount of money towards that end. Now, suppose that you were to lose your job, which means a significant cut in the household income. If this cut means that you can't afford paying down the mortgage at the same rate as before, you can always call the bank and tell them to stop the extra payments until you get your ducks back in the proverbial row. It's also possible, with a long history of paying on time and a loan significantly smaller than what the house would bring in in a sale, that you could renegotiate the loan with an extended term, which depending on the exact terms may lower your monthly cost further. If the size of the loan is largely the same as or perhaps even exceeds the market value of the house, the bank would be a lot more unlikely to cooperate in such a scenario. It's also a good idea to at the very least aim to be free of debt by the time you retire. Even if one assumes that the pension systems will be the same by then as they are now (some don't, but that's a completely different question), you are likely to see a significant cut in cash flow on retirement day. Any fixed expenses which cannot easily be cut if needed are going to become a lot more of a liability when you are actually at least in part living off your savings rather than contributing to them. The earlier you get the mortgage paid off, the earlier you will have the freedom to put into other forms of savings the money which is now going not just to principal but to interest as well. What is important to consider is that paying off a mortgage is a very illiquid form of savings; on the other hand, money in stocks, bonds, various mutual funds, and savings accounts, tends to be highly liquid. It is always a good idea to have some savings in easily accessible form, some of it in very low-risk investments such as a simple interest-bearing savings account or government bonds (despite their low rate of return) before you start to aggressively pay down loans, because (particularly when you own a home) you never know when something might come up that ends up costing a fair chunk of money.
0.888889
How does owning a home fit into my financial portfolio?
How many domains can you configure on a Sun M5000 system?
We have a few Sun M5000 servers with the following configuration: Each system has 2 system boards each containing 2 x 2.5Ghz quad core processors Each system board has 16GB of RAM Each system has 4 x 300GB disks I would like to know how many hardware domains can I configure per system? Do I need one system board per domain (implying a total of 2 domains), or can I create 4 domains, each with one cpu each?
Even though the maximum number of domains supported on the M5000 is four, that also requires 4 system boards. So in this configuration (2 system boards), the max number of domains is 2. To get 4 domains two more system boards were required.
0.777778
Maximum number of domains supported on the M5000
Can / Should I Use The Admin Session in Frontend
For some use cases it would be nice to know, when on frontend, if an admin is logged in and to fetch the user's ACLs. I know that this is not "easily" possible, i.e. the frontend and admin sessions are separated on the abstraction level. I think it should be possible to dig some levels deeper and still access the session. Additionally I saw work around that pass some tokens from the backend to the frontend - but basically I am not talking about such. Are there any obvious problems to expect? Or might that just be impossible for any structural reason? I saw shops that log you out from the backend when you browse the store front - what could be the reason for such security measures? (obviously in this case my whole approach would not work).
Let's assume you can get access to the admin session in the frontend, I don't think there will be any issues. Just make sure that you wrap the code (actions or display) around something like this: if (getTheAdminSession()->getUser()){//getTheAdminSession() is just a placeholder for the admin session getter //code or output here } If you have this and the admin is not logged in then there should not be any issues (in theory). Those pieces of code will be skipped. Now the hard part. I'm not sure how it's possible to gain access to the admin session from the back-end since Magento creates 2 different cookies for them. Maybe read the cookie with the name 'adminhtml' and try to initiate the session with that value. But this will become impossible if the admin is on a separate domain. (I know it usually isn't but it may be). If you do a simple: Mage::getSingleton('admin/session') on the frontend, the object created from this code will be appended to the session file of the frontend(I only tested with session in files). The admin session file will not be touched. Your session file will looke something like this: core|a:5:{..}admin|a:2:{...}
0.888889
How to get access to admin session from back-end?
Understanding how to read bevel cuts in woodworking plan?
I'm new to woodworking and I have started a project that requires some bevel cuts. I'm having difficulty understanding and visualizing what it means to make cuts like "10 degrees off square, short point to long point" or something like, "short point to short point measurement, both ends cut at 10 degrees off square" or "10 degree angle, longest point measurement." What does it mean to cut X degrees off square? Or, cutting something to short point to long point?
Hope this helps The easiest way to find/cut the angle is with a speed square. Here is how to use the speed square to layout an angle: How to Set an Angle with a Speed Square
1
How to Set an Angle with a Speed Square
Drywall - final joint compound coat
While remodeling an older house (where nothing is quite straight) we used fiber glass mesh joint tape and 3 coats of joint compound. The first coat was applied with a 4 inch knife, the second with an 8 inch and ending the third on a 12 inch knife. I can still see the texture from the mesh tape I used on some of the joints. I hoped that a coat of primer would level it off, but after using Kilz 2 primer I can still see the tape in some spots. :( Sanding through the primer now proves difficult (doesn't work) with a medium grit sanding block. Should I add another coat? I could never quite get the joint compound to adhere over the mesh tape. I've always been taught to go as thin as I can on the joint compound to reduce the sanding part. Did I go too thin? I'm hoping a second coat of primer and 2 coats of the final latex paint hides it, but I know this isn't the right answer. How can I fix this? following what doresoom and shirlock said; i just applied a coat with the 12 inch knife practically against the wall (accidentally touching the wall with the handle once or twice) - more or less dragging the compound across the surface this produced the result explained - about 1/32nd ? thickness of mud, covering the tape that i'll need to feather round the edges i miss spoke earlier - i was using a sponge sanding block (not strait paper sand paper) now that the primer has dried (did it saturday) its not as bad as i thought it was, but this is the right way to do it (not covering it with paint) just as a side, we've used sherwin williams paint throughout the house and although its great paint (IMO) the plaster and lath walls that remain, even those repairs show through - and if those do, than this new work will... may as well do finish it right... thanks for the help guys - i'll check this coat tomorrow and give a last one with the soap and water if it needs it.
As the others have said, paint will not help your situation. You will need to apply another coat of mud. The final coat can be applied using a 12 inch flat knife, but I personally like a 14 or 16 inch bow trowel. The idea is to have a thicker coat of mud over the tape and bevel or feather the edges out wide so you will not notice the small difference in thickness. With a 12 inch knife, your joint should be about 16 to 18 inches wide. Push harder on the outside of the knife than on the inside/center of the joint. This will leave more mud in the center and feather the edges better. Do this on each side of the joint. Here is another tip for you. For your last or final touch-up coat, mix a little extra water and some Ivory dish soap into your mud. It will flow very easily, far less tiny air bubbles, and will sand out easy with little pressure. Never use sandpaper, use a 150 or 220 sanding sponge. Don't go crazy and strip it too much or you will expose the tape again. Smooth the center gently and feather out the edges more agressively. Good luck
0.888889
Apply a thicker coat of mud over the tape and bevel or feather edges out wide .
What are the advantages and disadvantages of thinner PCB thickness (<1.6 mm or 0.063'')?
What are the advantages and disadvantages of thinner PCB thickness (&lt;1.6 mm)? My approach: Better capacitance interplane and better power decoupling. Better track-plane coupling. Problems with assembly process with heavy components Problems with PCB twist Extra cost. No standard thickness. When do you use it? Which are the technical limits for assembly thin PCBs (i.e. 0.5mm)? I know that It depends on the size of PCB. Could somebody tell about these limits?
And the obvious one : smaller end product! If you're making a digital watch, 1.6mm is huge! MP3 players, wearable electronics, possibly cameras, phones etc similar. At these board sizes, flimsiness is not a problem.
1
1.6mm is huge! MP3 players, wearable electronics, phones etc.
Word describing the reversal of emotions
A boy is highly confident one day and the next day scared, timid and shy. A girl is emotional one day and emotionless the next. Is there a term for a drastic switching of emotions? A term for the switching to practically opposite emotions? EDIT: Just to clarify the emotional changes are not rapid, and are permanent. This rules out bi-polar, because bi-polar involves multiple periods of change. EDIT2: I'm looking for a work to demonstrate the steepness or contrasts of change, but having no relationship to the speed of change. Example: Over a course of 3 years a once quiet boy become the spokesmen of the school.
mercurial [mer-kyoor-ee-uhl] –adjective changeable; volatile; fickle; flighty; erratic: a mercurial nature.
0.888889
mercurial [mer-kyoor-ee-uhl]
How can I tell if a downloaded ISO is complete?
I just ran into a nasty problem with an ISO download from Microsoft. I successfully burnt it to a rewritable DVD, and copied the contents to the local hard drive on another machine, but when I went to run them they were corrupt. It turns out the download had been truncated. Now, OK, sometimes that happens - but it surprised me that the truncated file (which was only slightly more than 60% of the actual ISO) burnt successfully and seemed to be presenting me with a sensible file system, to the extent that I could (apparently) successfully copy the files. So, is there some way I could have tested the file to see if it was complete or not? The MS web site did not provide any information about the expected size, so I'm looking for a generic solution: given an ISO file which may or may not be truncated, is there some way to tell? Do commonly used CD/DVD (data) formats include any embedded information about how much data is supposed to be on the disk, or even better, some kind of CRC? A solution that detects most truncated images will be accepted, it doesn't need to be perfect. (I'd prefer something that doesn't give false positives, though.) [Addendum: a comparison of the disk burnt with the truncated image with the files extracted from the full image suggests that chunks of the data from many of the files were replaced with random information, perhaps from the contents of a previous burn to the same rewritable disk.]
If the source did not provide any checksums for you, you should first check the file size and see if it matches. If not, it means that your download is ended prematurely. Also in linux, you can use wget, with -c command to continue aborted downloads. I have never tried to continue a download started from another application (mostly browser) but I think it should be fine. I always use wget as a download manager as it fails rarely and allows continuing aborted downloads. One should have a download manager in their tools for downloading large files consistently even though one does not use it every day.
1
How to continue aborted downloads from another application?
Consistent /dev names for USB hard drive and card reader
I have a Raspberry Pi (but that should be immaterial) to which, normally, connect: a USB hard drive a SD card adapter. I've been getting inconsistent device names. Sometimes the hard drive shows up at /dev/sda, and the card reader as /dev/sdb. Today, for reasons unknown (to me), the hard drive is a /dev/sde, and the card reader is at /dev/sda. There aren't any other disk-like devices. How do I make those consistent, without having to become a UDEV expert, preferably? :-) Added: This is Arch Linux with systemd and built-in UDEV.
You have other ways of identifying disks that don't change - try using /dev/disk/by-uuid/&lt;longstring&gt;. You can use the blkid &lt;sdXx&gt; on the partitions to find out the UUID.
1
How to identify disks that don't change?
How to undo card archive on Trello?
I accidentally hit c with a card selected and archived the card. I tried to undo the archive but couldn't find the option. I tried moving the card back to the list but that didn't seem to work.
Click &lt; Show Sidebar then Menu then Archive to see your archived items. Once there you can add them back to your board.
0.888889
Click &lt; Show Sidebar then Menu then Archive
Firefox 4 Downgrades to Firefox 3.6 on Windows 7
On my Windows 7 x64 computer, Firefox 4 has seamlessly downgraded itself to Firefox 3.6 twice. I haven't determined exactly when this is occurring, but the second time was when restarting after adding GreaseMonkey. It is possible the first time was also after adding an add-on. Re-upgrading to 4.0 seems to work perfectly. How can I stop this from happening again?
When I went to look at uninstalling I noticed that I had Firefox 3 Beta 5 still installed. I have uninstalled it, and expect it will solve my problems.
0.777778
Uninstalling Firefox 3 Beta 5
How valuable is studying cognitive psychology for UX?
I am starting my second year in grad school and thinking about what to study. One thing that I know is good to have a grasp of is cognitive psychology. But I would like to get someones perspective. Have you studied cognitive psychology? Either 1 class or more... and what did that give you?
Designers/Architects can benefit by learning more about how people process, learn, remember information and understanding internal mental states. Because Cognitive Psychology is all about internal mental states and process, where the user get bored, perception etc. One simple answer to the question of "How valuable is studying cognitive psychology for UX,HCI?" is that there is already agreement about the importance of both topics to computer science education in general. For example, the report of the ACM/IEEE-CS Joint Curriculum Task Force [2] clearly identifies human-computer communication as one of the nine core areas of computer science. In this core topic the report authors include both computer graphics and human-computer interaction as related topics. Furthermore, the authors of the report point out that cognitive psychology is an important supporting discipline for three of the nine core areas of computer science, including artificial intelligence and human-computer communication. Human-Computer Interaction and Cognitive Psychology in Visualization Education.
0.666667
How valuable is studying cognitive psychology for UX,HCI?
Is there a word for something loved by the masses but whose true value is lacking?
Is there a general word for someone or something popular or loved by the masses but that has not been proven to be effectual (like how some would use the term "pop psychology" pejoratively)? Examples would be how things like popular psychology or holistic medicine are accepted excitedly by numerous people while not being proven to be useful to the majority. UPDATE: Thanks for you responses. I think the word "fad" (or "hype") would come closest to what I was looking for (thank you for that). But is there a more general or appropriate term? I'm not American so apologies in advance (this is strictly for the sake of discussion): the only example I can think of is certain voters who were initially excited about Obama, but came to be disappointed after he failed to meet their expectations. Is there a word that could be used to describe Obama in this context? Something well-loved which turns out to be a disappointment.
The word "fad" is not always pejorative, but if you use it to describe something that others take seriously, then it comes off as insulting.
1
The word "fad" is not always pejorative, but insulting
How to fix a dpkg broken by the Brother MFC-7340 deb driver
I'm getting an apt-get error that says E: The package brmfc7340lpr needs to be reinstalled, but I can't find an archive for it. The brmfc7340lpr is a printer driver -- it's a local deb file. Doing a dpkg or apt-get purge doesn't work, neither does apt-get install -f . How do I reinstall a package from a local deb file? Output: box-name% sudo apt-get upgrade [sudo] password for username: Reading package lists... Done Building dependency tree Reading state information... Done E: The package brmfc7340lpr needs to be reinstalled, but I can't find an archive for it. box-name% sudo apt-get purge brmfc7340lpr Reading package lists... Done Building dependency tree Reading state information... Done E: The package brmfc7340lpr needs to be reinstalled, but I can't find an archive for it. box-name% sudo dpkg --purge brmfc7340lpr dpkg: error processing brmfc7340lpr (--purge): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: brmfc7340lpr box-name% sudo dpkg --install brmfc7340lpr-2.0.2-1.i386.deb Selecting previously deselected package brmfc7340lpr. (Reading database ... 725204 files and directories currently installed.) Preparing to replace brmfc7340lpr 2.0.2-1 (using .../brmfc7340lpr-2.0.2-1.i386.deb) ... Unpacking replacement brmfc7340lpr ... start: Unknown job: lpd dpkg: warning: subprocess old post-removal script returned error exit status 1 dpkg - trying script from the new package instead ... start: Unknown job: lpd dpkg: error processing brmfc7340lpr-2.0.2-1.i386.deb (--install): subprocess new post-removal script returned error exit status 1 start: Unknown job: lpd dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 1 Errors were encountered while processing: brmfc7340lpr-2.0.2-1.i386.deb box-name% sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done E: The package brmfc7340lpr needs to be reinstalled, but I can't find an archive for it. box-name%
You can always (re)install a package using dpkg: dpkg --install local-file.deb In order to make a "clean room" installation, you can first purge the package and then install it again: dpkg --purge brmfc7340lpr dpkg --install brmfc7340lpr*.deb You might need to add option --force-depends during purge, if some other package depends on brmfc7340lpr. Update: Based on the transcript you posted, it seems that the brmfc7340lpr package cannot be (re)installed because its post-removal script is erroring out. Those files are stored in directory /var/lib/dpkg/info; for each package X, there can be any one of these scripts: X.postinst run after the package has been installed, e.g., to start services provided by the package. X.prerm run before removing/purging the package, e.g., to ensure that daemons provided by the package are stopped. X.postrm run after the package has been removed, e.g., to signal any service optionally using the package that it is no longer available. (For instance, a printer driver package might want to signal cpus/lpr to remove printers depending on that specific driver.) Now, this brmfc7340lpr package seems to try to (re)start the lpd printer daemon upon removal, which won't work as Ubuntu uses CUPS instead: you should definitely look for a CUPS-compatible printer driver -- see the link in Jorge Castro's answer. (I think this is a bug in the package, as it should not restart the lpd service unconditionally, but just reload it if it's already running.) The best option to go forward comes from this launchpad answer: ln -s /etc/init.d/cpus /etc/init.d/lpd This will effectively (re)start CUPS when the lpd service is instead searched for. Otherwise, I only see two options, both rather unpleasant: Either edit the /var/lib/dpkg/info/brmfc7340lpr.postrm script, and comment out the line that is invoking /etc/init.d/lpd start (or restart or stop), (e.g., just replace it with /bin/true). Another option is to just place exit 0 as the first non-comment line in the script. This would be my favorite, but requires a bit of confidence with editing shell scripts. Install lpr, purge the brmfc6340lpr package, purge lpr: this requires a bit of attention as lpr conflicts with the default Ubuntu printer spooling system CUPS: a. sudo aptitude install lpr (this will remove cups-bsd and ubuntu-desktop as a side effect) b. sudo aptitude purge brmfc7340lpr lpr (should work now) c. sudo aptitude install cups-bsd ubuntu-desktop (restore system to its original state)
1
reinstall a package using dpkg - purge local-file.deb .
Where did Kagami Taiga live when he lived in the US?
We see a flashback to when Kagami lived in the US in episode 1 of season 2 (26Q). Judging from all the palm trees, I'd hazard a guess that he was probably in California. California also seems like the most likely option on a demographic basis (i.e. where are Japanese temporary immigrants most likely to end up?). Is it ever explicitly stated where he lived? And if it is California, is it ever stated whether he's in SoCal or NorCal (or somewhere else)?
It was explicitly stated in the manga by Seirin's coach in Chap 112. He used to live in LA. Note this page may spoil events that have yet to come in the Anime
1
Seirin's coach in Chap 112. He used to live in LA
linux server still recognizes the old domain after changing it to new one
I have some Linux servers (RHEL 6.3 and 5.4) under one domain (MS Windows server 2008R2) and every thing was working fine, but we decided to change the domain from olddomain.com to newdomain.com, now the new domain under (Windows server 2012), I changed the domain from the old one to the new one in all Linux servers. The result of $dnsdomainname command is newdomain.com on all Linux servers. when I ping any Linux server from it give me Lin_name.newdomain.com but the problem I am facing now the log inside log rotate and forward still recognize the old domain. it give me like the following: Nov 19 10.00.09 Lin_name.olddomain.com Lin_name [message like someone logged in or out start proccess ..etc]
Did you reboot or restart any of the Linux system services? If not, you'll need to... Also see: Linux - if I change the hostname, which services need to be restarted?
0.888889
Did you reboot or restart any of the Linux system services?
Alternatives of 'a snowball's chance in hell'
I am looking for a different, common English idiom that expresses the same thing as a snowball's chance in hell. My teacher says I use this expression too much, and that it is not appropriate for every essay. I need a same meaning like something very cold in a hot place to have a little chance.
'You've got two chances--slim and none...and Slim left town'.
1
'You've got two chances--slim and none...and Slim left town'
How much water should I expect to be left in a dishwasher?
After every load there is always some water left in the bottom of the drain basket/filter. It's not up into the dishwasher itself, but when I reach into the filter to clean it, there's always water in it. I have a GE QuietPower 3. Is this expected? If not, what can I do about it?
Look for a pinched hose. It's the easiest thing to check, and in my experience the most likely culprit, especially if the dishwasher has been moved recently.
1
Check for a pinched hose
unique in .hbm.xml file not raising exception
I am having the following in my .hbm.xml file &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Core.Domain.Model" assembly="Core"&gt; &lt;class name="Category" table="Categories" dynamic-update="true"&gt; &lt;cache usage="read-write"/&gt; &lt;id name="Id" column="Id" type="Guid"&gt; &lt;generator class="guid"/&gt; &lt;/id&gt; &lt;property name="Name" length="100"&gt; &lt;column name="Name" unique="true" index="IX_Category"/&gt; &lt;/property&gt; &lt;/class&gt; &lt;/hibernate-mapping&gt; I am having the following code, however, I can see that no exception is being raised when I am inserting a duplicate value for the Name field. Why is that so? void IRepository&lt;Category&gt;.Save(Category entity) { using (var scope = new TransactionScope(TransactionScopeOption.Required)) { using (ISession session = NHibernateHelper.OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { session.Save(entity); transaction.Commit(); } } scope.Complete(); } }
Did NHibernate generate the database schema for you? Because even though you set the property as unique, if the schema does not have the unique constraint, it will do nothing. Basically, that property won't query the database looking for uniqueness; it will only set the SQL constraint on insert.
0.833333
Did NHibernate generate the database schema for you?
Integrate a division of polynomials
Hi I have the following integral: $$\int \frac{2x}{x^2+6x+3}\, dx$$ I made some changes like: $$\int \dfrac{2x+6-6}{x^2+6x+3}\, dx$$ then I have: $$\int \dfrac{2x+6}{x^2+6x+3}\, dx -\int\dfrac{6}{x^2+6x+3}\, dx$$ and thus: $$\ln(x^2+6x+3)-\int\dfrac{6}{x^2+6x+3}\, dx$$ Ok, I have decomposed $$\frac{2x}{x^2+6x+3} $$ in: $$ \frac{3+\sqrt6}{\sqrt6(x+\sqrt 6+3)} + \frac{3-\sqrt6}{\sqrt6 (-x+\sqrt6-3)}$$ How can I integrate this expressions?
HINT: As $\displaystyle x^2+6x+3=(x+3)^2-(\sqrt6)^2,$ using Trigonometric substitution, set $x+3=\sqrt6\sec\theta$ or use $\#1$ of this
0.777778
Set $x+3=sqrt6sectheta$ using Trigonometric substitution
How soon after baking can you refrigerate freshly made fruit pies?
How soon after baking a fresh fruit custard pie can I refrigerate it? Must it be at room temperature before it's put in the fridge?
EDIT: Although the question title says "fruit pies," the question specifies a "fruit custard pie." The following answer relates to custard pies and other pies containing fillings with eggs and/or milk. Actual plain "fruit pies" generally contain enough sugar to prevent rapid spoilage and therefore often do not require refrigeration. If you do plan to refrigerate a plain fruit pie, there's no significant advantage to getting it into the fridge quickly. Pies do not have to come down to room temperature before refrigeration. In fact, most food safety organizations recommend the same general policy for egg-based and dairy-based pies as they do for other foods: don't leave leftovers out for more than 2 hours after cooking. See, for example, recommendations here: Foods which contain eggs and milk, with high moisture content, must be kept refrigerated, as bacteria love to grow in these foods. Failing to put that pie back into the refrigerator before it has remained on the counter for more than 2 hours can make a very merry celebration for the bacteria, but not so good for friends and family. So, 2 hours should be a maximum before refrigeration. As for recommendations about the appropriate time to let cool at room temperature, see here, for example, which states: Cool cream pies at room temperature for only 30 minutes after you take them out of the oven. After 30 minutes, put them in the refrigerator to complete the cooling and to keep them cold. While it says "cream pies" here, the guidelines above in that link imply that such guidelines also relate to custard and pumpkin pies. (The first link above also says the same thing about pumpkin pies.) Basically, the only reason to keep a dairy-based or egg-based pie out of the refrigerator after removing from the oven is to allow cooking and setting to continue. Many custard pies will continue to set a bit while cooling, and putting them in the refrigerator immediately might "shock" them and disrupt this process of solidification. Changes in humidity levels and condensation might also have unpredictable effects on the pie surface while it is very hot. (As for concerns about putting hot food in the fridge, see links to food safety organizations on the subject in my answer here. Basically, you shouldn't put a hot or warm pie near anything that's very perishable in the fridge. Otherwise, you're safer getting it in the fridge as soon as it has stablized after cooking, which shouldn't take more than 30 minutes or so.)
1
Foods which contain eggs and milk must be refrigerated for more than 2 hours after cooking
How many fans can I control?
I'm running a Phenom X6 on an ASUS M4A88TD-V EVO/USB3 motherboard. I just recently realized that I can quiet the otherwise noisy fan(s) with the ASUS Fan Xpert program they have. I'm loving it now since 50% fan speed changed it from noisy to almost silent. Two questions How do I know which fan(s) I'm slowing down? I have the CPU fan and 1 rear 120mm case fan, and I'm not sure which one's I'm slowing. I was thinking of getting an Antec 1200 or Coolermaster 932 case with more room and more fans. How do I find out how many of those fans I can control with software? Does it slow them all down equally or can I pick and choose? thanks for any advice
120mm fans tend to be quiet, so i'm guessing its the CPU fan. I'd check a few things - what's the 120mm fan connected to? if its a molex connector only then its prolly running at a fixed speed. CPU fans are definately motherboard controllable Also many cases have their own fan speed selectors, or there's optional addons for that. Chances are though they won't be software controllable.
0.888889
What's the 120mm fan connected to?
Relationship between user story, feature, and epic?
As someone whose still new to agile, I'm not sure I completely understand the relationship or difference between a user story, feature, and epic. According to this question, a feature is a collection of stories. One of the answers suggest that a feature is actually an epic. So are features and epics considered the same thing, which is basically a collection of related user stories? Our project manager insists that there's a hierarchical structure: Epic -> Features -> User stories ... basically all user stories must fall within this structure. Therefore all user stories must fall under an umbrella feature and all features must fall under an epic. To me, that sounds awkward. Can someone please clarify how user stories, features, and epics are related? Or is there an article that clearly outlines the differences?
I agree like many responses that there are really no right answers since these are just terms which can be varied depending on which Agile camp you are based on and you can definitely make up your own camp as long as everyone in your team including the external stakeholders understand what they mean. It is just a way of organizing your requirement. The answer I like is from Mike Cohn's camp and it is fairly simple. http://www.mountaingoatsoftware.com/blog/stories-epics-and-themes Epic is just a big Story (hierarchical) Theme is just a group of Stories (pretty much like tag) He actually avoids the term "Feature". I assume that it is mainly because it was a common term in the traditional waterfall world. Many Agile camp tends to use different terms to emphasize the differences. So in your PM's definition, Feature is somewhere in the middle of the Epic-Story hierarchy. Here is my info-graphic of this definition from my InfoQ article http://www.infoq.com/articles/visualize-big-picture-agile ;-)
0.777778
Feature is somewhere in the middle of the Epic-Story hierarchy
Do real and reactive energy exist?
Are there any such things as real and reactive energies just like real and reactive power? if so, how is reactive energy dissipated?
First of all, remember that in the context of AC (phasor) analysis, real and reactive power, unlike voltage and current, are not phasors, i.e., they do not represent the amplitude and phase of a sinusoid in the time domain. Thus, we cannot "tack on" the time dependence and take the real and imaginary parts to calculate the associated energies in time domain. Sometimes it is helpful to "go back to basics" to gain insight into a problem. This is such a case. Reactive power is a useful concept in AC analysis but what it represents physically is best seen in the time domain. First, consider a sinusoidal voltage source \$v_s(t) = V\cos\omega t\$ driving a resistor R. The power delivered to the resistor is: $$p_R = \dfrac{v^2_s(t)}{R} = \dfrac{V^2\cos^2\omega t}{R} = \dfrac{V^2}{2R}(1 + \cos2\omega t)$$ The key observation here is that the power is never negative, i.e., the flow of energy is from the source to the resistor always. Thus, the energy supplied by the source increases over time. The energy supplied by the source over a period \$\dfrac{\pi}{\omega}\$ is: $$W_R = \dfrac{\pi V^2}{2\omega R}$$ Now, replace the resistor with a capacitor. The power delivered to the capacitor is: $$p_C = v_s(t) \cdot i_C = V\cos\omega t \cdot (-\omega C)V\sin\omega t = -\dfrac{CV^2}{2}\sin2\omega t$$ The energy supplied by the source over a period \$\dfrac{\pi}{\omega}\$ is: $$W_C = 0 $$ The key observation here is that the power is alternately and equally positive and negative, i.e., the flow of energy is back and forth between the source and the capacitor. Thus, the energy supplied by the source over a period is zero. But, as we know, the power associated with a capacitor is reactive power in phasor analysis, and now we can answer your question: Are there any such things as real and reactive energies We have shown that reactive power is associated with an alternating energy flow between the source and load that is zero over a period. In other words, it is associated with the energy that "sloshes" back and forth between the source and load without any dissipation.
0.555556
Reactive power is a useful concept in AC analysis
Without a map or miniatures, how to best determine line-of-sight, etc?
I think the title says it all. Let's say you're mastering a game without the benefit of miniatures, maps, or any kind of physical representation of the environment. How would you keep track of details like line-of-sight, ranged attack viability, and all the other small nuances which go with creating a "believable-enough" environment in which your PCs live and thrive? (I admit that @LoganMacRae, who is my own DM, is an inspiration for this question. He does this with panache, and in my one-off, I feel like I have some mighty big shoes to fill!)
I've found that even not using a map, having a whiteboard helps in these situations. I bought a small magnetic one at Staples, and some magnetic tokens. At the time when this becomes really relevant, I just sketch a quick outline of a map- nothing major, and put a token for the pc group and a token for the npcs. As people break off, I'll put other tokens down, but for most cases, I only end up using 2-4 tokens- not tactical combat by any means, but it gives a frame of reference, and a quick way to determine line of site without being too arbitrary. In most combat situations, I don't need it- and I try to do it on the fly in most cases, as resorting to this does take you out of the moment a bit. But having that option has helped in several cases.
0.888889
Using a whiteboard helps in combat situations.
Why is it that the product of first N prime numbers + 1 another prime?
Recently I came across this proof for fact that primes are infinite. It's a proof by contradiction. The proof assumes that primes are finite and there is a prime M which is larger than any prime out there. Then you basically take the product of all primes up to and including M and you add one to it, which the source where I read this proof claims is a prime obviously larger than M hence a contradiction to our assumption that primes are finite. So why is it that product of first N primes + 1 another prime?
Suppose there are only $n$ primes, $p_1,...,p_n$ and let $M=p_1...p_n+1$. If $M$ is composite, then there exists some prime $p_i$ which divides $M$. That is, there exists some $k$ such that $M=p_ik$. Note also that $p_i$ divides $M-1$. Therefore, there is some $\ell$ such that $M-1=p_i\ell$. Hence, we can write $M=p_i\ell+1=p_ik$. Alternately, $p_i(k-\ell)=1$. But this implies that $p_i$ divides $1$ and this is impossible. Therefore, the original assumption, that there are only $n$ primes, $p_1,...,p_n$, must be false.
0.888889
Suppose there are only $n$ primes, $p_1,...,p_n$ and let $M=p_1
Is there an analogue of the jordan normal form of an nilpotent linear transform of a polynomial ring?
Is there an analogue of the Jordan Normal Form for an infinite dimensional vector space? In general I think the answer is no. It's been awhile since I studied it, but I'm pretty sure something would go wrong in distinguishing eigenvalues for an infinite dimensional space. Normally, for infinite dimensional vector spaces, you have some topology that allows you to define compact operators, et cetera, that are easier to study. But in my specific case I'm looking at an nilpotent linear map $D: F[X] \to F[X]$, where $F$ is a finite field. I'm actually trying to find the kernel of said map. I hope that a transformation to a suitably friendly basis would help (hence why I'm asking about jordan normal forms!). Is $F[x]$ close enough to finite that there might be something similar to the JNF that can help? Some motivation: For $f \in F_2[x]$ and $F_4 = F_2[\mu]/(\mu^2 + \mu + 1)$, the map is $Df = f(x + \mu) - f(x)$ (so actually $D: F_2[x] \to F_4[x]$, but clearly this can be thought of as an endomorphism). I'm trying to find the kernel of this map in $F_2$. Originally, I thought it would be spanned by elements like $x^{2^n} + x^{2^{n-2}}$, since $(x + \mu)^n$ would have a lot of non-zero terms when n isn't a power of 2. But after trying to prove that, I found several counterexamples (exempli gratia $x^{12} + x^9 + x^6 + x^3$). Additionally, if $\text{deg}f=n$, I have $n$ equations that the coefficients of $f$ must satisify for $f$ to be in the kernel, and I believe I can show that we can have polynomials of 8, 16, 32, et cetera, terms that aren't sums of something that has fewer terms and already is in the kernel, but that's quite a bit of work! So I've decided to try looking for a different basis for $F_2[x]$ that would get close to diagonalizing the matrix of $D$. But as @Mariano, pointed out, this may not be any easier... Edit before I provided and motivation, this question asked about idempotent maps and not nilpotent. But that was because I was being silly and got the terms "idempotent" and "nilpotent" confused. I didn't catch my mistake until @Mariano reminded me that an idempotent operator is a projection when he answered the idempotent question. The map $D$ is clearly not idempotent!
Let $f:V\to V$ be an idempotent endomorphism of any vector space over any field. Let $V_0=\ker f$ and $V_1=\{v\in V:f(v)=v\}$. Then it is immediate that $V_0\cap V_1=\{0\}$, and if $v\in V$, then $v=v_0+v_1$ with $v_0=v-f(v)$ and $v_1=f(v)$, so that $f(v_0)=f(v)-f(f(v))=0$ and $f(v_1)=f(f(v))=f(v)=v_1$, that is, $v_0\in V_0$ and $v_1\in V_1$. This shows that $V=V_0\oplus V_1$. It follows that every idempotent endomorphism of a vector space is diagonalizable, and that its only possible eigenvalues are zero and one. Finite dimensionality plays no role in this context. This information in no way helps you find the kernel of $f$, by the way... Finding the «friendly basis» you talk about (if by that we understand «basis which diagonalizes the map») is equivalent (if not actually harder!) to finding the kernel.
1
idempotent endomorphism of a vector space
What does "pie" mean in the following sentence?
I once saw a sentence: I will go to a restaurant for pie. Native speakers didn't correct this sentence. I don't know why. I would say "I will go to a restaurant to eat a pie". But maybe that sentence was right. Could you please explain to me what that (first) sentence means?
In American everyday language it's correct. You can hear people saying: Let's go for pizza/pie/ice-cream/dessert, instead of saying: some/ a piece of pie, etc. Don't forget that all these words are also considered uncountable, therefore don't need the indefinite article a/an.
1
In American everyday language it's correct.
How do I reference (what is the syntax I have to use) to get the data of my Profile2 custom fields?
I have used the Profile2 module (D7) and created some custom fields for my users. One of those fields (for example) is "field_company" with the label "Company." Now I am using a computed field (Company) on a content type (Games). When user creates a Game, I want my computed field Company to be computed/populated automatically, based on the "field_company" field I have set in my profile2. I am trying to find how to get that information. This is as far I got, so far, but it doesn't work. $entity_field[0]['value'] = ""; $name=$profile2-&gt;field_onoma[LANGUAGE_NONE][0]['value']; $entity_field[0]['value'] = $name;
drupal_set_message('&lt;pre&gt;' . print_r($profile2,true) . '&lt;/pre&gt;'); or changing $profile2 to whatever variable is in your code you want described is a great way of seeing what's going on...
1
changing $profile2 to whatever variable is in your code you want described
should I declare my object global or static?
I draw random numbers using &lt;random&gt; from C++11. I do it by creating an instance obj of the following class (for the interested reader: It is taken from this thread): class RNG { public: typedef std::mt19937 Engine; typedef std::uniform_real_distribution&lt;double&gt; Distribution; double operator()() { return distribution(engine); } Engine engine; Distribution distribution; }; Calling obj() gives me the desired random number. Now, I have three functions that all have to use obj. Declaring obj global would work, but is it also correct? Or are there other (more correct) alternatives?
It depends. If the part of your program that works with RNG consists of and will likely consist of (hard to see the future though) just those three functions, and those functions only need to work on one object - always the same, all the time-, then why not making that object global. Avoid restricting a type to only have one instance (Singleton pattern) unless that is an inherent characteristic of that type. If your program uses only one instance of RNG, then your program will just create one instance (i.e., make the object global, or constrain your program - not the type - to only create one instance). I can very well imagine that other libraries or programs may create several random generators. Of course, if one day those functions will have to work on several different instances of RNG (although one at a time), then you will need to let them take an instance of that class as a function argument, and let them work on that argument. Clients will have to take care of providing the appropriate instance of RNG as an argument to those functions. Then, if one day you will realize that those functions will also end up all working on other object types, and those data are somehow related to each other, you could consider wrapping them in a data structure or in a class, possibly making your functions member functions of that class - if the operation it carries out is fundamental for that type. Giving guidelines in general without knowing what you have in mind, and what kind of application or library you are going to write, is not easy. Hopefully this helped a bit.
0.888889
Why not make RNG global if it works with RNG?
Where can I find the source code for Dungeon Defenders?
According to the wiki, the PC version of Dungeon Defenders comes with the "gameplay code and source" for UDK, for the purposes of modding. However, it's not listed in the usual place ("Tools" in Steam), and I can't find any other info online. Where is the source code?
You can find the optional DLC where the source code is located here, or you can find it under the DLC tab in the store page. Now you can find the source code located at \Steam\steamapps\common\dungeon defenders\Development\Src\ \Development\Src\: This contains all the gameplay source code for Dungeon Defenders (in UnrealScript, which you can learn through the Unreal Developer Network). It's located here for Mod coding &amp; reference purposes in particular. Source
1
Source code for Dungeon Defenders (UnrealScript)
EBS volume on AWS
I had an EBS volume of 30GB that was mounted as the rootfs for a ubuntu server. Due to space concerns I had to increase the size of the volume to 50. So I carried out the following steps: Take a snapshot of the EBS volume. Created a new EBS volume of 50GB. Restored the snapshot to the new volume. Power off my EC2 instance. Unmounted my old volume and mounted my new volume. Every thing works fine. But when I do a df -h I get this: Filesystem Size Used Avail Use% Mounted on rootfs 30G 27G 1.1G 97% / devtmpfs 1.9G 112K 1.9G 1% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/xvde1 30G 27G 1.1G 97% / And when I do fdisk -l I get this: Disk /dev/xvde1: 53.7 GB, 53687091200 bytes. Could some one help me with this?
I am no filesystem expert but your volume that you restored to is not formatted to utilize the 50 GB. In windows you need to expand the drive to utilize the full space of the larger Physical volume. You will need to find out the Linux command line version to make your xvde1 utilize the 50 GB. Ebs volumes are raw disks that need are not pre formatted. !--------snapshot restored----------!------------raw blocks -------! I will try to look into my onenote archive. I could of sworn that I documented this for one of my systems. Until then just look up expanding to larger ebs volume after snapshot restored. If I find it I will post it if not you need to search for it.
0.888889
How to expand the drive to utilize the full space of the larger Physical volume
Sodium Bisulfate vs Sodium Bisulfite
I'm wanting to do a follow up to this Q&amp;A in the cooking stack regarding browning avocados. I specifically want to expand my experiment to to include the options in Wayfaring Stranger's Answer. Unfortunately, I managed to get the wrong stuff, and shipping rules make exchanging it problematic. I am the proud owner of $500~\mathrm{g}$ of sodium bisulfate ($\ce{NaHSO4}$), instead of sodium bisulfite ($\ce{NaHSO3}$). Dammit Jim! I'm a cook not a chemist! What I have learned is that that both compounds are used as food additives towards the same end, and that my stuff has a slightly higher LD50. That's it. Can anyone advise as to substituting my compound for the other? I'm not interested in tasty guacamole at this point, I'm really only looking at browning. If I'm trying to more or less duplicate the more successful experiments of the University of Florida, should I start with the same ratios? Or more or less of the additive? I can get sodium metabisulfite (also an anti-oxidant food additive) locally, if that would be a better option. EDIT: So far, answers have all been consistent in that I have a half-kilo of white powder that is useless to me. I will make a trip to the wine-making shop and acquire some sodium metabisulfite. That still leaves me with the question of how much? The University of Florida got the results I'd like to duplicate with $30~\mathrm{mg}$ of sodium bisulfite per $100~\mathrm{g}$ of avocado. Should I start with the same ratio of sodium metabisulfite?
Generally, sodium hydrogen sulfite and sodium hydrogen sulfate are not interchangeable. Sodium hydrogen sulfite or “sodium bisulfite” (NaHSO3) is used in food processing as sanitising agent for food containers and fermentation equipment, preservative to reduce or prevent microbial spoilage, selective inhibitor of undesirable microorganisms in the fermentation industries, and as an antioxidant and inhibitor of enzyme-catalysed oxidative discoloration and non-enzymic browning. The food additive code (the E number, which is commonly found on food labels) of sodium hydrogen sulfite is E 222. Sodium hydrogen sulfate or “sodium bisulfate” (NaHSO4) is used as acidity regulator. The food additive code of sodium hydrogen sulfate is E 514.
0.888889
sodium hydrogen sulfite or “sodium bisulfate” (NaHSO3) is used as acidity regulator
Insert Task controller not executing from VF page
Having a little issue. Trying to insert a task using a custom controller, and I am not getting any kind of "error" when this executes. Everything else on the page seems to work but this. Any help would be great. Thanks. Also I have taken out any fields that would be pulled from the page and tried to just test it by entering the variables and it didn't work. public List&lt;Task&gt; tasks {get; set;} public ID CurrentAcct = Apexpages.CurrentPage().getParameters().get('Id'); public ID CurrentUser = UserInfo.getUserId(); private String soql {get;set;} private ApexPages.StandardController stdController; private Account_Plan__c AcctObj; private Task Ntask; //Other Code here for queries and constructor Public Pagereference AddTask(){ String taskdate = Apexpages.CurrentPage().GetParameters().get('tdate'); Date d = date.parse(taskdate); Ntask = new Task(); Ntask.ActivityDate = date.parse('5/25/13'); Ntask.Subject = 'This is a test'; Ntask.OwnerId = CurrentUser; Ntask.WhatId = CurrentAcct; Ntask.Status = 'In Progress'; Ntask.Priority = 'Normal'; Ntask.Type = 'Call'; try{ insert Ntask;} catch (Exception e) { ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'There was an Error! Cannot Create Task')); } return null; }
After creating a VF page needing to insert a new task, the new task was not created for me as well. I found out the task is not created automatically, but IS created due to a user triggered event. I added a button on the VF page "Save as Task". And put the task creation in the Apex method inkoked by the button. This works like a charm. P.S. I checked the documentation and please note: It is NOT possible to create a Task in a Constructor
1
Create a new task in a VF page
Why does the potential drop across a battery and resistor equal the emf of the battery?
In this diagram you can see the potential difference across the battery and resistor is the same as the pd created by the battery (the battery and resistor are representing a battery with internal resistance): I know the route through the voltmeter is not actually a route, so I'm guessing here is no current? But why* is there no difference in the voltmeter reading, whether you put the voltmeter across the battery and resistor or just the battery? The following diagram makes sense to me as some pd should be dropped over the internal resistance (the 680ohm resistor): *(physically, when I put the numbers into the equations it make sense mathematically, but I don't understand the physics side)
The resistance through the voltmeter is so much greater than that of the resistor that the resistor's resistance has negligible impact on the circuit. A precise-enough voltmeter would see a very small difference, on the order of micro or nanovolts.
1
The resistance through the voltmeter is so much greater than that of the resistor
Disabled buttons while long running task
My application has a toolbar and a lot of buttons on it. Some buttons start a long running processes(tasks). At this moment every task executes asynchronously to allow user to do something else while task is executing. Thereby I have a problem: user can click the same button many times to start others same tasks. I have decided to disable button before start task and enable it after finish. Other problem, I should to protect other buttons from pressing (some of these would be disabled after done current tasks). In general, I have to disable all buttons (toolbar) to be sure that user cannot do something dangerous with buttons at transient. My questions are: Could someone recommend way to distract users from flickering (disable/enable buttons) or how to involve them in process, how to made them filling that task is not so long? Maybe I should to execute tasks synchronously and disable all UI for time of execution? By the way: Delay can vary from 1 to 10 sec. About progress bar: it is a difficult to calculate current progress, and it causes some performance degradation (task can be done faster without any additional UI iterations from other threads).
If you want to avoid the flickering, you could follow Joel's advice: "Don't hide or disable menu items" and when a user presses a toolbar button for something already executing or that would interfere with another executing task, you can then either show a message on why you can't complete the users request or "cache submitted tasks" (and have a window of tasks to be executed) or just do as the user requests and execute it again (be aware of synchronisations problems here).
0.777778
"Don't hide or disable menu items" or "cache submitted tasks"
Why is Nynäshamn a de facto "port" for Stockholm?
On my last trip to the Baltic, the cruise ship docked at Nynäshamn, about an hour's drive (each way) from Stockholm. To get ashore, we had to use a tender boat, which took up even more time. Apparently, a lot of travelers to Stockholm get there this way. Is Nynäshamn a better port? Is it much cheaper to dock there than in the capital city? Or is it an important tourist attraction in its own right that should be given equal attention with Stockholm?
In fact, Nynäshamn certainly is not the "de facto" port of Stockholm, even for international cruise liners. Quote from the Ports of Stockholm authority web site: The Ports of Stockholm comprise a number of port areas, of which Värtahamnen, Frihamnen and Loudden, as well as Stadsgården and Skeppsbron are the most prominent commercially. [...] Värtahamnen, Frihamnen and Stadsgården have extensive ferry services for both goods and passengers travelling to and from Finland and the Baltic countries. Stadsgården and Skeppsbron are the points of arrival and departure for the regular scheduled cruise traffic to and from Mariehamn. In the summer Stadsgården, Skeppsbron and Frihamnen are the ports favoured by the international cruise liners. The same site gives a plausible explanation as to why your cruise ship chose to stop at such a remote port (emphasis mine): Our most southern port – the Port of Nynäshamn – lies approximately sixty kilometres south of Stockholm. Boats transporting both freight and passengers depart from Nynäshamn. [...] In Nynäshamn we can also receive the larger international cruise liners that are not able to, or do not want to, voyage through the archipelago into Stockholm. In 2010 for example, a number of vessels from the cruise company Norwegian called during May-September. I think most of them would be able to, because many of the daily ferries to Finland or Baltic countries (such as M/S Viking Cinderella pictured below) are very large vessels too, and they have no problems navigating through the archipelago into the more central ports of Stockholm. Edit: Well, looking at the map, it's actually quite clear why some briefly visiting cruise ships—arriving from the south—would rather stop at Nynäshamn. They'd have to take a long, time-consuming detour to reach the ports closer to Stockholm (see the maritime routes marked on the map, which approach Stockholm from northeast). Photo: EnDumEn, Wikimedia Commons Or is it an important tourist attraction in its own right that should be given equal attention with Stockholm? Nynäshamn seems to be a nice little seaside town (population around 13,000), but as a tourist attraction it's not on par with Stockholm by any stretch of imagination. However, the Wikipedia article about it claims (no source cited) that it's "a hugely popular destination for Swedes of all ages in the summer months". :-)
1
Nynäshamn is not the "de facto" port of Stockholm, even for international cruise liners
Site creation can't continue because of a configuration issue with the parent site
I'm having problems to make my site creation work. I followed the guide at http://blog.sharedove.com/adisjugo/index.php/2012/07/25/visual-guide-setting-up-my-sites-in-sharepoint-2013/ , everything is setup as what described. If I go to personal site, i.e. http://my_host.com:80/my/myinc_sp_test , I can see the new site link. When click it, it pops this error shown in screen shot. What I wanted to do is create the site collect at: http://my_host.com:80/my/testtest However, if I go to this page's site content, create a subsite, it works fine. One subsite url is shown in screen shot with yellow circle. The created subsite is at: http://my_host.com:80/my/myinc_sp_test/testtest myinc is the domain name, it is the prefix for personal site. anyone knows something about this error? or any clue how I can fix this? BTW, if I go to http://my_host.com:80/_layouts/15/scsignup.aspx , I can see the create team site page, fill in info, click the create button. It shows error with no much other info. Thanks * BTW, I just know 1 thing: this site collection (my site host) was migrated from another server. Here is how it was done: create web app on this new server, then export content database from the old server, then attach to the new server. after this, everything else works fine. Could it because of this? UPDATE: This is odd. I removed all permissions, add permissions, disable self-service, then enable self-service. Then try to create the site (it is site collection, not subsite under personal site). same error messages. The setting I use is in below screen shot: So, I played the settings, and I accidentally changed one setting: I removed the "my/[%userid%]" in the above screen (so it is blank). When I try to create site again, it shows this error: I'm using a domain user account. So I think if I use a farm admin account, it should be ok? It turns out YES. It works for farm admin! So, it is because of permission! But what permission? So I removed all user permissions again, and add permissions again (just like i did before), weird thing happened: now, it works for domain user! but only for root domain http://my_host.com/ . I played more and found a more weird thing. See the 2nd screen shot, I choose the "Prompt users to create a site collection under any managed path" (red circle), when I click add new site, it works: See the site collection url, http://my_host.com/my/my_test_site_collection ? I do not understand what the difference between this and the choice in the 1st screen shot (if I give it a name my_test_site_collection). Anyone understand this? to me, I'm ok with it since I can use it (the last screen), but would like to know why it shows error in the first screen.
For me lookalike its permission issue. did you grant every user to create team sites. Perform these additional steps to configure permissions for users to create team sites from their My Sites to use site feeds. In the Policy group, click Permission Policy. On Manage Permission Policy Levels dialog box, click Add Permission Policy Level. Type a name for the permission policy. Under Permissions, in Site Permissions, select the Grant option for Create Subsites - Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites. Click Save. In the Policy group, click User Policy. On Policy for Web Application dialog box, click Add Users. On Add Users, in Zones select (All Zones), then click Next. In Choose Users, enter the user names of the users that you want to create team sites from their My Site to use site feeds. If all users can create team sites from their My Site to use site feeds, click the Browse icon. In Select People and Groups, click All Users, then click Everyone. Click Add, and then click OK. In the Choose Permissions section, select the name of the Permission Policy created previously. Click Finish, and then click OK. here is he link
0.777778
How do you grant every user to create team sites from their My Site?
What Defines Opponent Behaviour in 'Quick Battle'?
When I play the 'quick battle' offline mode of Soul Calibur V, I get the impression that I'm fighting real player's characters being controlled by the game's AI, based on the character names, and costumes. Some of these characters behave wildly different from one another, to the point that it almost feels like I'm fighting actual human players (impossible, as I don't have Xbox Live Gold). Some of these characters are much more 'skilled' than others, as well. What defines the behaviour of someone's character in quick-play mode? Does the game 'watch' them play, and then try to use the same combos the player used in their games?
I doubt that the computer copies players from elsewhere. Maybe the A.I. is varied to the point that it imitates varying types of players.
1
A.I. copies players from elsewhere
up sample and down sample
Let's say that I have a sampled signal x[n], it is being, in this exact order, up sampled by 2, down sampled by4, up sampled by 4 and down sampled by 2 to produce y[n]. It seems to me that it should be pretty self evident that since we up sampled the signal by 2 and down sampled it by 2, then up sampled it by 4 and down sampled by 4, I should just get the original x[n] back. Am I right? So the real question is, can the various up/down sampling pieces be readily swapped?
You will only get an approximation to your original signal. By the time you have upsampled by 2 and downsampled by 4, you have an overall downsample of 2. That means you have thrown away half your original data. No amount of upsampling will perfectly re-construct that lost data.
0.666667
Upsampling by 2 and downsampled by 4 is an approximation to your original signal .
What is the purpose of active and passive voice?
In both passive and active voice, the meaning of the sentence is same. So what is the purpose of passive and active as by two different names?
I would like to invite us to consider what would happen if the passive voice did not exist. To summary StoneyB's answer, the passive voice allows us to not have to mention the Agent (the person who performed the action). This is useful when the Agent is less important, unknown, or someone or something you don't want to mention. What if we don't have the passive voice? Consider this text from a Wikipedia page, Merchant of Venice: Though classified as a comedy in the First Folio and sharing certain aspects with Shakespeare's other romantic comedies, the play is perhaps most remembered for its dramatic scenes, and is best known for Shylock and the famous "Hath not a Jew eyes?" speech. Who classified it (the play)? Who remembers it? Who knows it? It's unclear who did and does (or do) so. The passive voice allows this. Without the passive voice, we would be forced to state the subjects of those clauses explicitly. (And, who forced us so?) The most practical way to rephrase that sentence in active voice is to assume either "we" or "people" as the subject. Let's see what happened if I rewrite the sentence in active voice, Though people classify the play as a comedy in the First Folio and the play shares certain aspects with Shakespeare's other romantic comedies, people perhaps remember the play most for its dramatic scenes, and know it best for Shylock and the famous "Hath not a Jew eyes?" speech. And that is quite awkward. Let's consider another sentence. (the credit goes to Cerberus, who give me this great example sentence in our ELL chat room) When the dam collapsed, the water was released into the valley. Who released the water? The incident? The dam itself? The officers who are responsible for the dam? And because I don't know who released it, I think we are lucky to have the passive voice around.
0.777778
What would happen if the passive voice didn't exist?
The process cannot access the file - after disposing InputStream
I perform some image uploads on my server. The image save operation looks like: var image = Request.Files[0]; image.SaveAs(gFilePath); image.InputStream.Flush(); image.InputStream.Close(); image.InputStream.Dispose(); but, even after disposing the InputStream sometimes I get the error The process cannot access the file because it is being used by another process. The only process which has the acces to that image is the project instance. So, what's going on ?
In your code it is not ensured that the stream is closed properly. If an error is occurred before calling Close or Dispose, the resource remains blocked. Use try-catch-finally and release resources in the finally block, log failures in the catch block - do not use Close and Dispose too, Dispose is enough.
1
If an error is occurred before calling Close or Dispose, the resource remains blocked
How do I burn a DVD with more than 3.8 GB data?
I use Kubuntu 12.04 with KDE 4.8.3 and wodim / genisoimage 1.1.11, but the problem is on Ubuntu (with Brasero) and occurred in Oneiric as well. Whenever I try to burn more than 3.8GB (approaching the 4 GB limit) of data onto a DVD, burning fails, aborts, or gives an "error 254." I have lost more than 50 DVDs this way until I learned about the 3.8GB limit. Anything under 3.8GB burns fine, and DVDs burned with more than 3.8GB have usable data up to 3.8 GB, but then the remaining data is garbled, unaccessible, or the disk is just not recognized. I'm pretty certain this is related to the replacement of cdrecord / mkisofs with wodim /genioimage (which is a problem that has been described for years). Is there another answer or fix? Re-installing cdrtools/cdrecord/mkisofs in Oneiric and Precise has become a herculean task.
I have had numerous problems with the CD burning software on Ubuntu. Only one option eventually satisfied me (but unfortunately it is not open source): Nero Linux 4. Nero offers a free 30 trial before you have to buy. I don't know if Nero will solve the problem you are experiencing or not. But it being propietary might bypass whatever is causing the problem on Ubuntu? What I would recommend is to try K3B on Ubuntu. You will have to install the KDE libraries to install K3B though. If K3B does not work for you, I would try Nero. Nero for Linux did everything I asked and had all the options I was looking for. I'm hoping that the poor quality and dearth of features of the open source CD burning options will be addressed at some point for Ubuntu because I don't like having to use closed source stuff. But, unfortunately, I have not found a better alternative for CD burning on Ubuntu.
1
Nero Linux 4 CD burning on Ubuntu
What package managers do popular Unix Distributions Use?
I am creating a Script and I need to know what package manager each Popular Unix Distribution Uses (especially those distros that are commonly-used for Servers)... I mean: Debian uses apt-get Fedora uses yum
Its different for different unix-systems. But the common thing in all those is the tar.gz file . It is the source code of your program. Then you can make either .deb files for Debian systems or .rpm file for Red Hat Systems. The .deb and .rpm are both binary files while tar.gz is mostly ASCII file but it can also contain binaries. You can convert .rpm file to .deb file in debian systems by this command: To install : sudo apt-get install alien To convert to .deb from .rpm : sudo alien "packagename.rpm" Replace the "packagename.rpm" with your original name of the file. Then a .deb file will be created and to install that use : sudo dpkg -i "filename.deb" Replace the "filename.deb" with your original name of the file. If you want that users can install your application by apt-get or yum then you will have to upload your app to the repository of your distribution. Only then the user will be able to use apt-get or yum to install the application directly.
1
tar.gz file is the source code of your program
Aldec Active-HDL - No Default Binding
I'm getting some errors when I try to compile my design in Aldec's Active-HDL. # Warning: ELAB1_0026: BITADJ128.bde(BITADJ128.vhd) : (79, 0): There is no default binding for component "buf". (No entity named "buf" was found). # Warning: ELAB1_0026: BITADJ128.bde(BITADJ128.vhd) : (157, 0): There is no default binding for component "INV". (No entity named "INV" was found). # Warning: ELAB1_0026: BITADJ128.bde(BITADJ128.vhd) : (277, 0): There is no default binding for component "GND". (No entity named "GND" was found). I have added these items to the library multiple times, and in different ways, but it still gets hosed up. I'm wondering if anyone else has had a similar issue? I inherited a large design I'm converting from EDIF to VHDL and switching from Virtex-4 to Virtex-5, and there seems to be a symbol resolution problem.
You need to download Xilinx libraries for Active-HDL from www.aldec.com. After downloading, install the library. This will install all the Xilinx library that you need and attach them with Active-HDL. Also make sure you use proper library and use statement in your code - just like explained in the previous post.
1
Install Xilinx libraries from www.aldec.com
Understand Atmega168P Datasheet
I am in the process of reading through the above mentioned doc from here. In page-21, second paragraph in section 8.5 I/O Memory, line 6 is given as below: When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. However, in page-224, row 1 of table, first column, Assembly Code Example has the last line as follows: out TWCR, r16 But as per page-21 statment, above instruction is wrong as TWCR has memory address 0xBC as given in page-396 row 6. Is there something wrong here, or am I understanding it wrong? Please help. Edit: definitions file
You're understanding it wrong. Yes, TWCR has a memory address of 0xBC, but that isn't its IO address. There are two ways of accessing the port - through IO, and through memory. In C, when you assign a value to that address it changes the address to be the IO address instead and uses an in or an out instruction rather than load or store instructions. -- edit -- Looking at the definitions file you have posted, there is this little bit: ; ***** I/O REGISTER DEFINITIONS ***************************************** ; NOTE: ; Definitions marked "MEMORY MAPPED"are extended I/O ports ; and cannot be used with IN/OUT instructions .... .equ TWCR = 0xbc ; MEMORY MAPPED I suspect actually that the data sheet is incorrect. It wouldn't be surprising if that whole section about the TWI were copied verbatim from another data sheet whose TWI interface is IO mapped not memory mapped, such as the ATMega32. It's not uncommon.
0.777778
TWCR has a memory address of 0xBC, but that isn't its IO address
How to create a guest timed Wireless Pass Key
I already have my home WiFi but I was wondering if it would be possible to create a temporary pass for when the guests come to visit? I would like to give them a password to the network but I would want it to die off after say 30 minutes. Is something like this possible? PS I can't modify the firmware on the router.
If your router has a feature like that, use that feature. That's always going to be the easiest way. If your router doesn't have that as a feature, but supports WPA2-Enterprise (WPA2 with 802.1X) and RADIUS, then you could potentially set up a RADIUS server as your authentication server for your wireless network, and if your RADIUS server offered such a feature, you'd be all set. Or you could potentially script your RADIUS server to do what you wanted. It would mean switching all authentication on your wireless network to Username/Password, rather than the simplicity/convenience of one shared password.
1
Set up a RADIUS server as your authentication server for wireless network
Textures appearing different in Edit and Object mode
I have never created a texture before, so I'm learning as I go. I created a texture map to edit in Photoshop, and for the most part, it's looking pretty good while I'm in Edit mode. A few things are on the wrong sides (like the trace of white on the back leg) but that can be easily fixed. When I go into object mode, however, the texture looks quite different: The rabbit's chest is no longer white, and it has strange bands appearing here and there. What am I doing wrong? Also, is there a way to mirror textures from one side to the other in Blender instead of trying to guesstimate in Photoshop? Thanks! Here's my .blend, in case that will help diagnose: http://www.pasteall.org/blend/29307
If, for some reason using the mirror modifier on the mesh doesn't work (for example, if you want a different placement for each of the two front legs, or you want one ear standing upright at a different angle than the other, while I'm not aware of a way to mirror textures, with some forethought, you can map different parts of the mesh into the same part of the texture. As example, you would eliminate one of the eyes, and one of the white spots in the texture, and map both eyes into one eye, and the insides of both ears into the same parts of the texture. You could also reduce the size of the other brown and white hues in the texture, and map multiple parts of the mesh onto those as well.
1
Mirror modifier on mesh
Automatic Package Restore: Unable to find version of package
We are using the improved Automatic Package Restore process to restore missing NuGet packages. When building, the Restore dialog pops up as it starts to download from the package sources, which is correct: I can see that the packages are being restored into the packages folder, but it doesn't finish restoring all of them. I get the following kind of errors: Error 10 NuGet Package restore failed for project MyProject: System.InvalidOperationException: Unable to find version '6.0.1' of package 'Newtonsoft.Json'. at NuGet.PackageHelper.ResolvePackage(IPackageRepository repository, String packageId, SemanticVersion version) at NuGet.VsEvents.PackageRestorer.RestorePackage(PackageReference package) at NuGet.VsEvents.PackageRestorer.RestorePackages(String packageReferenceFileFullPath, IFileSystem fileSystem) at NuGet.VsEvents.PackageRestorer.PackageRestore(ProjectPackageReferenceFile projectPackageReferenceFile). Could this be because I have multiple package sources? NuGet may be searching in our private package source for the 'Newtonsoft.Json', for example, and not in the nuget.org source. The .nuget/NuGet.config file: &lt;configuration&gt; &lt;packageSources&gt; &lt;add key="nuget.org" value="https://www.nuget.org/api/v2/" /&gt; &lt;add key="private" value="http://privatePackageSource.com/nuget" /&gt; &lt;/packageSources&gt; &lt;solution&gt; &lt;add key="disableSourceControlIntegration" value="true" /&gt; &lt;/solution&gt; &lt;/configuration&gt; We are using Visual Studio 2013 and NuGet 2.8.5. EDIT: Using Fiddler, I have confirmed that NuGet is indeed searching for the packages in the incorrect source. It is requesting the following packages from my private repository. I also read this post and added the activePackageSource section to the NuGet.config file: &lt;configuration&gt; &lt;packageSources&gt; &lt;add key="nuget.org" value="https://www.nuget.org/api/v2/" /&gt; &lt;add key="private" value="http://privatePackageSource.com/nuget" /&gt; &lt;/packageSources&gt; &lt;activePackageSource&gt; &lt;add key="All" value="(Aggregate source)" /&gt; &lt;/activePackageSource&gt; &lt;solution&gt; &lt;add key="disableSourceControlIntegration" value="true" /&gt; &lt;/solution&gt; &lt;/configuration&gt; But it doesn't fix the problem.
It was indeed being overridden by the global NuGet.config file (C:\Users\UserName\AppData\Roaming\NuGet\NuGet.config). Restarting Visual Studio seemed to clear it.
1
Restarting Visual Studio
Can only access one of the router's web portal and the Internet
On both wired and wireless connections, I can only access one of 192.168.1.1 (the router web portal) and the general Internet. Which "mode" my devices are in is seemingly random. This has persisted so far for 5 days (since I began using this network). When connected to the Internet, I can go to 192.168.102.1 and I see a landing page for "mikrotik routeros", but I cannot go to 192.168.1.1. When connected to the router but not the Internet, 192.168.1.1 yields the router web portal, and 192.168.102.1 is inaccessible. Attempted solutions Upgrading router firmware Resetting router to factory settings Rebooting devices Fiddling with router settings (changing wireless security modes, removing wireless security, etc) Upgrading wireless drivers on computers Some data Affects BlackBerry, Windows, Android and Ubuntu devices All devices work properly on other networks Devices may switch modes if they have been offline for a long time (eg: overnight), but restarting a device has no effect Router is TP-Link TL-WR740N v4 Router firmware DD-WRT v24-sp2 (04/18/14) std - build 23919 Both wired and wireless connections are affected, but not necessarily simultaneously I don't know anything about networking, but here's some info that seems helpful taken from my Ubuntu laptop. With internet access (wired in this case, but it varies): ~ $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.102.1 0.0.0.0 UG 0 0 0 eth0 192.168.102.0 0.0.0.0 255.255.254.0 U 1 0 0 eth0 ~ $ ifconfig eth0 Link encap:Ethernet HWaddr 54:ee:75:0c:02:80 inet addr:192.168.103.232 Bcast:192.168.103.255 Mask:255.255.254.0 inet6 addr: fe80::56ee:75ff:fe0c:280/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3273 errors:0 dropped:0 overruns:0 frame:0 TX packets:3035 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2276482 (2.2 MB) TX bytes:517732 (517.7 KB) Interrupt:20 Memory:f0500000-f0520000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:4315 errors:0 dropped:0 overruns:0 frame:0 TX packets:4315 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:342880 (342.8 KB) TX bytes:342880 (342.8 KB) With "router access" (wireless in this case, but it varies): ~ $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0 ~ $ ifconfig eth0 Link encap:Ethernet HWaddr 54:ee:75:0c:02:80 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:9422 errors:0 dropped:0 overruns:0 frame:0 TX packets:7545 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6216683 (6.2 MB) TX bytes:1399280 (1.3 MB) Interrupt:20 Memory:f0500000-f0520000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:4446 errors:0 dropped:0 overruns:0 frame:0 TX packets:4446 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:353415 (353.4 KB) TX bytes:353415 (353.4 KB) wlan0 Link encap:Ethernet HWaddr e8:2a:ea:60:31:4b inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::ea2a:eaff:fe60:314b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:77013 errors:0 dropped:0 overruns:0 frame:0 TX packets:49506 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25275438 (25.2 MB) TX bytes:30355132 (30.3 MB) With both (wired with wireless turned on): ~ $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.102.1 0.0.0.0 UG 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0 192.168.102.0 0.0.0.0 255.255.254.0 U 1 0 0 eth0
Sounds like there's competing DHCP servers on your network. A few questions for you: What model router do you have? And have you turned on DHCP services on any computers on your network? How many computers do you have on your network? Can you turn them all off and turn them on 1 at a time until the problem shows up?
0.666667
How many DHCP servers on your network?
Windows Software to Mount Volume/Partition Image File
Last night I had a BSOD a couple of minutes after moving a file. After a reboot, I found that the file was gone (it was deleted from the source partition and not present on the destination). I took an image of the source volume (ie from the Boot Sector to the last cluster of the partition). Then I wrote a program to extract the unused clusters from a disk and save them as files. Some of the free clusters on the original volume have now been overwritten so I need to use the image to do my final extraction. That means I need some software that can mount a volume/partition image, but all of the image mounting software I can find can only mount disk images (ie from the MBR—the master partition table—on). Does anyone know of (hopefully free) Windows software that can do this? I’ve already tried (without success): VirtualCloneDrive, DaemonTools, VirtualFloppyDrive (and probably a couple of others I can’t think of). They all either nag that the file is no good, or try to mount it, resulting in a disk that Windows complains has an unknown/corrupt filesystem. Thanks.
You'd use Virtual CloneDrive (freeware) to mount .ISO, .CCD, .DVD, .IMG, .UDF and .BIN files. via HowToGeek
0.888889
Virtual CloneDrive (freeware) to mount .ISO, CCD, .DVD, IMG and .
Inspiration for a unique hybrid character in 4E?
I have been using Wizards' character creator, but I can't come up with anything unique. I would very much like to use a hybrid, but I've had trouble making one that would work at early levels (we are starting at 1). I know there are many ways to have unconventional characters (such as a ranged healer) and I'm open to those ideas as well. I don't want to be, just another striker, or just another tank. I do enjoy all classes, but enjoy tanks and healers that lean towards strikers the best. How can I make a hybrid character which is unique but not useless at low levels? Edit: Sorry, I'm new to the site, I very much appreciate your kindness and understanding. I re-worded the question as I think it will whittle the answers down.
I'll be frank. If you want to have a really unique character focus on your back story and personality. There are only so many options available to characters in 4e. Sure you can come up with a great character design that no one else has created. But then you have to ask yourself the following questions Does the character work (for whatever work means)? Does the character fit in/fill a need in my party? Can I play this character effectively? If the answer to any of these questions is no then you need to re-evaluate your character creation strategies. Go for a simpler character and spend more time thinking about the character's story. As much fun as it is to come up with a mechanically "unique" character, I personally thing its much more compelling to have a mechanically useful character with an interesting personality and back story to go with it.
0.888889
How to create a mechanically useful character?
Can I use the following power supply as a constant fixed current source?
Might sound silly for many of all but is this device's knob for the current for obtaining constant current or limiting the max current? Can I use this Dc power supply to obtain a constant current regardless of the resisyances? If not what would u prefer as an adjustable current source? Here is the device: http://electronics123.net/amazon/datasheet/ps613u.pdf When feeding a DC motor with this the motor spins faster when increasing the current knob. Im a bit confused if it is only for limiting purpose or not.
It says in the spec you linked that the current adjuster only works on the 0-30V output and can limit from 10mA to 3.2A. I would think that for feeding a current into a resistor this will be OK but don't expect miracle performance, for instance if set to 20mA any resistance higher than 1500 ohm will cause the output voltage to want to go greater than 30V and of course this cannot happen. Also, if you have voltage limit set to 15V, then don't expect the current limit to stay limiting/controlling when the external resistance is above 750 ohms. EDIT If you are not satisfied with the performance of the power supply and you wanted to try a different method consider this technique: - With R1 at 312.5 ohms, output current should be 4 mA plus a little bit from the adjust pin (maybe 50 uA). For 20 mA, R1 needs to be 62.5 ohms
1
Current adjuster only works on 0-30V output and can limit from 10mA to 3.2A
What are the current and voltage limits when determining low vs. high voltage wiring?
I'm trying to figure out what is considered a power line( for outlets) and data communication line. What are the qualifying factors here. I know outlets have 120V AC at 60Hz and data lines have anything around 0 to 12V, but I don't know how much current that allows. so What is the current limit for the Data line? What is the voltage limit for the Data line? I would expect that results can vary based on where to you live. I live in Utah, USA
National Electrical Code (Article 250.20 section A) defines "Low Voltage" as it applies to home distribution systems as less than 50 volts. (A) AC Systems of Less Than 50 V. Alternating-current systems that operate at less than 50 V are not required to be grounded unless: (1) The primary exceeds 150 V to ground (2) The primary is ungrounded This includes systems such as cable television, network and telephone, doorbell, etc. Note that standard telephone wiring can typically "ring" at 48 volts and still provide an electric shock. The reason the code makes the distinction for low voltage is so that some types of wiring can be exempt from additional safety requirements such as conduit usage, breakers, installation method, etc. Even so, there are still violations where installers confuse the issue (Top ten violations in low voltage systems PDF). There are (to my knowledge) no current limits for data lines, except for the rating of the cable itself. Since most UTP network and telco cables use 24 or 26 gauge wire, this would theoretically be around 3.5 amperes, but you have to consider length, temperature, etc. to properly determine current load (discussion at allaboutcircuits). EDIT Guessing that you might be wanting to use data lines for higher power applications, I thought I'd add some additional commentary. If you are wanting to use Cat5 for power-over-ethernet applications, you'll probably want to stay under 1A or less per conductor. This is because of the voltage drop and resistance on longer distances. Keep in mind that higher voltages are more suitable for transmission (longer distances) as long as you stay under the 50V "low voltage" specification. Even though charts show that 24AWG can carry 3.5A, I wouldn't consider this safe unless working with a very short cable. Power-over-ethernet standards are confusing, but generally they are 48 volts or less at 600mA or less. Electrical characteristics (at Wikipedia) for UTP Cat5E show a max current of 0.577A per conductor and a max voltage of 125V.
1
"Low Voltage" applies to home distribution systems as less than 50 volts .
Question-like structure (word order) in non-question sentences
Occasionally I see constructs like this in English sentences: Not only is this true in this case, but ... What puzzles me is the "is this" part of it. The sentence is not a question, yet it seems to have a question-like order. Isn't this correct/preferred: Not only this is true in this case, but ... Are there other cases where non-question sentences contain question-like parts (so to speak)?
This (abridged) entry from Swan in Practical English Usage (p303) under the heading Inversion after negative and restrictive expressions provides the answer to your questions: If a negative adverb or adverbial expression is put at the beginning of a clause for emphasis, it is usually followed by auxiliary verb + subject. These structures are mostly rather formal. At no time was the President aware of what was happening. Seldom have I seen such a remarkable creature. Little did he realise the danger he faced. Only then did I understand what she meant. Not only did we lose our money, but we were nearly killed. Here is a short Wikipedia article on inversion.
0.888889
Inversion after negative and restrictive expressions
How to fix a Macbook Pro trackpad where the mouse pointer is randomly moving?
The trackpad on my Macbook Pro just started acting oddly. It's randomly clicking (which might cause me to switch programs), right-clicking and even once my screen even showed the swiping animation as if I was trying to switch to a different desktop. Part of me fears that this is some sort of joke hacking attempt (I know of a USB device you plug into someones computer and it randomly moves their mouse and types on their keyboard), but there is nothing plugged into my machine and I just turned off the Wi-Fi and watched as this web page tried to close, the mouse right clicked twice, highlighted a word and clicked "Paste and Match Style" in the Chrome right-click menu. Also as I've been typing (with my Wi-Fi turned off) the mouse has randomly been clicking inside this question and changing where I am typing. I just plugged in a USB mouse which seems to work fine but the trackpad is now nearly useless. I can't even move the mouse cursor more than a few centimeters with it. Is this a common issue? EDIT I think it is dying actually. I can now click but not move at all with the trackpad, while a regular mouse works fine. EDIT 2 And now it seems to be working again. I turned on the option for "Ignore Trackpad when Mouse is plugged in" under Universal Access. I cleaned the trackpad with rubbing alcohol, I whined and complained for a few minutes to my dog, turned off the "Ignore Trackpad" setting, unplugged the USB mouse, and the Trackpad appears to be working mostly normally. If I run my finger across it at the top or bottom portion of the mouse, it works, but there is a line horizontally across it (almost exactly where a physical trackpad button would end on the old trackpads) that is "dead". The mouse stops moving, or moves sluggishly when hitting that spot and that "spot" goes across the whole trackpad.
I've heard dust and dirt inside the MB/MBP can cause the trackpad to act very weird. I'm having issues with my mouse now and am thinking of taking apart my MBP and blowing it out with a compressor.
1
Dust and dirt can cause trackpad to act very weird
Entire website in Silverlight 4. Practical or not?
Similar question: Using Silverlight for an entire website? That question is over 2 years old. Silverlight has gone a long way from Silverlight 1.0 Beta 1 to Silverlight 4.0 Final. Would it be practical to create a full Silverlight web application these days? I plan to deploy the website sometime around Q1 2011. I have thought about going ASP.NET + AJAX way, but it just won't give me the same rich features as Silverlight. A lot of people when they hear ASP.NET or Silverlight instantly think about business or enterprise applications. But all I want to create is a fansite, with rich user interface and a great "WOW" factor.
Absolutely you can. And if your target users all have SL4 it might look very stylish. however many people who don't have SL will be put off, and many many picky technical people will be dismayed or refuse to go there. If you had a site for skateboarders or graphic designers, then it would be something you could probably get away with... you do see sites like this for media-focused companies e.g sites for films or video games. edit: reading the linked thread, I'd say most of the top-ranked answers still apply - they just apply a bit less these days. Corporate sites may block SL, grannies may not understand it, some people have slow web. But if you are aiming at young hip people it's feasible and the stylistic bonus could outweigh the problems for a minority of users. Weigh your target demographic carefully...
0.777778
if your target users all have SL4 it might look very stylish .
Is it common to have a pressure shut off for Jet Water Pumps?
I'm looking at installing a pump for a domestic water supply with a pressure tank. I'd like to be able to determine if a pump will shut off once it has reached pressure. I've seen several pumps installed which seem to shut off automatically but I can't seem to figure out if this is a standard feature or not because it doesn't seem to appear in their specifications. For example, this grundfos pump is commonly used and I've seen other grundfos's shut off automatically at pressure. Is this standard for a jet water pump? http://www.supplyhouse.com/Grundfos-97855088-JP4-61ASI-Shallow-Well-Basic-Line-Stainless-Steel-Jet-Pump-115-230V-1-HP I am asking because I'd like to try a different brand but I can not tell if it has a built in shut off: http://www.amazon.com/gp/product/B00NAKPSRC?ref_=cm_cd_al_qh_dp_t I've contacted the manufacturer, but with little response. Is anyone familiar with jet pumps like this and what I should look for to fit this application? Thanks. EDIT: After some time the manufacturer indicated that there is a port on the side for the pressure switch and sent a photo of one installed. So now I know that's probably the standard way most jet pumps come so they can be externally configured to different PSI settings.
It is not a standard feature. The pump often hooks into a manifold that connects to the pressure tank and that has a check-valve, pressure gauge, pressure switch, tank drain valve, main shutoff valve, and over-pressure relief valve. The assembly looks like the following once assembled (note: check-valve not shown in this setup). You will have to consult the manufacturer's spec sheets to see if it comes with an integral pressure switch. Even if the manufacturer won't respond, often they have spec sheets and manuals available online that will give you this info. Note: the bottom pump is a no-brand Chinese manufacture pump, you might be able to trace it through Ali-Baba, but you'll have to take the Amazon description's word for what it does as there's not much else available about it online.
1
The bottom pump is a no-brand Chinese manufacture pump, but it's not a standard feature .
Which definition is more used for "determine"?
I've seen "determine" used for two completely different meanings: Zeus' mood will determine tomorrow's weather. (determine = control, dictate) The weather forecaster will determine tomorrow's weather. (determine = forecast, predict) Are these meanings used equally often, or is one much more common than the other?
The first example looks correct. I don't recognise the meaning illustrated by the second example. To me (as a British English speaker), it looks like it's saying that the weather forecaster can control the weather!
0.888889
The first example looks correct .
Do unordered lists respond to CSS transition?
Here is my JSFiddle. What I'm trying to do is have a transition effect between two unordered lists. When you click shop it takes you to the submenu. When you click shop on the submenu it takes you back to the main menu. Why doesn't it slide or have any effect? My goal is to transition the submenu from right to left, and have main menu transition left to right. How can I make this work? &lt;div class="mobile-nav"&gt; &lt;ul class="main-mobile-menu transition"&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="SHOP" data-menu-id="shop"&gt;SHOP&lt;/a&gt;&lt;/li&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="BRANDS" data-menu-id="brands"&gt;BRANDS&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="ABOUT" &gt;ABOUT&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="CONTACT" &gt;CONTACT&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul id="shop-submenu" class="hide transition"&gt; &lt;li&gt;&lt;a href="#" title="SHOP" data-menu-id="main-mobile-menu"&gt;SHOP&lt;/a&gt;&lt;/li&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="ACCESSORIES" data-menu-id="accessories"&gt;ACCESSORIES&lt;/a&gt;&lt;/li&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="ART" data-menu-id="art"&gt;ART&lt;/a&gt;&lt;/li&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="WOMENS" data-menu-id="womens"&gt;WOMENS&lt;/a&gt;&lt;/li&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="MENS" data-menu-id="mens"&gt;MENS&lt;/a&gt;&lt;/li&gt; &lt;li class="has-submenu"&gt;&lt;a href="#" title="SHOES" data-menu-id="shoes"&gt;SHOES&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="GIFT CERTIFICATE"&gt;GIFT CERTIFICATE&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; This is my CSS: .mobile-nav{ position: absolute; height: 100%; padding: 0px; left: 0px; top: 0px; z-index: 0; overflow: hidden; } .transition{ -webkit-transition: none 0.4s ease; -moz-transition: none 0.4s ease; -ms-transition: none 0.4s ease; -o-transition: none 0.4s ease; transition: none 0.4s ease; -webkit-transition-property: top, right, left, bottom, border; -moz-transition-property: top, right, left, bottom, border; -ms-transition-property: top, right, left, bottom, border; -o-transition-property: top, right, left, bottom, border; transition-property: top, right, left, bottom, border; } .hide{ display: none; } .open{ display: block; }
I have no idea what you want to achieve. The submenu has to come out of thin air from the right? Menu comes in from the left? Please explain yourself more thoroughly when you ask a question. It's not good semantics to make a different ul for every menu item you have and put them all under the main menu. You can nest a ul inside a li. If you have a class .hide, you don't need a class like .open. In jQuery just remove or toggle that class You can't just expect that an item makes an animation without you giving some input like a hover or a click. Read this article on CSS-tricks.com how to make an animation. You can edit a property in jquery and it wil animate itself if done correctly You've set #shop-menu: left: 100px. If you use left / top / right / bottom you need to set your element to either absolute or relative. Read more about that here. You can replace e.currentTarget with this if you want
0.777778
How to make a different ul for each menu item
Why the use of resistors when pulling something up or down?
When pulling something up or down why is a resistor used and it not just connected straight to the +V or 0V rail?
If you only want to supply a defined logical level to a definitely unused input, a direct connection to ground or vcc would be ok in my opinion. BUT: if you do that, it is impossible to drive the input from other sources. (see posts above)
0.833333
a direct connection to ground or vcc is ok in my opinion
Can the update manager download only a single package at a time?
I need the update manager to only download a single package at a time and not try to download multiple packages at once. My slow internet cannot handle multiple connections; slows the download to a crawl and some packages will reset themselves halfway through when they time-out. EDIT When using apt-get update multiple repositories get checked: When using apt-get upgrade multiple packages are downloaded:
Right click in the window area that lists the updates > Deselect All, then enable individually. Some packages will require more than one at once, U-M will auto-select when needed
0.888889
Right click in the window area that lists updates > Deselect All, then enable individually
How to prevent the "Too awesome to use" syndrome
When you give the player a rare but powerful item which can only be used once but is never really required to proceed, most players will not use it at all, because they are waiting for the perfect moment. But even when this moment comes, they will still be reluctant to use it, because there might be an even better moment later. So they keep hoarding it for a moment which will never come. In the end, they will carry the item around until it is outclassed by other, more readily available resources, or even until the very end of the game. That means that such one-shot items don't provide any gameplay-value at all. They are simply too awesome to use. What can you do to encourage the player to make use of their one-shot items and not hoard them?
Thank you all for your answers. There are some great ideas between them. I decided that instead of accepting one of them, I decided to collect all ideas from the posts above, summarize them in one answer, and accept this answer as reference for future readers. Reasons why players hoard: They develop a habit to solve certain situations using certain tools. When they have a tool which can only be used once, they will never develop a habit for using it. As a result they forget that they actually have this tool. They don't know what the item is actually doing, so they aren't aware when they are in a situation where it could be useful. They don't want to do a mistake and prevent further progress by using an item too early. How to prevent it as a game designer: Give the player a hint when in a situation where a certain one-shot item would be useful Make it possible to re-obtain the items after use. Give the player so many one-shot items, that each individual one doesn't seem that valuable and irreplaceable. Add severe consequences to dying (more than having to reload the last savegame), so that the player will use one-shot items when desperate. Don't make them single-use. Add a long cooldown to items instead or allow them to be recharged with another resource, so that the player can use them multiple times. Make it impossible to hoard them. When the player is aware that they will lose the item anyway, they will use it sooner. This could be done by adding a time-limit, removing them after completing the level or severely limiting the number of items which can be carried at a time. Punish the player for hoarding too many one-shot items, so that they will be motivated to get rid of them soon.
1
How to prevent a certain one-shot item as a game designer