Is it renter's responsibility to cover overcharge by a submetering company?

Question: A person is renting a house. Per the rental agreement, it is their responsibility to cover the water and sewer bills.
The house is located in a community which is serviced by a submetering company. The submetering company owns and maintains the meters and sends the bills out to the property owners. Payments go to the submetering company, not the city.
The water is billed at tiered rates which are set by the city. The tiers work like this: for the first 2000 gallons of water consumed the household pays $1.40 per thousand gallons, for the gallons 2001 through 5000 it pays $3.00 dollars per thousand gallons and so on. The top tier rate of $14.00 per thousand gallons kicks in at 25000 gallons per month. A similar system works for the sewer.
On the paper, the submetering company does not charge anything above the city rates, except for a small fixed maintenance and administration fee, which does not depend on the consumption rate.
Now, here is the fun part.
Due to a clerical error, the city and the submetering company treat the whole neighborhood of about 200 properties as a single unit. This means that the consumption from all the properties of the whole neighborhood is added together for the purposes of calculating the tiers. The submetering company then divides them among all the households.
Effectively, that means the tier levels for each household are first 10 gallons, then 10 through 25, etc. That's gallons, not thousands. Taking the first shower or two in the beginning of a month kicks the resident right into the top tier, where they stay for the rest of the month.
Every household pays at the top tier rate ($14.00) after they have consumed first 125 gallons of water during the month.
This means that every month, a typical household's water bill is about $150 to $200 dollars higher compared to what it would have been had they been charged the city rates and tiers.
The submetering company has explained it in writing. The property owners, the HOA board and the property management company are aware of this. Nothing is being done about it, except writing angry posts in the community Facebook group. This has been going on for almost four years.
The lease is a standard form which has this clause:

Tenant shall pay for all utilities services during the Lease Term and connection charges and deposits for activating existing utility connections to the Premises except for ________, that Landlord agrees to provide at Landlord's expense (If blank, then "NONE").

The blank is left blank. There is nothing specifying the rates of the services in the lease.

Is there any recourse for a renter to avoid the overcharge caused by a clerical error?

If and when this situation is resolved and the property owner receives their money back or an account credit, is the renter entitled to what they have overpaid during the lease? Does it matter if it happens before of after the lease will have ended?

This is in Florida, U.S.
Answer:

Is there any recourse for a renter to avoid the overcharge caused by a clerical error?

Probably not. Also, I am skeptical that it is a true clerical error as opposed to a bad policy due to a decision made by the developer who may not have been able to get the city to provide individual taps to each residence.

If and when this situation is resolved and the property owner receives
their money back or an account credit, is the renter entitled to what
they have overpaid during the lease?

The renter should receive the credit.

Does it matter if it happens before of after the lease will have
ended?

Logically, it shouldn't.
Comment: could you please clarify what exactly you mean by "bad policy"?
Comment: @FloridaRenter I mean an "unfair law".


How can I disable Auto-Lock on iPadOS 13?

Question: I don't have the "never" option in Settings -> Display & Rrightness -> Auto-Lock.
Comment: Is your iPad linked to a corporate email address ?
Comment: @tama good catch I've just seen that the device management service from my employer has set "max inactivity = 15 min". You're welcome to convert your comment into an answer.
Answer: I faced this same issue on an iPhone few months ago.
Why this happens ?
When you link a device to a corporate email address, the Auto-Lock setting can sometimes be restricted by the corporation for security reasons, so that people cannot access the device if the user unintentionally forget to lock it.
Depending of the company preferences and device concerned — it may vary between 30 seconds and Never as maximum time of inactivity on the device.
Example
If the company set the maximum inactivity setting to 15 minutes : the Never option will not be shown (as it is the case in the photo you posted).
Answer: Open the Settings app.
Select "Screen and Brightness" and tap "Auto Lock".
Select the appropriate value:
Never (completely disables the automatic screen lock);
2 minutes;
5 minutes;
10 minutes;
15 minutes.
To completely disable the automatic screen lock, select "Never", but then you will have to lock the iPad screen yourself every time using the off and lock button. This can compromise the security of your device, because if you forget to lock your iPad, anyone can use it whenever they want.
Comment: I don't have the "never" option
Comment: If you are using an older version of iOS, the described setting is located under "Basic" rather than "Screen and Brightness".


Can all math operations be reduced to a sufficiently complex algorithm?

Question: Say I could only perform one operation (addition) from addition I could derive subtraction by adding a negative number. Also, from addition I could derive multiplication, like $ a n $, just add $ a $ to itself $n$ times. The same for division but with negative numbers (how many times do I add a negative $a$ to itself to get to $0$. Exponenciation is glorified multiplication and there exist algorithms that use only division, addition, subtraction and multiplication to find square roots and logarithms. Sin can be expressed as a Taylor series only involving exponenciation and multiplication and addition. My question is, can every operation in mathematics (like differentiation, integration, etc.) be reduced in this way? Maybe allowing for multiplication, too, so that $i^2$ could still be -1.
Comment: Depends what you mean; there is, for instance, no algorithm to decide whether a computable number is $0$ (see [Richardson's theorem](http://en.wikipedia.org/wiki/Richardson%27s_theorem)). But, on the flip side, we can do most anything to arbitrary precision. (Though not, for instance, decide whether an algorithm terminates or not)
Answer: It's a fundamental result in theoretical computer science that there exists a universal algorithm: a computable partial function $U$ with the property that for every computable function $f$ there is an $n$ such that
$$ \forall x:~ f(x)=U(n,x) $$
(Essentially, $n$ can be chosen as a program that computes the function, encoded as a number in some appropriate way, and $U$ is the function that tells how to execute programs in some programming language).
This gives at least a partial answer to the question in the title.
However, mathematics can also speak about functions that are not computable, and those are not realized by the usual universal algorithm. But if we want the case where $f$ is not computable to be handled, by fairness we should also allow $U$ to be noncomputable.
Exploring exactly how many functions we can cram into a single $U$ gets us into some twisty little foundational byways. However, it turns out that practically every function encountered in "ordinary" mathematics can be specified unambiguously by a logical formula built from addition and multiplication, the constants $0$ and $1$, and quantification over subsets of $\mathbb C^n$ and functions between such subsets. In this case  but we can say in standard mathematics that there is a (non-computable) $\bar U$ such that whenever $f$ is a function with such a specification, there is a number $m$ such that $f(x)=\bar U(m,x)$.
[It is not essential exactly which restrictions we put on the kind of formula that can be used to specify $f$, but we get into foundational trouble unless there are some such restrictions -- more technically there should be a predetermined repertoire of sets that the formula is allowed to quantify over. In fact a more restricted repertoire than the one outlined above can be used, at the cost of less natural specifications for many functions.]
Answer: In my college course of Numerical Analysis we did exactly this.  All was reduced to the simple truth table $0+0=0$, $1+0=1$, $0+1=1$ and $1+1=0$ carry $1$.
We did integration, differential equations, eigenvalue problems, matrix operations, Chebyshev polynomials, etc
I can't say ALL math could be done as I don't know ALL the math that exists.  But all the math that I have studied could be solved this way and we used just Fortran IV to do it.


19v Charger with 14.4v Battery: What exactly can I expect?

Question: Long story short: I have to replace the charger AND battery on my ASUS U53F-BBL5 laptop due to a combination of lost original charger and Best Buy can't read a laptop's model number for the correct charger. Now, I already ordered a charger, but looking back I may have accidentally ordered for ASUS U52F rather than U53F. I still have the absolutely worthless battery and I already have the ordered charger. Charger says 19V, Battery says 14.4V. I do not have the money to order another charger. So what can I expect the charger to do to my battery, and how badly? I.e. will it shorten total life before the battery becomes useless, will it just shorten how long a full charge lasts, etc. and to what degree?
Comment: What do the power input specifications on the back of the laptop say? The charger doesn't connect to the battery, it connects to the laptop, so the battery's specifications are irrelevant.
Comment: No. It's usually on a sticker on the back. It'll say something like "13V 6A". There's usually a little picture of a DC input jack. It may also have an icon indicating that the center is positive. [This](http://www.epemag.net/images/laptop-repair/DSC01769.JPG) is the best image I could find of what it might look like.
Comment: I can't find any such thing. However, I am seeing some difference b/t battery and laptop's model numbers (odd since I bought this new). Battery says A42-U53f, laptop says U52f. Anyway, is there anywhere to check the laptop's input from windows?
Comment: I'm going to blame a sticker-peeling friend of mine. It's not there. All I can find is the battery and charger information on the respective devices.
Comment: I believe your laptop requires a 19V, 3.15A (or greater) charger. If not, it's 19V, 4.75A (or greater).
Comment: well I have 19V 3.42A, so here's praying it's the former.
Answer: The wall adapter probably doesn't connect directly to the battery.  There will be a battery charger circuit inside the laptop that decides whether and how to charge the battery.  Most likely it's (partly) a switching regulator that needs an input higher than its output and thus the wall adapter voltage will always be higher than the highest voltage the battery can reach while charging.  You shouldn't expect the voltage spec on the adapter and battery to be the same.
The battery charger circuit inside the laptop will need the correct input to function properly, but it's possible the manufacturer designed the laptop to accept more than one of its own wall adapter models.  The battery may charge faster with a higher-powered model (more current capability) and slower with a lower-powered one.  One would hope the vendor designed its own laptops to accept input from all of its own wall adapters with a plug that fits (otherwise they'd have put a different plug on the adapter to avoid confusion, circuit damage, lawsuits etc.).  It would be best to ask the manufacturer directly.


Can you merge storage and passenger carts?

Question: As the title suggests I was reading on the minecraft wiki that you are able to merge minecarts. Firstly how is this done I don't quite understand the wiki and are you able to merge a storage cart with a passenger cart into one?
Wiki Link
Comment: What is the wiki page link?
Comment: Wiki Link added
Answer: Well I haven't played minecraft in a while but, by looking at the wiki page I can tell you a few things. By my understanding of merged minecarts there are two possible ways of being able to do this.

You can create a train. This is done by having a powered cart at the back of x number of carts in the direction you want to go in.
Example:
(X) = powered cart, () = carts (Just imagine that they are on tracks :P ):
(X) () () () -------> This is the direction you want to go in.
The powered minecart on the back pushes all the carts forward as it is on the back. You can't pull with minecarts in minecraft as mojang have not built this function in to it yet. However the drawback to this is that it isn't merged but still does the same job and is effective. Also you can have a passenger cart, a storage cart and any other cart pushed along the track at the same time. (Video Link Demonstrating it)
To my understanding to actually merge minecarts what you want to do is have a track going up a hill. You then have one cart positioned at the bottom of the hill (Bottom track should be on a straight surface. Make sure it is only one track long at the bottom of the hill) with a block at the end of the straight track. You then want to feed all the minecarts from the top of the hill down to the bottom. This should then hopefully merge your minecarts together. You can also merge any type of minecart together (So yes you can have passenger cart with storage cart). Although I'm not too sure on the amount of minecarts that you can merge together. By reading the wiki page it says 3+. However there is a drawback and that is that you can either get stuck when turning tight corners and then you will ruin the whole merged carts and you are a lot slower than a powered cart pushing other carts.

I know its a long answer but that the best way that I can explain it to you. Sorry ;)


How To - Learn basic hacking skills?

Question: I'm interested in learning some basic hacking; and I've read online that Linux is a good place to start.
Although, I've been a Windows user for as long as I can remember. So I was hoping I could get a few tips and maybe even a good tutorial. Thanks! :)
Comment: alright, i have to comment that noone has given him a lecture on IT Security vs. "hacking."
Comment: Welcome to the site! Are you asking for tutorial on linux? That's not the topic of this site - you could try over at serverfault - but I seriously doubt you'd get an instant tutorial, SE is not built or intended for that. If you're asking a specific question - it's not clear from what you wrote...
Comment: I was asking for a tutorial on basic hacking.
Comment: Erm.  Linux != hacking.  You said you wanted to learn how to hack, but then said you heard that Linux was a good place to start, so AviD then told you the better place to go find information on Linux.  You should clarify your question.
Comment: @James, still not the place for it - SE is not a tutorials site, it's focused Q&A. Of course, if you get stuck on something specific we very much welcome any and all specific questions... In the meantime, why dont you search this site for pointers? The [ [education](http://security.stackexchange.com/questions/tagged/education) ] tag specifically might help you find some good reading materials, books, sites, etc.
Comment: Hold on, I'm still working on trying to rephrase my question.
Comment: Closed for now, to prevent too many scattered and irrelevant answers. @James, feel free to ping me or one of the mods to reopen the question, if you change it to a specific question that can be answered.
Answer: Go to local events where you can get hands-on and watch others.
In the Phoenix area, we have

HeatSyncLabs
OWASP Phoenix
BufferOverflow
Arizona Security Practitioners' Forum (AZSPF)
Phoenix 2600

You will want to attend DEFCON in Las Vegas and probably Toorcon in San Diego, because both are 6 hours drive-time from Phoenix. There is also LayerOne in Anaheim.
Online, you can take the Offensive-Security course called Penetration-Testing with BackTrack Online. However, I warn you that it is very grueling to learn the material and apply it in the labs -- I would assume 5 or 6 months and 19 hours a day, everyday -- even with resources such as a full subscription to SafariBooksOnline, where you can search for more information and read books online.
I suggest that you purchase a separate laptop, specifically for Linux. Make sure to get one that is highly compatible with BackTrack Linux. You will want to purchase a separate USB WiFi adapter, such as the Alfa AWUS036H (which is not quite obvious yet, but it's useful to learn the MITM network architecture concepts). If you have Windows installed on a desktop, laptop, or whatever else device -- be sure to install and heavily use Cygwin and/or MinGW, although perhaps you can research those later, when you've already installed and used BackTrack. If you can specify the type (laptop) or graphics chipset options to support CUDA (both NVIDIA and Intel's as options would be nice). Your card will probably be listed on that self-referencing wikipedia article.
Answer: You are asking for a lot... I suggest that you start in a "corner" of this website hacking.
My suggestion is that you learn about differnt ways to "hack" a web site. XSS or SQL injection is a good area to start in. Read about what they can do and how and why it's possible. And if you feel you have a basic understanding of how XSS and SQL injection work then you can check out Hack This Site! they have a lot of exploitable sample sites and forums discussing them.
Answer: If you're looking for books on the topic I might recommend reading Kevin Mitnick's book:
The Art of Intrusion: The Real Stories Behind the Exploits of Hackers, Intruders and Deceivers.
This book gives a nice introduction to the concepts and the mindset one must be in to be a "hacker."
Another resource I found to be extremely helpful is the CEH (Certified Ethical Hacker) Certification Preparation Handbook. It outlines procedures that White-Hat professionals use to pen-test businesses which is related to this topic.
Answer: First:  Learn some basic programming skills.  The better programmer you are the better hacker you will become.
Next I would look at vulnerable software,  particularly vulnerable web applications. Google gruyere and OWASP's WebGoat which particularly is nice because its related to the OWASP top 10

How To - Learn basic hacking skills?


Does a barbarian's unarmored defense count when flat footed?

Question: A flat footed character loses their dexterity bonus to their AC.
Is a Barbarian's Unarmored Defense still considered if caught flat footed?
Perhaps just the Con bonus?
Help?
Comment: Have you read through the 5e player's handbook? Where are you getting the idea that Flat Footed is a part of 5e? Is it from an online resource?
Answer: There is no concept of "flat-footed" in 5th Edition.
Most situations that would have given flat-footed (blinded, paralyzed, petrified, prone, restrained, stunned, and unconscious) in 3.5 instead give the attacker advantage on the attack roll.
Flanking and facing are available as variant rules in the Dungeon Master's Guide, and they, too, grant advantage on attack rolls.
Advantage is a simpler way to grant the bonus; it's fewer stats for each player to keep track off.  It does reduce the difference between the various armor types, and if your table wants to houserule flat-foot AC into 5e, I would recommend that you remove the advantage from those status effects to compensate.
Comment: We were just talking about this in our session the other day -- it didn't make sense to us that someone who is paralyzed keeps their dex bonus to AC.  I think if someone is paralyzed, they should lose their dex bonus to AC AND you should get advantage against them.
Comment: @PurpleVermont Does not the advantage mechanically simulate the paralysis? If I'm paralyzed, sure I have a hard time dodging your blow, that's why you get to roll twice. It's two different mechanics to simulate the same thing, and 5e just lumps all of those cases into one mechanic.
Comment: @sillyputty I'd get advantage even if you were prone but still dodging.  It seems like I should get more if you're completely unable to move.
Comment: @PurpleVermont Hm. Solid point. I'd debate further, but that's what chat is for.
Comment: how do we take it to chat?  Sometimes it offers a link if you've posted too many comments, but I don't know how to do it otherwise
Comment: There was a post a while back about exceptional advantage or exceptional disadvantage. I think the result was roll 3d20 and take the highest/lowest. Might give you the feeling of what you want without the extra math.


How do DoS attacks work on non-servers?

Question: I understand how DoS/DDoS attacks work on servers. If I have not been misled, it is possible to DoS/DDoS a system that does not act as a server, but is still connected to the internet. How is this possible, as normal computers don't take data requests?
Comment: Pull the power cable >:D or unplug the router
Comment: Most desktops run remote desktop servers leading to things like [MS15-030](https://technet.microsoft.com/en-us/library/security/ms15-030.aspx). You can also overwhelm the computers network card or even the network connection. WiFi/ethernet has bandwidth limitations.
Comment: @NeilSmithline But why should the computer cards/network connections allow data requests?
Comment: The computer in question still has to process the traffic, even if it's only to say "nothing listening in this port, sorry".
Answer: You can saturate a computer's incoming network connection by just flooding it with packets. Even if every incoming packet bounces off the firewall or off a closed port (no process listening on that protocol+port on that interface), the bits are still being sent; legitimate traffic will need to compete for time on the wire. Even if you can't actually cause a crash or consume excessive resources on the gateway, NIC, or computer's network driver and related kernel components, you can slow downloads for that machine to a crawl if you blast enough packets at it. No need for the PC to reply (which would be required to complete a TCP handshake); you can send a packet to anybody.
This is a very brute-force approach, though. An equivalent in the real world might be to prevent people from going to a store by hiring a bunch of people to form a long line at the door, each one stepping away and getting back in line as they reach the door. Some legitimate shoppers may also reach the door, but most won't... or at least, it would take too long for most of them to bother waiting that long. Since home connections are usually capable of much faster downloads than uploads, it takes a lot of people working together to saturate the download connection if the attack is coming from people on home Internet.
You may also find that even supposedly client-only computers often listen for some traffic from the Internet. Incoming requests will usually be blocked by network address translation, but machines connected to the Internet directly (or in the gateway's DMZ) would be reachable. The gateway itself may also listen for remote connections. On Windows, check Resource Monitor (resmon.exe), "Network" tab, "Listening Ports" view. You may see quite a few processes listening on external (i.e. non-loopback) interfaces, and also permitted through the firewall.
Answer: Interesting point is that (D)DoS attacks simply mean (Distributed) Denial of Service attacks. They refer to the effect, not the cause. What you are doing is stopping a device from functioning in it's intended fashion.
For servers, this is often done by tying up resources to the point where other things either can't run, or the availability is incredibly low. On another device, it could be, as previously stated, by tying up the routes in use by the device, but anything else that can be done to stop your machine from doing what it's supposed to do would also be a (D)DoS.

How do DoS attacks work on non-servers?


Fundamental calculus theorem and derivative

Question: May I affirm
$$\frac{d}{dx}\left(\int_{x_0}^{x} f(t)\cdot g(t) dt\right)=f(x)\cdot g(x)$$
if $f$ and $g$ are well definied?
Comment: You need at least continuity for this.
Answer: Yes, almost everywhere (by Lebesgue's Fundamental Theorem of Calculus, thanks @peek-a-boo) when $f(t) \cdot g(t)$ is integrable, and in general for continuous functions.
Define $h(t) = f(t) \cdot g(t)$, and let $H(t)$ be an antiderivative for $h(t)$ (this is where the integrability assumption comes into play). Then the Fundamental Theorem of Calculus informs you that
$$\frac{\mathrm{d}}{\mathrm{d} x} {\bigg( \int_{x_0}^{x} h(t)\ \mathrm{d} t \bigg)} = \frac{\mathrm{d}}{\mathrm{d} x} {\big( H(x) - H(x_0) \big)}.$$
Now $x_0$ is a constant, so $H(x_0)$ is as well, meaning it vanishes when we take the derivative, so our expression simply becomes $\frac{\mathrm{d}}{\mathrm{d} x} H(x)$, which is (by definition of $H$ as an antiderivative of $h$) the same as $h(x)$. This is by definition of $h$ the same as $f(x) \cdot g(x)$, as desired.
Luckily in general integrability is very easy to satisfy, including for instance all continuous functions. See the other answer for an example where this breaks (mildly) at $x = 0$ because integrability is violated.
Comment: Integrability alone is NOT enough to guarantee this for all points $x$. By Lebesgue's version of the FTC, we only get it a.e. Or more simply, one should just assume continuity. Also, integrable functions need not have primitives (i.e functions whose derivative agrees with the original function at every point).
Comment: Thanks for the reminder!
I tend to automatically patch irregularities on measure-zero sets in my work so I sometimes forget about them.
I'll edit to include that
Answer: The requirement is that $f(x)\cdot g(x)$ be continuous function over $[a,b]$ where $a < b$ are constants and $x \in [a,b]$. Counter example is $f(x) = 1, g(x) = \dfrac{1}{x}$ over $[a,b] = [-1,1]$.
Comment: You can make it a bit weaker than continuous, since all you need is a differentiable antiderivative, which means (as a rather trivial example) $f(x) = 1$ and $g(x)$ a derivative of a function which is differentiable but not continuously so will also work.
Comment: @WangYeFei Continuity is not a requirement, it is just a sufficient confition. If $h =  f g$ is Lebesgue integrable over $[a,b]$ and continuous at $x_0$ then $F(x)=\int_a^x h(t) dt$ is differentiable at $x_0$ and $F'(x_0) = h(x_0)$


How do I keep my well pump connections from leaking?

Question: Well, I asked the question at the end of last season on which hoses to get.  The new Summer season is upon us and I've located some comparable hoses (could not find the exact ones mentioned, but found some with the same specs).  Having a super hard time getting them installed as they're so tight, but did finally get them on.  However, even with 2 worm gear hose clamps on each end, they leak.  Drips a little water while priming, and sucks air when pumping.  What's the trick to getting these things to seal?
Comment: Just to update on the end result.  For once I'm glad I gave up and had a pro come out.  :-)  He took care of all the damaged parts and swapped in a hard pipe for that section, complete with a disconnect and capping mechanism that will make Winter removal and storage much easier.
Answer: From my answer before:

When you connect this pipe to the fittings, you'll need to heat it up (I prefer MEP gas but propane works as well) just enough so it can go on (you still need to apply a bit of force). If you heat it too much to the point it stretches, you'll weaken the pipe and probably cause a leak - if you do this, cut the end off and start over. Use two stainless steel gear clamps to ensure a reliable connection (you can usually get away with one -- but in an outside location like a well, an extra couple gear clamps is probably cheaper than the pain of having to do this repair again).

If it's leaking, then:

You heated it up too much.
There is something wrong with the barbed connector (eg, a cut through the barbs). Brass male adapters are usually better than PVC. I personally don't like nylon, nylon fittings seem to wear out really quickly after attaching/detaching just a couple times.
Comment: I'll try replacing the barbed connector and a fresh piece of hose.
Comment: Just a quick update.  I failed at replacing the barbed connectors.  Everything's all rusted together.  It's no longer a DIY project, I'm now hiring a professional to fix this mess.  :-)
Comment: Make sure that you (or whoever you hire) use brass or PVC parts when replacing. They won't rust, and you won't have that issue in the future. Nylon is cheap and so-so - personally I hate it because it's too soft, and is too easily damaged/stripped.


What is the difference between a ligand and a co-ligand?

Question: I've seen the word co-ligand pop up in several papers. Is there a particular difference between a co-ligand and a ligand?
Answer: I believe this refers to situations in tranistion metal complexes where there is more than one kind of ligand, and specifically, where one of the coligands could not ligate and endure by itself due to reactivity, such as a carbene being blocked from reactivity due to a coligands steric bulk


Set custom upload path for custom post type only?

Question: I have a custom post type of 'clients' and would like all images/files uploaded through the admin for these posts to go to a specific directory on my server, but everything else to stay as normal. Is this possible maybe using wp_upload_dir?
Answer: You can add a filter to upload_dir.  Here is a simple class I wrote to do this for a project. Use the protected $filter_path variable to define the alternate uploads directory (*will be relative to wp-content/uploads)
class UGC_Attachment {
    protected $upload_dir;
    protected $upload_url;
    protected $filter_path = '/relative_path_from_wp-content/uploads';

    function __construct() {
        $dir = wp_upload_dir();
        $this->upload_dir = $dir['basedir'] . $this->filter_path;
        $this->upload_url = $dir['baseurl'] . $this->filter_path;
    }

    function upload_dir_filter( $upload ) {
        $target_path = $this->upload_dir;
        $target_url  = $this->upload_url;
        wp_mkdir_p( $target_path );
        $upload['path'] = $target_path;
        $upload['url']  = $target_url;

       return $upload;
    }
}

Usage:
function prefix_upload_dir_filter( $post ) {
    if ( 'clients' != get_post_type( $post )
        return;
    $filter = new UGC_Attachment();
    return add_filter( 'upload_dir', array( &$filter, 'upload_dir_filter' );
}

The prefix_upload_dir_filter function would need to be attached to an action or filter with the $post object available or the $post ID.  You will need to do some more research to figure this part out or maybe someone else can chime in.  My usage was a complete custom image upload solution from the front end where I needed the publicly uploded images placed in a temp directory that could be cleaned out nightly via a cron job.
Comment: This looks perfect, will give it a try and report back later. Thanks Chris_O
Comment: I can't get this working. I got somewhere with this suggestion: [http://wordpress.stackexchange.com/a/77007/22448] but can't work out how to limit it to just one specific custom post type. Thanks for your help though Chris_O
Answer: Something like this may do the trick, just change mycpt as you like
add_filter('upload_dir', 'mycpt_uploaddir');

function mycpt_uploaddir( $param ){
    global $typenow;

    if ('mycpt' != $typenow)
        return $param;

    $mycpt = '/mycpt';

    $param['path'] = $param['path'] . $mycpt;
    $param['url'] = $param['url'] . $mycpt;
    return $param;
}

Answer: This works quite well:
add_filter( 'upload_dir', 'custom_prefix_upload_dir'  );

        function custom_prefix_upload_dir( $pathdata ) {
            global $current_user,$pagenow;
            if ( ( 'async-upload.php' == $pagenow || 'media-upload.php' == $pagenow ) && false !== strpos( wp_get_referer(),'post_type=clients' ) ) {
                $custom_dir = '/my_custom_uploads';
                if ( empty( $pathdata[ 'subdir' ] ) ) {
                    $pathdata[ 'path' ] = $pathdata[ 'path' ] . $custom_dir;
                    $pathdata[ 'url' ] = $pathdata[ 'url' ] . $custom_dir;
                    $pathdata[ 'subdir' ] = '/kanzu_intug';
                } else {
                    $new_subdir = $custom_dir . $pathdata[ 'subdir' ];

                    $pathdata[ 'path' ] = str_replace( $pathdata[ 'subdir' ], $new_subdir, $pathdata[ 'path' ] );
                    $pathdata[ 'url' ] = str_replace( $pathdata[ 'subdir' ], $new_subdir, $pathdata[ 'url' ] );
                    $pathdata[ 'subdir' ] = str_replace( $pathdata[ 'subdir' ], $new_subdir, $pathdata[ 'subdir' ] );
                }
            }

            return $pathdata;
        }


Reputation needed to get SU in network profile

Question: How much reputation is needed in Superuser to get it on the reputation chart in network profile? I had like 60 points before the linking bonus, and the reputation from stackoverflow starts from 11 in my network profile! I`m just curious about it.
Comment: I think you need at least 200 rep on a site before it appears, but I don't have a source yet... let me have a search.
Comment: Interesting, I believed that there was no rep requirement as such to have it on the network profile
Comment: @Sathya - sorry, my fault, having re-read I wasn't as clear as I thought: it will appear on the accounts list on any rep, but I think 200 is required before the it appears on the graph. (FYI: I can't find a source... but 200 is the minimum before sites are sorted in the SE sites drop-down the top-left, for example, so I think 200 is the "default" value for these things).
Comment: Indeed @DMA57361 it is 200rep. Just checked `/users` - 200 rep - graph is featured, 199 rep - no graph
Comment: @Sathya, ah good thinking, I can't find an MSO post to back it up but that looks pretty conclusive to me.
Answer: Accounts appear on your network profile accounts list as soon as you associate them, but you require at least 200 rep before they appear on your network profile reputation chart.
Once the account appears on the chart it will appear with a full history - the graph won't start at the point you pass 200rep, but passing the 200rep mark simply flags the account as important enough to be displayed.
Comment: What about Area51?
Comment: As far as I know A51 never appears in the reputation chart on the network profiles, presumably because it's not really a proper part of the wider network. You could ask on [MSO] if you want a more comprehensive answer, that's the best place A51 meta questions.


Running Cardano Docker Node

Question: I am working on running the Cardano Node with Docker. I Got it working (running cardano-cli version 1.27.0) but when i execute the following command cardano-cli query tip --mainnet I expect a block result in the era "shelley" bit it shows me I am in the "Byron" era. The epoch parameters returns 'null' instead of a value
Comment: How long did you wait before you run the `query tip` command after starting the node? Your local blockchain first needs to synchronize (download all the blocks). This happens in the order the blocks were produced and can last for several hours.
Comment: I waited about 10 seconds. After that it was loaded I think. Do I need to wait longer?
Comment: Yes, see my answer.
Answer: The behavior you describe is expected. After starting the Docker container, the cardano node will start downloading the whole blockchain. Depending on your system and internet connection it can take several hours to download the whole blockchain.
While the node downloads the blockchain, you can use the cardano-cli query tip --mainnet command to check on the progress. You can compare the current slot of your node with the latest slot (see https://explorer.cardano.org/) to see how much of the blockchain you already downloaded.
As soon as your node has downloaded the whole blockchain you can start to create transactions etc.
Comment: This explains it all! I see the block numbers are counting up so the download is working. The next time I run my node again I only have to download the remaining blocks and not the blockchain all over again?
Comment: Depends on where you stored the blockchain. Usually it should be stored in a mounted volume that is used by the docker container and is persisted on your drive. In that case you can continue where you left off. If you stored the blockchain data inside of the container, it is probably gone. A volume is mounted by using the `-v` argument of the `docker run` command.

Running Cardano Docker Node


creating a tabbed UIviews with tableviews similar to Iphones music player

Question: I am working on the IOS app that has a tabbed UIview with each tab having its own table view.
lets say its similar to Iphones music player. what i am not able to figure out is how to use use two tableviews in same uiview. i need to show the songs in both grouped and plain Uitable style depending upon how the songsviewcontroller is called. if its called through artistViewController then the tableview should be PLAIN else it should be GROPUED.
I have tried to do it by hiding one tableview at a time but it did not work out. also I am not sure if it is the good thing to use two tableviews (which shows same data and all the actions will be same too). Is it possible to customize the grouped tableview to appear as plain or is there any other ways that I can follow please help mw put here. any suggestions will be appreciated.
Comment: Check out `UITabViewController`.
Comment: Can you show your required image(screenshot)
Comment: did you try with anything??? if yes can you share the same..???
Comment: I think many doors will open for you if you simply drag in a `UITabViewController` into a storyboard. ;)
Answer: UITab based Application : Use UITabbarController on click on each tab load Sepearate Views , you do this in Windows.xib file .add Corresponding class to views and Connect them, then Load Different Music Files in Different Class using UITableView on didselectrow method of UITableView play particular Selected Music FILE.


What would be a good reason to employ a non-experienced student?

Question: My brother is a student in his second year of university, studying electrical engineering. For him, web development is a hobby which he excels at, so he thought of officially working remotely as a web developer. However, most jobs require previous experience (he had never worked for a company), but he has a lot of hobby projects under work. So, what would be a good excuse for him to be hired? I thought of showing them some projects of his own, or maybe work for no salary for a month?!
Comment: Showing own projects is good (at least if the code etc. is somewhat good). And, companies have to hire newbies sometimes, because else experienced people will die out. ... I do not recommend such things as "x time without salary" etc. - in many countries this is illegal, it's not good for the employee of course, etc.
Comment: +1 to @deviantfan's comment. At some point, some company somewhere has to take on someone that has no prior experience, otherwise you have a chicken & egg situation - how does anybody get the experience in the first place? Perhaps you could consider offering them an internship?
Answer: Your brother should consider internships and freelancing to get some professional experience in web development.  Your brother stated that he preferred to work remotely, but internships are a great way to get experience and get a foot in the door at a specific company, which can translate to a job later on.
Freelancing isn't tied down to a specific company, but it does give the option to work remotely and you can choose to take on jobs when you want.
My suggestion would be for your brother to do internships with a company during off months in school and pick up freelancing jobs during the school year (if he has time).
Comment: How can he consider freelancing without having an experience?
Comment: @MysteriousUser He can use his hobby projects as a reference for his skills if relevant.
Answer: It sounds like your brother already has a decent amount of experience given where he is currently in his schooling/career, but may need to learn how to showcase that experience.  No one has formal job experience when looking for their first job, and it is an intimidating hurdle to get over no matter what the industry.
Web development, while highly technical, is also very much a creative process and getting work as a web developer requires showing off this creativity.  He could start a blog, website, or even YouTube channel showing off his work and discussing how he tackles common problems with web development.  He should contact the people for whom he did his previous projects and his current projects to see if they are open to him displaying his work more publicly (i.e. to his network of potential employers and coworkers); any future projects he takes on should have this stipulation from the beginning.  He is building his portfolio and brand with these projects so it is important that he show these off, especially if he hopes to one day get paid to do this kind of work.
I 100% agree with @TheRealLester, internships and freelancing (which it sounds like he's already doing) are amazing ways to gain experience without asking a company to invest lots of money and energy into a new candidate.  Companies who are interested in working with younger developers tend to be more open to interns and often times work with local universities or community colleges to find potential interns.  Your brother should research internship programs at his university (even outside of his department) as well as at other universities and community colleges nearby your area.  If he has his eye set on some specific companies, he should also visit their websites (and maybe poke around their LinkedIn pages) to see if they over any internship programs themselves.  He could try sending an email to a program at a different school or at an interesting sounding company just to ask about their internship programs, and what the process of applying is.  Even if he is not eligible for a specific program, it will give him an idea of what qualities companies are looking for in their interns.
Quick tips from what I've seen working as a SW (not web) developer and being involved in the hiring process for my company:

Discuss, maybe in a CV, one full project in a reasonable amount of depth from beginning to end, and explain why it benefited the customer.
Because it's web, include URLs that the recruiters/interviewers can access so they can look at his work before he is asked to come in for an interview.
Effectively, show them the work instead of just telling them about the work.
Take classes, on campus or online through anywhere, that take his skills to the next level, and (especially because he is still a student) include these classes on the resume.  It's valid to discuss the more interesting courses in a CV or during the interview.
Cast a wide net when looking for work of any kind.  My parents often say that it is a full time job trying to get a full time job, and they aren't wrong.  He should tune the resume/CV to each company, but apply to a large number of companies (even positions depending on the size of the company) so he has more chances of getting a call back.  Be diligent and persistent on this; it's work, but once that job offer arrives it will be worth it.


Peter Corke Robotics Matlab Toolbox the problem of inverse dynamics in the Franka Emika Panda model

Question: I have the following question about the Franka Emika Panda dynamic model. In case I perform the solution of the inverse dynamics problem using Robotics Toolbox (Peter Corke) I get different results compared to the solution using the dynamic model published in the following article (for the simplicity I have neglected the friction and gravitational component in both cases):
C. Gaz, M. Cognetti, A. Oliva, P. Robuffo Giordano, A. De Luca, 'Dynamic Identification of the Franka Emika Panda Robot With Retrieval of Feasible Parameters Using Penalty-Based Optimization'. IEEE RA-L, 2019. The dynamic model is available here: https://github.com/marcocognetti/FrankaEmikaPandaDynModel/tree/master/matlab/dyn_model_panda
According to the available information, the dynamic model of Panda in Robotics Toolbox is created based on the kinematic and dynamic parameters available in the mentioned paper, so why does the use of Robotics Toolbox show different results, see attached figure?
I am attaching a modified Matlab script demonstrating the different behavior.
Thank you in advance for the answer.
enter link description here
enter link description here
Answer: @Daniel kajzr! Have you solved the problem? I think you may have forgotten to add tau_f to the inverse dynamic equation of the robot. Because the last three joints are mainly used to overcome the friction torque, you have not calculated the friction torque, so the error of the last three joints is relatively large.
Comment: Bruce Lee, thank you for your reply. Unfortunately adding tau_f is not the solution, the attached matlab script states in the comments that I have neglected the friction and gravity components in both cases (I updated the post) . The resulting traces in the figure are only the tau= M*ddq + C*dq. The problem must be in the inertia parameters, because the publication does not explicitly state whether the moment of inertia is related to the local coordinate system or to the CoM. I tried recalculating the given moments of inertia using Steiner's theorem, but I still did not get identical results.


Will a task be completed faster if it is the active window?

Question: I have heard a myth that a job will finish faster if it is kept as the active window, and not in the background or minimized.
Is there any truth to this? Does the CPU put precedence to tasks where this happens?
Thanks,
Answer: On Windows the foreground application gets a priority boost.  This is to help it maintain responsiveness to the user and makes sure that when it's ready to run after waiting for some I/O event, it'll get to run next, ahead of most other applications that might be waiting to run.
There is also a potential for a longer quantum for foreground applications.
I don't know how much faster an application would complete if it's run in the foreground instead of the background - there are so many factors that would go into this (particularly I/O). The intent is to make the application more responsive.
This is all configurable to some extent (maybe only on server SKUs):

http://support.microsoft.com/kb/259025
Comment: Also incidiently a configuration option on Symbian mobile phones
Answer: It depends on your setup. On a default Windows desktop operating system, this is true. On a Windows server operating system (like Windows 2003) this is not true.
You can change the setting by going into System Properties and clicking on the Performance tab. The exact layout differs depending on Windows version, but you should see (or be able to see by clicking an Advanced sub tab or finding "Scheduler") either a radio/combo choice between "Workstation" and "Server" configuration, or a choice between prioritizing Programs or Background Services. In both cases these are the same thing (just different language - the Server/Workstation language is from Windows 2000, while Programs/Services was created for the more consumer oriented XP) - they determine if the scheduler gives extra importance to the thread of the top most window, or if all threads are treated equally (based on the thread prioritity property).
Answer: That's partially true on Windows. Windows would assign a GUI application that has its window on-top slightly higher priority. So if there're other tasks with normal or lower priority the program could really run a bit faster at the expense of other programs running a bit slower.
There's catch however. When you start compilation in Visual Studio IDE the IDE will spawn a separate process for the compilation and only redirect its output to its own window. Since the compilation process now has no own windows it will not gain acceleration.
Answer: Windows allows you to give the "foreground" task a priority advantage, so it may be no myth. You can also set it the other way, to give "service" tasks the priority advantage instead, so it depends on the install.
Note that this only affects the priority... if there are no other tasks running, it won't run noticeably different in either case. It's only when there is another application that needs CPU time that you might notice the difference.


Home page for community users

Question: I have created a Vf page now i need to add the Vf page to the community user home page when I log into as community user i am getting a message that : https://partner360-developer-edition.na15.force.com/Customer/ is under construction. how can i change the url to my VF page. Please guide me how to get it solved.
Comment: I think you might have added the VF as a iframe component in the home page layout. The URL (src attribute of the iframe) of the VF should be something like this `/communityName/PageName` instead of `/apex/pageName`
Comment: i have done it but it is not working.
Comment: @AnuRaj whats your page name and also your community name?
Comment: page name is dashboard and the community name is Partner Community.
Comment: So your page should be  https://partner360-developer-edition.na15.force.com/PartnerCommunity/dashboard
Comment: again i am assuming your community name is PartnerCommunity.Not sure why you have Customer in URL then?
Answer: There's a special one-to-one relationship between a Community and a Force.com Site. It's actually the associated Site entry that holds the Home Page and enabled Visualforce Pages.
The public home page needs to be accessible by "[Your Community Name] Guest":

go to Setup > Develop > Sites
click "[Your Community Name] Guest"
hit the Edit button,
in 'Active Site Home Page' choose your Visualforce home page,

The logged in home page needs to be accessible by "[Your Community Name] Partner User":

create a Visualforce Page,
go to Setup > Develop > Pages and click Security next to your page
move the relevant Login User profile into the Enabled Profiles

Then when you direct visitors to your login page, you must include the <code>?startURL=/apex/PageName</code> URL parameter.
Comment: i am not able to understand why we need to create a new Vf page as we are selecting "the Active Site Home Page' choose your Visualforce home page." how the new VF page and the Active Site Home Page are connected to each other.
Answer: Go to community edit and click on login pages there you have an option to add site.com or vf pages.
Hope this helps
Comment: Could you possibly expand upon this answer to make it clearer to future readers what the solution entails?
Comment: Please be more specific as your answer is very generic

Home page for community users


What is the cause of so many people disconnecting at the beginning?

Question: In nearly every game i play someone disconnects at the very beginning. Is this caused by someone leaving the game already? I would find that very hard to believe because it just happens too often.
Answer: I had similar impression for some time,but it is really just the random luck of matchmaking.To most of them the problem is game crashing since on the beggining there is a bunch of things thath needs to be pre-loaded,depending on their PCs something is about to go wrong.
For some time there was a bug that would often crash the game when loading certain characters,it was weird too see almost all players disconnecting and I was wandering the same thing as you are...untill it crashed on me too.
Thing is that dota 2 is still in beta so the crashes and bugs are expected.Before the tournament developers tried to balance the game and make it more stable,and yet it was common to see players on tournament getting disconnected.Note that they were playing on same "network" and probably high-end mainteined computers,which is usually not the case with common players.
Comment: that's pretty sad, hopefully all these bugs/crashes get worked out.  id like to play a full game without random disconnects
Comment: This game is in permanent beta
Comment: I would also add that some people will do it after character pick, if they encounter problems/lag. Ie. their game is running poorly for some reason, so they pick and quickly restart Dota2, to try to resolve the problems.


Adding user to a orphned Folder in window server 2003

Question: I have a window 2003 server, I have the administrator privileges as well. I have a folder, in this folder on security Tab I have removed all the user including owner , admin etc. and now this folder, I am unable give add any user, also I am unable to delete or copy this folder. Please suggest any solution. Ho I can add owner, user to this folder.
Answer: Go to the advanced security on the folder and take ownership/re-assign ownership.  Then you should be able to reassign regular permissions (you may have to completely close out of the dialog and go back in, but that should do the trick).


How to use the promo roles in the resistance?

Question: I got the Coup kickstarter edition, which included some promos for The Resistance - Merlin, Assassin and the Inquisitor tile.  But there are no rules for them.  I know they reimplement parts of Avalon, but I can't find the rules online for that.  How do they work?
Comment: Is the a Resistance or a Coup question?
Comment: Resistance.  I believe the cards are now also in one of the resistance expansions.
Answer: Rules found on the Coup kickstarter page which included these promos:
http://www.kickstarter.com/projects/2012515236/coup-bluff-and-deception-in-the-world-of-the-resis/posts/694256


If I login using browser X, will CSRF work in browser Y?

Question: If I am still logged in using browser X, can a CSRF attack work when I use another (default) browser Y on the same machine? Assume that the web server has a CSRF vulnerability and no hidden token checking will be done on the server.
Answer: No.  CSRF works by using a session already in place, and sessions can only exist within the same browser.  Or put another way, all current/major browsers do not share sessions.
EDIT: As noted in the comment, it is theoretically possible using flash cookies.  IMO, flash cookies are evil to begin with though.
Comment: While this is generally true, there are theoretical (and possibly practical) possibilities to conduct current attack via LSO, or so-called flash-cookies. Sure, this heavily depends on application specifics and implementation.
Comment: Good point, @ams.  I wonder if this also might apply to Silverlight Isolated Storage, the various HTML5 storage options, web-keys/URL capabilities or any of the other persistence methods used by evercookies.
Comment: Good point.  I didn't take into account plugins.
Answer: Assuming that the existing CSRF vulnerability is based on the presence of a login cookie, then the simple answer is no (in the general case).
Different browsers (e.g. IE/FF/GC/Safari) each manage their own cookies, and logging in on one will have no effect whatsoever on the cookies for another browser.
However, there are other CSRF flaws which are no based on cookies, which may be relevant to other browsers.
For example, Integrated Windows Authentication -based CSRF would be relevant for IE, even if you had logged in on say FF. Or any other non-cookie based authentication/session management, including flash-based sessions, etc.


Which lens cap do I need for an Olympus 14-45 f/3.5-5.6 lens?

Question: I am trying to replace the lens cap for my Olympus 14-45mm f/3.5-5.6 Zuiko Digital but I'm very confused on which one I can buy.  I am not sure what number I use for the size I need to have.
Comment: I looked at the camera itself and the diameter is 58 but I still am not positive how to make sure I am buying the right one
Comment: I can't find any Olympus 14-4**5** lenses. Do you mean the [Olympus Zuiko Digital ED 14-42mm 1:3.5-5.6](http://www.dpreview.com/products/olympus/lenses/olympus_14-42_3p5-5p6)?
Comment: that's the same problem I am having however the box say 14-45mm
Comment: Ah, turns out the 14-45 did exist as a kit lens for the EVOLT 500, but DPReview just doesn't know about it. I've updated the question a bit.
Answer: Spring-loaded lens caps are designed to grip the filter threads on the lens (or a filter if you have one attached) from the inside.  As such, the cap size you need will be the same as the filter diameter.  (Note that the filter diameter has nothing to do with the focal length(s) of the lens, which is also measured in millimeters.)
Some lenses have a diameter marking (e.g., "⌀ 77 mm") printed on the barrel or the ring that retains the front element.  If there isn't one and you can't find the specifications for your lens, measure the diameter across the filter threads.  The most common sizes are 49, 52, 55, 58, 62, 67, 72 and 77 mm; the size closest to your measurement is the one you want.
The spec sheet linked in the question says 58 mm, so any 58 mm lens cap will work just fine.


What is a false path timing constraint?

Question: In FPGA world, what exactly are false path constraints for an HDL compiler? Why are they useful?
Comment: This is a digital concept, not just a FPGA concept.
Answer: False paths are timing paths that will never really be exercised in the final design. Suppose you are designing a 4-bit counter and it turns out that there is a very slow delay path when incrementing from 12 to 13. If your design always resets the counter whenever the count equals 9 then that slow path will never be seen in the actual design. You label the slow path as a false path so that the compiler doesn't spend any time, or add any extra logic, in an effort to make the false path run faster.
Comment: Huh, and I thought *false path* had to do with using Atmels instead of PICs or something.
Comment: A more significant type of false path I think is a signal which changes on the edge of one clock and is sampled on the edge of a different clock, but either the signal will never actually change anywhere near the time the second clock changes, or if it does change nothing will care about its value.  Timing analysis tools would likely fail unless one added a double synchronizer which was controlled by the second clock, but adding such a synchronizer might totally break the design.  For example, the first clock might run at 1MHz and the second at 32KHz, but...
Comment: ...the device generating the signal might change it three 1MHz cycles after it sees a rising edge on the 32KHz clock.  Consequently, the signal latched by the 32kHz clock might be guaranteed to comply with the sample/hold requirements of the 32kHz latch without any extra synchronization.  If the logic on the 1MHz side generated its data based upon what the 32KHz side was doing, such a design could allow information generated on one cycle on the 32Khz side to percolate both ways by the next cycle.  Adding double synchronization to the 32Khz side would break that.
Answer: A false path is a path that does exist in the design but does not play a part in the operation, so it's not necessary to include it in the timing analysis.
There could be various reasons for this being the case, but since the timing analysis tool usually doesn't know (although there are some tools which can detect them) which paths may be used or not, you have to tell it. It's similar to a multi-cycle path, where you can tell it that a certain path is allowed to use more than one cycle to complete.
An example (of a false path) is a register that might be written once on power up, but then remains in the same state.
Answer: Simply, a false path is a logic path that you want excluded from being checked to see if it meets timing during timing analysis. There are two of reasons to exclude paths, first because the false path will make the tools work harder to meet timing for that signal which will in turn affect legitimate signal paths possibly causing additional timing errors and because it will cause the timing check to report failures possibly distracting the designer from legitimate timing errors.
False paths are caused by logic paths between unrelated asynchronous clocks or clocks of the same frequency but with unknown phase relationship or a path that would never be activated during normal circuit operation. Telling the tool to ignore a path doesn't make the timing work only that the timing is not checked. It is up to the designer to manually insure the correct synchronizing logic is used for these ignored signal paths.

What is a false path timing constraint?


Too broad? Crashing Earth into the sun

Question: So I came across this question asking about how the make the Earth hit the sun. It has many similar posts like this one about changing the moon's orbit or this answer about moving asteroids which could be generalised to apply to the problem. There may be a lack of research and other problems, I'm not disputing that, but why is that question broad where a similar question isn't?
Answer:
But how big should the rocket be?
  Which kind of rocket?
  How far away do I need to be from the collision?
  How much will this cost?
  Where should I place the rocket/engine?
  Do I need multiple rockets?

It ends in a litany of questions, not a question.  It asks what kind of rocket without any indication of the tech level or other rules.  It asks about cost without any indication of the economic context.
The question you note is not at all similar,

What artificial disaster could disrupt the orbit of our planet?

But if you wondered what could cause the Earth's orbit to shift (not limited to kinds of rockets) it might be what you want to know.  Then you can follow up (e.g. how much would xyz cost?") with a specific scenario referenced as xyz, adding details about your economic system.
Comment: @Kilisi I'm not arguing there, the question leaves a lot to be desired but I think maybe a little more help for new users wouldn't go amiss. A bit less of the trigger closing and down voting and a little more help (especially with new users) could make the community a bit more inclusive.
Comment: Sure they specify a load of questions but the one I linked required those sorts of questions to be answered. This one is narrowed down to rockets, the one I linked had rockets as one of the many possibilities. I don't argue that the question was flawed but there wasn't much of an indication in the comments on how the question could be improved.
Comment: @LioElbammalf the question could be improved by deleting it... no sign of any research, any usable context or detail to work off or any anything.....
Comment: @LioElbammalf I'm pretty new, haven't seen a welcoming culture here... but it does seem like a reasonable idea... not in this case though, the OP made no effort at all
Answer: No the question isn't too broad. Anyone answering the question only has to apply the rocket equation to a "vessel" with the mass of planet Earth. This will provide a ball park figure for the requirements of rocketry to deorbit an astronomical object moving at 30 km/s.
It should be possible to calculate the mass ratios for a range of rocket propulsion technologies: chemical rockets, ion and plasma propulsion systems, fusion plasma rocketry, and, if necessary, photon drives.
Doing so, it will give a concept of how feasible the proposition. At a guess it won't be feasible as the mass ration will be comparable or far in excess of the mass of planet Earth.
The list of the other questions are only subsequent considerations arising from the initial question about using rockets to deorbit the Earth to crash into the Sun. For example, if this is a practical impossibility, then it becomes irrelevant to work out what the economic cost of the operation would be. While it is a given that the mad scientist has unlimited resources, this is only noise in the signal of the primary question and may be sensibly ignored by anyone attempting to answer this question.
The question is not too broad because its key premise can be analyzed by an application of the rocket equation. Everything else flows from that analysis.

Too broad? Crashing Earth into the sun


Is it possible to install/access SSL for my Google App Engine app?

Question: Since App Engine is so locked down I assume there is no way to setup an SSL certificate to allow credit card payments. In the absence of this, how is it possible to secure handle payments in an App Engine app?
Answer: http://code.google.com/appengine/docs/java/config/webxml.html#Secure_URLs says that
<code> <ssl-enabled>true</ssl-enabled>
</code>
can be set in your appengine-web.xml file with *.appspot.com subdommains. Google had a typo in their  opening tag on that page, just FYI.
For Google Apps you can't use HTTPS at all, but for appspot you can.
As far as using your own cert, you can't! For appspot, Google's cert is
 not signed for your web-app's specific domain so it will cause a browser pop-up, but if accepted the page will load.
Answer: As of today, App Engine supports SSL on your own domain.  See:
https://developers.google.com/appengine/docs/ssl
Note that there are two options. The more expensive (VIP - $99 per month) will work with all browsers, whereas the cheaper (SNI - $9 per month) doesn't work on some variations. See here:
http://en.wikipedia.org/wiki/Server_Name_Indication#Support
You can also use e.g. Cloudflare.com to front your app and provide SSL. Currently this is HTTPS to Cloudflare and then normal HTTP to App Engine. This will protect from any drive-by hacks but would be possible to intercept should an attacker somehow get between CF and GAE. This technique is described here:
http://blorn.com/post/20185054195/ssl-for-your-domain-on-google-app-engine


How can I search for contacts without a specific Activity Type?

Question: I have created an Activity Type "Ceremonial" to attach to Contacts via Cases, which I am using to track qualifications we have awarded, honours we have granted and Fellows that we have admitted to membership. Each has an opportunity for ceremonial admission to the organisation. I am now trying to find those Contacts with Cases of Status="Successful" to which an Activity "Ceremonial" needs to be attached (so we can track whether the Individual has participated in a Ceremonial for their Award). I have attached the Activity to some Cases as they have been processed, but not all, and so want an efficient method to identify the rest.
Answer: You can do it with search kit as below. The key part is the "With (Optional)" for the activity restricted by type and then the "activity id is empty" in the where clause. Obviously use "Ceremonial" instead of Meeting for the activity type, and you can add case status = Successful in the where clause.

As an aside, one of the earliest features in civicase was an "audit" feature that was meant for this kind of thing - finding and acting on cases where part of the workflow was incomplete. But it was a bit of an experiment and never panned out.
Comment: Thank you so much; that is such a helpful response. What an amazing community!


Why am I getting Z banding/shifted layer on a single layer?

Question: While I was calibrating my flow rate/extrusion multiplier, I noticed that one layer is shifted slightly. I wanted to re-print the cube in-case it was a fluke, but after two more prints, I saw that the same layer was being shifted in the same way. Also, that is the only layer that is shifted, every other layer is perfect/almost perfect.
I'm using Cura 4.3.0, on an Ender 3 which I purchased about a month ago. The extruder is upgraded to a Trianglelabs Bondtech BMG clone. The E, X, Y, and Z steps have all been calibrated. The bed is level (I'm using a Creality ultrabase glass bed). I have upgraded the stock PTFE tubing to Capricorn, upgraded the PTFE coupler fittings (they have plastic tab inserts to keep the tube in place). The X gantry is level. I've also re-lubed the z-rod with super lube, made sure the lead screw nut is loose and printed out a z-spacer for the z stepper motor. That's about it, I'm still using the stock board but my SKR mini is in transit right now. Finally, the filament I'm using is the filament that Creality bundled in with the printer when I purchased it off their official website so I don't know how quality their filament is.
Below is a picture of what I'm talking about, I've highlighted in the area with a sharpie. Sorry for the bad image quality my phone is on its last legs at the moment haha:

This is the guide I was using to calibrate the flow rate and also where I got the STL
Comment: As it happens at the same height, I would be looking at a mechanical issue. E.g. look at how the filament is fed from the spool at that height, maybe the filament makes a kink or something.
Comment: @0scar I've just checked and that doesn't seem to be the case. Could it have something to do with the lead screw itself?
Answer: I started this as a comment but it couldn't fit.  If it isn't a true answer and should be removed, I understand.
You suggest in your question that perhaps the defect could be caused by a problem in the Z-axis lead screw.  Indeed, that is possible.  If so, it would probably introduce a defect at that position across the entire print bed.  If you print a test object and the defect is on all faces at the same height, check your Z-axis.  With the power removed, try slowly moving the bed up and down through the region where the defect occurs, feeling for any hangup, hesitation, looseness, or any other non-uniformity.
If the defect is along a particular line, check the complementary axis.  If the glitch is a X-axis line, check the Y-axis.  If a Y-axis line, check the X-axis.  Slid the axis back a forth slowly, feeling for any non-uniformity in the motion.  It could be a scratch on the linear bearing, or a ding from dropping something.  Any discontinuity  can cause a linear Z-axis defect, up or down.
It could even be cause by the printer not being firmly sitting on the table at an angle, so that after a particular point the balance point changes and the printer rocks, introducing a glitch.
3D printers, and many other motion control systems, relay on flat, smooth, uniform bearing surfaces connected to smooth, continuous drive systems.
If you attach photos of all four surfaces, we might have a better idea of how to look for the problem.
It wouldn't hurt at this point to wipe and clean all sliding surfaces, and then re-lubricate them.
Comment: You outline a troubleshooting process that might show up the real problems - which is highly useful in this case.
Comment: Thank you, I had a look at the Z-axis lead screw as you suggested and it turns out that I was getting some binding. So I disassembled the z-axis and reassembled it. Now I have no more banding. Thank You! Sorry for the super late replay.


IntelliJ IDEA 10 add GWT i18n

Question: I spent a couple of days trying to add internationalization (I18n) support to my gwt application project in IntelliJ IDEA 10. I was not successful. I tried to generate the necessary files with i18nCreator, but I don't how to hook the generated shell script to IntelliJ IDEA. I'm using maven2 in my project with a pom.xml file that was generated via GWT webAppCreator script.
Answer: When you debug or run a target IntelliJ allows you to run a maven goal. Same thing with artifacts.

IntelliJ IDEA 10 add GWT i18n


Why isn't medical imaging improving faster with AI?

Question: Researcher here. I just read this piece about medical imaging ai with object recognition and it left me wondering why there are still 100,000+ deaths a year in the US due to misdiagnosis - anyone out there working on these problems? Vinod Khosla famously said that he'd rather get surgery from AI than from a human - so where are we at with that?
Comment: Welcome to SE:AI.  "Improving faster" is subjective--this question might be better served with historical stats on diagnoses errors.  (Short answer--tech takes time to develop & implement, and prove itself in the field.  Also, new tech tends to be very expensive initially, especially in the medical sector.  We've only had strong-narrow statistical AI for about 5 years now.)
Comment: "so where are we at with that?" That's a very, very broad question. I also don't think it's just limited by AI, but by other high-precision mechatronics not being economically viable at this time.
Comment: Thank you for your help.
Answer: AI in healthcare is already playing a big role in diagnosing the diseases, assisting patients or helping the medical staff in supplying various things or performing actions.
The medical imaging helps AI to diagnosis the diseases without help radiologist. And to develop the AI model using medical images to diagnosis various disease need training datasets for machine learning algorithm helping to detect with accuracy.
But just like AI, medical imaging is not improving faster making sometimes difficult or more time taking to diagnosis the diseases. Actually, while developing such highly sensitive models, high-quality training data is required and there is lack of such annotated data to train the models.
The more training data is feed into the model, it will learn the detection process with more accuracy resulting predicting the faster diagnosis. And to improve the quality and quantity of data, more dedicated and fast labeling process is required.
Hence, data annotation companies now use the AI-assisted labeling process to annotate the medical images at faster speed with better accuracy.  Compare to manual annotation, AI companies can get multiple times faster-annotated data for machine learning algorithms.
Once the training data will start available in large quantity for medical imaging analysis process through AI will also improve. The AI-assisted data annotation process can only help to produce the medical imaging datasets in large quantity for better predictions in healthcare sector.


Vim - Trigger action\script on save\write?

Question: This might be better for super user, but I figure as a tool of the trade it might be a better topic for here. I find often when editing in vim that I exit out, run some script that I am testing, and then go back into vim (yes I realize I can use :!command to run things from  vim) I was just wondering if there is a way to hook something to run when the file is saved (:w)?
Answer: See :he :autocmd and :he BufWritePost
The line would look like this:
:autocmd BufWritePost /path/to/file/or/pattern !command <afile>

If the <afile> thing does not work use %:p.
Answer: You might find incron of interest if you're using Linux.
Answer: I got the "getting back to vim" part, but I'm not sure how to hit the ":w" command itself (which would be very handy, since that's quite reflexive for me)
w | silent execute "! myscript" | redraw!

I think it may be better for superuser as well.
Answer: This is blatant self-promotion, but I wrote a Vim plugin that will trigger certain shell scripts to be run after specific Vim autocmd events. For example, a script named .bufwritepost.vimhook.sh would be run (synchronously) every time the BufWritePost command is fired. You could then easily include whatever arbitrary logic you want for doing stuff inside that script. The plugin assumes specific naming conventions of these scripts and also supports "hook" scripts which trigger only on files matching certain names or having certain extensions. And of course, you are free to choose any autocmd event you wish, although I have found BufWritePost fits most of my use cases.
Full details: https://github.com/ahw/vim-hooks


Display xml feed with xslt

Question: I need to display a xml feed with xslt, the xml feed requires authentication is this possible?
How would I get the xml feed into the xslt?
Answer: XSLT can be performed by a variety of processors. The answer to your question depends entirely on how the processor you are using obtains the XML feed.
If your processor is manipulated from a programming language, you can use that language to fetch the XML file from that language using authentication credentials before passing it to the processor.
Comment: I want to grab the xml feed with XSLT
Comment: That would depend entirely on what XSLT processor you are using, and how it handles the document() function.
Answer: Here is an interessting link for you...  The MYYN already answered your question..it is possible.
This link is an good starting point:
XML,XLST with CSS Example
If you have further questions regarding "Displaying an XML Feed"..please update your question.
Answer: this is the one of oldest site. and uses asp for rss feed.
http://alabalikyagi.weblebici.net/rss.asp and uses a predefined template rsspretty.xsl
you can develop a simple username/password mechanism before serving the page.

Display xml feed with xslt


Where would one ask questions about how to use specific UX tools, like Axure or Balsamiq?

Question: I guess it would be nice to have some technical questions on tools on UXSE, but I understand this may not be the place for it.
Answer: If you need specialist advice on using particular tools then the best option is always going to be to go to the support / forums for those tools.
Axure certainly has such a forum: http://www.axure.com/c/forum.php
As too does Balsamiq: https://forums.balsamiq.com/
You could try Superuser as Benny suggests, but the volume of specialist users in any one particular tool is going to be limited. If you want the most accurate answer and for your question to be seen by the most number of experts in that tool, then the product support forums are always going to give you better responses. That's why those companies provide such a thing.
Comment: Increasingly, companies are moving such support to unpaid Slack forums which means good questions and answers lack a voting mechanism and disappear due to the 10K limit, drowned out by gabble.
Answer: I think Super User is the right place asking about tools, even UX tools.


How do you properly pronounce 풀?

Question: As a native English speaker this sound is really hard for me. It's like half an "Pu" sound and half an "ool" sound. The last bit is what trips me up, how do you pronounce that "ool/eul" sound?
Comment: please link to a pronunciation of he word so people can understand what you don't understand
Comment: https://stdict.korean.go.kr/search/searchView.do?word_no=356220&searchKeywordTo=3
Comment: very similar to the English word 'pool'
Comment: @user67275 "l" in "pool" is a very different sound (the _dark L_ sound) compared to the sound "ㄹ" makes.
Answer: I recommend referring to Forvo for questions like this.  Native speaker examples for 풀: https://forvo.com/word/%ED%92%80/
Based on my experience (intermediate) this word sounds very much like English "pool."  (Edit: there's no dipthong, so you make the "oo" sound the whole time.  That contrasts to the English pronunciation of "pool" where you might say "poo-uhl".)
However in certain situations (generally if a vowel follows directly after the ㄹ sound) the "L" becomes like a rolled R in Spanish.
Comment: Yeah, _riŭl_ sounds like a mix of the L sound and a rolled R.
Answer: Your ears may be detecting a very salient difference between the phonologies of (many accents of) English and Korean.
From page 54 of The Sounds of Korean, 3.8.2 ㄹ in other positions:

When ㄹ occurs [...] at the end of a word that stands alone, as in 불 'fire', it is pronounced with the tongue touching against the dental ridge just behind the teeth. The end result is a sound very much like the 'clear l' that appears at the beginning of English words such as leg and lip [...]

The statement about English goes on to distinguish between clear and dark L in English. Not all accents of English have this distinction, with Received Pronunciation in British English having a fairly robust distinction between the two, General American having the two somewhat closer and darker, and Australian, NZer and Scottish English have a preference for dark L in all contexts.
In contrast, although Korean speakers do have some individual variation in where exactly it is placed in the mouth (apical vs laminal, alveolar vs postalveolar), it is overwhelmingly clearer than the equivalent English /l/ at the end of a word.
Answer: /ㄹ/ — The tip of your tongue touches your alveolar ridge.
Say "buTTer" or "daDaDah" in American English. Yes. You just made the flap T sound at your alveolar ridge, where the tip of your tongue goes when you pronounce the "T" or "D" sound. That's where the /ㄹ/ sound is made. The tip of your tongue should go there at the end. It should touch the roof of your mouth, unlike the dark L sound.

How do you properly pronounce 풀?


Two subjects that are inextricably linked/bonded together

Question: I'm doing a piece where I am trying to state that a place is linked/bonded together with a river tightly. Just using "linked/bonded" as a term seems weak,  is there any phrase to replace them that showcases that the two subjects have to be together, that each individual may fail if separated.
Comment: 'Inextricably associated with' is the usual term
Comment: Give an example sentence with a dash in which you are going to use the word.
Answer: Two options are yoked and entwined.
From Merriam-Webster:

entwined: To become twisted together or around
Example: Now a new documentary will look at the history of this genre, in which the pastoral is routinely entwined with the painful.

yoked: to join as if by a yoke

Example using the place/river:

The place is yoked to the river.
The place is entwined with the river.
Answer: You could try inseparable and remove the tightly at the end as it already denotes strong relationship.
Answer: The two entities are intertwined. Then again, your use of "inextricable" encapsulates the idea you are going for, I feel (as @Edwin Ashworth mentionned) .

intertwine
  [ˌin(t)ərˈtwīn]
  VERB
  intertwined (past tense) · intertwined (past participle)
twist or twine together.
"a net made of cotton intertwined with other natural fibers" · "the coils intertwine with one another like strands of spaghetti" · "Dickens has been very clever to intertwine all these aspects and ideas"


Very few needles on lower spruce branches

Question: I have what I believe is a 30 ft Norway Spruce that looks very healthy, except for the bottom three feet of branches which have almost no needles.  This bottom portion of the tree is shaded out by some large shrubs for a good portion of the year, is this the likely cause?  Is there any way to encourage growth on these lower branches (with or without removing shrubs), or is all new growth on the top of the tree?
Answer: I live in a region where Norway spruce grows wild, and in my experience, the lower shaded branches shedding their needles and dying is perfectly normal for these trees.  For the tree, there's no point in keeping these branches alive when the same energy and nutrients can instead be directed towards the upper branches that receive more sunlight.
Here's a nice example picture from Wikimedia Commons:

(Image by Wikimedia Commons user Beentree, CC-By-SA 3.0)
Unlike Scots pines, which are also common here, spruce trees don't usually shed the dead branches by themselves.  Instead, the branches will dry up but remain attached to the tree unless something (like a passing human or an animal) breaks them off — which is easier said than done, as even the dry branches are still quite tough and prickly and firmly attached to the trunk.  I suspect this may even be a deliberate evolutionary defense mechanism to protect the trunk of the tree.
Anyway, as long as the rest of the tree appears healthy, I see no cause for concern here.  As already noted by Bamboo, the dead branches will not grow back.  (If they're only almost dead, they might still revive if exposed to more sunlight, but even then only the new growth at the tips will have needles.)  If you find them unsightly, you can cut them off, but it's also perfectly fine to let them be.
Either way, if you trim back the shrubs shading the base of the tree and let it grow, you'll likely find that the upper, still live branches will gradually bend down as they grow out, resulting in a layer of live green branches that will eventually hide the base of the tree from sight.  But this is likely to take years if not decades.
Answer: Once the needles turn brown or fall off a branch, regeneration will not take place, though you may find growth at the tips of those branches. Probably the best thing to do is remove the affected branches at the base leaving a clean trunk - hopefully this won't notice because of the shrubs around it. Loss of the lower branches is not that unusual - we have a 45 foot one in the gardens here, with low growing shrubs at the base, and the bottom part of the trunk is clear up to about 10 feet.
Answer: Spider mites attack lower branches , starting near the trunk of spruce trees. Dormant oil should control them but it may require a few applications months apart, They are tiny and you have to look very closely and magnification helps. To get to the center of the tree I have taken the sprayer in to the trunk of the tree and sprayed rather than try to spray from the outside and get past the good outer needles . It is baby oil / mineral oil so no problem to spray yourself.
Answer: If you want to try to regrow the lower branches, instead of removing branches entirely try to locate a dormant bud (much) closer to the trunk and prune back to there. Buds closer to the trunk are kept dormant by chemical signals from the buds further out--removing the further out buds often wakes up the dormant buds.
If you really, really want to regrow them, wait to do your pruning during the ideal pruning season--late winter, before the buds have started pushing their caps off. (In my area it would already be too late this year.) Then give them a loooong time to potentially start growing after pruning (at least a couple of springs).
Worst case, it doesn't work and you can always lop off the remaining branch later.
Comment: All live buds in a spruce (and in pines) are within the first exterior foot or two of the branch - the interior of all branches is simply "dead" wood. Once the exterior of a branch dies, there are no more buds to "regrow". Any sparse growth will not grow into lush growth, no matter how many years elapse.


How to debug a bash script in a qemu-arm chroot

Question: I'm running a debian debootstrap script which creates an arm system. However, the script fails at some point and the error message does not really help. So I'll have to do some more debugging which is more complicated than I thought. The script is already running with set -x, maximum verbosity, etc. So I guess strace is my only option left. But strace (with -ff option) only gives an output until the chroot step starts. I don't know what exactly is the reason for this. The chroot step itself (because strace can't look into the chroot) or that it is running under arm in the chroot (which it shouldn't because it is started outside the chroot)? If I start strace in the chroot it also does not work because there seems to be only a very limited support by qemu. So the best would be to run strace on my normal system but it must have the ability to look inside the chroot. But I'm not sure if that is possible. Maybe someone knows also some other advanced debugging options beyond strace?
Answer: I ran
<code>strace -o /var/tmp/chr.1 -f chroot . /bin/bash
</code>
I found I was missing a copy of qemu-arm in the /usr/bin/ of the chroot dir.


Show that a partial differential eqution is satisfied (is my notation okay?)

Question: Let:
$f:\mathbb{R}\rightarrow\mathbb{R}$ be differentiable.
$u:\mathbb{R}^2\rightarrow\mathbb{R}$ and $u(x,y)=e^{-y}f(x+y^2)$
Show that:
$$2y\frac{\partial{u}}{\partial{x}}-\frac{\partial{u}}{\partial{y}}=u$$
My attempt has been to first work out the two partial derivatives and plug them in, however I am not very confident in my notation, for example:
$e^{-y}\frac{\partial{f(x+y^2)}}{\partial{y}}$ is the second part of my working of partial u/partial y, first * derivative of second
The next step is:
$2ye^{-y}\frac{\partial{f(x+y^2)}}{\partial{y}}$ but that looks the same as before, my notation doesn't show f(x+y^2) and the partial derivative of f wrt a variable at a point as being different. How do I overcome this?
I've never been formally taught or had the need for the vertical bar notation, but I sense this is what the notation solves, how do I write it?
Addendum:
I've not LaTeXed a lot of it, I find it a laggy choir at present, please don't take this as laziness, I'm also going to try introducing a new variable used for x+y^2 but on paper. If I answer it I shall report back, sorry for mixing up my mu and u, it's one of those prints of a scan of an old text-book, the toner is shiny on the cheap paper and it's black and white, not gray-scale a choir to read!
Addendum 2:
Here, it works, but I'm not sure if it's errors canceling or not:
Let: $\lambda:\mathbb{R}^2\rightarrow\mathbb{R}$, $\lambda(x,y)=x+y^2$
Now:
$u(x,y) = e^{-y}f(\lambda)$ (I feel I need not write $\lambda(x,y)$ all the time)
$$\frac{\partial{u}}{\partial{x}}=e^{-y}\frac{df(\lambda)}{\partial{x}}=e^{-y}\frac{df}{d\lambda}.\frac{\partial{\lambda}}{\partial{x}}=e^{-y}\frac{df}{d\lambda}$$
and
$$\frac{\partial{u}}{\partial{y}}=e^{-y}\frac{df(\lambda)}{\partial{y}}+\frac{\partial}{\partial{y}}[e^{-y}]f(\lambda)$$
Now there I've written partial by partial-y, this is why I am not that happy with my notation.... but d/partial y doesn't look right either...
Anyway:
$$\frac{\partial{u}}{\partial{y}}=-e^{-y}f(\lambda)+e^{-y}\frac{df}{d\lambda}.\frac{\partial{\lambda}}{\partial{y}}=e^{-y}[2y\frac{df}{d\lambda}-f(\lambda)]$$
To show that is just to bung those in.
Comment: Did you misplace $u$ instead of $\mu$?
Comment: See addendum, I'll change it though as someone agrees with your comment
Comment: @Kaster is $\frac{\partial{f(\lambda)}}{\partial{x}}=\frac{\partial{f}}{\partial{\lambda}}.\frac{\partial{\lambda}}{\partial{x}}$ allowed? Where $\lambda:\mathbb{R}^2\rightarrow\mathbb{R}$ and $\lambda(x,y)=x+y^2$ or is it a matter of errors canceling. It seems logical at least. But I'd prefer to write $\frac{df}{d\lambda}$
Answer: $$
\lambda (x,y) = x+y^2 \\
u = e^{-y}f(\lambda) \\
u_x = e^{-y} f'(\lambda) \lambda_x = e^{-y} f'(\lambda)\\
u_y = -e^{-y}f(\lambda) + e^{-y} f'(\lambda) \lambda_y = e^{-y} \left[2yf'(\lambda) -f(\lambda)\right ] \\
2y u_x - u_y = 2y e^{-y} f'(\lambda) - 2ye^{-y}f'(\lambda) + e^{-y} f(\lambda) = e^{-y} f(\lambda) = u
$$


How Do I Make A QR Code?

Question: Do you have to print it off of a computer, how do you get it on the computer? I know how to scan one, I just can't seem to make one.
Answer: To generate a QR code in-game:

Go to the Able Sisters' shop, and speak to Sable to use the sewing machine
Select "Create a QR Code"
Choose the design you want to turn into a QR code, then tap "Confirm"
A QR code will then be shown on the screen, and you will be notified that an image containing the code has been saved to your device's SD card

To transfer the image to your computer, you must use an SD card reader to view the contents of your 3DS's SD card. Alternatively, you could take a picture of the generated QR code on your 3DS screen with a mobile phone, but the quality of the image might not be high enough for others to scan, depending on your phone and the complexity of your design.

How Do I Make A QR Code?


Local or session language variables

Question: I'm building a multi-language site using the internationalization set of modules.
The problem is that I've done any queries to extract for example nodes or taxonomy terms with selection of language in the code(back-end) and what language reference or defauld language value I will use to compare or execute queries? Every user that is connected on the site I think they must have each a variable that indicates the language that the user have choosen and if there isn't, uses the browser language.
I've tried with the global variable $language but this is for all the web site and it's user independent.
I hope you understand my question! Thanks..!
Answer: You may want to add a filter for Content  Translation: User's Current Language, which is the language that an authenticated user has set in the user settings (it is NOT the same as the current browser language or the site language).
If no option for the 'User's Current Language' is available in the filter criteria form, then verify your configuration at Configuration -> Languages -> detection and selection: the order should be 'URL, Default, User', and not something like 'Default, URL, User' (as mentioned also in https://www.drupal.org/node/1701854#comment-6279474).
Does this help?

Local or session language variables


Tensorflow-hub Text-Module Preprocessing

Question: I'm playing around with the new Modules which are available on the tensorflow-hub (which I really like - thanks for that).
Whats unclear to me, is the preprocessing which should take place when feeding a sentence. The module documentation says, that in the preprocessing step the inputj sentences gets splitted at the spaces.
However, when I run the following program, I only get a single vector:
with tf.device("/cpu:0"):
  embed = hub.Module("https://tfhub.dev/google/nnlm-en-dim128/1")

global_step1 = tf.train.get_or_create_global_step()
with tf.device("/cpu:0"):
  embeddings = embed({"default": ["Cat sat on mat"]})

with tf.train.MonitoredTrainingSession(is_chief=True) as sess:
  message_embeddings_cat = sess.run(embeddings)
  print(message_embeddings_cat.shape) # (result: (1, 128))

How do I get the embeddings for each word, and what does the single vector represents? A fixed-dimensional representation of the sentence, the Unknown-Word embedding or something else?
Thanks in advance!
Edit: It seems the result is a combined embedding created with tf.nn.embedding_lookup_sparse. (Thanks for the confirmation @svsgoogle)
Answer: Yes, the output represents a fixed-dimensional representation of the entire sentence.
You can also embed single words to get their vectors. In your case:
embeddings = embed({"default": ["Cat", "sat", "on", "mat"]})

Should give you a result with shape (4, 128).


Cannot type accented capital letters in kde-konsole

Question: If i try to type a capital letter with accent (e.g. Ř) in kde-konsole, I get the following result: ˇR - the letter and the accent as two characters. The normal behaviour is that after pressing ˇ character, it is not output immediately but another character is expected. In the konsole tho, the character is output immediately. In other applications, it works fine. I am using gnome and in it the kde-console application. Any directions how to solve this?
Answer: First check your font (Right click, Edit current profile),
Then check your encodings, i.e $LANG $LANGUAGE $LC_ALL see if it's right,
Also check the encoding in Konsole profile (Advanced tab)
Does it happen to other KDE app like kate, kwrite?
Comment: Font should ok be as I can copy the character in the console - just can't type it. By default I use en_US.utf8 locale but switching to mine does not help. Encoding is utf8. But yeah it seems all kde packages on my computer have this issue. I tried konqueror and the same issue appear there (I don't have kate or kwrite).
Comment: hmm it does not work if konsole is run inside gnome. If I run it under kde (i have installed the whole desktop), it works correctly. Anyway at the process of trying it out in kde I again realized how incredibly cool this desktop environment is...
Answer: Seems to be some kind of a bug refering to: Keyboard layout does not work correctly in konsole
Set the keyboard-layout which you use mainly (that one which works fine in other applications) to the first position in kde keyboard-layout settings, or delete all other keyboard leyouts if you don't need them anyway.