Who has the winning hand in this Texas-holdem scenario?

Question:
The table cards were A,K,K,8,3.
All four suits were on the board.
Player one had A,8.
Player two had A,3.

Is this a split pot?
Answer: Yes, it is a split pot. Both players have AAKK8. You always make your best 5 card hand from the cards available. From Wikipedia:

A hand always consists of five cards. In games where more than five cards are available to each player, the best five-card combination of those cards must be played. Any cards not included in the hand do not affect its ranking. For example, if player A holds 3♠ Q♦ and player B holds 3♣ A♣, and five cards 4♣ 5♦ 6♦ 7♠ 10♥ are available to both players, the players hold equally ranking 3-4-5-6-7 straights despite the fact that the player B's ace ranks higher than the player A's queen.
Comment: Wow 20 upvotes. I guess i should start asking and answering poker questions.
Answer: The best hand in either case would be two-pair with 8 as a kicker (A-A-K-K-8); it makes no difference if the 8 came from the table or from the hole cards.  Since suit also doesn't matter, the hands would tie.
So yes, it would be a split pot.
Answer: If the table were A, K, K, 7, 3, the A-8 hand would win. The same would be true if the table were say, A, K, 8, 7, 3. Then the A-8 holder would have Aces and eights with a K kicker, while the A-3 holder would have A, A, 3,3, K, a weaker second pair.
But the actual table gives the A-3 holder A, A, K,K, 8, same as the A-8 holder.
That leads to a split pot.
The 8 on the table "counterfets" (nullifies) the effect of the superior 8 kicker held by the fist hand. At the same time, the second pair of kings means that the A-8 does NOT beat A-3 with the better second pair.


Boing noise made when powering on Harman Kardon 330B

Question: Just bought a Harman/Kardon 330B receiver. I've noticed that sometimes when I press the power button there is an audible boing noise that seems to be coming from the left side of the unit, that can also be felt. Does anyone knows what this could be?
Answer: If it is an older amp (and that one seems to be), my guess is it's probably rapid charging of the large capacitors in the power supply causing a brief current surge in the power transformer. Most likely it has always done it and not usually a problem...
Comment: And this is why many amps have a standby mode during power on to allow this, before then switching to fully on.


Can mold release agent be used in 3D printing?

Question: Do we need mold release agent in 3D printing mold? If it is not used, what effect will it have on the product?
Comment: Could you [edit] your question to add more detail? Are you printing a mould that you will then use to mould something? What moulding technique, and what material? What stage of the process do you think you might need mould release agent?
Answer: It seems I misread your question.
3D Printed Mold
You were asking about (or the question now states) use of a mold release compound to prevent a molded part from sticking to a 3d print mold.
Yes.  It is always beneficial for the molded part to not stick to the mold.  Easy separation and part removal is important for the life of the mold and for the surface finish of the part.
There are two molding situations that seem important.
Flexible Mold or Object
In the first, either the part of the mold is elastic, so the actual sliding of one surface on the other isn't important.  Here, a mold release agent would help by preventing the cast object from binding to the mold material.
Stiff Mold and Object
The second case is where both the mold and the object are stiff, and the object must slide out of the mold.  Here the layer lines should be considered, since there may, locally, be reverse draft angles where the larger part can not slip past an obstructing filament line.  Using a process that doesn't leave filament lines, or using the thinnest possible filament layers, or smoothing the mold internal surfaces, or possibly filling the spaces between the ridges with another material may eliminate the problem.  A "mold release agent" would still be used to reduce the attachment of the object to the mold, although one may be able to use ample release agent both to fill the groves in the mold and prevent adhesion.
Answer: Welcome to the 3D Printing Stack Exchange site.
Used in Casting
A mold release agent is commonly used when a part is cast.  The release agent is placed on the inside of the mold before the liquid object is added.  As the object becomes solid, the release agent prevents the object from adhering to the mold.  As a result, the objects are easier to pop out of the mold, and in some processes, the mold can be reused.
3D Printing is Different
A mold release agent is used to allow the desired part to be separated from the mold.  In FDM (thin plastic extrusions bonding together into objects) 3D printing, the object is surrounded by air, except for the bottom where the object contacts the print bed.
Bed Adhesion
For most materials, getting the bottom of the object to stick firmly enough is the problem faced, rather than making it easy to remove.  In many cases, a compound is placed on the top of the bed to help the plastic stick to the bed.  It is a "mode adhesion agent" rather than a release agent.
For some combinations of materials, the bed material and the plastic have a particularly strong adhesion, such that it can be difficult to remove the object without damaging the bed surface.  Notably, this occurs with a PEI bed and PETG plastic.  In this and similar cases, the mold adhesion agents can be used on the bed.  This slightly separates the plastic from the bed material, and we can avoid bed damage.
Internal Adhesion
With multimaterial printers becoming more common, there are cases where two parts which might touch and stich during printing should be isolated during the printing process.  A second (or third) material can be used to isolate the parts.  If the isolation material is sufficiently different from the desired objects, it can be removed by a solvent.
This approach is limited to cases where the objects should be separated by at least one printer thickness of the soluble material.
Comment: The asker asked for a 3D printed mold specifically
Answer: This question lead to an idea of using some "release agent" as anti-stick remedy between support and the printing part.
Basically the main purpose of mold release agent is to prevent sticking.
So if the 3d printer will have extra nozzle to dispense agent on top of printed support and before next layers then yes this will be perfect for 3d printing.
Support will do role of supporting but not stick to the printed part and as result could be easily removed.
But I am sure almost any oil will do the trick.
My experience with molds in 3d printing:
I used 3d printed PLA molds with "oven backing clay" which I believe is mostly vinyl mixed with some organic compounds. With some thinning liquid from the same manufacturer I was able to make clay flow and be injected into mold.
I used oil to make clay release from molds easily. After been released parts baked in oven for 30 minutes under 110C. Then they left for some time to cool down and polymerize. The final parts look like plastic but much stronger and obviously heat resistant.
This technique could be used to design and test molds that finally will be metal and to be used in real injection molding process. This is what was my original target.
Comment: Isn't that pretty much what PVA-layers in the contact areas would be from 2-material prints?
Comment: Yes, PVA is good material for supports. And actually supports should not be slippery so likely oil will not always work.  So yes, PVA is a go. Just it's price contradicts with knowing it will be thrown away.
Comment: That's why you only print the interference layers in PVA and the actual carrying structure from a cheaper material.


Difference between static and stagnation

Question: Consider this equation. According to my understanding, the term static and stagnation means velocity is zero. So shouldn't static temperature be equal to the stagnation temperature? What am I missing here? Also, the velocity of which point are we exactly considering in this equation?
Comment: Hi user29463. Welcome to Phys.SE. Linking to private clouds, dropbox, etc, is for various reasons not acceptable on SE, cf. [this](https://physics.meta.stackexchange.com/q/11400/2451) meta post.
Answer: A stagnation point is where the flow around an object comes to a rest (i.e. the local velocity is zero). But there will be a streamline leading to this point, which ends at the stagnation point (perpendicular to the surface).
The equation describes the temperature along this streamline leading to the stagnation point. The stagnation temperature is the temperature measured at the stagnation point, where the velocity is zero.
The static temperature is the temperature at some other point on this streamline, but not taking into account the kinetic energy from the flow. This is the temperature you would measure if you were to move a thermometer along with the fluid. It will typically be lower than the stagnation temperature, because the kinetic energy from the directed motion is converted to thermal energy when it is brought to a stop at the stagnation point.
The velocity will be the local velocity at the specific point along the streamline which you want to know the temperature of.


white screen on macbook pro noise when keys are pressed

Question: my macsbooks screen turned white yesterday, the keys were making sounds when pressed. I have plugged my mac in to my tv and the screen comes up on my tv, but the laptop screen is still blank. please help
Answer: You might have the display brightness completely turned off, so press whatever key increases brightness, like F2 on my mid-2009 MacBook Pro.
If that doesn't work, it sounds like a bad display to me. Find a professional electronic repair technician in your area to fix, and be prepared to spend $200-$300+ on the repair as the display assembly isn't cheap.


How to maximize my tone using a floating bridge

Question: I have an archtop guitar with a floating bridge. I've been told that it's important for the bridge to have maximum contact with the face of the guitar, but I'm seeing a gap between the bridge and the guitar. I'm pretty handy with my hands and I'm wondering if this might be something I can take care of on my own. What do I need to do to correct this problem?
Answer: Be exactly sure where the bridge needs to go for intonation. Maybe put some masking tape or suchlike that will not leave a deposit on the guitar, partly to protect the area, and partly to show where to put the sandpaper, sand side up. Then rub the bridge 5 or 6 mm across it. That way, the profile of the bridge bottom will get to match that of the belly at the right place.
What grade paper? it depends on the material of the bridge, how much you want off, but as a guess, if 180 is too coarse, start with 240 and go to 320 to finish. Check the gap often!
Comment: By way of comparison, any idea as to what a luthier would charge to fit a bridge (painfully expensive for us cellists :-(  )
Comment: Assuming it's the same sort of idea, lots! Play guitar instead?


Accessing webcam mic from command line version of FFMPEG for android

Question: I am currently testing audio and video streaming from a webcam using a command line version of FFMPEG on an android box. I am having a problem accessing the webcam micUsing Ubuntu as a reference, the correct command to determine the recording devices available is    arecord -L . Unfortunately arecord -L  does not work on the Android box   The current command option alsa for accessing the webcam mic is    ffmpeg -f alsa -alsa_device_name..  and the previous option of oss does not work either, ie  ffmpeg -f -oss.. does not work either. The listed audio devices shown in  /dev/snd  shows the mic portion of the webcam as  pcmC3D0c  and  controlC3. The reason I know this is because if I unplug the webcam these values vanish from the directory listing. Has anyone tried successfully to access the mic portion of a webcam using ffmpeg on an android box? How do you formulate the correct format of the command to access the webcam mic. Please note that I am able to access the audio and video on my Ubuntu PC using ffmpeg hence i know that both devices work
Answer: I finally figured out what I was doing wrong. The issue was with my build of FFMpeg To use either the camera or mic portion(s) of a webcam, one needs to call the device(s) using the appropriate format(s) in FFMPEG. The camera portion is controlled by video4linux2, while the mic portion of the webcam is controlled by alsa. I should have checked and made sure that my build of FFMPEG had both formats - alsa and video4linux available in my FFMPEG build. The command to use is  ./ffmpeg -formats  The output would show somewhere in the output listing as  DE alsa  for sound, which means alsa is available for Decoding and Encoding. Likewise for the video portion,  D video4linux  - meaning that video4linux was available to decoode the video coming from the camera portion of the webcam.. Because alsa was not available, the command ./ffmpeg -f alsa...   always gave a syntax error I guess the lesson is check your ffmpeg build for all the features you need to make sure they are there before you attempt to use it. "Thank you" to all who looked at the question!


set default landing view as classic

Question: In my Salesforce org, after logging in, the page is landing in Lightning view. Our org do not use lightning and every functionality is based out of Classic. Earlier it used to land in classic but after the latest release, we are redirected to lightning view. We are manually going back to classic but is there any way to remove lightning as default landing view?
Answer: What you are seeing is caused by Scheduled Switcher.
To control the Scheduled Switcher:

    From Setup in Lightning Experience, enter Lightning in the Quick
     Find box, then select Lightning Experience Transition Assistant. From
     Setup in Salesforce Classic, click Get Started in the Lightning
     Experience Transition Assistant tile at the top of the menu.

    Select the Optimize phase.

    Click Motivate Users to Work in Lightning Experience to expand the
     stage.

    Turn off Switch users to Lightning Experience on a regular
     schedule.

    To disable automatic switching for a specific group of users, create a permission set using
     the Remain in Salesforce Classic user permission.
     Chatter Free and Chatter external users can't be excluded from automatic switching using this
     permission.

set default landing view as classic


New GFCI breaker keeps tripping

Question: I have an older home without GFCI outlets in the bathrooms. The electrical boxes are too small to fit a GFCI outlet. I was hoping to change the breaker in the electrical panel to a GFCI breaker but when I do it keeps tripping. My tester indicates that all of the outlets are properly grounded and the regular breaker never tripped. Could the surge protector on my computer be causing this problem or what else should I investigate without hiring an electrician to start tearing apart my wiring?
Comment: Let's start with something simpler here.  Is the OP sure that the neutral is connected to the new GFCI breaker? And that he's sure it's the correct neutral for the circuit?  To be clear, the neutral for the GFCI protected circuit needs to be moved from the neutral/ground buss bar to the GFCI breaker and the pig tail from the breaker needs to be connected to the neutral buss bar.  I'm assuming you are using a pig tail style breaker because in an older home you won't have PON (plug on neutral).
Comment: When you hooked up the GFCI breaker, you hooked the pigtail neutral to the neutral bar.  What did you do with the other neutral, i.e. the one from the circuit?
Answer: Mixed Up Neutrals
GFCI does not, despite the name, care about the ground wire. In fact, GFCI can be used in certain circumstances where there is no functioning ground wire in order to improve safety.
GFCI is all about making sure that the amount of current on the hot wire(s) + neutral matches. Anything that doesn't match is current leaking "to ground", which can be "through a person and deadly."
Regular circuit breakers do not do anything with neutral. They don't even check to see if there is way too much current on neutral, the way they do for the hot wires. There are all kinds of ways that neutral can be messed up that won't trip a regular circuit breaker but will trip a GFCI.
In addition, older houses often have a lot of stuff on a single circuit - e.g., lights, receptacles, fans, etc. for multiple rooms. Any problem in any part of the circuit can cause a GFCI trip.
Actually, there is one place where "ground" can mess up a GFCI: If a device uses ground instead of neutral (oops, no neutral here, ground "works" so I'll use that instead...) then GFCI is also guaranteed to trip.
The NEC currently requires bathroom receptacles to be on a bathroom-only circuit, but that has not always been the case, and people break the rule anyway. So this becomes a detective job:

Figure out every single device (light, receptacle, fan, etc.) on this circuit.
Open up each box in the circuit and look for neutrals mixed together with other circuit neutrals (e.g., two circuits in one box with all the neutrals together), neutral (white) wires connected to ground (green, bare or a screw into a metal box) or ground wires connected to neutral or other "strange" things.
If you can't find something obvious, start disconnecting things (take pictures and label every wire so you can put everything back together again) and see whether the GFCI problems go away. Once the problems go away, fix that specific problem (post another question here if you need help) and put everything else back together.
Answer: It is very unlikely to be the surge protector on your computer.
However, old houses likely didn't have dedicated bathroom circuits, so it might be a motor-driven appliance like a dishwasher, refrigerator, or exhaust fan.
First, check that you have a "pure" GFI breaker, not a "combination" with AF and GF. AFCI is notorious for being sensitive to brushed motors.
Next, get a partner, preferably a human but a radio will do in a pinch. Make a map of every single fixture (including ceiling lights and "hard-wired" items like attic fans and smoke alarms) in the house. You'll want that on general principles. If you find a motor on your "bathroom" circuit, see if you can move it off (or disable it) and test your breaker again for a day or two.
Finally, use your multimeter to do a resistance check on the outlets on your circuit. Make sure each of them has the same resistance to ground. Run a separate wire (like an extension cord, or a spool of any old wire) from circuit at the SWITCHED OFF panel out to the fixture, and check for zero resistance on the loop (multimeter -> fixture ground -> panel ground -> separate wire -> multimeter).
If you don't have zero resistance, you've probably found your issue. If you have no circuit, then there's a receptacle with a missing ground (broken wire, or just not connected). If you have non-zero but not infinite resistance, you might have a conduit acting as ground, or just a bad connection. Investigate that.
If you find that everything is grounded nicely, then you should consider either (a) the unit you have is defective; or (b) you have circuits that might be sharing a ground. Case (a) means exchanging the unit; case (b) is almost impossible to find and fix - you might as well return the unit until such time that you can tear out your walls and rewire your house.

New GFCI breaker keeps tripping


How to get the Physical memory usage in Solaris using commandline

Question: I need to show physical memory statistics in Solaris, like total memory, used and free memory. Don't want to create a script, so is it possible to get all these details using commandline only?
Comment: Beware that the concept of "free memory" on Solaris with ZFS has become obscure given that ZFS will use whatever physical is available (for its cache) and release if some application asks for memory. So on a system with ZFS you'll almost always see all memory as being used which is technically true. The design idea is that unused RAM is a waste of money. If nobody is using it then the kernel (in this case ZFS) might as well make use of it ... until some process actually needs it.
Answer: To see installed memory you can use this command:
$ prtconf | grep Memory
Memory size: 65408 Megabytes

There's also prtdiag -v | grep Memory.
Additional methods are shown here: Used memory on Solaris 10.
Comment: prtdiag -v | grep Memory This is not working for me...and also wanted to print free and available physical memory.
Answer: Memory management is complicated.  For example in vmstat you will see a column sr, which is the scan rate.  When a Solaris server starts running out of memory it starts scanning for pages and that value shows how quickly it's scanning.  If you have a memory-critical application then that must be 0, if it isn't then you need to add more memory.
To come back to your original question, this is what you're looking for, it needs to be run as root:
root@vru-ws1 # echo "::memstat" | mdb -k
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                     677215              5290   16%
ZFS File Data             2280669             17817   55%
Anon                      1004294              7846   24%
Exec and libs               39636               309    1%
Page cache                   4279                33    0%
Free (cachelist)            20806               162    0%
Free (freelist)            101869               795    2%
Total                     4128768             32256
root@vru-ws1 #

But as with all memory matters, that needs interpretation.  For example ZFS is using 55% of RAM, but to be honest it could get away with a lot less, it's just taking it because it can.  If something else needs it then the OS will reduce ZFS's file data; to a point, beyond which it will affect ZFS performance. If anyone wants me to further elaborate I'd be happy to do so.
Lastly, Oracle has an excellent article which covers this and more besides.  You'll need a login on Oracle support, but not a subscription.
Answer: root@solaris11:~# vmstat -p
memory           page          executable      anonymous      filesystem
   swap  free  re  mf  fr  de  sr  epi  epo  epf  api  apo  apf  fpi  fpo  fpf
 3430236 2679108 67 533 0   0 127    0    0    0    0    0    0    0    0    0


Samsung phones bootloader unlock

Question: I have a samsung tablet gt-n8000 and I want to flash a custom rom . Should I first unlock the bootloader?  if yes , how to do that ? fastboot commands does not work anyway on my tablet so I can not use fastboot oem unlock.
Comment: From my experience Samsung devices usually don't work this way and they are not flashed via fastboot but via odin. Unlocking and user data erase happens after flashing the ROM on first boot. Search for a tutorial exactly for your device and ignore ever other tutorial!
Comment: Thanks Robert . But I found nothing about bootloader unlock for my device . There are  some tutorials about flashing custom roms for my device but nothing about bootloader unlock
Comment: As I said usually you just flash the ROM and on next boot you are getting the option to unlock the device.
Answer: Under developer option, Enable OEM unlock.
First find custom rom as per your mobile model. Connect mobile to computer having developer kit. Root the mobile and flash rom.
Comment: My android version is 4.1.2 and it has no OEM Unlock option . meanwhile , fastboot commands does not work . It does not recognize my device .
Comment: Install proper usb driver as per mobile. Enable usb debugging.

Samsung phones bootloader unlock


What is the origin for left being used to indicate socialist/liberals, and right is used for capitalists/conservatives on the political spectrum?

Question: It seem like it's completely arbitrary, so I'm curious what the reason for having one direction to mean one thing over another.
Comment: Well, here's the wiki answer: http://en.wikipedia.org/wiki/Left%E2%80%93right_politics#History_of_the_terms
Comment: Be aware the terms also no longer mean quite what they originally meant, and they can have shades of meaning unique to each country, too.
Comment: @staticsan - Oh definitely, and these nuances are interesting too! In Europe a liberal is an economic liberal rather than like in America being a social liberal. In Sweden there's blue has a right connotation and red is for the left, while in America the democrats are blue and republicans red. Being a socialist in my native Sweden is similar to being a liberal in America, while in America it carries a near Marxist meaning. Being on the left or right carries the same meaning (although our center is more to the left than in most parts of the world).
Comment: I like to think the terms keep their popularity due to affinities that abound and congregate in the Collective Unconscious, or simply in each person's unconscious, where the same affinities abide, eg, "Good fences make good neighbors." https://www.poetryfoundation.org/poems/44266/mending-wall
Answer: The French Revolutionary era was where the terms Left-wing politics and Right-wing politics first originated.
The reason for the terms to become used at all was the seating of the  ancien régime of France at that time. The aristocrats sat on the right, and the commoners sat on the left. So these terms evolved to mean so that right-wing politics refer to politics for aristocratic and royal interests, while left-wing politics refer to republicanism, socialism, and civil liberties.
Answer: It has to do with the French Revolution, and how the various parties arrayed themselves in relation to the King at the National Convention.   The less radical revolutionists, the Girondistes, who were more sympathetic than their opponents to the Royalist cause, arrayed themselves to his right, as is traditionally done for guests of honour.    The  Montagnards, who later evolved into the very radical Jacobin faction, arrayed themselves to the King's left.
Answer: It has to do with church relegating the bride to the left side or siniestra (sic. sinister, left) side of the pews during politically arranged marriages. This because monarchs were religiously sanctioned by the church to further the aims of establishing patriarchal order, which sought social control by controlling women, who they married etc. This arrangement also prevailed at royal courts where petitioners also seated themselves according to which side of the appeal they were one. The relegation of the brides family  to the left side of the church during weddings, and the view of left handedness as being wrong is still prevalent in today's society.
Comment: Do you have any sources for this?
Comment: the Right side is the Correct side, per the Bible in a LARGE number of cases
Answer:
In politics, the sociological dividing line between Right and Left can be traced back to two obsessions:

the first (the torment of the Right) is a phobia of elements perceived to be incompatible with commonly used models in society
the second (the bane of the Left) is intolerance of models that appear to be imposed by society.

In order to capture the meaning of these lines, we need to step back in time and recall the turmoil we experienced early in life as we began the process of blending into society when, as kids, we entered Planet School - or more precisely, Planet Classroom.
Right there in the classroom we've all had to deal with a " problem kid ": "bad Johnny"- the student with the disrespectful, smug attitude and less than decent grades, the kid in the back that stole your lunch money, the chronic late - comer who seemed to own a single tattered and over - doodled notebook, the bully you best avoided if you didn't want to find yourself running home bruised and with a ripped school uniform. The hopeless case that once had the nerve to show his privates to the girl in the second row and who always came back from the boys' room reeking of cigarette smoke.
No doubt that "bad Johnny" has raised concerns - more for some than for others - within the classroom/society. However, we can't forget that other classmate of ours who is at the root of perhaps even more devastating issues - " Peter goody – two – shoes ". He came from a good family, he always sat in the front row, paid attention in class, gave a helping hand to less fortunate people, had good manners, dressed smartly, respected the teachers, sported perfect hairstyles and neatly organized books. The one who carefully put his school supplies away at the end of class, who always did his homework, who had the best grades- the one who came to school early each morning and couldn't seem to wait to get started.
  He was a model to look up to, our term of comparison when we sensed we couldn't be good enough in the world of social competition. In fact, Peter popped up - in more or less obvious ways - any time our parents scolded us or our teacher criticized us.
And it was " Peter good – two – shoes " who really bothered us - especially when we felt his weight bearing down on our heads - a behavioral model imposed upon us by society.
It is of the utmost importance to note that, for the purposes of this "treatise", " Peter goody - two –shoes " should not be considered "good" in an absolute sense - but rather a model society  sees in a positive light (not always rightfully so) and, more than that, tries to impose upon us. Similarly, "bad Johnny " does not have to be the bad guy - rather just something society – often erroneously - considers negative.
You can see how Peter goody – two - shoes bothers people who are emotionally Left - wing, while an aversion to bad Johnny is the hallmark of Right - wingers.

Biasimo Inverso
Comment: This doesn't attempt to answer the question.
Comment: Thanks for coming down so fearlessly to the chopping block of the anonymous downvote and sharing all that with me!


iPhone 7 Plus touchscreen won't work!

Question: On my iPhone 7 Plus, after I upgraded to iOS 12.0.01, the touch screen stopped working. I'd restart it, but the touchscreen just doesn't work at all (so I can't slide it to "off").
Comment: Maybe try a backup and restore through iTunes.
Answer: Unfortunately, Apple is no longer signing iOS v11.4 so you cannot downgrade the iOS version. I've seen a few scattered instances of iPhone 7 touch not working on iOS 12. The common denominator seems to be aftermarket screens.
This is similar to the issue we had back when iOS 11 came out and lower quality aftermarket screens were also affected but on a much wider scale. You could contact Apple support or Store but they will probably just want you to replace the screen for an Apple original.
If you can't or don't want to do that, then go back to the shop that repaired your screen in the first place and see if they have an "original-quality" screen they can try to help troubleshoot the issue. Otherwise, you will have to wait until (if ?) this gets corrected in the next release.

iPhone 7 Plus touchscreen won't work!


Case study for managing revenue in hospitals using journey mapping

Question: I am looking for UX case studies that resolved revenue management systems in hardware service deliveries in hospitals & clinics.
Comment: I believe this question is not suitable for this site. This isn't a place where you can ask people to do your searching for you.
Comment: Well that may be true, but it still doesn't make your question valid for this site. The SE network has strict rules on what questions are on/off topic and your question is likely to be closed. Please refer to [help] for advice on how to ask a valid question here
Comment: Thanks for your response. Actually I did plenty of research which possibly I could. That's why I raised my hand for help.
Comment: Okay. I will refer to the guidelines. Thanks!
Comment: Perhaps try reframing the question in terms of the design problems/issues/challenges that you are aiming to solve by finding examples of case studies, and you might get closer to the answer/opinions that you need from the community. Thanks.
Answer: We have published one case study on revenue management system in hospitals. Hope it help you to resolving your queries.
Comment: Hey,
maybe you can summarize the core findings so they are still accessible even when the links goes dead.


Will overlapping two different beams of coherent light with different wavelength cause interference?

Question: If I use two different wavelength lasers to transmit light into a single mode optic fiber will they interfere with each other? If so, how much will be that interference.
Comment: Even if you have two different lasers with the same nominal wavelength,  they're likely to differ in frequency by at least a few ppm. Then they will not noticeably interfere unless you are very carefully tuning them to produce interference (which you'd even then likely only be able to detect with a high speed photodetector, not by eye).
Answer: Yes, light from the two lasers will interfere, but the light will interfere temporally, not spatially.  The result, when the light is incident on a detector, is a beat frequency: a signal whose frequency is equal to the difference between the frequencies of the two lasers.
The phase of the signal will wander relatively slowly, at a rate that depends on the phase stability of the two lasers.
The beat frequency between two lasers having slightly different frequencies  is temporal interference, and is actually exactly the same phenomenon as spatial interference. A fringe pattern that is stationary in one reference frame is moving in another. The frequency of both beams is the same in the first frame, but different (because of Doppler shift) in the second frame, the rate at which the fringe peaks go by in the second frame is the beat frequency between the beams: one Doppler shifted up, and the other Doppler shifted down.
Comment: The instability of the 2 lasers leads to the beat ... not interference per say, i.e. the phenomenon that causes speckle or 2 slit patterns.
Comment: Of course I disagree.  Please see my edit.
Comment: see plot  https://www.osapublishing.org/oe/abstract.cfm?uri=oe-23-9-11868 . this also might be of interest https://arxiv.org/abs/1501.05707
Comment: Not sure how that article is relevant, other than that it refers to temporal interference.  Please expound.
Answer: Yes, they will of-course overlap but it won't be the same pattern for when waves with same wavelength overlap. The resulting wave can be found from graphing simple addition of sine waves indicating the superposition at each point.
To explore this visually you can try the graphing calculator Desmos. Try changing the slider values of $a$ and $b$ in the resultant wave,$y=sin(ax)+sin(bx)$ to change the wavelength of each wave and see what happens to the wave after interference(producing resultant wave).

Note: They will only interfere if they meet/cross paths in the optical fiber. Also you may try change the phase difference by a third slider e.g. $k$ in $sin(ax-k)$.
Comment: This analogy ignores the phase noise and frequency drift that's present in real lasers. This means that with real lasers, any interference pattern you might see no will likely be changed in a few nanoseconds or microseconds.
Comment: Well, this kind of non-equal freq interference is seen all the time in microwave and radio frequencies. It yields non harmonic beats. and it'll last long enough to detect it, no problems.
Comment: @BobBee In microwave and radio the EM waves are composed of many photons and the signals are converted to voltage by electrons ... so yes interference occurs.  But for light interference it is typically observed as laser speckle or 2 slit interference ... not the same phenomenon.
Answer: Interference is a concept that only has true meaning when comparing two signals of the same wavelength/frequency.
For waves with different wavelength, it is true that the snapshots of the electric field (or magnetic field for that matter) will change because of the two signals, but there is nothing coherent about such addition.
By coherent, it means that the interference persists spatially and/or temporally.
Consider two plane waves with frequency $\omega_1,\omega_2$ and phases $\phi_1,\phi_2$. Examine their total intensity:
$$I_{\text{coherent}}=|e^{i(\omega_1t+\phi_1)}+e^{i(\omega_12+\phi_2)}|^2=2(1+\,\text{cos}(\Delta\omega t+\Delta\phi))$$
$$I_{\text{incoherent}} = |e^{i(\omega_1t+\phi_1)}|^2+|e^{i(\omega_12+\phi_2)}|^2=2$$
Notice that the intensity for an incoherent intensity, the sum is simply "$2$", but if interference is taken into account it deviates from that value. However, that deviation will rapidly vary in time if there is a frequency difference between the two beams $\Delta\omega\neq0$, and will be washed away if you average in time. This is why you don't get "interference" between two wavelengths of different values, the interference averages to zero.
However, if you were to look at a single moment in time, yes the intensity will fluctuate on the scale of $1/\Delta \omega$, so this does matter when you do time-resolved measurements.
Comment: I don't think in practice you could ever observe the the fluctuation at 1/.  The individual photons at most power levels are quanta and its impossible to cut them off by a fraction.
Comment: Sorry that was a typo, it should have been $1/\Delta \omega$
Answer: Consider 2 lasers (blue and green) shining on a wall (rough surface) on the same spot.  You basically will see 2 interference patterns (called laser speckle) overlapping but they do not interfere with each other.  You can shine one laser at time and add the 2 pictures separately to get the same pattern as you would with shining both lasers.
Take a double slit and the same is true, you will see 2 patterns that are just an over lap of each other.
Answer: If the lasers are incoherent then there will be no interference between the two signals. If they are fully coherent then they will fully interfere. In the latter case it cannot be determined which laser emitted a particular photon. The situation is very similar to two slit interference. Each photon is emitted by both lasers as far as quantum physics can tell!
Comment: Incoherent lasers? I think you would just get 2 overlapping patterns from the 2 separate coherent lasers ... all lasers are coherent
Comment: Mutually incoherent of course.


Do you really need all of the sigals for a general RS-232 port?

Question: I know that having TX, RX, GND, RTS, CTS are good. What about all of the others? Do devices these days even make use of the other pins (DSR, RI, DCD, DTR)? Is it safe to generally leave out these pins? It seems to me like these are mostly only used in fully-specified legacy DCE/DTE equipment. FYI I'm asking this question more specifically in the realm of embedded systems, not PCs.
Comment: I have seen embedded equipment recently that required all the lines but this is unusual. The documentation for the device you intend to talk to should detail what is required but more often than not you only need TX, RX and GND.  Flow control is usually XON/XOFF.
Answer: Yes. Actually, a lot of RS-232 applications don't even use RTS/CTS anymore and have no hardware flow control at all - it is all done in software. Especially with the advent of virtual serial ports this is more the rule than the exception.
However, if you want to make a general RS-232 interface, RTS/CTS is smart to leave on there, just in case you are planning to attach a peripheral that uses it.
Comment: I'm asking this question more specifically in the realm of embedded systems, not PCs. Does the same apply in this area? I don't want to use software flow control at all for this application... I'll definitely do it with CTS/RTS.
Comment: This answer was aimed at embedded systems, so yes.
Comment: Can you provide an example of the type of software flow control you're talking about? Is it related specifically to timing of signals or extra bits for flow control in data signals? I'm unfamiliar with a non-hardware method of FC in embedded, especially in devices where a DMA is used with a UART/USART peripheral (software FC is impossible in this case).
Comment: Software flow control is done using the XON/XOFF characters. The receiver sends an XOFF when it wants the transmitter to stop, then sends an XON to start the transmitter again. Most embedded UARTs will have FIFOs for both send and receive and you typically set up an interrupt when the receive FIFO gets close to being full, then send XOFF in the ISR.
Comment: Yeah, that's what I thought. XON/XOFF is not an option since we're dealing with dumb old equipment that doesn't support such FC schemes. I thought maybe there was something else he was talking about.
Answer: Many systems today only use RX, TX, and GND.  RTS/CTS is sometimes still used for flow control.  It can be quite useful to have flow control handled out of band by the hardware, as apposed to burdening the higher level protocol with it.
If you have a device that you know won't be using RTS and CTS, it is a good idea to loop these back to each other at your end so that if the other device does use them things will still work.  You won't get flow control, but bytes can still be transmitted and received.  As a example, take a look at the schematic to my RSLink2 product.  Note how pins 7 and 8 are connected together on the RS-232 connector, although they aren't used anywhere else.
The remaining lines are almost never used anymore today.  These were largely to control telephone modems, which had ring indicators, carrier detect, on/off hook, etc.  Basically nobody uses telephone modems anymore, and even when they do, they are rarely external boxes connected to the computer via a RS-232 cable.


When does Java's Thread.sleep throw InterruptedException?

Question: When does Java's Thread.sleep throw InterruptedException?  Is it safe to ignore it?  I am not doing any multi-threading.  I just want to wait for a few seconds before retrying some operation.
Comment: http://stackoverflow.com/questions/1024651/do-i-have-to-worry-about-interruptedexceptions-if-i-dont-interrupt-anything-myse
Comment: Depends in which sense you mean "ignore". `InterruptedException` is a caught exception, so you can't compile unless you handle or declare this type of exception on any method which joins or sleeps a `Thread`, or calls `wait()` on `Object`.
Answer: You should generally NOT ignore the exception. Take a look at the following paper:

Don't swallow interrupts
Sometimes throwing InterruptedException is
not an option, such as when a task defined by Runnable calls an
interruptible method. In this case, you can't rethrow
InterruptedException, but you also do not want to do nothing. When a
blocking method detects interruption and throws InterruptedException,
it clears the interrupted status. If you catch InterruptedException
but cannot rethrow it, you should preserve evidence that the
interruption occurred so that code higher up on the call stack can
learn of the interruption and respond to it if it wants to. This task
is accomplished by calling interrupt() to "reinterrupt" the current
thread, as shown in Listing 3. At the very least, whenever you catch
InterruptedException and don't rethrow it, reinterrupt the current
thread before returning.
public class TaskRunner implements Runnable {
    private BlockingQueue<Task> queue;

    public TaskRunner(BlockingQueue<Task> queue) {
        this.queue = queue;
    }

    public void run() {
        try {
             while (true) {
                 Task task = queue.take(10, TimeUnit.SECONDS);
                 task.execute();
             }
         }
         catch (InterruptedException e) {
             // Restore the interrupted status
             Thread.currentThread().interrupt();
         }
    }
}

From Don't swallow interrupts

See the entire paper here:
http://www.ibm.com/developerworks/java/library/j-jtp05236/index.html?ca=drs-
Answer: If an InterruptedException is thrown it means that something wants to interrupt (usually terminate) that thread. This is triggered by a call to the threads interrupt() method. The wait method detects that and throws an InterruptedException so the catch code can handle the request for termination immediately and does not have to wait till the specified time is up.
If you use it in a single-threaded app (and also in some multi-threaded apps), that exception will never be triggered. Ignoring it by having an empty catch clause I would not recommend. The throwing of the InterruptedException clears the interrupted state of the thread, so if not handled properly that info gets lost. Therefore I would propose to run:
} catch (InterruptedException e) {
  Thread.currentThread().interrupt();
  // code for stopping current task so thread stops
}

Which sets that state again. After that, finish execution. This would be correct behaviour, even tough never used.
What might be better is to add this:
} catch (InterruptedException e) {
  throw new RuntimeException("Unexpected interrupt", e);
}

...statement to the catch block. That basically means that it must never happen. So if the code is re-used in an environment where it might happen it will complain about it.
Comment: Assertions in Java are [off by default](http://stackoverflow.com/a/2758645/1143274). So it's better to just throw a `RuntimeException`.
Answer: Methods like sleep() and wait() of class Thread might throw an InterruptedException. This will happen if some other thread wanted to interrupt the thread that is waiting or sleeping.
Answer: A solid and easy way to handle it in single threaded code would be to catch it and retrow it in a RuntimeException, to avoid the need to declare it for every method.
Answer: From the docs:

An InterruptedException is thrown when a thread is waiting,
sleeping, or otherwise occupied, and the thread is interrupted, either
before or during the activity.

In other words, InterruptedException occurs when some code has called the interrupt() method on a specific thread. It's a checked exception, and many blocking operations in Java can throw it.
The purpose of the interrupt system is to provide a alternative workflow for allowing threads to interrupt tasks in other threads. An interruption necessarily may not interrupt a running thread but it can also request that the thread interrupt itself at the next convenient opportunity.
Threads may get blocked for several reasons:

waiting to wake up from a Thread.sleep()
waiting to acquire a lock, waiting for I/O completion
waiting for the result of a computation in another thread, etc.

The InterruptedException is usually thrown by all blocking methods so that it can be handled and the corrective action can be performed.
However, in majority of the cases as our code is a part of a Runnable, in this situation, we must catch it and restore the status.
There are a handfull of methods in Java that throws InterruptedException. Some examples are:

Object class:

Thread.sleep()
Thread.join()
wait()

BlockingQueue:

put()
take()
Answer: From personal experience, I simply changed thread.sleep() into this.sleep()
Comment: As it's currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer).


How to trigger an event when a customer don't open email using sitecore 9

Question: We send a mail when a customer fill up a simple form. We want to trigger an event if that customer don't open that mail in 7 days. How to achieve this goal in sitecore 9 using marketing automation?
Answer: These steps should help you achieve your intentions:

Add custom submit action to your form which will save contact data (at least email) follow this doc article.
Create goal and trigger it as another submit action on your form
Create another goal which you assign when somebody opens page from your link from email (probably you will have link in email)
Add goal from step 2 as initial event to your Marketing Automation and set rule when this goal is triggered start this marketing automation
Add another step in Marketing Automation which will listen 7 days to goal from step 3
If goal is triggered, assign your event as next step; If it's triggered you can assigned different functionality; There will be a yes/no branch in triggered goal condition
Answer: You can make a marketing automation outcome like this

then trigger outcome like this
<code>var reference = new IdentifiedContactReference("sitecoreextranet", email);
            var existingContact = client.Get<Sitecore.XConnect.Contact>(reference, new ContactExpandOptions(new string[] { DtgoProfileFacet.DefaultFacetKey }));
            if (existingContact != null)
            {
                var channelId = Guid.Parse("{52B75873-4CE0-4E98-B63A-B535739E6180}");
                    var interaction = new Interaction(existingContact, InteractionInitiator.Contact, channelId, "xConnectIntro Console App");
                    Guid outcomeId = Guid.Parse("{EB30DE38-B5C7-4256-B720-93145E9E1912}"); // ID of outcome item
                    var outcome = new Sitecore.XConnect.Outcome(outcomeId, DateTime.UtcNow, "USD", 100.00m);
                    interaction.Events.Add(outcome);
                    client.AddInteraction(interaction);

                    client.Submit();
                }
            }
</code>
This code above for "Yes path". End then you will add another action like send another email for "No path"


php can't execute my python script from one upper directory

Question: python
import os
import sys

if len(sys.argv) > 1:
  output = ""
  for i in range(1, len(sys.argv)):
    output = output + sys.argv[i] + ' '
else:
  output = "no argument found"

print "Hello World!!!"
print output

php
<?php
$data = "Testing";
exec("python SA/test.py $data", $output, $ret);
foreach($output as $result)
    echo $result."
";
echo $ret;
?>

My python script file is located in SA folder which is same directory with my current php file. My python script work fine in terminal but when I execute it through php, $result show empty and $ret show 2 on screen. Anyone know why it happened in this way? Any solutions?
Addition:
The python script also work fine if it is located in same folder with the that php file.
Answer: I just found out a solution to solve it. Just change the permission of the folder with the command chmod 777, then everything work fine now.


Is $SU(3)/SO(3)$ cobordant with a mapping torus?

Question: The cobordism group of 5-dimensional closed oriented manifolds is $\Omega_5^{SO}=Z_2$, which is generated by $SU(3)/SO(3)$.
A mapping torus is a fiber bundle over $S^1$. Can $\Omega_5^{SO}$ be generated by a 5-dimensional mapping torus?
Answer: The mapping torus $T$ of the complex-conjugation-map $\mathbb{C}P^2 \rightarrow \mathbb{C}P^2$ does the job.
For example by running the Serre spectral sequence with local coefficients, you obtain that the integral cohomology $H^0(T,\mathbb{Z})$, $H^1(T,\mathbb{Z})$, $H^2(T,\mathbb{Z})$, ... of this mapping torus are given by $\mathbb{Z}, \mathbb{Z}, 0, \mathbb{Z}/2, \mathbb{Z}, \mathbb{Z}$. The mod $2$ cohomology $H^0(T,\mathbb{Z}_2)$, $H^1(T,\mathbb{Z}_2)$, $H^2(T,\mathbb{Z}_2)$, ... are therefore given by $\mathbb{Z}/2, \mathbb{Z}/2, \mathbb{Z}/2, \mathbb{Z}/2, \mathbb{Z}/2, \mathbb{Z}/2$, where the two middle classes are connected by a nontrivial action of $Sq^1$, and $Sq^1$ acts trivially everywhere else.
The class in degree $3$ has a nontrivial action of $Sq^2$. To see this, note that this class is in the image of the homomorphism induced by $T\rightarrow (T,\mathbb{C}P^2)$. Now the latter pair is homeomorphic to the pair associated to the trivial bundle, but there you get the statement about $Sq^2$ from the fact that $Sq^2$ commutes with suspension (or something related). Similarly, the class in degree $2$ has a nontrivial action of $Sq^2$.
This determines the action of the Steenrod algebra on $T$ completely. Now by the usual Wu class arguments, you can get from that that $w_2$ and $w_3$ are nontrivial, and by again invoking that $Sq^2$ acts nontrivial on the degree $3$-cohomology, you can use the Wu formula to get that $w_2w_3$ is nonzero.
This is the Stiefel-Whitney number which detects the generator of $\Omega_5^{SO}$.
Comment: The map $\mathbb{C}P^2\rightarrow\mathbb{C}P^2$ induced by complex conjugation (which is the one we used) still preserves the orientation, as there is no orientation-reversing self-diffeomorphism of $\mathbb{C}P^n$ for $n$ even.
Comment: Thank you very much for the detailed answer! I have a very simple question: is the degree (−1)-map $\mathbb{C}P^2 \rightarrow \mathbb{C}P^2$ reverse the orientation of $\mathbb{C}P^2$ that makes the corresponding mapping torus un-oriented? Here we need an oriented manifold to generate $\Omega_5^{SO}$.
Comment: I also have a related more general question: what are the characteristic classes that can detect the cobordism group of mapping tori (in some low dimensions). See http://mathoverflow.net/questions/164513/characteristic-class-for-a-fiber-bundle-over-s1 . Your $w_2w_3$ is one of the characteristic classes in 5-dimension. Do you know other characteristic classes?


How easy is it for quantum dots to enter the intracellular portions of cells?

Question: As quantum dots have better quantum yield than organic dyes, many are being developed as a substitute for them. Nonetheless, could these substitutes be small enough to enter inside cells as current dyes do, or would they be operate outside a cell?
Comment: How big are quantum dots and what is their chemical nature? Likewise for the dyes you mention. If you want someone here to do the biology, you need to research and supply the chemistry.
Comment: @David *quantum dots* is a rather generic term, which describes many types of (mostly semiconductor) structures, with sizes of a few tens to hundred nanometers. The caveat is that these are usually an integral part of a much bigger semiconductor crystal. What is meant here are probably the QDs embedded in small colloidal particles - perhaps of micrometer size. Still, their chemical nature may vary wildly.
Answer: As far as I can tell, they do not (readily) cross the plasma membrane. This paper, "Cell-Penetrating Peptide-Functionized Quantum Dots for Intracellular Delivery", discusses strategies to deliver quantum dots into cells. These include:

Passive delivery done by coating the quantum dots in something that allows them to be endocytosed more readily (the authors do not seem to be optimistic about this strategy)
Mechanically faciliated delivery (e.g. microinjection)
Peptide-facilitated delivery by complexing the quantum dots with a cell-penetrating peptide

Since people are going through all this effort to get them in, it does not seem like they are cell-permeable without substantial modification.


Hard inode disk quota not working (via SMB anonymous connection)

Question: So I've decided to share folder via samba without authentication and with limited maximum size.
I've done everything as the second answer from there said, except that I used journaled quota.
Since anonymous smb connections use nobody user, i've set up next quota for it:
Disk quotas for user nobody (uid 65534):
Filesystem            blocks       soft       hard     inodes     soft     hard
/dev/sda2                  4          0          6          5        0        1

As you see, there are already five inodes instead of one allowed (created empty files via Amaze manager on my android phone) and I can still create more.
sudo repquota / output:
*** Report for user quotas on device /dev/sda2
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 7719732       0       0         288843     0     0
man       --    1940       0       0             92     0     0
nobody    -+       4       0       6              5     0     1
(and more)

I'm using Linux Mint 18.2 with kernel 4.8.0.
What am I doing wrong? Maybe my entire understanding of disk quotas is wrong? Fix me if it is.
(I didn't really try to check block quota, maybe it's working and maybe it's not, I want to deal with inodes first)
Answer: quotaon -av instead of croning quotacheck solved the problem.


What are the consequences to laying continuous floating floor without using transitioning pieces?

Question: I have a manufactured home with OSB subfloor, to install another subfloor for hardwood would cause a lot of problems. I want a continuous floating floor with no transitioning pieces and I want to know what are the common problems.  Is it done in long, continuous installations? The length is 28' ft x 22' ft (living & dining) reducing to 13' x 17' (kitchen) and then to 8' x 10' laundry, then to 16'x 3' foyer.
Comment: It will depend on your climate and the specific product you use. Engineered floors are getting better and more dimensionally stable, but you'll need to check with the manufacturer of the product for a definitive answer.
Answer: The problem is expansion of the floating floor from seasonal moisture changes**. Transitions provide expansion joints. If you have excessively long continuous flooring, without large expansion joints at the ends, then when it gets humid your floor will expand, not be able to push outwards at the ends, so will push upwards in the middle instead.

** My thanks to DA01 for his comment on this. I'd always assumed it was thermal expansion.
Comment: It's most noticeable in climates with extreme seasons. A house in MN, for example, can have 80% humidity in the summer, and 20% in the winter. It plays havoc on hardwood floors, doors, windows, etc. :)
Comment: The expansion is more due to seasonal moisture changes than temperature (after all, the interior of a home shouldn't be fluctuating that much temp-wise). As such, in some climates, you might get away with little to not expansion gap (dry desert, for example)
Comment: @DA01 - Interesting, I didn't know that. I'll admit the "thermal expansion" reason never made any real sense to me, but I trusted that expansion was a real issue when I installed my own floating laminate floor. Answer update, my thanks.


Moving objects create wind

Question: I'm looking for a way to make moving objects generate some sort of wind that affects particle systems and/or rigid body simulations.
What I mean is that the moving object should not only interact with objects and particles it collides with, but also surrounding objects due to 'wind' being generated.
Comment: Could you point some real world example?
Comment: If you have a piece of paper thats a bit bent taped on only the top, and then swing your arm quickly in front of it, it should be affected by the 'wind'.
Comment: And particles will be?
Comment: related http://blender.stackexchange.com/questions/58582/animation-of-falling-paper-in-cycles
Answer: You can use Drivers to automatically apply a Wind force around the object and to vary its intensity as the object moves. This can be achieved as follows.
Firstly, enable 'Autorun Python Scripts' in the File preferences window. This will allow you to run scripts in Driver expressions.

Create an empty to follow behind the moving object. This will be the 'source' of the wind and its distance from the moving object will dictate the magnitude of the forces. In the Empty's properties panel, right-click on one of its location properties and select 'Add drivers' - you should see the X, Y, Z properties turn purple to indicate  a driver is present.

To get the Empty to follow the moving object you can set its location to a running average of itself and the target object's location. This will result in it closing in on the target on each successive frame. To do this, select the Empty in the 3D window, open a Graph Editor window and change the context from F-Curve to Drivers and you should see the newly created drivers.

Select 'X Location' and set up 2 variables - both as 'Transform Channel' - one for the Empty's X Location and the other for the target object's X Location (named 'emptyX' and 'targetX'. Set the Driver value to be a Scripted Expression as '(emptyX + targetX) / 2'. This will result in the Empty moving halfway towards the target on each frame. Adjust this expression for a more gentle motion towards the target - eg, '(emptyX * 4 + targetX)/5' will cause the distance to close by 1/5th each frame.

Repeat the above for the Y and Z channels and you should have an Empty that follows behind the target object as it moves.

Create a Wind force at the same point as the Empty (select the Empty, Shift-S for 'Snap'menu , Cursor to Selected, Add/Force/Wind) and parent it to the Empty. Add a constraint to the Empty to 'Track To' the target object. Move the target away from the Empty and check that the direction of the Wind is correct - rotate it to point it towards the target object if it is incorrect.
Select the target object and go to its Object properties and create a Custom Property named 'WindMultiplier' and set its value to '35.0' (or similar). This will be used to control the strength of the wind.
Select the Wind force object and go to its Physics properties. Right-click the Strength property and Add Driver. Configure the rest of the force as required -- probably change the shape to 'Point', set the Falloff to Sphere and power to around 2 or slightly higher.
Go back to the Graph Editor window and select the new driver on the Wind force. Create a variable named 'distance' of type 'Distance' and set one object to the target object (in World space) and the other to the Empty. Create another variable named 'multiplier' as a Single Property, set the object to the target object and the path to '["WindMultiplier"]'. Set the Scripted Expression to 'distance * multiplier'.
You should now find that as the target object animates that the empty follows closely behind with the wind force varying based on its speed. You can repeat the above 'Wind' steps to create multiple forces - for example, a Turbulance force, vortex forces, etc., parenting each to the Empty and rotating it as required, affecting your particle system dynamically based on the motion. Tweak the force properties and multipliers as required.
You'll get strange results if you run the frame sequence in reverse or jump to points in the animation so it's best to play it forwards all the way through to make sure it's working as expected and then to Bake the animation and then disable the drivers until you need them again if you change the motion of the target object.
Here's an example using a Wind force and Turbulence force - there is no object collision involved. You could get more effective results by adding Vortex fields (as above) to simulate eddy currents in the air flow.

Note : You may find that Blender doesn't detect changes to your scene when adjusting the Driver properties (such as 'WindMultiplier' mentioned above) and will not refresh the particle system automatically. If this occurs you can simply go into the Particle System properties and re-bake the particle system. The other potential issue with the set up described above is that the initial state at frame zero will not be consistent - the Empty used to direct the forces may not necessarily be in the same place at the start of the animation. The driver Scripted Expressions could be adjusted to allow for this if required but I excluded this for clarity (eg,  something like 'emptyX * 4 + targetX)/5 if frame = 0 else targetX' should give the desired effect.
Answer: What you could do is to parent a Wind force field to your objects that you intend to move. This way the animated movement will look like it's affecting the oject that is blow by the wind. Of course you will have to adjust the force field to your scene.

Moving objects create wind


localStorage object is undefined in IE

Question: I'm using localStorage in my JS application and I was wondering why IE9 claims localStorage == undefined. As far as I know, IE8 supports it, is here any way to get it working in the new version?
Comment: Are you testing this on a local HTML file with file `file://` protocol?
Comment: Typing `localStorage` in the Dev Tools console of the Platform Preview works for me on http sites
Comment: @Akexandre Jasmin oh you are right, I've forgot it does not work. Thank you.
Comment: Okay. I wrote an answer explaining the problem. You may want to accept it.
Answer: Are you testing this on a local HTML file? i.e. a file:/// URL?
localStorage is only available on HTTP websites. That hasn't changed in IE9 Dev Preview.
Comment: @AJ. Thanks. I had a suspicion that was the issue, but was still wondering what was wrong when testing in IE. I started running my test page from within an web app and it worked just fine across IE, FF and Chrome.
Answer: IE 11 WORKS
All you need two do add file://127.0.0.1   to the trusted zones under the security
tab (NOTE: make sure https check box IS not checked)
add this line to the top or your script, depending on your code you may not need to unless you get could not connect to the internet.
!localStorage && (l = location, p = l.pathname.replace(/(^..)(:)/, "$1$$"), (l.href = l.protocol + "//127.0.0.1" + p));

if (typeof(Storage) != "undefined") {
    // Store
    localStorage.setItem("lastname", "Smith");
    // Retrieve
    alert(localStorage.getItem("lastname"));
} else {
    alert("Sorry, your browser does not support Web Storage...");
}

Comment: Great, this works! On my machine even without changing anything in the Security tabs etc. One note: this code throws a `Variable undefined in strict mode` error if you execute your code in strict mode. To solve, re-write in non-condensed mode (`if (!localStorage) { .... }`)
Answer: Try to open the file like this
file://127.0.0.1/c$/pathtofile/file.html
Comment: @daylight It works if you also add `file://127.0.0.1` to the list of trusted sites.
Comment: I don't think that works.  Couldn't get it to work in IE11, at least.  Ah, well, use mongoose web server, it is small enough and then localSTorage works.
Comment: On IE11, this does not seem to work. I can't access a local file using `file://127.0.0.1/...`. I've add `file://127.0.0.1` to the IE Trusted Sites list.
Comment: Worked for me on IE11

localStorage object is undefined in IE


A motorcycle hit my car. He was speeding, I made a left turn on a double continuous line. Who is liable for what?

Question: I was driving uphill on a 35mph limit road heading to a church wedding (Connecticut). Near the top of the hill, the parking lot was to the left. I signaled to turn and since no one was coming from the opposite direction I started making a left turn. I was driving very slowly looking to see if the parking lot was full when I heard the bike coming down the hill. It's one of those street racing bikes, very fast. He was about 90 feet away when I saw him and he did not slow down, I think he just tried to avoid me and wiz by. He ended up crashing the side of my car, in the back seat. He was taken to the hospital and had surgery on his arm but other than that he was ok. Police came and investigated the scene for a couple of hours. He was speeding and did not have a license. However, where I turned to enter the church parking lot was a double continuous line in the road, meaning I could not turn left there. Because of these circumstances, what should I do? Am I liable for his hospital bills and his motorcycle?
Comment: Where do you get the idea that a double yellow line in the road means you can't turn left? In every state I've been in, a double yellow line indicates no passing. You can still cross the line into a driveway or parking lot, after taking the proper precautions.
Comment: @Thomas: Driving illegally will get you into trouble, but it doesn't mean you are at fault in an accident.
Comment: So since you were making a legal maneuver and it seems like you know that the other driver was operating a vehicle illegal and speeding (presumably from the police), exactly what is your question? Are you simply concerned that you may have to be liable when you were following all of the rules of the road and the other driver wasn't? If so, what is giving you that impression?
Comment: He wasn't speeding from the police. He was just over the speed limit of the road (35mph) initial investigation at the scene pointed to at least 45mph at the point of collision, although I need to wait for the final report to know for sure. I thought, because of what the officer told me, that I might also be at fault for making an illegal left turn. That's why I was concerned. As it turns out it wasn't an illegal left turn, so I do feel more at ease now. I still wonder however why would the officer say that, he should know.
Comment: You're correct as it seems (https://goo.gl/frW9rK page 46). I got the idea from one of the officers at the scene.
Comment: @user662852 I wasn't changing lanes. I don't follow how it can be construed as interfering with traffic. Can you explain further, please?
Answer: The Ct. driver's manual p. 44 says that "Solid yellow lines may be crossed to make a left turn to or from an alley, private road, driveway, or street", and also "A double solid white line prohibits lane changing" (turning left is not the same as lane changing). In Washington, there is a fine of $136 for crossing a double white line, but this is related to the hyper-limited access pay lanes on the freeway. I have not found anything in the Connecticut code that indicates an analogous absolute prohibition against crossing a double white. In lieu of a statutory prohibition, you may succeed in arguing that it was a legal turn, as long as the turn was in compliance with the rest of the law, e.g. you signalled, you yielded right of way (which essentially means he was driving so fast that he appeared after you started to turn). His speed may be contributing negligence that prevents you from being liable, so it just depends.
Comment: Thanks for the answer. It was a double solid yellow line. I'll wait for the police report to determine his actual speed. From what they said at the sight of the crash he was roughly 45mph (at a 35mph limit) at the point of impact.  My perception is that he was going much faster than that and slowed down before impact.
Answer: Connecticut follows what is called a "modified" comparative negligence rule.
This means that the jury at trial assigns a percentage of fault to everyone involved in the accident who has violated any traffic law or had any negligence. The jury decides on a case by case basis how important each person's negligence was to the total outcome.
So, for example, the jury might conclude that the car was 80% at fault and that the motorcycle was 20% at fault, in causing the accident, even though both of them violated some traffic law, or it could conclude that the car was 20% at fault and that the motorcycle was 80% at fault. The lawyers have to argue from the facts regarding the reasons that their client should have a lower percentage of fault and the other party should have a greater percentage of fault.
If the jury finds that someone did not violate any traffic law and acted completely with reasonable care under the circumstances, and so was not negligent at all, then 0% comparative fault is assigned to that person. (In a more complicated accident there might be more than two people involved and might be damages to more than one person.)
Since this is a "modified comparative negligence" system, the percentages assigned by the jury aren't the end of the story. If plaintiff is more than 50 percent responsible for an accident, he can recover nothing. So a plaintiff will not be eligible to recover, say, 20 percent of his damages under this type of comparative negligence. But, if the motorcycle is say 30% at fault, the jury will determine the motorcyclist's damages and that will be reduced by 30% and then the people responsible for the car driver's negligence will be responsible for 70% of the damages suffered by the motorcyclist.
In a case where everyone has some fault, there is no way, on the bare facts, to determine for sure what percentage of fault each person will be assigned. There is no formula that tells you that. It just comes down to what reason and experience tells you that an average juror off the street without formal legal training would be likely to think.
Answer: I think it is quite clear the bike driver was at fault due to speeding. The question is whether you were also at fault.
You turned left into a car park. Oncoming traffic had the right of way. Your view was obscured. If you wanted to cross the left lane, you would have had to do this quickly enough so that if an oncoming vehicle entered your view, going at or slightly above the legal speed limit, it would have been safe.
You said you were driving very slowly. You also said you were looking at the car park, not watching for oncoming traffic. If I had arrived, going at the speed limit, just at the wrong moment, would that have been dangerous? I think it would have, the way you describe it. The rule isn't "don't start turning when there is oncoming traffic". The rule is "you must have finished turning before oncoming traffic arrives".
If you do a left turn, and the view ahead is obscured, you have to do that quick enough so that you won't get hit by traffic arriving just when you turn. What I would have done: Stop in the right lane, check that I can enter the car park safely, check again for oncoming traffic, and if there is no traffic, turn into the car park as quickly as possible.
And if the obstruction is close enough, or the entrance to the car park is narrow enough, or too much traffic coming from behind you, or if you drive a truck that takes forever to turn, so that you can't do this safely, then you just can't turn into the car park. You also need to take into account that people drive faster than allowed. If 30mph is allowed, then you need to expect people coming at 35mph.
Comment: Re: "you must have finished turning before oncoming traffic arrives" would apply if the oncoming traffic had a right of way. However, in this case, the oncoming vehicle doubly forfeited his right of way. First because he was speeding. Second because he never had the right of way to a section of road he could not see (since if that were the case, then the oncoming vehicle could legally crash into anything in front of him, even if nobody changed lanes). Of course, all this doesn't stop reckless speeders from complaining that stuff in front of them didn't get out of their way in time.
Comment: Re: "If I had arrived, going at the speed limit, just at the wrong moment, would that have been dangerous? I think it would have, the way you describe it." Driving the speed limit is not always safe or legal. If driving the speed limit means you can't avoid hitting an obstacle just over the hill, then that is unsafe and illegal.
Answer: Sounds like the traffic offense would would be "failure to yield to oncoming traffic," and possibly reckless driving depending on the cop who responded, but probably not an illegal left turn. But even if you aren't charged with anything, a tort claim could be made against you, but it's difficult to say what the result would be. Speeding on the motorcyclist's part would definitely count against him. At the same time, making a slow left turn just below the crest of a hill, into oncoming traffic might not play too well.
Comment: How can you yield to oncoming traffic *when there is no oncoming traffic when you start your turn*?
Comment: @gnasher729 I don't follow your logic. You say it is the OP's problem that the hill obstructed his view of the speeding cycle. But in that case, the hill also obstructed the cycle's view of the OP. The motorcycle would have crashed into anything that was in his lane in front of him, regardless of whether it was changing lanes. In other words, the cyclist outran his visibility, and that's never defensible.
Comment: By not crawling across the left lane. And there was oncoming traffic, OP just didn't see it. You have to finish your turn before oncoming traffic arrives.
Answer: The question essentially asks whether crossing the double yellow line could give the OP accident liability. It seems very unlikely in this case.
As gnasher729 noted, the legality of the lane change does not always determine accident fault. In fact, the way this case is described, there is no connection between crossing the yellow line and the accident. The OP had crossed into the speeding vehicle's lane before the drivers could see each other. The speeding vehicle would have crashed into the OP even if both vehicles were traveling in the same direction and the OP was making a right turn into that same driveway.
The oncoming vehicle triply forfeited his right of way. First because he was speeding. Second because he never had the right of way to a section of road he could not see (since if that were the case, then the oncoming vehicle could legally crash into anything in front of him, even if nobody changed lanes). Third because his right of way expired before the impact, since he had time to slow down after seeing the OP already in his lane (but unfortunately chose not to slow down).
On the other hand, the OP drove perfectly here. Looking for hazards in the parking lot before entering it was exactly the right thing to do. And moving to the left lane before stopping was also the right move, as it protected him from rear-ending by anyone trying to pass him from behind.
It is ridiculous to suggest that the OP was supposed to go past the hill, U-turn, and then make a right turn. This would not have prevented the accident, as the speeding vehicle would still suddenly encounter a slow vehicle in front of it. It is just as ridiculous to suggest that the OP was supposed to "quickly" turn off the road. How "quickly" exactly? What if a pedestrian was crossing the driveway?
Anyone outdriving his visibility just doesn't have right of way. Or else you must logically believe that it's legal to crash into stopped vehicles, pedestrians, etc. that are long established in front of you in your lane. Every Driver's Ed course makes these points clear. Because (among many reasons) it's the law.
Answer: Turning left with driving lanes giving you the all clear, and a speeding motorcycle jumps into the turn lane and totals your car THE MOTORCYCLE IS 100% to blame.  No attorney will sue for the motorcyclist because he knows he would lose at trial and be out many dollars.  Also, that would open for the car owner to sue the motorcyclist for damages, and he would win.
Comment: Welcome to Law Stack Exchange.  Can you provide any support for your answer?  Also, since you are a new user, we encourage you to [take the tour](https://law.stackexchange.com/tour).


Can I transit through the US with an expired F-1 visa?

Question: I'm an international student doing a PHD in the USA. Currently my F-1 Visa expired but I have a new I-20 to renew it in my home country Colombia. I have a trip for an India  conference for 10 day starting June 10 and ending June 20. My plan is to go to India from the US and then return to Colombia to renew my Visa but from India to Colombia the flight makes a stop in Newark, and I understand you must have a transit visa to do this. My question is, can I do it with my expired F-1 visa?
Comment: Note that there's no such thing as 'transit' in the US. You actually need to be legally able to enter.
Comment: @MarkMayo So he'll be applying for a B1/B2 in this case? That amount of stuff for so little -_-
Comment: @MarkMayo No wait, This is applicable right? http://travel.state.gov/content/visas/english/other/transit.html http://www.immihelp.com/visas/transitvisa/c1visa.html
Comment: Added an answer.
Comment: @AdityaSomani that's for people on a B visa - if you have a visa - B, J1, whatever, then in theory you use that to 'transit'. But you still need a valid (not expired) visa of some sort :(
Comment: @MarkMayo What about the C-1 visa. Am I missing something here?
Comment: Like I said, it's still a visa that he'll need to get or qualify for, present documents for, and so on.  The question was about whether or not he could transit with an expired F-1 Visa, and no, he can't.
Comment: @MarkMayo Right, I somehow missed the part of your comment saying that "you still need a valid (not expired) visa of some sort"
Answer: There's no such thing as 'transit' for the US, unfortunately, you need a legal visa to enter.  However, there are some caveats for this.
Firstly, is your visa expired? If so (as yours is), you need a new one:

If your visa is expired or you have already used the number of
  entries you are allowed, you will need to apply for a new F-1 visa in
  order to re-enter the U.S.

However, if you are just passing through to visit certain countries, there are some exceptions:

If you are traveling only to Canada, Mexico or the Caribbean (except
  Cuba and Bermuda) for fewer than thirty days, you may return to the
  U.S. with an expired F-1 entry visa in your passport

I went hunting to see what they defined the 'Caribbean' as, but unfortunately, it's not Colombia.

If your U.S. F-1 or J-1 visa has expired...limited to only U.S. territories,
  Canada, Mexico and adjacent islands of the Caribbean, and your
  combined visits to these countries must be limited to less than 30
  days.
U.S. Territories in the Caribbean include Puerto Rico and the U.S.
  Virgin Islands (St. Thomas, St. Croix, and St. John).
Adjacent islands of the Caribbean (as defined in the U.S. Code of
  Federal Regulations at 8CFR 286.1(a) include:
Anguilla, Antigua, Aruba, Bahamas, Barbados, Barbuda, Bermuda,
  Bonaire, British Virgin Islands, Cayman Islands, Cuba, Curacao,
  Dominica, the Dominican Republic, Grenada, Guadeloupe, Haiti, Jamaica,
  Marie-Galante, Martinique, Miquelon, Montserrat, Saba, Saint
  Barthelemy, Saint Christopher, Saint Eustatius, Saint Kitts-Nevis,
  Saint Lucia, Saint Maarten, Saint Martin, Saint Pierre, Saint Vincent
  and Grenadines, Trinidad and Tobago, Turks and Caicos Islands, and
  other British, French and Netherlands territory or possessions
  bordering on the Caribbean Sea.


salesforce integration with google data api

Question: I am trying to do salesforce integration with google data api. Google data api has some code that is in svn. So I have downloaded eclipse, subclipse 1.6(we also tried with 1.10 as well) and all subclipse related downloads.
and when we use the instructions given in the bottom link to download svn url(http://apex-google-data.googlecode.com/svn/trunk/) it is giving the following error.
i have disable javahl as well and i have also installed svnkit client adapter and svnkit library.
on a different note, clicking the svn reposity link also it shows that svn/trunk path not found.  But the documentation says it should work. i am confused. can anybody give some suggestion over this. Please let me know if i miss anything.
https://developer.salesforce.com/page/Google_Data_APIs_Toolkit_Setup#Checking_Out_the_Force.com_Toolkit_for_Google_Data_APIs
Answer: I believe google has deprecated that link. you could try https://github.com/shunjikonishi/apex-google-api


external graphic card for pc(windows)

Question: After I invested on a laptop to start graphic designing I ended up finding out that AMD wasn't good for it and that my computer's power isn't enough(AMD doesn't support openGL render and I have just an i5 processor in my computer).
So I was wondering if it was possible to install an external GPU on my pc. I am just a simple end use with not so much knowledge on hardware, and I was wondering if external nvidia graphic cards are available that would run via USB ports in my PC(windows 7).
If not, what would be a work around for me that would provide me a similar performance of an nvidia graphic card and would support high and fast rendering(for 3D graphics,{specifically I'm using blender- cycles})?
(I'm using a dell inspiron laptop.)
Comment: Peripherals won't help you in this situation because USB bandwidth bottlenecks high-speed devices. You'll have to upgrade the video card inside your laptop.
Comment: @Adam, I found something about a thunderbolt. Is it also for windows?
Comment: Yes, but even Thunderbolt 3 will bottleneck a modern external video card.
Answer: Probably not, external graphic cards do not run via anything lower than USB 3.0.  In addition that USB port has to be a thunderbolt port in order for an exteranl GPU to be supproted through it. This is simply because an older USB port doesn't have enough bandwidth to support the communication between a GPU and your PC, and also because it doesn't connect to the appropriate port on the motherboard. Thunderbolt ports however are based on PCI-E technology which is the same, as the one used by desktop graphics cards to communicate with the computer. Hence, if your laptop supports thunderbolt you would be able to purchase an external GPU chassis (like the one offered by RazerBlade), as well as a GPU that would convert PCI-E to thinderbolt, and plug into the proper port on your laptop. We would have to know the exact model number of your laptop to tell if it is equipped by a thunderbolt port.
Comment: it is a dell inspiron 3537 model no. .
Comment: Your laptop does not support thunderbolt, therefore you will not be able to utilize an external GPU. As of what @Adam has said about switching out the laptop's dedicated graphics card - it is extremely rare that dedicated laptop GPUs are replaceable, and it is even more rare that they are upgradeable. Most likely you will have to replace your laptop to swap your graphics card.

external graphic card for pc(windows)


How to limit edit permission to individual values on a multi value field?

Question: If I have an image field with multiple values, for example, how could I let users create edit and delete only their own images (i.e. that they upload and not anyone else)? I tried the field permissions module but it does not limit individual values of nodes.
Answer: I think your goal is to create a gallery which different people can upload their own images into it and then modify those images. Reaching this goal you can create a gallery content type with multiple images and a taxonomy or a referenced field so you can relate two galleries owned by two different people and in this case any user can modify, create or delete his/her own gallery. At the end you can create a global view for all images using Views module so all images posted by all users are listed inside and can be categorized using the reference field you have added.
If you want all images being uploaded to same content then you must use another approach which needs the ability of drupal module development, first of all you must create a new field type using drupal Field API. This field type must contain a image subfield and a user reference so you can have both image and its uploader in a same place. Then you can use hook_field_access to restrict access to field values in different operations.


What to do if the light meter on my DSLR doesn't work after a DIY repair of a stuck mirror?

Question: Recently my mirror on my Nikon D3100 became stuck. Nikon quoted a silly price to repair so I looked on net and followed advice and gently unstuck mirror with a tiny screwdriver. Now my light meter is not working. Hugely overexposes photos and keeps saying subject is too dark.  I can get correct exposure if I override either shutter speed or f stops. I haven't pressed compensation buttons — all is set to zero and never had this problem before. I've owned this camera over 4 years. Any ideas?
Answer: Check to see if the focus screen/view screen has become dislodged a little, or if something is stuck to the focus screen. The exposure meter is located up past the view screen in the same area as the pentamirror. If an obstruction is blocking or filtering light from reaching the meter you will get the behavior your camera is exhibiting. Also, if the focus screen was removed when you got the mirror unstuck and accidentally put back in upside down (the side that should be facing the light box/mirror is now facing the pentamirror/viewfinder) it will affect the amount of light that passes through the view screen.
Comment: Failing this there is also the option of an independent repairer which will be significantly cheaper than Nikon's.


How to wrap an object around a cloth and "squeeze" the cloth, like a napkin ring or rag on a jar

Question: You know the way you'll sometimes see someone with a rag tied over a jar?  I tried to make this effect with a jar and a ring (torus) where the cloth falls over the top of the jar (this part works perfectly) and then the ring cinches around the cloth.  The jar and ring are both set to collision.  When the ring reaches the cloth it seems to cut right through it and distorts it beyond recognition.  I'm certainly not getting the nice cord around a cloth effect I'm going for.  I've also tried using a force field on the ring with similar outcome.
Comment: Try subdividing the torus (or giving it a subdivision surface modifier, then applying it) - this gives Blender more geometry to work with and deform for the cloth simulation and in general increases realism. However, it's hard to not get glitches in the cloth (especially for non-planar cloth) when one side moves through the other, etc., without making it very stiff - but fiddle around with the cloth sim settings a bit and get back to us.
Answer: For starters, I'd say model the thing manually if its not necessary to use the cloth sim.
Cloth sim is for interactivity, i.e. if you want the cloth to interact with something later in an animation.
However, if you want to use the cloth sim, try using Cloth Sewing (new since 2.70), here is a general tutorial: https://www.youtube.com/watch?v=ySyQsLD_7GM
In your case, i would use a similar approach as in the video with the cloak, wrap the cloth mesh around the jar lid, connect all open vertices with edges and mark them as seams to pull together.
I would model the string holding it together entirely manually.
Comment: This doesn't really answer his question. He didn't specify if the cloth simulation is necessary for interactivity either, so he may well be planning to make an animation.
Comment: For one, i gave an answer with using the cloth sim, but suggested to do it without IN CASE its not needed. B. the straight answer to his question is that Blender isnt a simulation of reality. The approach to simulate tying a rope around a piece of cloth using collision objects is an approach for reality, not a 3D modeling software. The cloth sim is only a rough approximation of real cloth behavior for deformation.

I would give the same answer if he asked me how to tie a knot using the cloth sim, its the wrong tool for the job.
Comment: In the same way, although Blender's cloth simulation is not an exact representation of reality, it has the potential to be with workarounds. One may simply need to increase the number or steps or the FPS to get more realistic results.


How do I summon a chicken zombie jockey with diamond armor using a command block?

Question: I've been working with command blocks for a while and I have gotten pretty good at them, however I'm trying to make a baby zombie (with full diamond armor) riding a chicken and I just can't do it! I can make a baby zombie riding a chicken, or a baby zombie wearing diamond armor, but I can't do both. Where should both qualities go in the coding?
Comment: Almost a duplicate of [How do I create tools with multiple properties?](https://gaming.stackexchange.com/q/349279/185203), but not quite.
Answer: You want to use the Riding: attribute when you spawn it in. This will produce a zombie chicken jockey in full diamond armor, with a diamond sword (the first item):
/summon Zombie ~ ~1 ~ {IsBaby:1,Riding:{id:Chicken},Equipment:[{id:276},{id:310},{id:311},{id:312},{id:313}]}

It's very likely that you just need to add Riding:{id:Chicken} to what you've currently got in your command block, and adjust the coordinates to fit.
The decimal values for armor and swords (or other weapons, etc) can be substituted to fit whatever need.
Editorial note - reader beware! It is extremely fun to do positively silly things with this and then realize you spent the whole day doing it.
Comment: I totally agree w/ your last statement there, I remember when I first played minecraft, I started playing in the morning, looked up at the clock later, and it said 7:00 PM already.
Answer: OP Zombie Villager Chicken Jockey Command:
/summon zombie_villager ~ ~1 ~ {CustomName:"Your Worst Nightmare", CustomNameVisible:1,IsBaby:1,Equipment: [{id:diamond_sword,Count:1,tag: {ench:[{id:sharpness,lvl:10}]}}, {id:diamond_boots,Count:1,tag: {ench:[{id:protection,lvl:10}]}}, {id:diamond_leggings,Count:1,tag:{ench:[{id:protection,lvl:10}]}}, {id:diamond_chestplate,Count:1,tag:{ench:[{id:protection,lvl:10}]}}, {id:diamond_helmet,Count:1,tag:{ench:[{id:protection,lvl:10}]}}], Riding:{id:"Chicken",IsChickenJockey:1}}

Use this for good enchanted gear drops.
Answer: Try this command:
/summon PigZombie ~ ~ ~ {Equipment:[{id:276},{id:310},{id:311},{id:312},{id:313}],CustomName:lol Zombie,Riding:{id:"Chicken"IsChickenJockey:1}}

Comment: Baby Zombie riding a Chicken, not a Zombie Pigmen.
Answer: To summon a baby zombie with items, type this:
/summon Zombie ~ ~1 ~ {IsBaby:1,CustomName:Equipped Baby Zombie,Equipment:{[id:297]}]

and bam, there you go.  Copy and paste this on your Minecraft server.
Comment: This answer does not add anything new to the question, or to existing answers. Also, like all code-related answers on StackOverflow, **please perhaps provide some explanation on how the code works**.
Answer: I would use this:
/summon Zombie ~ ~1 ~ {CustomName:"Sittin' On The Chicken",
CustomNameVisible:1,IsBaby:1,Equipment:
[{id:diamond_sword,Count:1,tag:
{ench:[{id:16,lvl:1}]}},
{id:diamond_boots,Count:1,tag:
{ench:[{id:0,lvl:1}]}},
{id:diamond_leggings,Count:1,tag:{ench:[{id:0,lvl:1}]}},
{id:diamond_chestplate,Count:1,tag:{ench:[{id:0,lvl:1}]}},
{id:diamond_helmet,Count:1,tag:{ench:[{id:0,lvl:1}]}}],
Riding:{id:"Chicken",IsChickenJockey:1}}


Network security in Docker containers

Question: I am currently involved in enhancing the security of a Docker-based web application.The application follows a traditional three-tier architecture, comprising a web app, an application layer, and a database—all operating on the same VM. A firewall and a WAF in reverse proxy are filtering the content before it reaches the Docker environment. However, inside the docker container we have no visibility over the traffic.
I know that, from a classic secure architecture design, each level (web server, app server, database) should be separated and filtered by firewall and IPS.
How is this strategy applying here? How can I gain visibility and does this model applies here anymore?
Comment: Have you read [the documentation on Docker security](https://docs.docker.com/engine/security/)?
Comment: Visibility over the traffic is a bit old skool thinking? A tip on the side, the Center of Internet Security nowadays also offers hardened images for docker, might be interesting for you.https://www.cisecurity.org/insights/blog/using-hardened-container-image-secure-applications-cloud
Comment: "inside the docker container we have no visibility over the traffic" -- because there is no traffic if it is all on a single container. "each level ... should be separated and filtered by firewall and IPS" -- why? It sounds like you are trying to shoehorn one model's best practice when you aren't using that model. What risks do you want to mitigate? Start there.
Comment: Perhaps you want to put a new container in the same network and gather all the logs from the other containers or smth like that?..
Answer: So I'm assuming here that you're splitting the parts of your application into different containers (and orchestrating via compose?)
Generally speaking firewalling between containers, in a single host compose setup, isn't likely to be very useful, as your components are acting as a unit and generally there's only one service running in each container, so no management ports or similar to be firewalled off.
The "standard" advice to firewall between components of an application, when those components ran on different VMs (or physical hosts) was generally designed to stop an attacker who had compromised one host, getting to management or monitoring services on the other hosts. This is less relevant in a world where each container only runs one application service and nothing else.
For visibility, assuming standard Linux networking, your containers are running attached to a network bridge on the host, with each container running in its own network namespace, and you could attach a sniffer to those network namespaces if you wanted to.
However, it sounds like what you're looking for is the ability to observe activity in each container to detect possible malicious activity. Here you might be better served by a security agent which works with containers, something like Falco or Tetragon

Network security in Docker containers