Can blocks in Minecraft have right-click actions, such as tossing an ender pearl?

Question: So I've been trying to make the Space Stone from the Marvel universe and I would like to know whether it's possible to make it so that when I right click a block of blue glazed terra-cotta, an ender pearl can be tossed or some action can take place. If possible, I would also like the block to leave water particles behind me. Is there any way to make sure of this with command lingo?
Comment: You mean holding a block as item and clicking? No, that would always attempt to place the block and either do it or fail completely. But you could retexture a different item. For example… an ender pearl!
Answer: There is a way to have custom right-click actions. The following is taken from that answer (see that for info on how it works), except edited to be relevant to this answer and updated for 1.13:

First run the following commands once to create the scoreboard objectives used:

/scoreboard objectives add holdTerracotta dummy
/scoreboard objectives add rightClick dummy
/scoreboard objectives add summoned dummy

Create a command block chain that runs the following commands in the correct order:

scoreboard players add @a summoned 0
scoreboard players set @a holdTerracotta 0
scoreboard players set @a[nbt={SelectedItem:{id:"minecraft:blue_glazed_terracotta"}] holdTerracotta 1
scoreboard players set @e[type=armor_stand] rightClick 0
scoreboard players set @e[type=armor_stand,nbt={HandItems:[{id:"minecraft:blue_glazed_terracotta"]}] rightClick 1
execute as @e[type=armor_stand,scores={rightClick=1..}] run <summon ender pearl command>
execute at @e[scores={holdSword=1..,summoned=0}] run summon armor_stand ~ ~ ~ {CustomName:rightclick,Invisible:1b,Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,ShowArms:1b}
scoreboard players set @a[scores={holdSword=1..,summoned=0}] summoned 1
execute as @a[scores={holdSword1..,summoned=1..}] at @s run tp @e[type=armor_stand,name=rightclick,distance=..1] @s
execute at @a[scores={holdSword=0,summoned=1..}] kill @e[type=armor_stand,name=rightclick,distance=..1]
give @a[scores={holdSword=0,summoned=1..}] blue_glazed_terracotta
scoreboard players set @a[scores={holdSword=0,summoned1..}] summoned 0

I haven't tested any of this.
However, the part about summoning an ender pearl (I'm assuming so it's as if an ender pearl was thrown normally) is beyond my knowledge and capabilties. You could try looking at this Reddit post.


Limits of special Sequences

Question: Suppose $f(x)$ be a function such that $$\lim_{x \to c}f(x)=L$$ and let $a_n$ be a sequence such that the limit of this sequence is $c$ then $$\lim_{a_n \to c}f(a_n)=$$
Here I want to know that for the limit of $f$ to be defined as $x \to c$ $f$ must be defined in some open interval containing $c$ but $f(a_n)$ is only defined for some special values $a_n$ then how the limit of $f(a_n)$ is defined.
Comment: When you take limit of $f(x)$, it is with regard to the variable $x$, for example as $x\to c$, but when you take limit of $f(a_n)$, it is with regard to the natural number $n$, usually as $n\to\infty$. The sequence $a_n$ does not need to cover a neighbourhood of $c$. It is just approximating $c$ as $n\to \infty$ so that the limit of $f(x)$ at $c$ can be equivalently defined as the limit of $f(a_n)$.
Answer: You have
$$\tag1
\lim_{n\to\infty}f(a_n)=L.
$$
From $a_n\to c$,
$$\tag2
\forall\varepsilon>0,\ \exists N>0:\ n>N\ \implies\ |a_n-c|<\varepsilon.
$$
From $(1)$ you have
$$\tag3
\forall\varepsilon>0,\ \exists \delta>0:\ |x-c|<\delta\ \implies\ |f(x)-L|<\varepsilon.
$$
Now, given $\varepsilon>0$, take $\delta>0$ as in $(3)$. Use this $\delta$ as the "$\varepsilon$"in $(2)$ to get an $N$. So if $n>N$ we have that $|a_n-c|<\delta$, and so $|f(a_n)-L|<\varepsilon$. So we have shown that
$$\tag4
\forall\varepsilon>0,\ \exists N>0:\ n>N\ \implies\ |f(a_n)-L|<\varepsilon,
$$
which is precisely $\lim_{n\to\infty}f(a_n)=L$.

Limits of special Sequences


Sefer Milhamot Hashem - from Bamidbar 21:14

Question: Does anyone know of any discussion of the the "sefer Milkhamot Hashem" mentioned in Bamidbar 21:14?  Someone had asked me about the content of the book and I had no idea of what to answer him.
Comment: here is one place to start I think http://parsha.blogspot.com/2008/06/sefer-milchamot-hashem.html
Comment: Welcome back! I was just thinking yesterday that I hadn't seen you around in a while.
Comment: thanks, its been a hectic few months, when things get crazy something has to give.
Comment: http://he.wikipedia.org/wiki/%D7%A1%D7%A4%D7%A8_%D7%9E%D7%9C%D7%97%D7%9E%D7%95%D7%AA_%D7%94%27_%28%D7%9E%D7%A7%D7%A8%D7%90%29
Answer: (To see the commentaries in Hebrew, click on the link in Dan's comment.)
The explanations of "The book of the wars of G-d" (ordered by subject):
Rashi and Sforno and Rashbam: The oral traditions/tellings of miracles
Shadal: Songs people sing about G-d
Ibn Ezra: An actual book dating from the time of Avraham that is no longer extant
Ramban and Daas Zekeinim: An actual book, because in every generation there's someone who records things that happened
Targum Onkelos: An actual book that records the encounters G-d had at Yam Suf, etc.
Targum Yonasan and Yerushalmi: The Torah, which records G-d's wars
Midrash Agadah: The book of Shemos
Ohr HaChaim: G-d's "record book" of which countries own which land
Netziv: The book about the conquer of Eretz Yisrael, which started when they defeated Sichon
Answer: Rabbi Yehoshua Inbal in his essay in Hebrew "שחזור קטע מספר הישר" (The Restoration of a Segment from Sefer Hayashar) gives an overview of several different opinions on what Sefer Hayashar (another lost book) was. Then, following in the footsteps of commentators such as Rabbi Avraham ben HaGr"a and the Ibn Ezra, puts forward his hypothesis that Sefer Hayashar includes within it Sefer Milchamot Hashem and the meshalim mentioned in Bamidbar 21:27-30, together with other, more ancient poems about the might of Hashem passed down through the generations, and then suggests that as this book was still in the hands of the prophets, parts of it can be traced throughout Tanach and attempts to restore a section by putting all of those bits together.


OpenSSL 0.9.8k or higher on CentOS 5?

Question: I need to upgrade OpenSSL on my CentOS server to 0.9.8k or higher, however the latest version in the official CentOS repositories is 0.9.8e, much too old. Is there a 3rd party repository I can use that has newer versions of OpenSSL libraries? If not, can someone provide a quick walkthrough of compiling a newer version of OpenSSL for CentOS? I need it to replace the built in version, so the walkthrough would have to explain how to create a CentOS-compatible RPM.
Comment: Why do you want to get that 0.9.8k or higher? Do you need any new feature or do you need a CVE bugfix? The latter is usually backported to 0.9.8e by RedHat. See Rilindos answer below.
Comment: Myself, I am looking for specific OpenSSL features, such as [Server Name Indication](http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI). Apparently there are no OpenSSL 1.x RPMs available for EL5, so I'd simply need to compile or roll my own RPMs to install to /opt or elsewhere , and tell specific applications to use those specific OpenSSL libraries.
Answer: Let me guess - PCI?
What you really want is to look at Red Hat's CVE archives (which CentOS is based on) and verified whether the vulnerability has been fixed based on that list (most of the time, it has been). If you are using a third-party scanner that doesn't recognize your current version, look up the OVAL definitions to see the status of the vulnerabilities as well as whether the fixes were back ported; from there, you can map them to the current "generic" versions of your applications / libraries (in this case, OpenSSL).
Red Hat's link gives more details (which CentOS reference) as their backports policy. You may want to review it and save yourself the trouble of rebuilding OpenSSL.
Answer: Be aware that RedHat backports security fixes and such to packages and only increments the package subversion number and not the versioning of the package. Since Centos comes directly from RedHat, I might expect the same from their packaging as well.
Answer: Upgrade to Centos 6. It has version 1.0.0 built-in. See the list of packages and RPMs here: http://mirror.centos.org/centos/6/os/i386/Packages/
But it is never a good idea to install two versions of the same software on one system.
Comment: Important to note that there is no supported "upgrade" from 5.x to 6.x. RedHat says "[Red Hat does not support in-place upgrades between any major versions of Red Hat Enterprise Linux](http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/sn-upgrading-system-x86.html)".
Comment: @StefanLasiewski How bad is that! Says a proud user of Debian (and derivates) where these impediments don't exist.

OpenSSL 0.9.8k or higher on CentOS 5?


Blocking HTTPS web sites on LAN

Question: How can I block HTTPS web sites (e.g. Facebook) in our Local Area Network without using a firewall?
Comment: Use a proxy with https interception (ie squid w/ sslbump), push your interception cert to the clients via group policy and set their browsers to use the new proxy.
Comment: Do you want to block *all* https (bad idea!) or only specific websites which use https?
Comment: This seems like an X Y problem. Maybe if you tell us what you are trying to accomplish we can help you. http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem
Comment: What are you trying to do? Do you want to force HTTP to make packet inspection easier?
Answer: Facebook can be blocked in many ways:

On proxy like squid / sslbump mentioned
On Firewall and DNS

Facebook is using it's own netwo

rk ranges and there's more than just Facebook, but all is social essentially like Instagram.
See this post on how to find out Facebook IP address
You need also to think what to do with "requests to Facebook". You can setup a zone on your local DNS server "facebook.com" and direct all traffic to dummy server with no webserver on it, so it returns "connection refused". This is because when you block on the firewall, this might block web browsers. You need to setup all "top-level" facebook domains like "*.facebook.com, *.fbcdn.net" and so on. You can also make DNS to not respond anything at all.
See the list of Facebook domains:
https://github.com/jmdugan/blocklists/blob/master/corporations/facebook/all
Instead of the DNS, you can make firewall not slowing down browsers by sending "connection refused" response by itself. This can be done by doing redirection to local port or to dummy server with no port open.
Here's some example but that's not for router, it's for stand-alone host, but it shows that to block website without slowing-down browser you need to tell the browser that the port is closed using TCP/IP and not just ICMP.
This can be done by redirecting outgoing port to local port:
<code>[root@localhost ~]# telnet 18.104.22.168 443
Trying 184.108.40.206...
Connected to 184.108.40.206.
Escape character is '^]'.
^]
telnet> q
Connection closed.
[root@localhost ~]# iptables -t nat -A OUTPUT -d 22.214.171.124 -p tcp --dport 443 -j DNAT --to-destination 127.0.0.1:777
[root@localhost ~]# telnet 184.108.40.206 443
Trying 188.8.131.52...
telnet: connect to address 188.8.131.52: Connection refused
</code>
This is very reliable way of doing it. Some firewalls may be able to block the port in such a way that the redirection is not needed.
So you can use both Firewall and DNS (or just the Firewall), or you can use the proxy option.
Going  with the proxy option is good when you have it already in place. This is big change for the company and it might introduce issues with privacy, for example, someone might break into the proxy and sniff all the traffic to the cloud like Gmail and Office365 as it's re-encrypted there.
Blocking Facebook usually doesn't provide positive results as many people do need it for work of all sorts, so such decision is usually shortly over-turned.

Blocking HTTPS web sites on LAN


Getting a custom block image field URL in the block Twig template

Question: I have a custom block containing a text field and an image field. I would like to render the block so that the image's URL can be defined as a data attribute of the block's wrapper div so that it can be used by a javascript function to create a parallax background effect behind the text field.
If I make a template file block.parallax.html.twig, I am able to render the image HTML.
{{ content.field_parallax_image.0 }}

However If I try to get the actual image URL, nothing is returned
{{ content.field_parallax_image.0['#url'] }}

If I dump the #item keys
{{ dump(content.field_parallax_image.0['#item']|keys) }}

I am able to get target_id, alt, title, width and height values, but I can't find the URL defined anywhere.
I have also tried to see if I could find anything useful in the block preprocess function but the field_parallax_image #url field in the variables is also empty
function mytheme_preprocess_block(&$variables) {
    if( isset($variables['content']['body']['#bundle']) && $variables['content']['body']['#bundle'] == 'parallax'){
        $variables['img_url'] = $variables['elements']['content']['field_parallax_image'][0]['#url'];
    }
}

Is there a way I can get this URL?
Answer: #url at this stage is not processed yet. This happens later in the image templates.
To get the url in the block template you can access the uri field in the image file entity instead:
{{ file_url(content.field_parallax_image.0['#item'].entity.uri.value) }}

BTW you didn't find this property in the dump output, because it is a computed value to make it easier to handle entity references.
Comment: This just outputs the root URL of the site, I think this is to do with file_url(). If I try just {{ content.field_parallax_image.0.entity.uri.value }}, nothing is output.
Comment: I missed the ['#item'], I edit the answer
Comment: Thanks, 4K4! This rescued me after a long, fruitless session of trial-and-error. Question is, in what documentation does one look to figure out this kind of thing?


Can you use Ingress equipment at a lower level?

Question: When I was Level 2, I had acquired quite a few Level 3 bursters and things. I would have liked to have used them, even if they'd been treated as only Level 2 items. Is there a way to do that?
Comment: Resonators are the main ingredient of the "and things" part of this question. So it's not just about fighting.
Comment: While you are not level 5 or 6, don't try to fight. Just hack, build, link, field. Your task now is to get lvl8 as soon as possible. It could be done in couple of days, if you are living in big city.
Answer: The answer is rather short: No -- unless you regard recycling them for their XM as "using".
Comment: For Power Cube, it is the case. For bursters and resonators, just keep them, there will be useful when levelling up.
Comment: You don't get higher-level cubes when hacking, so the question doesn't apply to them.
Comment: @MatthiasUrlichs you can pick them up from the ground if someone drops them, even at level 1.
Comment: @simbabque can those higher-level cubes then be recycled for full value?
Comment: @mm yes that is possible it seems. At level 3 you can recycle a pc6 for 6000, but you only have an XM pool of 5000 available.


What is the gender of Chrona of Soul Eater?

Question: Well, I picked this manga when I saw that its publication ended, but after few chapters I noticed that Chrona gender changed! (No, not the litteral) So, is this intended of the author, or I just missed some translator note somewhere?
Comment: I know certain translators had notes or note pages at the end of their chapter stating they're only going to refer to Chrona in a specific pronoun since there was no foreseeable sign of knowing. Others simply stuck with "it."
Answer: Chrona's gender was never revealed in the Japanese Soul Eater manga. There is evidence for both genders but not enough for either to make any conclusive statement. The creator has been asked what Chrona's gender is, but never answered.
In Japanese, this isn't hard to do. Most pronouns aren't gender-specific. While Chrona does use boku (僕) to refer to him/herself, which is a fairly masculine pronoun, it is sometimes used by females as well. However, in English (and many other languages), it's awkward to try to avoid using any gender-specific pronouns. The various different versions of Soul Eater in English use different pronouns, but all of these were added by translators and not present in the original version.
The official Japanese Soul Eater site confirms that this is not known:

性別は不詳。

which literally translates to "Gender is unknown".
Comment: @Braiam I don't see what you consider a spoiler in the above. It certainly doesn't reveal any future plot points from the story. In any case, you may want to read our [policy on spoilers](http://meta.anime.stackexchange.com/questions/46/what-should-our-policy-be-regarding-spoilers).
Comment: @Braiam its not a spoiler, crona's gender holds no specific plot points (maybe some jokes will be less funny) but dont see it as a spoiler
Answer: In the anime Crona is exclusively referred to as a "he."  However, in the manga "his" gender is purposefully kept unsaid.
Comment: Could you state if this is from the original Japanese, official English-translated (if exists), or fansub/scanlation?


I have voltage on my neutral wire for a 220 volt ac inverter and blew up some of my house appliances

Question: Why does my white neutral conductor has voltage on it? Is a 220 VAC from a DC to AC Inverter circuit supply. The outlet is like a normal American 110 VAC socket but I requested it to be made as a 220 VAC. I tested the black hot conductor and the red hot conductor and both made a 240 VAC and that was ok, That is what I ordered. I was spec ting that to feed my electrical main 220 VAc Breaker Box with those 2 poles 120 VAC each. The problem came when I tested the white neutral conductor and the black hot conductor that should gave me only 120 VAC but it didn't; instead gave me a lecture of 240 VAC also. Weird. Finally I tested the white neutral conductor to the Red hot wire that should gave me again another 120 VAC but instead gave me crazy 80 VAC. I was scratching my head WTF. When I made the connection anyway to see it blew up most of my electrical light bulbs and some appliances. I was really mad. The DC input voltage was fine above the lowest operational voltage and below the highest operational voltage as per manual, but the AC output was wacky. It is brand new 48 VAC Pure Sine Wave Inverter and I need it to supply my house and there is no warranty. An electrician told me that probably the neutral wire is connected somehow to a hot wire inside the inverter or is not connected at all and could be a factory faulty inner connection and not a misunderstood installation made wrong by me. Please help me. Any comments of useful testing of troubleshoot fixing solutions will be thankfully appreciated. Bless you.
Comment: @GeorgeSantiago - what is the exact model name and manufacturer? Are you sure it's a split-phase inverter that can provide separate 110V circuits to Neutral and not just a straight 220VAC inverter?
Comment: Correction is a 48 VDC input 1500watts Pure Sine Wave Inverter to 220VAC out put.
Comment: Hey George, it's best to just edit your question to include this information.
Comment: Did you connect the ground pin to the neutral of the Inverter, or to the Ground of the Inverter. Yes it matters.
Comment: Why would you connect it to your home electrical system when you already measured unexpected voltages from it? Sounds like you need to bring in an electrician to do an on-site evaluation and you should stop experimenting with your home's electrical system. If you want to put some load across it for testing, a light bulb of small appliance like a toaster would be much better than blindly hooking it up to your home and hoping that everything works out.
Answer: It sounds like this is a custom-made piece of electronics, so I would contact the manufacturer to find out how you're supposed to use it. It may be defective or maybe there is a misunderstanding of how it is supposed to function.
As a side note, I think it's dangerous to have a US-style 110V outlet wired with 220V... that's just asking for an injury or fire when someone plugs something into it. There are standard receptacle shapes for 220V (such as those used by generators, clothes driers, etc.). Also, the outlet itself and anything you plug into it is probably not rated for the higher voltage, even if you know what you're doing.
Answer: I know this is an oldie, but this sounds like a classic "lost neutral" situation.  What you have when the neutral wire comes loose in a service panel or on an MWBC.  Or in this case, perhaps a neutral that never existed in the first place.
I have a feeling your inverter isn't designed to supply 240-120 split phase with a neutral... you just took 2 wires with 240v across them and tied them to the two "hot" rails of the service panel. That would create a lost neutral situation.
Connecting the neutral to the inverter's safety ground would do nothing. Neutral is not ground, and doing that doesn't make the inverter into a split-phase inverter.  In fact it could be dangerous - if the ground is hooked to anything, it'll be to what the inverter thinks of as neutral: one leg of the 240v.  (That's the European style.)
There are several ways to solve that, such as buying an inverter that actually supplies neutral also, or several arrangements using transformers to force balance.  The most straightforward is a transformer that takes 240-or-480 on its primary and gives 240-120 split phase on its secondary.  I see used 5 KVA units around all the time.


If someone uses the Command spell and says "drop", what happens?

Question: If someone uses the spell command and says "drop", would you drop your backpack as well and all its contents, or just what's in your hands?
Comment: Are they holding the backpack in their hands or wearing it?
Answer: The spell is usually left up to the GM but "drop" has a specific effect
Much of the spell is left up to the GM's interpretation:

You might issue a command other than one described here. If you do so, the GM determines how the target behaves.

That said, the "Drop" command in particular is an example the spell provides:

Drop: The target drops whatever it is holding and then ends its turn.

So for this example a target would simply drop what it is holding and using the standard English meaning the target would not drop things it is carrying such as a backpack, let alone pour out all of its contents.
Comment: Yeah if you stretch the meaning of holding so far it includes worn backpacks it should logically include things like clothing as well. Now of course if they are currently holding their backpack in their hands, say after picking it up, that's a different story.
Answer: If the target fails its Wisdom saving throw, then during its next turn the target will drop any and all objects or creatures "it is holding", and then end its turn.

Drop: The target drops whatever it is holding and then ends its turn.

In D&D 5e, appendages like hands and sometimes tails or pseudopods, are used to "hold" an object. (Presumably a creature could also hold an object in its mouth.)
There do not appear to be any published instances of "holding" an object by wearing it, therefor there is no reason to believe the intent is for worn items to be dropped: Worn items are not "dropped" unless they are being "held" in place. (If it said "drops whatever it is carrying", this would be another matter.)
Notably, the spell makes no mention when a target must follow the Drop command, during its next turn:
Conceivably, the creature could go about its turn normally, then drop any items it is holding & then end its turn; then pick up those items as a free object interaction, the turn after that.
(Contrast this with the "Flee" command, which causes a creature to "spend its turn moving away from you by the fastest available means", implying that no actions may be taken except those which result in ending the turn farther from you.)
Comment: So, you would interpret "The target spends its turn moving away from you by the fastest available means." as still allowing any/all actions the target desire, so long as they don't cause it to end less distant from you? I think the phrase "spends its turn" *implies* 'uses its whole turn', but *that could be ambiguous too!* Almost moreso than whether it prevents *other* actions, it's concerning that "the fastest available means" could cause the target to cast spells or use movement feats, to get extra distance...
Comment: This has been downvoted, but I'm not sure why: Disagreement that "on" is ambiguous, as compared to "at the start of"? Is there a ruling that all Command effects are initiated at the start of the target's next turn? Because any action taken during a turn, could reasonably be said to be taken *on* that turn. I'm not sure how to improve my answer: Any given GM might feel that "on" is intended to mean "at the start of", but I've actually had a GM rule that it did not, & I must concede that the phrasing *does not* enforce "at the start of"...
Comment: I disagree with this line: "no actions may be taken except those which result in ending the turn farther from you." This would prevent even the Attack action, since it doesn't move you away, while Dashing or casting *misty step* (wasting a spell slot) would. I would have assumed the spell only compelled movement and not actions, bonus actions, reactions, expensive resources, and everything else as well.
Comment: I have usually ruled that it just forces movement expenditure, similar to *dissonant whispers*. I don't think *command* would be immensely more powerful than DW when they're both 1st level spells and *command* already has immense versatility built into it. I also think a 1st-level spell potentially causing daily or high-level resource expenditure is just not how the rules would be interpreted. "Flee" could certainly get its own new question, I just find your interpretation extremely strong for an already massively versatile 1st-level spell
Comment: I agree that any resource expenditure from "moving away from you by the fastest available means" feels very overpowered for a 1st Lvl spell. A reasonable interpretation of "spends its turn" would seem to imply *using up the whole turn*, but mechanically that is overpowered. In fact, "Halt" is the only Command which explicitly precludes taking Actions during that turn. All the other listed commands are interpretable as allowing a full turn, then obeying the Command last... still following the command "on" that turn; just at the end of it! "At the start" is usually specified, when that's meant.


Can iPhoto create a board book?

Question: I'm looking to make a board book for my 2 year old son.  I don't see any obvious settings in iPhoto that lets me choose the paper thickness.  It is pretty important to me because my son loves to tear "normal" books apart and so far his board books have held up.
Answer: iPhoto doesn't provide this functionality.
There are two things you could do at this point:

Submit feedback to Apple on iPhoto here. Please note that it might take a while for them to implement your feature, and they don't respond to comments.
Use an alternative 'board book maker'. After a quick web search, I found this website (pintsizeproductions.com). I'm sure you'll be able to find some more with a similar search.

Can iPhoto create a board book?


What role do the police have rather than the CPS in "charging" criminals?

Question: What is the difference for that matter between "charging" and "prosecuting"?
Comment: It might be worth making explicit in the question that you're asking about the Crown Prosecution Service, rather than Child Protection Services...
Answer: The charging guide, which is applicable to prosecutors and police, outlines the division of charging responsibility between police and the Crown Prosecution Service:

The police may charge:

Any summary only offence, irrespective of plea;
Any offence of retail theft (shoplifting) or attempted retail theft, irrespective of plea, provided it is suitable for sentence in the magistrates' court; and
Any either way offence anticipated as a guilty plea and suitable for sentence in magistrates' court;

Provided that this is not:

a case requiring the consent to prosecute of the DPP or Law Officer;
a case involving a death;
connected with terrorist activity or official secrets;
classified as Hate Crime or Domestic Abuse under CPS Policies;
a case of harassment or stalking;
an offence of Violent Disorder or Affray;
causing Grievous Bodily Harm or Wounding, or Actual Bodily Harm;
a Sexual Offences Act offence committed by or upon a person under 18;
an offence under the Licensing Act 2003.

Prosecutors make charging decisions in all cases not allocated to police.
The substantive charging test applies to both police and prosecutors:

Prosecutors and police decision makers must be familiar with the full terms of both the evidential and public interest stages of the Full Code Test as set out in the Code.

A prosecution will usually take place unless the prosecutor, or where appropriate the police decision maker, is satisfied that there are public interest factors tending against prosecution which outweigh those in favour.
Comment: How can a defendant's plea be anticipated in any way?
Comment: If the police have a higher rate of correctly predicting a plea then why do they take charging advice from CPS?


Died and lost my jewel, can I get another one?

Question: I had a jewel than I died and lost it now I can not find it anywhere.
I need it so I can give it to the frog guy.
Is there a way to get one more jewel?
I have been everywhere regarding the map.
Answer: I found a jewel in a trap very early in the game (Before I even had my compass). This leads me to believe you could find more in a similar way.
Answer: there are more than one jewels, you'll just have to wait until you either find one or get one in your traps.
Answer: Just got jewels today. Once you go everywhere on the map (except the swamp/cabin place that needs the jewel) the story, which is obtained by carting wood, will lead you to get 5 jewels for free. If you lost all 5 of those, your'e probably in bad shape, but if you didn't get the 5 jewels, make sure everything on the map is even a safe place (P) or a mine (I, C, S) Then the story should continue to the jewels.


Is there a way to turn on the air conditioning only on certain days?

Question: We're looking for a way to turn on the air conditioning at our camp, say on a Thursday night, so that it will be cool when we arrive on Friday evening, but to shut it off if we don't go to the camp that weekend.  Can you set a programmable thermostat to turn the unit on for a certain period of time and then automatically turn it off?
Comment: Does the camp have internet access?
Answer: If the camp has internet access, you may want to look into a WIFI-controlled thermostat. Most allow you to remotely monitor and control the temperature through a mobile phone app or with a laptop web interface. This will allow you to have the most versatile control over your temperature settings. The only other piece of equipment you'll need to make this work is a compatible wireless router - you won't need to install an entire home automation system.
Otherwise, you need a true 7-day programmable thermostat. Check the specifications on the package, because each one will have different capabilities. The one I have allows for four different temperature settings per day, for all 7 days of the week individually. You may not need something with that high of a resolution, and can get by with a single set temperature for each day of the week. The general rule will be the less features a thermostat has, the lower the price.
There are also thermostat models labeled as 5-1-1 and 5-2, which allow separate temperature settings for Saturdays and Sundays. Note that a 5-2 will only allow a single setting for the weekends. As Chris mentions, you could fudge the week day settings and get by with one of these.
Answer: Depending on your location, it would likely be more economical to open the house up and circulate air with fans to bring down the trapped heat and then turn on the AC.  It won't be cool when you arrive, but it will become tolerable very quickly.
If air conditioning is required, and you have some sort of network connectivity, I'd look into home automation.  Call your cottage before you leave, turn on the AC, and have it cool when you arrive.
If your only option is a programmable thermostat, then you can use one, but it's the least desirable option.  However, not all thermostats will give you the option of doing it on a Thursday.  Many recognize M-F, S, S as the programmable days.
So set the date on the thermostat so that the thermo Saturday = real Thursday.
Set the temperature, say 75 degrees F/ 24 deg C, to come on. Do the same for Sunday (Friday)  Set all other zones to as high as it goes.
When you arrive on Friday night, manually set the temperature to the desired level for the rest of your trip, returning to programmed levels when you leave.
Comment: @Tester101 is right. A thermostat that only does weekends differently is usually referred to as a 5-2 or a 5-1-1 day programmable thermostat. Mine is a true 7 day, and I can program four different temperature time periods per 24 hour cycle for each individual day of the week. There are also quite a few WIFI thermostats out there that allow you to turn it on and off with a phone app or laptop.
Comment: A 7-day programmable thermostat *should* allow for separate programs for each day, just make sure it's actually a 7-day unit before you purchase it. However, this option is only useful if you want the A/C on **every** weekend. Otherwise, some form of automation is the only option.


Do I need high end body to use telephoto lens?

Question: I own a Canon 550d and wanted to buy telephoto zoom lens is it essential to buy high end body like 7d or 5d mark iii?
Comment: I'm curious what would make you ask this. I feel like there's more to the question than what you've written.
Comment: No. (1) If it fits your camera mount, you can use it. (2) People usually use cheap lens with cheap body, expensive lens with expensive body. You don't have to follow them. (3) Like everything, a tele lens can be cheap (low end) or expensive (high end). (4) Lastly, choose whatever you like and can afford, happy shooting.
Answer: No. All EF and EF-S lenses work on your camera. As a matter of fact, you get more reach with a cropped-sensor like yours or that of the 7D than you would with a full-frame model like a 5D Mark III.
So if you are looking for to get a long reach, you will save money, size and weight by staying with a cropped-sensor body. For example, a 200mm lens on yours gives the same field of view as a 320mm on a full-frame.
Comment: I'm not convinced that the "more reach" argument is a good one to say to folks like @ssk. A lens doesn't know what body its mounted on. Sure, on a crop body, the image will fill more of the frame, but that's because its pre-cropped.
Comment: On the contrary it, IMO. Sensor size is a detail relative to the whole system. It is what you see that counts. A 100mm on an ultra-zoom gives the same field-of-view as a 560mm lens, how else would you say that?
Comment: Will the 550D really resolve more detail than a crop from a 5D Mk iii?
Comment: At ISO 100, most likely. Up to 400, probably. Above that, not sure, there will be a point when the reverse becomes true. It is difficult to make an absolute call for every setting!
Comment: By the way, the lens makes most of the difference in the image quality, so in this case, the body won't matter as much.
Answer: No, absolutely not. A telephoto lens will work just fine with your existing camera.
Just as there are high-end and lower-model camera bodies, there are different levels of lens as well, and this is particularly true for large focal length (commonly called "telephoto") lenses. If you spend $10,000 on a lens (easily done!), you probably want a top-level body to go with it. But you can also get an entry-level telephoto zoom for under $200 (like this one).
Answer: No, not at all. Although a heavy, well-built pro body will balance a heavy telephoto lens better than an entry-level body, and obviously the IQ will be better on the pro-body compared to the entry-level body.
Answer: No, not at all, as others have said.
Now, so we can be more helpful, what do you want to shoot? And have you looked at any lenses already?
For instance, I just spent $80 on craigslist and got a 75-300 F4-5.6 zoom. Its not a great lens, but it works fine in bright light. And it was cheap.


Port 2105 Open on Network

Question: After a long time of worrying about my network being secure and finally understanding the basic job of the ports I would see open. I recently noticed port 2103 Zephyr-clt and port 2105 eklogin open on my daughters computer. I asked her if she was "Instant Messaging" as that seemed like what the ports were for, but she said no. It was near midnight but I did not think she would fib about it? She did just add a printer that day. Can anyone tell me why these would suddenly appear open?
Comment: When you say it seemed like the ports were used for "Instant Messaging", did you infer this from research in to what the ports were used for?
Comment: Yes Sam, That's what it looked like from researching ........
Comment: Yes Sam3000, that is what it looked like after researching it........
Comment: You're very welcome, if you're able to vote on my answer or mark it as the answer at any point too that would be much appreciated!
Answer: The most common use for those ports is Microsoft Message Queuing or MSMQ, described below. At first sight it may appear to be for instant messaging, but is in fact a more fundamental component of some programs that communicate within local networks - such as printers, although I cannot be certain that this is the reason the port is open in your case.
In simple terms, it acts as a digital notice board - you pin a message to it and it remains there until the recipient removes it - the important point being that the recipient does not have to be present and waiting for the message when it is sent. In digital terms, this is similar to sending a document to a printer when it is offline - using MSMQ the message to print the document would wait until the printer is online, instead of scrapping the message.
N.B This is means the printer could be the reason, but there may also be other causes. Either way, it is a low security risk issue, as I understand that is a primary concern. Assuming you have a router between you computers and the internet (and Antivirus programs), system firewalls are almost not needed these days.

What is MSMQ?
From Microsoft:
Microsoft Message Queuing (MSMQ) technology enables applications running at different times to communicate across heterogeneous networks and systems that may be temporarily offline. MSMQ provides guaranteed message delivery, efficient routing, security, and priority-based messaging. It can be used to implement solutions for both asynchronous and synchronous messaging scenarios.
Answer: After a fresh install of a Windows system appliance from a system image of a globally used high-security product, I run nmap and below are the results:
root@kix:~# nmap -sT 192.168.10.2
Starting Nmap 7.70 ( https://nmap.org ) at 2018-12-21 19:37 +08
Nmap scan report for 192.168.10.2
Host is up (0.0012s latency).
Not shown: 995 filtered ports
PORT      STATE SERVICE
1801/tcp  open  msmq
2103/tcp  open  zephyr-clt
2105/tcp  open  eklogin
2107/tcp  open  msmq-mgmt
49155/tcp open  unknown

This is fresh install from the appliance's image. So it seems, the above listening TCP ports are Windows basic subsystem components.
Answer: I found this port open on my laptop(running Win10) and pretty sure it first appeared after I installed ICQ Instant Messenger. Hope this helps. :)
I should note that you don't have to be actively using the Messenger. Just having the program open and running in the background(this is how these programs are able to accept messages sent to you at any time) is what creates the open port. Just saying this in relation to you asking your daughter if she had been instant messaging at that time.  Which in fact she probably wasn't.

Port 2105 Open on Network


Is given-when-then a standard for how acceptance criteria should be worded?

Question: I am having trouble understanding whether it is considered a best practice to write acceptance criteria in the Cucumber-style given/when/then format, or if there are some scenarios in which this is counterproductive. Let's say my acceptance criteria are that the application should have the same look and feel across multiple devices with different screens, and that it should be mobile-responsive. Should I reword it somehow to fit the given/when/then format?
Answer: Requiring a specific structure for acceptance criteria is often wasteful, so I encourage teams to understand different structures for capturing their units of work, their acceptance criteria, and their definitions of done. Although the given-when-then structure could help a team to make sure that the acceptance criteria are clear and precise enough to act upon, there are edge cases (and you have found one) where trying to force the structure could be more difficult and end up in a loss of clarity. Making sure that the acceptance criteria are easy to read and understand is far more important than sticking to a structure.
In your specific example, conforming to a user experience standard or a design system is a clear need. Responsive design is a well-understood concept. I'm not sure how you could format it in the given-when-then structure without adding verbosity and making it harder to understand what it means for the work to be done and acceptable. However, this could be a good conversation with the team, such as at a retrospective. Present the acceptance criteria in different formats and capture it in a way that helps the team understand what they need to deliver.
Answer: TL;DR
Your underlying issue is not a question of format or style. The real issue is that hand-wavy criteria like:

should have the same look and feel across multiple devices

should be mobile-responsive

are insufficiently descriptive to guide technical implementation plans and too vague to be testable during development. If you don't clearly communicate your validation criteria before the development team starts planning the work, you haven't defined non-subjective acceptance criteria in a way that lends itself to successful feature delivery regardless of whether your framework is agile or not.
This will eventually create problems for the project, especially agile projects that don't rely on exquisitely detailed (but frequently out-of-date as soon as they are written) specification documents. Big, broad, and untestable criteria don't lend themselves to core agile principles like test-first design, small increments of iterative work, or ongoing collaboration and expectation management with stakeholders. By making your expectations more explicit, granular, and testable, you will avoid many of these problems regardless of whether you use Gherkin-style syntax or something else.
Gherkin Syntax is Fine, But Your Acceptance Criteria Need Refinement

[M]y acceptance criteria are that the application should have the same look and feel across multiple devices with different screens and that it should be mobile-responsive. Should I reword it somehow to fit the given/when/then format?

The format you describe is from the Gherkin syntax used by Cucumber to define system behavior or acceptance criteria in something close to natural language, using business terms and a product glossary that fits a specific knowledge domain, company, or product. It is not the only way to define acceptance criteria, but can be a good one especially when coupled with an agile Definition of Done that leads to test-first design and executable tests.
However, your problem here is not about whether Gherkin syntax or Cucumber is suitable for driving your acceptance tests. Your real issue is that, unless they are already clearly defined elsewhere by your project, your "acceptance criteria" aren't properly decomposed or well-defined.
You should decompose the acceptance criteria in whatever format you choose into individual statements using terms and definitions that have been clearly defined for your project. Consider the following worked example.
A Worked Example
In order for acceptance criteria to support test-first design and development, and to fit the Gherkin syntax in a way that can be turned into testable steps, you need to decompose them. Consider the following examples of testable acceptance criteria:
Feature: Consistent Cross-Platform User Interface Elements
  Different platforms such as iPhone, iPad, and desktop versions
  of each application should provide a consistent experience with
  a similar look-and-feel, where each platform contains similar
  widgets, color schemes, and interactive element placement even
  when implemented using responsive design.

  # In Gherkin, the Background keyword is basically common setup
  # for each scenario, rule, or outline for the feature. You may
  # not need this in many cases.
  Background:
    Given the "standard user interface" for each "target system",
    When the "application is viewed" on each platform
    Then the user interface should "contain similar elements" across platforms.

    Scenario Outline: standard widget images
      Given the application is installed on <platform>,
      When the <widget> is displayed
      Then it should use a <correctly-sized> <image> for the button.

      Examples:
        | platform | widget | image     | correctly-sized |
        |      iOS |  login | login.png |         200x200 |
        |   iPadOS |  login | login.png |         800x800 |
        |    macOS |  login | login.png |       1280x1280 |

Feature: Responsive Design Using Dynamic Image Resizing
      The application should match the sample image in some
      predefined way regardless of screen size or native
      screen resolution.

      Example: iOS
        Given an "iPhone 12 screen"
        When the application is viewed at "standard resolution"
        Then screen capture should "match the default"

      Example: iPadOS 12
        Given an "iPad 12 screen"
        When the application is viewed at "standard resolution"
        Then screen capture should "match the default"

      Example: macOS Big Sur with 24-inch monitor
        Given "macOS Big Sur"
        And a "24 inch Retina monitor"
        When the application is viewed at "standard resolution"
        Then screen capture should "match the default"

      Example: macOS Big Sur with 27-inch iMac monitor
        Given "macOS Big Sur"
        And a "27 inch iMac monitor"
        When the application is viewed at "standard resolution"
        Then screen capture should "match the default"

You can break these down further if desired, but the point is that you are giving each individual element of your acceptance criteria some testable Definition of Done that can be executed in pass/fail steps. For project management purposes, we don't care what those steps are; that's an implementation detail for engineering. Our goal is simply to communicate those things in a way that is granular, and where the results can be unambiguously defined, such as whether images or HTML markup match expectations within an acceptable range of variance based on the target platform or resolution.
Starting with Gherkin 6, you can also specify business rules using the relatively new Rule keyword. This is really not that much different than regular Gherkin, but allows you to say things like:
Feature: application supports responsive design
  The application dynamically adjusts to changes
  in screen resolution or window sizing.

  Rule: The login button is always centered.
    Scenario Outline: login button is centered
      Screen resolution is measured in pixels, and
      the button's center is the X/Y coordinates on
      screen where the middle of the button is
      regardless of the button's size.

      Given a <screen resolution>,
      When the <button> is displayed on screen
      Then the button should be <centered>.

      | screen resolution | button | centered  |
      |         2388x1668 |  login |  1194x834 |
      |         5120x2880 |  login | 5650x1194 |
      |         2340x1080 |  login |  1170x540 |

  Rule: The cancel button is always below the login button.
    The point here was to show you can have more than one
    business rule. The details don't matter from a project
    management perspective, so I didn't spend time making
    anything up.

Why Decomposition Matters
While the examples above may or may not be what you really need for your specific project, they illustrate a level of granularity and self-explanatory business domain logic that lends itself to an agile test-first approach with a potentially-executable pass/fail test for key elements of your acceptance criteria. Whether or not these particular examples fit your product isn't the point; rather, the point is that without this level of testability you are essentially:

Setting the project up for post facto retcons of what the expectations really were, and thus baking opportunities for bugs, heavy refactorings, or redesign into your work up front.
Forcing the development team and test writers into working more closely with whoever is going to be performing the acceptance criteria, since "same look and feel" and "mobile-responsive" are too vague to guide the implementation details.
Leaving the question of How will the developers know they've met the minimum expectation? unanswered until after the fact. This will create frustration, delays, and morale problems for everyone involved.

Whether or not people decide later that they don't like the implementation, or whether they want additional changes or refinements (which is expected in agile development) is irrelevant. The point is simply to create a working agreement for the current iteration so that the work can be done incrementally, iteratively, and in full collaboration with both the project team and its stakeholders.
Answer: Common sense is the best! however, personally, I find checklist pretty helpful... help people to write short acceptance criteria and it helps keeping the testing progress.
Another trick is to ask yourself, what do I want to get from this task? the list of things you want to get is the acceptance criteria.
Comment: Common sense does not exist.
Answer: I think your example in your OP shows why facilitating tools, such as this, are used. It is not that a requirement should be written this way; it is the way to help write the requirement. When you have a team of various ranks, with various levels of experience and knowledge, that has strategic and tactical thinkers, that may have disrupters among them, and that contains different job functions, the results of your output are very likely to be mediocre. If a facilitating tool such as this helps, then the answer is: use it.
Answer: as a high level objective "the application should have the same look and feel across multiple devices with different screens" is fine but not helpful when it comes to actually doing the work.
Regardless of how your stories are written, you need to be explicitly about the look and the feel. This could be done via wireframes or screenshots.
You should also be explicit about the list of supported devices, screen sizes, resolution and versions. Does it include phones, tablets, PDAs, mainframes ? Which browsers and which versions are supported? What happens when bandwidth is restricted, does it work in offline mode? What happens when JavaScript is disabled or not available ?
Answering these questions upfront not only helps the developers but also sets expectations with the customer.


How to use Wireless Network in Virtualbox?

Question: I'm trying to enable Wireless on VirtualBox in my Ubuntu 14.04. I use a Kali Linux as the guest OS, but this OS not show the wi-fi when I connect it.

After starting the guest OS, it still does not show the wi-fi

I already tried the suggestions from this link and this link, but my virtualbox does not enable my wireless.
Comment: You won't be able to. It's an unsupported feature.
Check [this](http://unix.stackexchange.com/questions/134999/wireless-connection-not-figuring-in-vmware-workstation-10kali-linux) thread.
Comment: This works perfectly for me [YouTube: Connect USB Wireless Adapter to Kali Linux in Virtualbox](https://www.youtube.com/watch?v=K1ETBeRQBs4)
Answer: Instead of using an USB filter, just connect the wireless network on the host operating system, and define a bridged or NAT connection in the VM configuration.

On the image referenced in the comments, you have both a bridged adapter to wlan1 and an USB filter.
According to the VirtualBox manual, section 3.10: "VirtualBox can allow virtual machines to access the USB devices on your host directly. To achieve this, VirtualBox presents the guest operating system with a virtual USB controller. As soon as the guest system starts using a USB device, it will appear as unavailable on the host.".
So, if the USB filter is pointing to the WLAN adapter, it will disappear from the host OS when you boot the VM, also disabling the bridged adapter. In that case, remove the USB filter from the configuration.
Comment: Do not work if I make what did you say. See the pic http://oi60.tinypic.com/raokcn.jpg And my notebook brake. I already make this before, but do not fix it.
Comment: Sorry but I already tried what you said here http://uploaddeimagens.com.br/imagens/captura_de_tela_de_2014-07-28_22_18_07-png I disable USB and use just bridged adapter to wlan1, but not appear wireless connection in my debian or Kali see here http://uploaddeimagens.com.br/imagens/captura_de_tela_de_2014-07-28_22_33_17-png


Simulacrum and trample

Question: If I cast Simulacrum to retroactively apply damage done to me to a creature I control, but the attacking creatures have trample, does the excess damage get applied to me a second time?
Answer: No, trample does not interact with Simulacrum at all.
First off, make sure you are reading the Oracle wording of the card; that's the actual wording that applies.

You gain life equal to the damage dealt to you this turn. Simulacrum deals damage to target creature you control equal to the damage dealt to you this turn.

The amount of damage that Simulacrum deals is equal to however much damage you have taken this turn, and that damage is dealt entirely to a single creature you control. Furthermore, it is not combat damage, and trample does not interact in any way with non-combat damage.
Trample only changes how an attacker is allowed to assign combat damage, it allows them to assign less than the total amount to the blocking creature(s) and the rest to the defending player. But it doesn't change the way damage itself is dealt.
Answer: With the current Oracle reading, the answer is clearly "no".

You gain life equal to the damage dealt to you this turn. Simulacrum deals damage to target creature you control equal to the damage dealt to you this turn.

It is Simulacrum that is the source of the damage, not the attacking creature. Simulacrum isn't an attacking creature, it's not assigning combat damage, and it doesn't have trample.
With the original wording, it's not as clear, but if you look at how Trample works, it still wouldn't apply. Trample affects how damage is assigned; Trample means that once the controller of an attacking creature has assigned lethal damage to the blocking creature(s), they can assign the remainder to the defending player. It does not mean that if a blocking creature receives more than lethal damage, the excess is applied to the defending player.
For instance, suppose an Abyssal Persecutor (6/6, trample) is blocked by an Alpine Grizzly (4/2). If the attacking player says "Your Alpine Grizzly takes 6 damage", the defending player can say "Okay", and their life total doesn't change; by saying "Your Alpine Grizzly takes 6 damage", the attacking player was assigning all 6 damage to the Alpine Grizzly, leaving none for the defending player. If the attacking player wants to take advantage of Trample, they have to assign 2 damage to Alpine Grizzly and assign 4 to the defending player. Once 6 damage is assigned to Alpine Grizzly, that damage stays on Alpine Grizzly, even though it came from a source with Trample. So if you're that situation as the attacker, if your opponent wants to be really nitpicky they can require you to explicitly state that you're assigning 2 damage to their Alpine Grizzly if you want to assign them any Trample damage.
So in the above hypothetical, if Abysmal Persecutor originally dealt 2 damage to your Alpine Grizzly and 4 damage to you, and then you cast Simulacrum, then even with the original wording, if we interpreted it as saying that the other 4 damage is now being done by Abysmal Persecutor to Alpine Grizzly, and even if we treat this damage as still being Trample combat damage being done by an attacker, that damage still doesn't "overflow" to you; as I said, Trample just gives a permission to assign damage a certain way, it has no effect on damage that has already been assigned.

Simulacrum and trample


When should I use a material over a texture?

Question: I'm starting to make models in blender and I created few object which I want to import to my game in Unity. I have very simple graphics(basicaly one colour for each part of the object) and I don't know if I should use either material or texture. I've searched for the anserw but I haven't found anything against using materials. What should I choose? Please note that performance is aleso important for me.
Answer: If your objects will only have solid colors then a material will suffice.  If you want your objects to have some sort of pattern like tiger stripes or a logo then you will want to learn how to use textures.  Large texture files can affect performance, but on today's computers you can have a lot of textures before you will notice performance problems.
Comment: Actualy I'm creating an app for android. So you say that materials are more performance friendly than textures(in case of one color)?
Comment: In general, yes.


How to know from which View the Edit form was invoked

Question: I want the edit form to behave differently on different list views. Therefore I have attached JavaScript to the list edit form. The problem is how can I differentiate from which view it was invoked?
Answer: You could try document.referrer but it isn't failsave when used in combo with MDS
Better is to attach an URL parameter to the Edit buttons in the View


Ubuntu Phone vs Ubuntu for Android

Question: What is the difference between Ubuntu Phone and Ubuntu for Android?
Answer: Ubuntu for Android is Ubuntu Desktop running on Android when you connect your phone to a dock. Ubuntu for phones also replaces Android.
Answer: Ubuntu for Android enables the user to connect his mobile to a Ubuntu powered PC, and have one OS access all your data, files whilst maintaining functionality. I.e., when you connect your phone to the desktop, you'll have Ubuntu running on both the devices, and tasks like making calls, sending messages, they can all be done through the desktop environment. At the same time, all the data that you've stored on your mobile device, can now be accessed by the PC, so if you want to tweak some files, or edit documents etc, you can do it on the desktop environment and the changes will be reflected in real time. There would be no need to sync the device to the desktop and waste time. The same applies for the converse as well, if you create a document or spreadsheet( just examples, could be anything), the phone will automatically, have those documents, so when you're on the move, all the things that you need will always be with you.
Now, when one is talking about the Ubuntu Phone, to a large extent, one is talking about the new Ubuntu Touch OS. Ubuntu Touch should be out next month with the stable release of 13.10, but the beta release is already out and you can check it out if you have a supported device. Ubuntu Touch would eventually be shipped sometime next year by manufacturers and one would be using it on everyday phones, just like it is with Android. In very plain and simple terms, Ubuntu Phone/Touch is a new operating system, developed by Canonical which would soon hit the market.
The major difference between the two is that while Ubuntu for Phone provides a platform for having a common OS on 2 devices when they're connected to each other to facilitate easy sharing of data, the other, Ubuntu Phone is the next big OS to hit the market.

Ubuntu Phone vs Ubuntu for Android


iPhone 5s internal storage is full

Question: When I connect my iPhone to my pc, it shows that the internal storage of the phone is almost full, however when I click the subfolders, there are no photos or videos inside the folders to delete.  How can I delete what I can't find?
Answer: If you are talking about using windows explorer to delete files, that would be of no help. Windows Explorer can ONLY see photos and videos. It treats the phone as a camera and can only see such.
Use iTunes to manage the storage of the device. It will even give you a breakdown of whats using the most on the phone.
Alternatively you can go to Settings -> General -> Usage -> Manage Storage on the phone itself and delete some stuff from there.

iPhone 5s internal storage is full


How to enable Apps in Google Chrome?

Question: I have downloaded Google Chrome from Dev channel and opening chrome with a --enable-apps parameter but still cann't install google apps. Does anybody know how to install Chrome Apps in a chrome?
 I have tried to install this Chrome App which is called Calc Lite. This App has been developed just to see Chrome App in action.
Answer: Applications are a special mode of running a website, not extensions. You can create one by clicking "Create Application Shortcuts" under the page menu (upper right-hand corner). When clicked, these launch the website without an address bar, bookmarks, or tab bar. It's designed to make ajax applications like Gmail, Google Calendar, or Google reader feel more like a desktop application than a website.
Extensions have been enabled for quite some time in chrome, and even the stable version supports them now. The extension in question seems to download and Chrome (6.0.422.0) Prompts to install it, though given no documentation I have not actually installed the extension since I don't know what exactly the code does. If you would like to see extensions in action, I would suggest looking at Google's extension gallery.
You might've stumbled upon an application designed for Chrome OS. I wouldn't be able to say if the Chrome browser will ever support these.
Comment: @Bakhtiyor I blame google for the confusing naming scheme, but it appears you are correct in that there are now stand-alone extensions. These chrome "Applications" are not documented anywhere that I can find, and I'd suspect that they're for the new ChromeOS which should be coming out soon.
Comment: @MrStatic Yes, but the extension is using a new field named "launch" and if you try to install it, Chrome refuses while saying `Apps are not enabled.` This isn't a conventional feature that's been documented.

How to enable Apps in Google Chrome?


Coworker is being punished for medical condition

Question: One of my coworkers has narcolepsy and constantly comes in late every day. I've noticed lately that he's been reprimanded for missing meetings that they schedule early in the morning before he usually gets in. Is there anything I can do about this or is it even wrong?
Comment: Are you sure you mean narcolepsy.  A condition characterized by an extreme tendency to fall asleep whenever in relaxing surroundings.
Comment: Welcome to SO. Would you happen to know the reason what his narcolepsy have anything to do with him coming in late?
Comment: We could provide more helpful answers if you provide more detail about your coworker's situation
Comment: Where are you located? Local laws may affect some of the answers.
Comment: Is HR aware of this guy's condition?  If not, why not?
Comment: Has he been diagnosed by a doctor?
Comment: I agree with @Paparazzi, this doesn't sound like narcolepsy but rather an inability (or unwillingness) to wake up at an appropriate time to allow for getting to work on time. If he has an actual diagnosis, that's a different story - but it sounds to me like he should adjust his sleep schedule, or get to a sleep clinic to find out what's causing him to oversleep in the morning (insomnia, apnea, etc.)
Answer:
Is there anything I can do about this or is it even wrong?

There's nothing you can do about this other than talk to your friend.
Your friend however, should talk with his doctor and his manager and see if there's a way to make this job work, given his condition and his accommodations.
If they can't make it work, your friend should get advice from his doctor as to what he can expect to face regarding his ability to wake up at a regular time. Then your friend should seek employment where that can be accommodated.
Your friend should probably get himself to a support group where he can learn more about how others with his condition deal with it and find suitable employment. Then can also advise him about applicable workplace laws in his locale.
Comment: +1 And I want to point out that all of this advice is for things *your friend* should do, not you. This isn't your problem to fix.
Answer: Go to your colleague and ask them. Bring some helpful information such as what protections your jurisdiction has for people with their condition (see if you can clearly determine that narcolepsy is a disability and show that to them). Tell them you'll support them. Ask them if they'd like you to ask others for support. Determine what can be done to accommodate their condition, like moving morning meetings.
Document when your employer is unfair to the employee regardless. If they are fired, it may become very helpful to them.
Also, you might want to point out why mistreating any employee is bad for the entire company, from negative impacts on morale to bad reviews on social media (such as Glassdoor) that can impact not only recruiting efforts but customer relations as well.
Comment: I don't see how being reprimanded for missing a meeting,is mistreating an employee, getting to work on time is the employees responsibility.  Based on my research, there isn't a cure to this condition, the employee themselves must make lifestyle changes.  If meeting times have been adjusted, and they are still late, then it seems they need to more vigilant about those lifestyle changes.
Comment: See that's the issue. They've already made accommodations for him by moving the morning meeting, but he can't wake up at a reliable time every day, even with medication.
Comment: Also, he doesn't directly work for my company, he's a contracted employee from a direct contractor we hire from.
Comment: Just to add a comment on @Ramhound (good points), the main issue with this post from the OP (@scrungo) is that he assumes his co workers tardiness is due to his condition. Whether  this is true or not, we don't know. Even if it is, it's not an excuse to affect his attendance.  I'm more inclined to think that OP's co worker is tardy and using narcolepsy as an excuse.
Comment: That's entirely possible. He's a nice guy but he's definitely not the hardest worker. He could be using it as an excuse. He just convinced me that he can't control his sleep schedule which may or may not be true


how to make logos like these? any tutorial online?

Question: I am a student of graphics, and was looking for some inspirational logos and came across these, they look beautiful and I tried to make one myself but failed. How can anyone make such perfect logos? with exact same width and height exact distance.
What are these logos called? Is there any tutorial online? Can someone please help me in learning how to make these types of logos? Do i need some kind of illustrator script or action for this?
Comment: Note that they all are basically the same method, _except_ the last one, which is a different technique altogether.
Answer: They draw them.
That's how most all 'high quality' logos are done. Someone takes the time to craft them by hand.
A tutorial can't really help with basic design concepts like balance, color, weight, contrast, movement, etc. That's just something that will come with practice and experience.
Answer: There is a program called Processing that is perfect for some of these; in particular, that umbrella. You could import the umbrella, generate a random point, test to see if the point is inside the umbrella, and if it is, use the point to draw a circle of a random radius. You could even control the density of the circles from left to right. Lullaby might have started as something generated as well.
However, I'd confidently say that some of these were almost certainly arranged by hand (The H and the Social Dog being the most obvious to my eye), and I'd be surprised if all of them weren't touched by a human at some point. Even if the umbrella was generated programmatically, it was probably touched by a human at some point to refine. Truly random art tends to look a lot more erratic than the very-well refined logos you're showing us.
Illustrator can be scripted to do some of this stuff, but it's not really built with scripting in mind. Definitely give Processing a look if you're interested in generative art.
Answer: I would start by breaking down the process.
Each one is creating a larger shape from smaller shapes.
First, create the larger shape.
Create a a few varying smaller shapes (maybe 2-3).
Try creating using symbols (symbol will come in handy because you can edit the symbol and it would effect all if you want to change) or as the above comment link states the scatter brush.
Duplicate and arrange the smaller shapes into the larger shape,
or if using the scatter brush method, expand the strokes and move them around to your desired effect.
Try experimenting with grouping the smaller shapes to one layer and creating a mask with the large shape. then adding more outside the mask to give it that breakout effect.


to support iptv directly on udp/tcp

Question: I used to suport live555 client on android. it was supposed use rtp over udp/tcp. now I was asked to run it directly on udp/tcp in single program. Frankly, without rtcp/rtp, how could udp frames be reordered?
Answer: You would need to develop your own protocol. I'd suggest looking at how TFTP is implemented. Keep in mind however that with UDP datagrams, there are no guarantees; you will be responsible for ensuring out of order data is discarded and that lost/undelivered datagrams are handled/tolerated by your protocol.

to support iptv directly on udp/tcp


What are the academic journals on Hinduism?

Question: Can anybody suggest any academic journal on Hindu studies where scholars publish their peer-reviewed article on Hindu Theology and Philosophy? I am talking about academic journals and not magazines.
Comment: This question can complement my question on META too: [Research Paper as Sources](https://hinduism.meta.stackexchange.com/questions/2208/research-paper-as-sources)
Comment: @Vivikta Thank you so much for the link.
Comment: Maybe a religious journal (?) It must contain peer-reviewed articles on Hinduism. Or an theological or philosophical journals (?). I dont think if there is some journal completely dedicated to Hinduism.
Answer: Here is the list of International peer-reviewed journals on Hinduism -

International Journal of Hindu Studies (https://www.springer.com/journal/11407/). This one is published by Springer. Springer publishes many academic journals.
Journal of Hindu Studies (https://academic.oup.com/jhs). This one is published by Oxford Academic (Oxford Centre for Hindu Studies)
Electronic Journal of Vedic Studies (https://crossasia-journals.ub.uni-heidelberg.de/index.php/ejvs/index). This journal is dedicated to only Vedic Studies as the name suggests.

Apart from these three dedicated journals on Hinduism, there are two more journals on Indic Religion & Philosophy, which obviously publish works on Hinduism and Hindu Philosophy. Both are published by Springer.

Journal of Indian Philosophy (https://www.springer.com/journal/10781)
Journal of Dharma Studies (https://www.springer.com/journal/42240)

Some people might find this site useful.
Comment: Oh, nice find..


Is the Novikov ring a PID or UFD

Question: The Novikov ring (over a ground field $k$) is defined to be
$$
R:=\Big\{\sum_{i=0}^{\infty} a_i T^{\lambda_i} \mid a_i\in k , 0\le\lambda_0 < \lambda_1 < \cdots, \lim \lambda_i = +\infty \Big\}
$$
Here $T$ is a formal variable (sometimes we may assume all possible values of $\lambda_i$ belongs to a discrete subset $\Gamma\subset \mathbb R$). This ring is kind of similar to $k[T]$ or $k[[T]]$. Now that it is known $k[T]$ is a UFD, is it true that $R$ is also a UFD?
Answer: I do not believe that under this definition the Novikov ring is in general a PID. Let $\Gamma=\langle 0,1,\sqrt 2\rangle$, the closure of the set under addition. This continues to be discrete (check). Consider the ideal $I$ of $R$ which is formed of elements with no constant coefficient. Define the degree operator as below. $\partial(pq)=\partial p\cdot\partial q$. Assume $I=(p)$. If $\partial p>1$, then $(p)\neq I$ by sizing considerations. But if $\partial p=1$, $T^{\sqrt 2}\notin(p)$ because that would imply the existence of an element of degree $\sqrt 2-1$, impossible under our definition.
The above $\Gamma$ is discrete: $|(a-c)+(b-d)\sqrt 2|$ can be bounded in four cases, based on whether $a-c$ is positive or negative and whether $b-d$ is positive or negative. Clearly if they're both positive or both negative the distance is at least $1+\sqrt 2$. If, say $a-c> 0$ and $b-d<0$, there are only finitely many choices for $c$, and, fixing $c$, there are only finitely many choices for $d$ which make the error less than $M$ for some large $M$, and none of them give error $0$ by the irrationality of $\sqrt 2$. Similarly for the other cases.
If $\Gamma$ is not discrete, I don't think we can say anything meaningful. Consider $\Gamma=\mathbb R^{+}$, and the ideal $I$ of elements $\sum a_iT^{\lambda_i}$ which have no constant term -- that is, whenever $\lambda_i=0$, $a_i=0$ as well. I claim that $I$ is not generated by any single element -- in fact, that it's not generated by any finite number of elements. Assume that it were -- say $I=(p_1(T),\ldots,p_n(T))$. Let $\partial p$ be $\lambda_0^P$ for each $p$ - the smallest term for which the polynomial has a nonzero coefficient. Let $m=\min\{\partial p_1,\partial p_2,\ldots,\partial p_n\}$. Then for each $q\in I$, $\partial q\ge m$, because every element is the $R$-linear combination of these, and multiplication and addition of elements in $R$ can only increase degree (there are no elements of negative degree). This contradicts $R$ being a PID, or even Noetherian. Moreover, the same argument holds for any additive subgroup which fails to have an element of smallest norm, or if there is an element of smallest norm and $m$ is a limit from above of things in $\Gamma$.
Comment: If $\Gamma\subset\mathbb R$ is discrete it is not necessary that $\Gamma$ is isomorphic to $\mathbb Z$ as a group, we can only construct a bijection between them.
Comment: Sorry, I made some rather strong assumptions. I'll see if I can fix them.

Is the Novikov ring a PID or UFD


Spreading of a pulse in time domain

Question: I have a small doubt. Suppose I transmit just 2 square pulse with frequency of 100 MHz over a wireless channel, will it spread in the time domain when received by a wireless receiver. In other words, a 100 MHz square pulse will have a High for 5ns, and then low for next 5ns and then again a High for 5ns. At the receiver, I receive the same pulse attenuated and which looks like a guassian distribution. But will the difference between the 2 peaks be still 5ns or it may change?
Answer: Simon is right except there is one more assumption required. If the transmitter and receiver are moving toward or away from each other, then Doppler effects will cause the pulses to be closer together or farther apart in time.
One other kind of weird thing to consider. The channel between TX and RX could be time varying. The propagation speed of EM waves depends on the dielectric properties of the space in between. If a large dielectric solid material was somehow inserted between TX and RX after the first pulse, then the second pulse would be substantially delayed due to the slower EM propagation in the dielectric material. I don't think it is possible to do this in the space of 5ns, but since I don't know what your final application is, I thought I would mention it. Other things like humidity or rain or snow can have an effect also, but normally these are not high-speed processes.
I suspect multi-path will be your biggest problem. You will need to look into some kind of correlation detection scheme.
Also, you will have a hard time getting approval from FCC or similar agencies. In other words, have fun experimenting, but don't think you are going to market a product in the developed world based on broadband pulse transmission unless you are willing to go through a lot of trouble.
One last thing. The shape of your received pulse will depend somewhat on the channel bandwidth, which will depend on antenna bandwidth. The more bandwidth your antennas have, the closer the RX pulse will look to the TX pulse.
Answer: Strictly speaking, the time between pulses will not change, at least as long as the nature of the air between the transmitter and receiver do not change appreciably during the interpulse interval. At 5 nsec between pulses, that's a pretty good bet. What can happen, though, is that the pulse shapes at the receiver can change. There are at least two reasons for this. Keep in mind that a square wave at 1 MHz will contain the harmonics of 1 MHz (2 MHz, 3 MHz, 4 MHz, etc) with differing amplitudes. The first effect is that the absorption rate of the atmosphere can and does vary with frequency. This will cause the square wave edges to become increasingly rounded with distance. The second effect is dispersion, and this will cause the harmonics to propagate with different speeds, again distorting the received waveform.
For short-range wireless signals, neither effect is important.
Comment: Good answer. But it is 100 MHz and 5ns. Is there dispersion in atmospheric air? I thought it was pretty close to uniform propagation speed over a very wide range of frequencies. Although I know that absorption varies according to band.
Comment: Like I said in the answer, "For short-range wireless signals, neither effect is important."
Answer: If the transfer system is time invariant, the time between two events in the output is the same as the time between the events that caused them. A wireless transmission channel is time invariant, so that is given.
The receiver needs to accurately identify the events though. If the wireless channel has two paths of different length, the receiver sees an "echo", and needs to distinguish that from the signal received for the next pulse.
Comment: To say that a wireless channel is time invariant is a pretty broad generalization.

Spreading of a pulse in time domain


Which data structure to use to render a large isometric game world?

Question: I'm starting development of a 2d isometric (tiled, roguelike) game and I'm brainstorming which kind of data structure I would use to store runtime data like tiles and entities, but I don't want to use a 2D array (as the world will be huge). How could I handle the rendering in such a case?
Answer: If your argument against an array is "The world will be huge", then it's not about the data-structure, but rather about memory constraints. If your world is so large, that it doesn't fit into memory with a 2D array, then it won't fit into any other data-structure.
Instead you would have to implement a (file-)format, that allows loading chunks (or sectors) of the world. Then you simply load/unload the needed chunks into a data-structure. There's nothing wrong with a 2D array.
As for rendering: I assume you have some sort of camera/viewport. Then you simply render all tiles that are currently in the viewport.
Answer: The Chronicles of Doryen has a nice approach (at least I think so, I'm using it) to both

hierarchical storage of a world map comprised of smaller regional maps, and
sparse storage of upper floors/basements/... so you're not storing megabytes and megabytes of "empty air" or "solid rock".

It's designed to work with procedural generation, and personally I'm aiming to do the procedural gen of new regions in a second thread to cut down on stalling the main thread, but there's no reason you couldn't use it for storing a hand-generated world to disk.


How to properly mix Superior Drummer 2.*

Question: How do you mix Superior Drummer drums?
Do you use built-in mixer, or you use 3d party plugins?
Answer: I like to use my other plugins for compression and EQ with Superior Drummer. I tend to look at things like the SSL plugin and McDSP's set. They give me a lot more control over the compression and EQ which keeps me close to the way that I mix it live as well.
Answer: I bounce the audio & use this template in pro tools (not free)

Description
Learn how to mix drums in Pro Tools in this session.  Comes with
complete audio drum tracks.  Learn how to mix Kick, Snare, Hats, Toms,
OH, Room, mono Room, parallel compression.
Includes 2 sessions (same
audio)
Session 1: Mixed with Waves SSL, CLA-Signature, CLA-Classic
compressors, McDSP AC2, TheGlue Compressor, and Waves Renaissance
plugins.
Session 2: Mixed with Digi EQ & Compressors that come with
Pro Tools.


Why don't the buds in my Shasta Daisy open?

Question: Planted this Shasta daisy from a pot after full flowering last year. We had a very snowy winter, but it came back (cut down near the ground in fall)and seems so healthy. It has many buds, but they haven't opened in 3-4 weeks. It gets lots of Sun and I keep the soil moist. What could be the problem?
Answer: Your plant looks very healthy.
Shasta daisy bloom time ranges from early summer to early fall . These improved daisies are more robust, with larger flowers and a longer bloom time than their wild counterparts.

If you're in USDA Zone 6 or 7, the plant's clock has not triggered it to pop open yet, buds notwithstanding.
Feed a bloom buster if you like (10-50-10 or at least 10-15-10), but it'll open in July or August when it's ready.
Comment: Yes, I'm in Zone 7 so sounds like I just need to be patient. Thank you so much!

Why don’t the buds in my Shasta Daisy open?


Is there any relation between automorphism group of a Cayley graph over a group and over its subgroup?

Question: Let $\Gamma=Cay(G,S)$ be a Cayley graph over a group $G$, $H$ be a proper subgroup of $G$ and $\Sigma=Cay(H,T)$ where $S$ and $T$ are inversed-closed subsets of $G$ and $H$ not containing idendity, respectively. Is there any relation between $Aut(\Gamma)$ and $Aut(\Sigma)$ in general? When $T=H\cap S$, what can we say?
Comment: I want a relation according to decomposition of groups (direct product, ...)
Comment: For example, If $G=\Bbb Z_4=$, $H=$, $S=\{a,a^3}$ and $T=H\cap S=\emptyset$, then $Aut(\Gamma)=S_2\wr S_2$ and $Aut(\Sigma)=S_2$ where $\wr$ denotes the wreath product of groups and $S_2$ is the symmetric group of 2 letters.
Answer: I am reasonably confident that the real answer to your question is "No". For example,
if $T=H\setminus 1$ then the automorphism group of $\mathrm{Cay}(H,T)$ is the full
symmetric group. For another, take $S=T$; then $\Gamma$ will have a large automorphism
graph, a wreath product. (If you want your Cayley graphs connected, take complements.)
So adding generators may reduce symmetry, or increase it.
Note that questions phrased as you have are a bit difficult to answer, since the
answer depends on what you mean by "any relation between".
Comment: Dear Prof. Godsil, thanks for your answer. I guess that when $T=H\cap S$, then one can give a decomposition of $Aut(\Gamma)$ (such as semidirect product, wreath product,...) which one of its factors is $Aut(\Sigma)$. Is this guess true?
Comment: It is not true. As an extreme case, take a Cayley graph for a simple group where the connection set contains an involution and the vertex stabilizer of the graph is trivial. Let $T$ be the involution and $H$ be the subgroup it generates; then there is no decomposition of the automorphism group.
Answer: I don't know how interested you are in the kinds of things that happen in infinite groups, but this question does have some general interest in that setting.
It seems to be quite common, for example, that $G$ has finite index in the automorphism group of its Cayley graph. This is true, for example, for many examples of lattices in Lie groups, as Alex Furman has noted. For a very specific example, this is true for the fundamental group of a closed surface of genus $g$ with the standard presentation
$$\langle a_1,b_1,\ldots,a_g b_g \quad | \quad [a_1,b_1] \ldots [a_g,b_g] \rangle
$$
At a different extreme, for free groups with their standard generating set, the automorphism group of the Cayley graph is a locally compact topological group locally homeomorphic to the Cantor set, and hence the free group has uncountable index.
Comment: Thanks a lot for your responsibility. I am interest to finite groups.


How to handle old questions that today would be voted closed?

Question: Today, I came across the question Listing all the folders subfolders and files in a directory using php. I'm curious as how to handle this question, as it is clearly a "gimme teh codez" question, yet it has over 20 votes, and several answers. Should this question be closed? In today's SO, this kind of question would be voted down quickly, possibly flagged for closure. But back in 2011(I wasn't aware of SO back then), this might have been acceptable(which is hard to believe). So how do I handle these types of questions? Flag them for closure? Down vote and move on?
Comment: @Mysticial That's a reason to not *delete* it.  It's not a reason to not *close* it.
Comment: If the question is "useful" and doesn't violate any other rules, don't close it. You will see all over the site that there are "gimme teh codez" questions with zero effort that have hundreds or even thousands of upvotes. They get those upvotes by being useful to people running into the same problem. Sure there's plenty of "fairness" butthurt around these sorts of questions, but the fact is that they are part of the "repository of useful information" that SO strives to be.
Comment: Vote to close it if a close reason fits. Otherwise, downvote and move on. Unless the question has a very large number of views for the time it's been around _and_ a very large number of votes, mods won't lock it. (They can historical lock a question that they feel is extremely well-written and valuable, yet doesn't fit the rules. I believe they usually want a meta discussion first.) If it does not fit the rules of the site, it should be closed. If it's just a bad question, downvote it.
Comment: @Servy Then let's see if [this question](http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-using-jquery) will get closed.
Comment: @Mysticial Why should it be closed?  What close criteria does it meet?  It seems poorly researched, which would be a reason to downvote it, but not a reason to close it.
Comment: "Gimme teh codez" and "no research effort". (I'm not advocating that it be closed. I'm just using it as an example.)
Comment: @Mysticial Neither of those are reasons to close *any* questions, regardless of it's votes/views/age.  They're reasons to downvote a question.  If the question actually meet some criteria for closure (I see none) then it should indeed be closed regardless of its views/votes/age.
Comment: @Servy I think we're talking past each other. Initially, I couldn't tell if you were saying that "gimme teh codez" and "no effort" questions were reasons for closure. (It used to be, until they removed those close reasons probably to specifically allow these sort of questions to live.)
Comment: @Mysticial Neither of those problems are, or have ever been, reasons to close a question.  They've both always been reasons to downvote a question.  I'm not sure why you thought that I said they were reasons for closure when I specifically said, "It seems poorly researched [...] but *not* a reason to close it."
Comment: @Servy "Not a real question" and "minimal understanding" were the reasons that used to be used. They had varying interpretations for different people, one of which included "gimme teh codez" and lack of research effort.
Comment: @Mysticial They *didn't* mean *either* of those things.  People incorrectly thought that they meant though things, even though they didn't, and abused them to close questions for those reasons even though they didn't mean the criteria that those reasons *actually* described.  As a result, they were re-worked into new reasons that helped to make their actual meanings clearer to help prevent misunderstandings from those voting to close.
Answer: If the question meets any close criteria, feel free to vote to close it.  When the question was asked is irrelevant.
Comment: And as always, `closure != deletion`.  It just prevents any new (probably low quality) answers.