Restoring profile to deleted user

Question: We have an issue where a user's account was deleted and then another account was created with the same username. On Windows XP, the profile for this user was created in the folder "user.DOMAIN" whereas the original user's profile is at "user." How can we redirect this user's profile back to the "user" folder? We tried to change the ProfileImagePath registry key and what ended up happening was XP created a third profile at location"user.DOMAIN.000"
Comment: The new profile was created because the user did not have rights to either the old folder or the old registry hive. See my answer below for how to correct this.
Answer: You'll need to assign the user full access permissions recursively to the old profile folder. You'll also need to do the same for the registry hive (NTUSER.DAT) in the old profile. Then you'll need to edit the ProfileImagePath key as you've previously noted.
To assign permissions to the profile folder:

Log in as a user with administrative rights.
Right-click the old profile folder (C:\Documents and Settings[user name]) and click Permissions. Go to the Security tab. Click Advanced.
Go to the Owner tab. Recursively change the owner to Administrators. (If you get an error, proceed to step 4.)
Go to the Permissions tab. Add the new user account, with full permissions. Apply this recursively.
If you get an error in either step 3 or step 4, repeat both steps in sequence until they both complete successfully without errors.

To assign permissions to the registry hive:

Log in as a user with administrative rights.
Open Registry Editor. Select the HKEY_USERS hive.
Click File - Load Hive. Browse to the old profile folder and select the file ntuser.dat. Give it a friendly name when prompted -- it doesn't really matter what you put here.
Select the newly loaded hive key under the HKEY_USERS hive. Right-click this key and click Permissions. Go to the Security tab. Click Advanced.
Go to the Owner tab. Recursively change the owner to Administrators. (If you get an error, proceed to step 6.)
Go to the Permissions tab. Add the new user account, with full permissions. Apply this recursively.
If you get an error in either step 5 or step 6, repeat both steps in sequence until they both complete successfully without errors.
Select the hive key (from step 4), then click File - Unload Hive.

To modify the ProfileImagePath registry entry:

In Registry Editor, browse to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList (Note the Windows NT not Windows in the path).
Under this key, you will see several subkeys, each corresponding to user SIDs. You'll need to identify the SID for the current user account you are attempting to associate with an old profile.
Under the key corresponding to the SID for the user account, modify the ProfileImagePath entry to reflect the path of the old profile folder.
Close Registry Editor.

Restart the computer. (You may be able to simply log out, but if the registry hives do not unload correctly, the next step may fail.)
Log in as the user, and you should get the user's profile back.
NOTE: Certain saved passwords will be lost, because Windows XP provides a method for saving passwords in an encrypted format that uses the user SID and password as part of the encryption algorithm.
Note also that if the user was previously applied to ACLs on network resources, you may need to modify those ACLs to reflect the user's new SID.
Comment: Note that these instructions were developed under Windows XP. I haven't had the opportunity to try with Vista or Windows 7 -- your mileage may vary. Vista and Windows 7 have some permissions (particularly on junction points) in the profile folders that may be messed up if you follow these instructions.
Answer: Look into using USMT, as this will let you pull the profile of one user and restore as another.  A deleted user will lose all of the SID information within the registry hive.
http://www.microsoft.com/download/en/details.aspx?id=10837
Another good idea is to disable users and place them in an OU, rather than delete them.
Comment: Disabled users still require a CAL. It's a good idea to keep them there for a short time, but not indefinitely.
Answer: Why don't you just copy the contents of user into user.DOMAIN?
Comment: But does doing that copy things like the wallpaper, theme setting, etc?
Comment: Just copying the contents may break paths stored in configuration files or the registry. Besides, copying the registry hive (ntuser.dat) over may cause a failure of login since the new user account may not have access to keys in this hive. See my answer.

Restoring profile to deleted user


Protecting a document that you sell

Question: I have written a short guidebook that I have been selling hardcopy. There is now interest in a digital version. How do I protect this guidebook so only the people who purchase it have access to it? I don't want them to be able to forward it to someone or load onto more than one computer?
Comment: I would just use a digitial publishing platform (iBook, Amazon Kindle, etc) and let them handle that for you. They all support some form of DRM or another.
Comment: In your case, I would recommend self-publishing an Ebook using a third party like Amazon as this seems like the *best* solution in your situation. **However,** to answer your question -or rather to prompt others to in depth, [the concept of DRM](http://en.wikipedia.org/wiki/Digital_rights_management) is what you are looking for. It seems you want to know how to potentially roll out your own DRM (perhaps so you can keep 100% of sales). I would hope that someone could explain a good way for you to [rollout your own DRM](http://www.drumlinsecurity.com/).
Comment: Without this turning into an anti-DRM argument, the only real way of preventing piracy is to make buying the document or book more appealing than pirating it in my opinion. If you do decide to go with rolling your own DRM, keep in mind that you're probably going to end up doing 80% of the work preventing 20% of your readers from pirating.
Answer: In general, this is impossible.  Anything your users can access, they can create an insecure copy of.
That said, this is a problem that people have tried to solve before, and they have come up with some partially effective methods (see iBook or Amazon Kindle, as vcsjones suggested in a comment).  These methods rely in part on punishing violators, so that copying the document, while nowhere near impossible, is difficult and unappealing.
Comment: Why was this downvoted?

Protecting a document that you sell


Assigning a core to TCP polling

Question: We have several Java applications that run on the same Linux machine and send messages back and forth via TCP. We use a ServerSocket and Socket to create the connections. I want to reduce the latency of this communication as much as possible. It seems to be possible to assign a core on our box to do continuous TCP polling which will improve that performance. How is that done in Linux and / or Java?
Answer: It isn't. There is no way to assign a thread to a core in Java.
And assigning a single core won't improve the performance; on the contrary it will probably reduce it. I don't know exactly what you mean by 'polling' but you can't do it with Sockets: you have to use separate threads blocking in read(). If you are contemplating using InputStream.available() you are barking up the wrong tree altogether and should be using NIO with a Selector.
Answer: There is a way to achieve this, but it is not be portable.
What you need to do is:
 1) Find out native thread id
 2) Set affinity for the native thread
You can get the native thread id (which on linux is a process id) using unsupported classes from packages under sun.jvm.hotspot. You can link against these classes by including sa-jdi.jar (bundled with the jdk) to build path. Since I don't like idea of copying the answer from another site, you should go and read the instructions from github
Once you have obtained the native thread id, you should use 'taskset' command line utility to change the affinity. You can find the instructions how to use taskset from another post

Assigning a core to TCP polling


Is it legal for a broker of insurance to cancel your policy if they do not send you the warning-letter from the insurance company about cancellation?

Question: Is it legal for a broker of insurance to cancel your policy if they do not send you the warning-letter from the insurance company and they put things on your insurance policy that you never asked for?
Comment: What country and province/state are you in?
Comment: As someone who works in insurance, are you sure they put the things on you did not ask for, or was it stuff automatically put on that company's policies?  Some companies automatically include various coverages you might not have specifically asked for, or a coverage you wanted may have been easiest/cheapest to add as part of a bundle that included various other coverages.
Answer: There are two separate questions here, cancellation and adding stuff. As for cancellation, you have to look at the applicable laws. In Washington state, for example, there is a law governing insurer cancellation of insurance. For insurance other than fire and medical malpractice insurance,

The insurer must deliver or mail written notice of cancellation to the
named insured at least forty-five days before the effective date of
the cancellation

and for medical malpractice, the timing is 90 days; or 5 days for fire insurance. The net result is that all forms of insurance require written notice of cancellation.
The terms of an insurance policy can be changed by the insurer: they must tell you of these changes, and you do not have to "ask for" them. If you don't like the changes, you can attempt to persuade them to not make the change, or you can cancel the insurance.
Whether or not an insurance broker is authorized by the insurer to act in a particular way depends on the broker's actual relationship to the insurer. In Washington state, agents and brokers are subsumed under one concept "insurance provider". Agents and brokers are generally not empowered by the insurer to do wholesale re-writings of policies (e.g. adding coverage for seismic damage for all customers). An agent or broker cannot, however, unilaterally add "medical malpractice insurance" specific to your homeowner's policy without your approval.
Answer: It depends who's agent the broker is
If it is a general insurance policy (property, motor, liability etc) then the broker is your agent. A notice delivered to them is legally a notice delivered to you.
If it is a life policy (life, income protection, TPD etc) then the broker is the insurer's agent. A notice delivered to them is just the insurer talking to themselves.
This is the common law default for historical reasons, however, specific jurisdictions may have other rules.


Which haloalkane would yield 2-methyl-2-butene only, upon dehydrohalogenation?

Question: I guess this alkylhalide, in picture below, would be the answer but this alkyl halide may also give 2-methyl-1-butene because there are 2 beta-carbons and therefore 2 beta-positioned hydrogens I.E.if Hydrogen on the leftside of alpha-carbon  leaves with chloride then formation of 2-methyl-1-butene would take place in stead of 2-methyl-2-butene but I need a alkylhalide which would always give 2-methyl-2-butene upon dehydrohalogenation.
Answer: You should switch the positions of the chlorine and hydrogen to be eliminated.
For your given molecule a secondary carbo-anion intermediate (at the 3/green carbon) will have to compete with the formation of a primary carbo-anion (at the 1/red carbon) intermediate to provide the desired product.

If you use 2-chloro-3-methyl-butane your desired product will form a much more favorable ternary carbo-anion intermediate (at the 3/green carbon) which will compete again with a primary carbo-anion intermediate(at the 1/red carbon).
Comment: @SufyanNaeem Because the more electron rich a carbon, the more stable a cation will be on it. since the methyl groups are more electron donating than the hydrogens a cation will be more stable on a more substituted group.
Comment: @A.K. Note that tertiary anions are the *least* stable anions, not the most stable ones. Compare the reactivity of tBuLi with n-BuLi or sec-BuLi. But that's probably not of too much relevance since your elimination would proceed *via* $\mathrm{E2}$ or $\mathrm{E1}$.
Comment: Oh god, can't understand it. Complicated.. but I'll try or you extend it if you think it can help
Comment: @SufyanNaeem Do the images and colors help?
Comment: +1. Yes its lovely! But why tertiary carbon cation is more favourable?
Comment: @Jan Simple you mean an anion but mix the two up and type cation. I have corrected the error.
Answer: 2-Chloro-2-methylbutane is correct molecule only
You will get upon dehydrohalogenation the major product as 2-methylbut-2-ene always; however, it won't be exclusive product. The other one i.e. 2-methylbut-1-ene will also be there albeit in smaller amounts
The % of the major product however could be improved using high polarity solvents, which favour SN1. Free carbocation will preferably give more substituted alkene.
Comment: But the book want me to give a conpound which gives 100% 2-methylbut-2-ene. So what should I do?
Comment: get another book. it is called a second opinion!


Where is SDL Tridion Connector for ADAM located in installation media

Question: The documentation for SDL Tridion connector 1.0 describe a procedure for running the connector for ADAM installer. However i am not able to locate the installer on media that i am suppose to run. I am using Tridion 2013 SP1. The external content library is already installed.
The link that i am following is here
Answer: This is not really a question you should be asking here, it is one which you should ask to Customer Support in my opinion.
But I'll attempt to give you an answer anyways, the SDL Tridion Connector for ADAM is licensed separately and its installer is available upon request at Customer Support (once you have purchased the license I would actually expect that it is shipped to you as part of all the software you have purchased).
In the case that you are a partner and have a active partner license to utilize the product, then you have to contact Customer Support for getting access to it.
Last note, the connector is only an ECL provider, you still will need to have a fully installed ADAM product, which is separately licensed and also a separate install (which you have to get from ADAM software of course.
Comment: Hi Bart, Actually it was no where mentioned that the connector is separately shipped on the sdltridionworld website and hence i was confused if i missing anything. ADAM we have already installed. Thanks, i will contact the customer support to get the connector
Comment: @rdhaundiyal I think you can generally conclude, if a product has its own publication in the documentation portal, then it will have a separate installer too. Also not all products are available fro download via SDL Tridion World, since they might require a special license or additional support, which is why in those cases your first point of contact is CS.


How can I capture an OpenBSD install console?

Question: So.. How can I save the text that is based on Q/A's when installing an OpenBSD 5.3? Or I only have the choice to manually type the texts down? or an OCR software using printscreens?
Answer: One often-overlooked easy way is to do the install over a serial port.  That assumes the machine has a serial port, which is not always the case.
I know, you will say "but my machine doesn't do a serial port console".  That doesn't matter.  There are two ways to tell OpenBSD to use a serial console, the first, most useful in doing a fresh install from a CD is to use the boot loader:
>> OpenBSD/amd64 BOOT 3.23
boot> stty com0 9600

com0: 9600 baud
boot> set tty com0
switching console to com0
>> OpenBSD/amd64 BOOT 3.23
boot> boot

The second is to put these same parameters in /etc/boot.conf.
# cat /etc/boot.conf
stty com0 9600
set tty com0

Then you can just log your terminal to a file, or cut and paste from putty, etc.  I have some machines that "don't do serial consoles" booting this way, and unless there is a boot failure on the BIOS level, it works great.
If you are using tip, you can start recording a session by setting the variable script.  You set a variable in tip by issuing ~ s.
kellogg# tip tty03
connected
~[set] script

The default file name is tip.record.  You can change that name by setting the record variable.  The default recording includes non-printable characters, you can stop tip from doing that by setting the beautify variable.
You can also create a .tiprc file in your home directory to set these variables for you on any tip session.
set script
set beautify
set record=/tmp/tip.txt

Comment: Thanks! but how can I redirect the output to a file? ex.: flashdrive?
Comment: @gaskopeter I've added how to make `tip` record your session, after figuring out how to do that.
Comment: Or you can use `tip` (whatever) inside `tmux` and use tmux's 'pipe-pane' command. Or `script $outfile` ... Many options to save text output.
Comment: @JiriXichtkniha Also an excellent method.  OP asked for a concrete example so I chose this one.


Why some items on Wikidata have no corresponding Wikipedia entry?

Question: I get stuck by this Wikidata item: 9., and wonder why there is no corresponding Wikipedia entry?
Answer: What can or cannot have an item is governed by Wikidata's notability policy:

It contains at least one valid sitelink to a page on Wikipedia, Wikivoyage, Wikisource, Wikiquote, Wikinews, Wikibooks, Wikidata,
Wikispecies, Wikiversity, or Wikimedia Commons.
It refers to an instance of a clearly identifiable conceptual or material entity. The entity must be notable, in the
sense that it can be described using serious and publicly available
references.
It fulfills a structural need, for example: it is needed to make statements made in other items more useful.

So there can be items without Wikipedia articles if they correspond to some non-Wikipedia wiki page (e.g. a Wikisource source), they help extend the graph of Wikipedia items (e.g. relatives of a famous person who can be linked via child etc. relationships but aren't notable enough to have their own Wikipedia articles), or if those items refer to things or concepts which are discussed in serious sources (e.g. people tend to mass import things like authors from scientific databases).
Unicode characters presumably fall under the second point, the Unicode standard being a serious reference.
Answer: That's master data. Things that you need in order to refer to them in other entries.
Another example would be Q51155371.  A meaningful encyclopaedic article is simply impossible.
You can however use the What Links Here tool to inspect if there are indeed references.
Answer: Wikidata is not limited to topics that are covered on the Wikipedias.
For instance, many hotels have a Wikidata item but no Wikidata article. Also, existing Wikipedia articles may be deleted or merged into others.
You can actually create new Wikidata items at https://www.wikidata.org/wiki/Special:NewItem without needing to reference any Wikipedia article.


Android spammy ad highjacking

Question: This past day my Android tablet has been showing me invasive fullscreen ads (for Candy Crush, as it turns out, which I've never downloaded) while I've been using skype and gmail app. About one impression every five minutes or so. I'm familiar with mobile ad highjacking on webpages, but this is new, since I don't have a browser "open" and I would have thought that the gmail app sanitized the html that it displays.
So, how exactly are those scummy spammers doing it, and how do I kill it?
Answer: gmail runs in the background could try a stop and clear (from your Google Dashboard) which should trap or kill off any cookies

Android spammy ad highjacking


record a feedback on amp via headphone (output) jack

Question: If I have an amp(Vox AC30 for example) and an output jack in the back of the Amplifier, can I connect this jack to a sound card or a mixer and record everything that go out from the amp (feedback too?)
What is going out form this jack?
Comment: Why not plug headphones into it and listen?
Comment: It will record feedback as well?
Answer: Different amps have different types of line-out. An early modification for Fender amplifiers was to fit a 'tap' out of the preamp, by splicing an output between the preamp and power amp sections. Before master volume controls were standard this allowed a Fender amp to be run at a cleaner setting, and then bolstered to concert volume using another power amp.
Some amps have line-outs that emulate a speaker cabinet, and companies like Palmer make speaker simulators that can be inserted between amplifiers and speaker cabinets to allow a DI feed to be sent to the Front of House, modified to mimic the tone of a mic'd up speaker cabinet.
For feedback you need to find an output on your amp that is strong enough to drive recording equipment and doesn't mute the speaker(s) in your amp. Feedback is the almost organic interaction of guitar and speaker, and doesn't happen without the two in relatively close proximity. A simple cheat may be to split your guitar signal into a second amp, running at a higher gain setting. Your first amp is feeding your recording interface, and the second amp is primed to produce feedback. Assuming that you want feedback from the strings, and not simply the squealing microphonics of a pickup feedbacking internally, this method might work quite nicely though it may sound more like an Ebow than anything else.
Answer: You can if it's a line out jack, as it will be a line level output and is made specifically for the purpose of taking the output of the amp section (not cab) and connecting a different cabinet or recording etc. Be careful that you select the appropriate line level on the interface, or Bad Things could happen (most likely a weak signal, worst case a damaged input)
Depending on if the power amp section bypasses the cab when connected, there won't be any way for the amp to generate feedback, as this is created between the sounding speaker of the cabinet and the guitar itself, so you'll have a closed(soundless) loop from

guitar > amp > interface/whatever

This is why when you see rockstars getting the feedback sound, they tend to stand right in front of their amps.
If you want the feedback sound, you'll have to invest in a microphone and place it in front of the amp, connect it to the interface and record that way. You'll get a more natural tone through the cabinet, as the line out is generally meant to be connected to another cab, it doesn't sound all that great recorded raw (of course this is open to subjective opinion), and microphone placement is very important.
Otherwise, if you can record the cabinet and line out simultaneously, you'll get the feedback through the line out, but it might not sound all that great.
Comment: If any of these points are incorrect, please let me know and I shall correct them, this is based mostly off personal experience as a sound engineer (using a Randall combo amp as reference point)
Comment: Actually, if you are recording from the Line Out on the amp, and the cab is not bypassed, you can still easily get feedback (as this happens between the guitar and amp, and any vibration of the strings - including the feedback - will be sent out the Line Out connection)
Comment: That's definitely true, I guess it depends on if the line out connection bypasses the cab when connected. Added to the answer, thanks.


Entity Framework "Update model from Database, table becomes relation

Question: I'm trying to create a table from within visual studio and update my .edmx file inside Visual Studio by right-clicking the file and selecting Update Model from Database.
My table looks like this:
CREATE TABLE [dbo].[tableName] (
[UserId] UNIQUEIDENTIFIER NOT NULL,
[CategoryId]   INT         NOT NULL,
CONSTRAINT [PK_responsibleUser] PRIMARY KEY NONCLUSTERED ([UserId], [pkID] ASC),
CONSTRAINT [FK_responsibleUser_user] FOREIGN KEY ([UserId]) REFERENCES [dbo].[users] ([UserId]) ON DELETE CASCADE,
CONSTRAINT [FK_categoryResponsibleUser_category] FOREIGN KEY ([CategoryId]) REFERENCES [dbo].[categories] ([CategoryId]) ON DELETE CASCADE
);

This table contains two foreign keys to the tables i want to link. After I run the script "Update Model from Database", a relation between the two tables pops up.
Now Heres the problem: I need EF to generate an instance of my class in Visual studio like this:
public virtual DbSet<tableName> TableIWantToBeGeneratedByEF { get; set; }

As I said, with the current mapping it just creates a relation between two tables. How do I alter my query when creating the table for this to happen? Can this be achieved while using two foreign keys as the primary key or what?
Answer: Just open the model designed, select all (ctrl + A), press 'delete' button to delete them, and finally right click and select Update Model from Database. This will force EF to re-generate all model.
(Or just delete all referenced tables so that they are also regenerated)
Comment: Doesnt work, the table still shows up as a relationship, not a table.
Answer: Almost forgot. It seems that it was the  compound primary keys that caused the problem. I changed so both my foreign keys just acted like foreign keys and not as a combined primary key, then created a columnn named Id instead with datatype INT Identity.
Ran the script "Update Model from Database" in .edmx designer and boom, there it was.

Entity Framework “Update model from Database, table becomes relation


Erc20 vs Erc721 totalSupply difference

Question: I just started to learn about blockchain and I have a question related with ERC20 and ERC721.
In ERC20 we will set up the totalSupply of our token to X, so if I understand correctly the token value fluctuates depending on the number of sales and the number of token holders in DEX.
On the other hand, in ERC721 the totalSupply is set at each NFT level. Only when a transaction on a NFT is processed, a % of fee would be distributed to the development team. Or is there another way?
Are my understanding correct?
Thanks
Answer: For ERC-721, totalSupply is defined as:

A count of valid NFTs tracked by this contract, where each one of them has an assigned and queryable owner not equal to the zero address

This means: however many NFTs there are, that is the total supply.
Comment: So does that mean if you burn an NFT that the retrieved totalSupply() should go down by one?

Erc20 vs Erc721 totalSupply difference


Values of angular frequency of discrete-time sinusoidal signal

Question: Why are the values of angular frequency of discrete-time sinusoidal signals in between -pi and pi?
Answer: Because the sequence
$$ x[n] = A \cos( \omega n) $$
will produce exactly the same samples for all discrete-time frequencies such as $\omega = \pi/3$ or $\omega = \pi/3 + 2\pi$ or $\omega = \pi/3 + 6\pi$ or $\omega = \pi/3 -8 \pi$... In other words every frequency of the form $w = w_0 + 2\pi k $ for all integers $k$ will yield the same set of samples; they are indistinguishable, and we chose to use the range $[0,2\pi]$ or $[-\pi,\pi]$, when referring to the discrete-time sinusoidal frequencies.
Note that the periodicity of the discrete-time frequency $\omega$ relies on the fact that the index $n$ is an integer. Otrherwise, like in the continuous-time case, the frequency $\omega$ would range from $-\infty$ to $\infty$.
Comment: The last paragraph was great. I could never figure out why the discrete case had a restriction and the continuous case didn't, until I read that paragraph.  thanks.


Is it safe to remotely connect to an infected machine via VNC or TeamViewer?

Question: Since there has to be some data transfer between any two machines that have established a connection, is it truly "safe" to connect from a clean computer to an infected one using VNC or TeamViewer?
Answer: To the best of my knowledge, the only potential risk presented when connecting to an infected machine remotely would be if you are doing active file transfers between machines or open up some connection on your local VNC/TeamViewer machine that would allow the infected machine to actively act on your machine.
An edge risk is that—let's say—your client machine has a similar vulnerability to the infected machine. And that vulnerability is network based… Then let's say a port is open on your client machine, and the remove machine sees you connecting to their machine… It might start to probe your client machine for vulnerabilities and possibly act on them. But I would consider that an edge case based strictly on malware behavior and not some generic thing one would worry about.
So if you were truly worried and the infected machine is Windows, then I would recommend using a VNC client on a Linux or Mac OS X machine to connect to the remote machine. The difference in operating systems is enough to ensure nothing from the infected machine would magically "jump" to the non-infected VNC client you are using.
In general, I would't worry… Unless you need to do file transfers.
Comment: Thanks for the tip about using alternating OS's as a safety 'membrane'. It would be great to hear from someone who could confirm this from technical experience, but otherwise I will mark it as answered if that isn't forthcoming.
Comment: Could you go into detail?
Answer: There is a major difference between using VNC and using TeamViewer in this scenario, I will try to list some of them and I hope someone can edit and add other points that I'll probably  forget to mention, but for those who only want the conclusion: Using TeamViewer is safer, but not too safe.
Suggestion: I suggest you booting up from a live Linux distro USB, unmount all HDD partitions, make sure you are NOT root then connect to the other machine, this is the safest way that can defeat most of malwares.
TeamViewer is designed to put some transparency between clients connecting with each other (no local direct connection is established), plus it's well maintained from their team, taking in hand the safety approach as a big factor I can say.
In the other hand, VNC is designed to connect locally or remotely (which means it can be more dangerous when used locally).
TeamViewer also keeps live track of the files transferring between devices (by live I mean a pop-up window will be shown with details about files), but when it comes to VNC then you have to go through some logs (if logging is enabled) to find any suspicious activity (Good luck!).
From TeamViewer support site (TeamViewer manual), if you read from page 21 to 23 you can have a better idea of the security file transfer implementation, logging of file transfer operations, ...etc.
Also TeamViewer is designed ontop of VNC project, both are open source softwares which can be a major factor from security perspective, (remember the not so long found hidden 20 years old vulnerability in bash, also ~5 years in Windows, OpenSSL, etc...).
I think the major security advantage is that TeamViewer uses DynGate which is a kind of firewall, it tunnels your connection through HTTP (or secure HTTP), and it doesn't require ports to be opened on the firewall, so for both points, if your system is secure, TeamViewer is a better solution.
I must say in the end, the malware itself should be designed to take advantage of a running service in order to infect your machine, so if the malware is sophisticated enough, not the environment nor the service will matter.
An example of trying to take advantage of TeamViewer, let's say I am designing a malware, what I will do is try to establish connections through QuickSupport mode which hides pop-ups and in this mode all file system operations are allowed, but since you are establishing the connection to the infected machine, this implementation won't work because you will decide what mode you want to work with the remote machine not my malware.
Comment: When the term *transparency* is used, it means there is one or multiple points in between two points and they act like they don't exist, that's what I meant. Anyway, I searched a little more and I will edit my answer according to what I've read to make things accurate as soon as I can.
Comment: When you say "transparency", do you mean a "transparent buffer"? Because the way you have used it in a sentence could mean more a more direct and clear connection between the two machines which is the opposite of what you mean in the rest of your answer :)


what is the difference between tar and gZ?

Question: when i compress the file "file.tar.gZ" in iphone SDK, it gives file.tar , but both tar and tar.gZ gives same size?any help please?
Answer: *.tar means that multiple files are combined to one. (Tape Archive)
*.gz means that the files are compressed as well. (GZip compression)
Edit: that the size is the same doesn't say a lot. Sometimes files can't be compressed.
Comment: Yes, in rare cases compressed data will actually be larger than uncompressed! For example, if you are compressing small strings, or files that at already compressed (mp3, jpg, etc).
Answer: As Rhapsody said, tar is an archive containing multiple files, and gz is a file that is compressed using gzip. The reason why two formats are used is because gzip only supports compressing one file - perhaps due to the UNIX philosophy that a program should do one thing, and do it well.
In any case, if you have the option you may want to use bzip2 compression, which is more efficient (IE, compresses files to a smaller size) than gzip.


Why is it possible to identify a language without hearing the words?

Question: I have noticed that often while walking in the street in a foreign country, I will be able to recognize that someone nearby is speaking a language I'm familiar with without actually being able to make out the words. This effect is most pronounced for my mothertongue, where sometimes just hearing what seems to be an onomatopeic sound will be enough. Is there a basis for this phenomenon ? Do languages have a sort of frequency signature that we can immediately identify ?
Comment: Phonology. I actually wrote a neural net AI in AI class that identified languages based on the sequence of letters used (to make it interesting I only used the Roman alphabet), using 50 neurons per language. It had an accuracy in the 90-95% range.
Comment: Well, I may have misinterpreted your question. If you can't even hear the sounds, prosody can still give you a lot of information. I've noticed the same thing: I can identify some languages through walls, with heavy muffling and an almost complete inability to hear the individual sounds.
Comment: +1 this is an excellent question -- in fact, with even limited exposure, it's not hard to identify languages you don't even know a word of.
Comment: @ Justin Olbrantz: I meant no being able to distinguish the individual words while still hearing the sound of the language being spoken.
Answer: Yes. Languages can often be distinguished based on prosodic information alone. Studies show that a newborn infant can distinguish different languages, provided the languages being compared are prosodically different enough from one another. A newborn is also predisposed to recognize her mother's native language.
In one study (Nazzi, Bertoncini, and Mehler 1998), French newborns could distinguish English from Japanese and English/Dutch from Italian/Spanish, but not English from Dutch or Italian from Spanish.
The theory is that prosodic information, but not segmental information, can be perceived from inside the womb.
Nazzi, T., Bertoncini, J., and Mehler, J. (1998). Language discrimination by newborns: toward an understanding of the role of rhythm. Journal of Experimental Psychology 24(3) 756-766.


If I dropped a penny in a falling room, what would happen?

Question: Assume I was in a falling box that falls at exactly 50 mph. I drop a penny and this penny is travelling toward the floor of this box at 20 mph. Because the speed of the box is greater than the speed of the penny, what would happen to the penny?
Comment: Have you tried using basic equations of motion on this ?  What did you get ?  I'm reluctant to give you a direct answer as this sounds like a homework type question.
Comment: Question seems unclear.  If it is traveling towards the floor at 20 mph it's speed isn't less than the box.
Answer: Remember that if you drop something, it doesn't fall at a constant speed, but picks up speed as it falls. This is due to the acceleration of gravity.
If the box is not accelerating, but has a constant velocity, the penny will fall exactly as it would if the box was on the ground. (From a physics standpoint, the box being stationary and in constant motion would look the same.) The penny would accelerate at 32ft/sec squared and would fall as we expect it to on the ground.
If the box was accelerating at the same acceleration as gravity, the penny would just hang there in mid air. If the box was acceleration downward at a greater rate than the acceleration of gravity, the penny would rise and hit the ceiling.
If you aren't in a gravity field at all, the penny would move in whatever direction you sent it with whatever velocity you started it with until it hit a wall.
Answer: If the speed of the falling box was only a constant 50 mph then it would obviously not be free falling. Inside the box if you let a penny freefall then after 2 1/2 seconds it would be moving faster than 50 mph and constantly gaining speed. In reality if both the box and the penny were freefalling then they would move at the same speed and the penny would appear to be floating inside the box.


Is cleaning logs from the database a good practice?

Question: If exported current database as an SQL file size is over 600Mb. Most of which are logs. My question is can cleaning up logs from the database be a good practice to speed up a Magento website?
Comment: Here is an easy way to disable writing to these log tables, if you don't need them at all: https://gist.github.com/IvanChepurnyi/7316368 (bonus: increased performance because no database writes on every page load)
Answer: Yes, you can configure your settings in Admin to automatically clean up logs.
System > Configuration > Advanced > System > Log Cleaning

You need to setup the Cron job for this on server.
Comment: +1 - this is the best answer.  Configure the site to store a reasonable duration of logs and the cron will clean up log entries as they pass their expiration
Answer: If you don't need the data at all, you can think about changing the database engine from InnoDB to BLACKHOLE.
Comment: or just disable logging events, no need to perform insert operations at all
Answer: I can't see any issues with it, I have been doing this for the past few years with no problems, also you can turn the log cleaning via cron job
Try this:
SET foreign_key_checks = 0;

TRUNCATE mage_core_cache;
TRUNCATE mage_core_cache_option;
TRUNCATE mage_core_cache_tag;
TRUNCATE mage_core_session;

TRUNCATE mage_dataflow_batch_export;
TRUNCATE mage_dataflow_batch_import;
TRUNCATE mage_log_customer;
TRUNCATE mage_log_quote;
TRUNCATE mage_log_summary;
TRUNCATE mage_log_summary_type;
TRUNCATE mage_log_url;
TRUNCATE mage_log_url_info;
TRUNCATE mage_log_visitor;
TRUNCATE mage_log_visitor_info;
TRUNCATE mage_log_visitor_online;
TRUNCATE mage_report_viewed_product_index;
TRUNCATE mage_report_compared_product_index;
TRUNCATE mage_report_event;
TRUNCATE mage_index_event;
TRUNCATE mage_index_process_event;
TRUNCATE mage_catalog_compare_item;
SET foreign_key_checks = 1;

Sure you can remove mage_ if you don't have it in you table name or replace it with whatever you have.
Answer: Magento maintains several tables for logging.These tables log things such as customer and visitor accesses and which products have been compared and which are viewed.Magento has a mechanism for cleaning these logs regularly, but unfortunately this feature is disabled by default and most customers do not turn it on.Please follow the steps to clean out the log tables

Open the database in phpMyAdmin via Control Panel.
In the right frame, select the check box for the following tables:
dataflow_batch_export
dataflow_batch_import
log_customer
log_quote
log_summary
log_summary_type
log_url
log_url_info
log_visitor
log_visitor_info
log_visitor_online
report_viewed_product_index
report_compared_product_index
report_event

At the bottom of the page, click the drop-down box With Selected and select Empty.
A confirmation screen will appear. Click Yes. This will truncate all of the selected tables.
Keep in mind that we are here to empty (Truncate) selected tables are not drop them. Be very careful when you do this.
Comment: No. The correct answer is to enable the feature, not just throw away *all* the data.
Comment: -1 - You mention that Magento has a built-in cleaning feature--then you **don't** show how to use it--very misleading.
Comment: Thanks for the expanded answer and a provided link. Surely comes in handy
Comment: When you say 'enable the feature' which feature exactly do you refer to @EJP
Comment: The link has become broken...
Answer: Cleaning  log is good idea for health of database.As per as magento, log table are store data about customer/visitor visaed urls  and times etc.
If it not important for you then you can do log cleaning
Comment: You can still track more popular pages/products/categories etc via google analytics. So cleaning logs should only make sense
Comment: yes. as you use ga then you can do log clean...


Can a wedding band be made from white gold?

Question: Is there any reason why a wedding ring for a woman should not be made from white gold? No gems, no in-carvings of course. I am interested in orthodox views.
Comment: Possible duplicate of [Wedding ring composition](https://judaism.stackexchange.com/questions/18497/wedding-ring-composition)
Comment: afaik what matters is a minimum (discernible) value. That value is more than satisfied by any gold.
Comment: My wife received a white gold ring. I am Chassidish and I always only saw white gold rings at weddings.
Comment: Ana - I wish you and your future husband numerous years of a happy loving lasting marriage and a gratifying family life and future. With that in mind, all you and your husband need is something *shaveh prutah* ("worth a penny"). I've seen numerous pre-marriage couples fight over trivialities such as the ring, as well as other nonsense. How foolish to argue on this before marriage. If only they could perceive the inevitable bigger problems that come during marriage that they need to deal with! I also challenge you to be unique in this area. You don't need to follow your community!
Comment: Similar to others who commented here, my wife also wanted a white gold ring. I asked my Mesader Kidushin, and he said it's perfectly fine.
Comment: White gold is the standard practice in Yeshivish circles.
Comment: Thank you all. @DanF All women in my community wear yellow gold rings, I don't like it, my future husband either, so we wanted to know is there any prohibition or ruling ...
Answer: There is no issue in a white gold wedding bad provided that

it is the groom's own possession
it is worth at least a pruta (a few cents today) and
that the bride is clear on what it is (see SA EH 31:1).

The custom I know is to have it pure gold and totally unadorned but chabad.org mentions that, in certain circles, it is customary to use a silver ring.
See here under 6 for further reading and here if you are interested in the halachic arguments when the ring is not what it was thought to be - it is interesting but not relevant to your question in practice.


Why "Yeast Extract"

Question: I'm having dinner at a popular burger joint, and the have their house seasoning on the table. It includes "Yeast Extract". What would be the reason to include this in a season?
Answer: Yeast extracts provide umami, so it's a flavor enhancer. In the burger joint context, I imagine you might think it makes things taste a bit more meaty.
The most famous yeast products are things like marmite and vegemite, but it doesn't have to be that intense. And since it's pretty easy to produce and can be dried into a powder, it's a common ingredient. You've probably had it in all kinds of commercially produced food without even knowing it.
Answer: Yeast extract contains a high content of glutamic acid, which, together with salt, forms MSG - hence the Umami taste. It's a flavour enhancer.
As MSG has been the focus of many health / nutrition scares and blamed for "everything" from cancer to obesity, using yeast extract allows a manufacturer to avoid writing "MSG" and still have it in the food.  -> Even the claims "no MSG added", "no artificial flavors" or "all natural flavours" are valid.
Comment: I don't think this is correct. The FDA explicitly bans "No MSG added" claims for glutamate extracts. See https://www.fda.gov/food/food-additives-petitions/questions-and-answers-monosodium-glutamate-msg "While FDA requires that these products be listed on the ingredient panel, the agency does not require the label to also specify that they naturally contain MSG. However, foods with any ingredient that naturally contains MSG cannot claim "No MSG" or "No added MSG" on their packaging. MSG also cannot be listed as "spices and flavoring.""

Why "Yeast Extract"


Single slit diffraction of light

Question: In a single slit diffraction experiment what would happen if the slit width is reduced to almost zero and if we are also watching the electrons with a light source. Will it still show a fanned out diffraction pattern or will it have a narrow concentration in front of the slit just like if it was like a particle?
Answer: It depends on the wavelength of the light.  If the wavelength is significantly smaller than the width of the slit, then the scattering of the light would smear out the diffraction pattern and it would look like a single bright band in the center.  On the other hand, if the wavelength is comparable to or larger than the size of the slit, then the influence of the scattered light on the electron will be small enough that the diffraction pattern might still be resolved.
It's worth noting that if you're going to use electrons in the experiment, the slit width would have to be exceedingly small - much smaller than the slits in the elementary lab equipment that you'd find in a first year physics course.

Single slit diffraction of light


403 Forbidden error on creation of new webapplication in SP2010

Question: I am getting an error 403 forbidden on creating new weapplication or extending web application although I have signed in as System Account. I am able to create new sitecollection from central admin. Previously it was working as expected and never faced this kind of issue. I have already rebooted the server, but still this issue exist. Please help...
Answer: 403 Forbidden Errors are usually Authentication Error's. You mentioned you are logged in as System account, that might not be the case then. First try checking ULS Logs and see what happened on that specific event. Also Please Take a look at this article this might help.
http://support.microsoft.com/kb/2543306
In some instances stsadm -o updatefarmcredentials  can help too. Good Luck.
Answer: If you're creating a web application with a host header and you get the error when accessing the new Web application from a browser on the server itself, then there is a good chance that what you experience is the result of the Loopback Check which MS has put into IIS.
You can disable this by following KB896861.


How can I make a backup of data I don't have permission for?

Question: Fedora doesn't boot anymore, so I need to make a backup of my data before running boot-repair. The thing is: I can't acess my fedora-personal files from boot-repair as I don't have permission.
How can I make a backup of them then?
Answer: From your live CD, try to log in as root in order to copy the data. Or use su/sudo su in a terminal window.
Comment: sudo did the trick, thanks. Unlike su, it doesn't ask for a password on boot-repair.
Answer: Boot from a live CD and mount the HD where you have the data to copy it to an external HD.


Why is 'The apple is 3 yuan' written '苹果三块' and not '苹果是三块'

Question: Why is 'The apple is 3 yuan' written '苹果三块' and not '苹果是三块', or are both acceptable?
Comment: Both are fine. Which source did you find the phrase?
Comment: HelloChinese mobile app.
Comment: I'd say it's analogous to how people write recipe in English: Sugar 2 tbsp. It's not really a sentence since it lacks the verb.
Answer: Both acceptable:
'苹果三块' (apple, three yuans) --> short for:  '苹果(的价格是)三块(一个/一磅)'
'苹果是三块 (Apple is three yuans) --> short: for '苹果(的价格)是三块(一个/一磅)'
Both mean 'the price of the apple is three yuans (each/ a pound)
苹果是三块 is kind of wordy for a length reduced sentence, therefore, 苹果三块 is the preferred way to shorten 苹果的价格是三块一个 or 苹果賣三块一个
No one would interpret 苹果是三块 as 苹果 can be used as a currency for three yuans


Problem compiling Emacs (no x development libraries were found)

Question: I'm still new to Ubuntu/Linux use
I'm installing Emacs (version 25.1)
that I've downloaded source files,
uncompressed and extracted the files using tar
It seems I have to use ./configure.
Computer works for a while and gives me this result:

checking for X... no
checking for X... true
configure: error: You seem to be running X, but no X development libraries
were found.  You should install the relevant development files for X
and for the toolkit you want, such as Gtk+ or Motif.  Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
  --without-x
to configure.

I looked in internet about this problem and a reply in a thread says to use:
sudo apt-get build-dep emacs23

and this will install everything needed to compile emac23 package
but when I do this I get :
E: Unable to find a source package for emacs25.1

In software and updates screen I've enabled the source code option. I checked
in etc/apt/sources.list.d folder and it is empty.
I'm not sure what to do. If everything fails will compiling emacs without x window support cause problems later?
Should I try to manually install x development files, toolkit files,files for image handling. How is how do I do this.
Edit:
So I installed Emacs using pre-built package. used command :
sudo apt-get install emacs

Edit 2:
In 2019 I'm now using VIM editor, so can't address this question now. But if you have an answer feel free to leave below
Comment: What version of Ubuntu are you using, and are you sure that you really need version 25.1 of emacs? Especially if you are new to Linux, it's recommended to use the pre-built versions of software from the provided repositories wherever possible - Ubuntu 16.04 already has emacs24.5 for example.
Comment: See http://askubuntu.com/q/851633/15003 for how to install Emacs 25.1 from a PPA, which should be easier than installing from source.
Comment: installed emacs using : sudo apt-get install emacs
Answer: What version of Ubuntu do you have? I downloaded the tar'd source from the gnu emacs site. I ran :
./configure

It told me that I need libXpm and libgif/libungif. I installed libXpm-dev and libgif-dev with :
sudo apt-get install libxpm-dev libgif-dev

After I installed those, I reran configure (./configure), and then I was able to build it.
I now have a binary for emacs in my emacs-25.1/src directory called emacs-25.1.1, and it works.
Answer: This is the command I'm using to install emacs 26.3 on ubuntu 18.04:
$ sudo apt-get install build-essential texinfo-doc-nonfree install-info info libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses5-dev libxpm-dev automake autoconf libgnutls28-dev

For details please see Compile error: checking for libXaw... configure: error: No X toolkit could be found
Please note that I simply had to change libncurses-dev to libncurses5-dev, add texinfo-doc-nonfree install-info info and libgnutls28-dev
Comment: This worked for me, on GalliumOS 3 and emacs 26.3, but only after I also ran
Comment: E: Package 'texinfo-doc-nonfree' has no installation candidate


How does your company manage hardware reuse?

Question: At my company we do a lot of original hardware designs each of which are designed by only a small sub-section of our engineers. We are looking at ways to better document and distribute what has been done on each project so that information can be distributed and potentially reused. How does your company handle this?
Comment: I believe the reuse concept applies but while it is difficult in software to manage it is an all together different beast in hardware. Software is trying to crack the problem of global reuse, where code is shared between companies and somewhat between languages. Hardware engineering hasn't even solved the local reuse in any smooth manner that I know of. Given all the different proprietary schematic and CAD formats in the mix I think it would be better to solve local reuse first and then move on to global hardware reuse.
Comment: @Funkyeah, you may find that many companies have not solved local code reuse. It is a different beast with hardware, much different.
Comment: I'm voting to close this question because it is not about electrical engineering but project management. It may or may not be on-topic at https://pm.stackexchange.com/.
Comment: I'm not sure if it applies directly to electronics but code reuse is a big thing in the software world. Wikipedia has an article on code reuse: http://en.wikipedia.org/wiki/Code_reuse
Comment: I would love to know if there is a method for hardware.
Comment: I think the ability of software developers to refactor their code aids greatly to the viability of reuse. They can use an externally developed module or library for proof of concept and quick functionality and then refactor to gain performance where it is needed. Hardware does not have this benefit in that hardware refactoring (what I would basically call respinning a board) is financially unviable if done on a case by case basis. The other fact I would point out is that hardware modules are inherently tightly coupled due to the real world cost of over designing components.
Comment: A second note though is that there is no real reason why the "Snippets" concept in Altium as mentioned below could not be cross-platform and highly reusable so long as there functionality and extensibility is clearly defined. An example might be for a power supply where "this switching supply is for high efficiency low cost generation of 5V @ 3A... it can be configured to provide X-Y output by changing the feedback resistors"
Answer: Some EDA tools like the one I use, Altium Designer, provide methods to save varying portions of circuits to make them somewhat portable.  For small circuits, you can use "Snippets", or for larger, multi-sheet reuse, "Device Sheets"
I don't know of any standard for hardware schematics (SPICE is too abstract; to my knowledge you can't tie it in with footprints, your part numbers, suppliers, their part numbers...) so any sort of reuse would be highly dependent the EDA package your company uses and the features it provides, or the organizational methods you implement surrounding it.
Comment: @Kor: Personally I've just reused other people's and my own 'normal' sheets, owing to a mix of unfamiliarity with the process to create them (though it seems easy enough), having to make minor modifications because of different requirements, or the sheet not being thought of beyond the single project.
Comment: I have seen those features before, how well do they actually work?
Comment: We use Altium Designer as well and I love the tool for schematic capture and layout. I haven't used the snippet tool at all for our own IP and would be interested to here if other people use it/like it.
Comment: I've used Altium too and done a bigger project with it. It's very very easy to manage bigger projects, and if you think beforehand about reusable components I bet you can set up your hardware very flexible. Atleast, for the schematic, the PCB is something you probably have to redraw every time. I like Altium's Device Sheet system a lot.
Comment: @hans, I have not gotten to use altium design, but they showed a way you could paste a hardware system in and have its PCB match. It looked nice.
Comment: I've used the multichannel design features to duplicate circuitry fairly easily within a single design, that may also be extensible across PCBs.
Answer: When you say "hardware" designs, I know you're probably talking about PCB and discrete component solutions, but I have some experience with designing ASICs that may be useful in a conceptual level.
When we design an ASIC that is fairly complicated, we use hierarchy from the beginning. One major reason for that is that as the designs get bigger, your ability to thoroughly evaluate and simulate them decreases. Also, ASIC designs can get quite large, and without a well organized hierarchy it can be difficult to manage the whole design.
We have a strong culture of reuse for our building blocks. For example, if we have an op-amp design that someone spent a lot of time designing and validating, that design would be packaged so that another designer could easily import that design into their own workspace. We have a centralized server for storing these packages, so all the parts you need are easy to find.
While an individual block may have been designed for a specific circuit (e.g. a voltage reference for an op-amp), it usually can be re-used without modifying the original design. The design cycle lasts for a month or longer, and includes validation of a layout. Designing one of these blocks takes time to familiarize oneself with the problem set, so even if the block isn't ideal, you would probably try to use it anyways.
Comment: A reuse strategy needs a lot of discipline, sorta like a version control system. It doesn't work as well if everyone doesn't understand how and when to use it.
Comment: I have taken some ASIC classes and know FPGA design quite well so I definitely would say that the design and reuse of analog ASIC components are a direct allegory to discrete component solutions at the schematic level. My questions to you would be how does the designer of any given building block disseminate the usefulness and flexibility of said building block? Using your voltage reference example, do others in your team know about the voltage reference IP because its a small team or because it can be searched for? If the voltage reference is flexibile how do you convey that information?
Comment: Sounds great, we do something similar in the design labs at our university. The issue is when something that does not work get added. I hate it, but it gets the job done.
Comment: In the larger groups I've worked in, we have a datasheet repository for relevant parts. Each datasheet would have enough information for someone to use the design without spending a week reading up on relevant literature. For my work, the different IC processes we use limits the sharing our whole team can do, so a better organization of the blocks wasn't necessary. We usually don't do duplicate designs, unless the design requirements are significantly different - we had only one bandgap voltage reference, for example.
Answer: I know TinyCAD allows a schematic to be saved to a hierarchical symbol - you can draw how you want the circuit to be represented in a larger circuit and specify what inputs and outputs there are.  Your circuit pretty much shows up as a box with pins in the larger schematic and a simple double click lets you see what's underneath and edit it.  All the parts in the sub-circuit show up in the parts list, the netlist has all of the sub-circuit connections, etc.  It's been a while, but don't other EDA tools allow this or similar behavior?
Comment: Yes, they do, but I think that Altium does it in a more advanced way, but h blocks is how I have seen it done.


Set two sinks with pulseaudio

Question: I have two raop speakers that I can stream audio to from my Raspberry pi using Pulseaudio and AirConnect. At the moment, I can set either one as the default sink and it works as expected. I would like to be able stream the audio from the Raspberry pi to both of the speakers at the same time. Is it possible to set two default sinks in Pulseaudio or is it possible to create a third sink that somehow combines the two other sinks?
Answer: I'm able to get it to work by combining the sinks
<code>load-module module-combine-sink slaves=raop_output.raspberrypi.local,raop_output.raspberrypi.local.2

set-default-sink combined
</code>
This unfortunately leaves a slight delay between the two sinks, and also a strange crackle that doesn't happen when selecting either sink individually.

Set two sinks with pulseaudio


What did Bhishma do when he was on the bed of arrows?

Question: I have heard that in Mahabharata Bhishma was made to lie on a bed made of arrows by Arjuna after dropping his weapons. I want to know in detail what all did Bhishma do in his arrow bed. Whether Bhishma was feeling so bad because of the pain and what are the set of events that occurred when Bhisma was in arrow bed. What he did at that time and what was his state of mind at that time?
Comment: ok I will take tour
Comment: Hello! Welcome to [hinduism.se]. Please take a [tour] to know our Q&A site functions and it's difference from other Hinduism forums. Your question currently asks for a broader set of events. There are three parvas in Mahabharata after the war was over. Bhishma fell even before that. So please be as specific as possible while asking. Please visit [ask] page and [help/on-topic] pages for better understanding of us. I hope you have a great time here just like I am having.
Comment: during that time, he recited vishnu sahasranama. and then the whole of shanti parva he gives advice to yudhishtira on raja-dharma, moksha-dharma etc.
Answer: He used to think of Lord Krishna.
https://www.sacred-texts.com/hin/m12/m12a046.htm

"Vasudeva said, 'That tiger among men, Bhishma, who is now lying on a bed of arrows, and who is now like unto a fire that is about to go out, is thinking of me.

He praised Krishna.

"Bhishma said, 'Salutations to thee, O divine Krishna! Thou art the origin and thou art the dissolution of all the worlds. Thou art the Creator and thou art the Destroyer. Thou, O Hrishikesa, art incapable of being vanquished by any one. The universe is the handiwork. Thou art the soul of the universe and the universe hath sprung from thee. Salutations to thee! Thou art the end of all created things. Thou art above the five elements. Salutations to thee that art the three worlds and that art again above the three worlds. O lord of Yogins, salutations to thee that art the refuge of everything. O foremost of beings, those words which thou hast said regarding me have enabled me to behold thy divine attributes as manifest in the three worlds. (In consequence of that kindness), O Govinda, I also behold thy eternal form. Thou standest shutting up the seven paths of the Wind possessed of immeasurable energy. The firmament is occupied by thy head, and the earth by thy feet. The points of the compass are thy two arms, and the Sun is thy eye, and Sakra constitutes thy prowess. O thou of unfading glory, thy Person, attired in yellow robes that resemble the hue of the Atasi flower, seem to us to be like a cloud charged with flashing of lightning. Think of that, O best of gods, which would be good, O thou of lotus eyes, for my humble self, that am devoted to thee, that seek thy protection, and that am desirous of obtaining a blissful end.'

He instructed Yudhisthira on morality.
https://www.sacred-texts.com/hin/m12/m12a050.htm

It is for this, that all these persons, assembled together, have approached thee for listening to discourses on duty and morality. Do thou then speak words of truth, fraught with morality and Yoga, unto Yudhishthira who as firm in truth but whose learning has been clouded by grief on account of the slaughter of his kinsmen, and do thou, by this, quickly dispel that grief of his!'

An example of Yudhisthira questioning Bhishma on morality and Bhishma answering him.
https://www.sacred-texts.com/hin/m12/m12a074.htm

"Yudhishthira said, 'Tell me, O grandsire, that conduct by which a king succeeds in aggrandising his subjects and earning regions of felicity in the other world.'
"Bhishma said, 'The king should be liberal and should perform sacrifices, O Bharata! He should be observant of vows and penances, and should be devoted to the duty of protecting his subjects. Righteously protecting all his subjects, he should honour all righteous persons by standing up when they come and by making gifts unto them. If the king regards it, righteousness becomes regarded everywhere. Whatever acts and things are liked by the king are liked by his subjects. Unto his foes the king should always be like Death, with the rod of chastisement uplifted in his hands. He should exterminate robbers everywhere in his kingdom and never pardon any one from caprice. The king, O Bharata, earns a fourth part of the merit that his subjects earn under his protection. By only protecting his subjects the king acquires a fourth part of the merit that his subjects acquire by study, by gifts, by pouring libations, and by worshipping the gods. The king acquires a fourth part also of the sin that his subjects commit in consequence of any distress in the kingdom arising from the king's neglect in discharging the duty of protection. Some say that the king earns a moiety, and some say the full measure, of whatever sin is caused by his becoming cruel and untruthful in speech. Listen now to the means by which the king may be cleansed of such sins. If the king fails to restore to a subject the wealth that has been stolen away by thieves, he should then compensate the injured from his own treasury, or, in case of inability, with wealth obtained from his dependents. All the orders should protect the wealth of a Brahmana even as they should the Brahmana's boy or life. The person that offends against Brahmanas should be exiled from the kingdom. Everything is protected by protecting the Brahmana's wealth. Through the grace of the Brahmana, which may thus be secured, the king becomes crowned with success. Men seek the protection of a competent king like creatures seeking relief from the clouds or birds seeking refuge in a large tree. A cruel and covetous king, with lustful soul and ever seeking the gratification of his desire never succeeds in protecting his subjects.'


neighborhood of symplectic surfaces

Question: I want to know if there is a uniqueness (in any sense) theorem for the symplectic structure in a neighborhood of a symplectic surface in a four dimensional symplectic manifold. Or more generally for any configuartion of symplectic surfaces.
Comment: Yes, of course.  The neighborhood is determined by the type of the normal bundle. This follows from the Darboux-Weinstein Theorem.
Comment: It seems to me Darboux-Weinstein is for a Lagrangian neighborhood, do you mean we can apply it to symplectic neighborhoods as well?
Answer: Here is the version of the Darboux-Weinstein theorem that you want to use:  Let $(M_1,\omega_1)$ and $(M_2,\omega_2)$ be symplectic manifolds of dimension $2n$ and let $\iota_i:P\to M_i$ be smooth embeddings with the property that there exists an isomorphism $\phi:\iota_1^*(TM_1)\to \iota_2^*(TM_2)$ of vector bundles such that $\phi^*(\omega_2) = \omega_1$ (i.e., $\phi$ is a symplectic isomorphism) and, moreover, $\phi(\iota_1'(v)) = \iota_2'(v)$ for all $v\in TP$.  Then there exist open neighborhoods $U_i\subset M_i$ of $\iota_i(P)$ and a symplectomorphism $\Phi:(U_1,\omega_1)\to(U_2,\omega_2)$ such that $\Phi\circ\iota_1 = \iota_2$.
Thus, the symplectic structure near an embedded symplectic surface $P$ in a symplectic $4$-manifold $(M,\omega)$ is determined by the isomorphism class of its (oriented) normal bundle  (plus, of course, the symplectic area of $P$, i.e., the integral of $\omega$ over $P$).

neighborhood of symplectic surfaces


3d packaging mockups

Question: Is there a simple way to create a 3D looking cardboard box to show off what some packaging might look like. Photoshop solutions would be helpful. I would like to be able to change the images on the sides.
Comment: Can you please explain a little better what you want? Can you show a picture? That would be very helpful ...
Answer: There are couple of options in Photoshop:

Fake 3D - you can use the perspective grid to distort the faces of the box to look 3D
Real 3D - Photoshop supports 3D formats such as .obj/.3ds/.dae/etc. You can use a free 3D package tool like Blender to create a box (with the dimensions you need), unwrap/map a texture, then export and render/setup in Photoshop. If 3D texturing is a challenge, you should be able to easily design your box and texture in SketchUp which is easier to pickup and then export to Collada/dae to Photoshop.

Although you mentioned Photoshop, Illustrator has can extrude shapes and also apply symbols as textures, so you could easily draw an extruded box and use the faces of the box as symbols. Here's a quick video tutorial I recorded on this technique. This works assuming you have a basic box design. For more complex designs have a look at the FoldUp plugin.
Comment: +1 for SketchUp, I have done exactly this with SketchUp many times. It is much less intimidating than Blender, especially if only a simple shape such as a box is needed

3d packaging mockups


Having Trouble Getting to Laverre City

Question: My young son is having trouble getting to Laverre City in Pokemon X.  Can somebody please give me a hint?
Comment: Where exactly is he stuck? It's straight north of Lumoise through the swamp. Is the power restored in Lumoise yet?
Comment: @BenBrocka - thanks for the comment.  Apparently he missed the part where he was supposed to meet professor Sycamore in the cafe.
Comment: So, now that this question is solved, and no general answer can be given... what do we do?
Comment: Maybe the question can be rephrased as "How do I get to Laverre City?"
Answer: if he is having trouble, i take it he has met up with his neighbors at the scary house. If he hasn't done this: go forward until you meet the first trainer, then go left. Go forwards, then right, then up to the massive pool of water. Go to the top left corner of the pool,(the scary house is to the left) then go up. You will reach Laverre City! Also you can beat the gym without having to fight any trainers apart from the gym leader.
Answer: Answer for: "How do I get to Laverre City" as suggested in the comments
You also need cut and surf if you want to obtain every item, but I'll just explain how to get to Laverre City. Check the link below to see a guide for every item.

Enter the route from the Lumiose city <-> route 14 gate.
Meet up with your friends in the playground.
Travel north into the swamp and go left at the first T junction. (There will be a female ranger there)
Go up once again (past the male ranger)
Follow the path right.
Go past the hex maniac girl and go up again.
Slightly north-west of the ranger running around in circles is a small intersection of paths. Go left.
Enter the house, follow the storyline, then exit and go back to the intersection.
This time, go up.
Welcome to Laverre City.

Source:

Just navigated the route
http://bulbapedia.bulbagarden.net/wiki/Kalos_Route_14

Having Trouble Getting to Laverre City


Is it "en ligne", "sur l'Internet" or "sur Internet"?

Question: I have seen many different phrases that all seem to mean online in English. Is there a distinction or canonical way of saying it?
Comment: Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
Answer: In French, you can use either "en ligne" or "sur Internet" to indicate that something is "online" or "on the internet." Both are correct and commonly used phrases. However, it is more common to use "en ligne" when referring to a specific website or service that is available online, while "sur Internet" is used to refer to the internet as a whole.
So, depending on the context of your sentence, you can use either "en ligne" or "sur Internet" to convey the meaning of "online" or "on the internet."
Comment: Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer).
Comment: This clarifies, thank you! From your answer I am assuming that sur Internet is more correct that sure l'Internet. Is this correct? I also don't have enough rep to upvote this great answer yet, I'll do it as soon as I can.


B-Tree vs Bitmap database indexes

Question: Can someone explain the different between the bitmap and b tree indexes. in what situations will you use both of these? What are the advantages/disadvantages of each.
Comment: not homework but I am reading a book on oracle and really didnt understand the two types of indexes. Gotta learn oracle to make myself useful in the office.
Answer: From wikipedia: B-Trees and bitmap indexes. The use cases:

B-Trees are the typical index type used when you do CREATE INDEX ... in a database:

They are very fast when you are selecting just a small very subset of the index data (5%-10% max typically)
They work better when you have a lot of distinct indexed values.
Combining several B-Tree indexes can be done, but simpler approaches are often more efficient.
They are not useful when there are few distinct values for the indexed data, or when you want to get a large (>10% typically) subset of the data.
Each B-Tree index impose a small penalty when inserting/updating values on the indexed table. This can be a problem if you have a lot of indexes in a very busy table.

This characteristics make B-Tree indexes very useful for speeding searches in OLTP applications, when you are working with very small data sets at a time, most queries filter by ID, and you want good concurrent performance.
Bitmap indexes are a more specialized index variant:

They encode indexed values as bitmaps and so are very space efficient.
They tend to work better when there are few distinct indexed values
DB optimizers can combine several bitmap indexed very easily, this allows for efficient execution of complex filters in queries.
They are very inefficient when inserting/updating values.

Bitmap indexes are mostly used in data warehouse applications, where the database is read only except for the ETL processes, and you usually need to execute complex queries against a star schema, where bitmap indexes can speed up filtering based on conditions in your dimension tables, which do not usually have too many distinct values.

As a very short summary: use B-Tree indexes (the "default" index in most databases) unless you are a data warehouse developer and know you will benefit for a bitmap index.
Answer: When using normal BTree indexes, rows where all the column values are null are excluded from the index. This means that queries with "column is null" conditions won't benefit from a normal index.
By creating an index on (column_name, 1) (or some other constant) null valued columns are now included in it, allowing the optimizer to use the query when executing "is null" queries.
A bitmap index, unlike a B*Tree index, automatically includes null values. This means bitmap indexes may be used by the optimizer in the evaluation of "is null" predicates.
Bitmap indexes may lead to concurrency issues however, possibly blocking other DML on the same table. Therefore these should be avoided in an OLTP applications. Bitmap indexes also require Enterprise Edition, so there may be licensing implications to using these.

B-Tree vs Bitmap database indexes


If an app is written for Android 2.3 will it run on 2.1?

Question: If an app is written for Android 2.3 will it run on 2.1?
Comment: @Matthew: This question would be fine, I agree. I'm not sure if the OP's question was the same as this one, though. By "compile an app for 2.3" he could mean "If I set the minSDK to 2.3 will it run on 2.1?" or "If I set the targetSDK to 2.3 will it run on 2.1?" Those have different answers, and would be both dev related IMHO. Your edited version is definitely more generic and could be an end-user question, which I totally agree makes it valid here. I'm just personally not sure exactly what the OP meant and if this version is equivalent.
Comment: @eldarerathis That's a fair point.  Setting the minSDK to 2.3 is equivalent to telling it not to run on anything lower though, right?  Hopefully the OP would not being doing that and then hoping it worked on 2.1 :P
Comment: @Matthew: Correct, you can't run on a version lower than your minSDK but you can run on a version lower than your targetSDK. Like I said, I just found the original question to be a kind of vague since "compile for 2.3" could really have a couple of meanings.
Answer: It depends.  If an application uses features present in Android 2.3, then it will not work on 2.2 or lower.  If it only uses features present in older versions, then it will work on those older versions.
For example, an app written for 2.1 (i.e., an app that only uses features from 2.1 or lower) will work on 2.1, 2.2, 2.3, 3.0, and 3.1 (and any future versions, unless Google changes how things work).
Comment: Almost correct: Some features are optional and an application that uses them may still work on a OS version which does not have the feature. For example "install to SD card". You can target 2.2 with your application and use that feature but still declare it to be working on e.g 2.1 and up. The application will work on 2.1 in this case, but without the install to SD feature.
Comment: The only caveat to this being sometimes the app will technically "work" because it runs without error, but if an app is not optimized for use across different devices (like when an app designed for a phone is run on a tablet) scaling issues and other subtle differences make the app less usable or sometimes completely unusable.  This is more of a problem with the developer not coding their app properly, though, not an underlying compatibility issue between versions of Android.
Answer: Internally Android uses so called API levels to distinguish between the various Android versions. An app records two (actually three, but this doesn't matter here) API levels within it's manifest:

minSdkVersion
targetSdkVersion

These levels can differ when, for example, the App uses a feature of a higher API level only optionally. E.g. the access to the front facing camera came with 2.3.3. If the App runs on a older version (API level) it can only access the rear camera. But the app will be installable and runnable.
So yes, if a app is written for a higher Android version it could run on a lower, but only if the app developer took care of that.


Is it permissible for a man to marry a transgender woman?

Question: Can you marry a transgender woman or a woman with a male reproductive organ and if so does anal sex become permissible?
Answer: To start:

homosexuality is considered haram in Islam.
homosexual acts including anal intercourse are also considered as haram in Islam by a vast majority of scholars. In fact ahadith ordering punishment for such acts actually confirm this view as they neither differ if both people involved are of the same or different gender.
in Islam only marriage of partners from different genders is regarded as legal, as long as the gender can be distinguished.

In Islam there's a difference between hermaphrodites الخنثى (Khunta) depending on their attributes:

The word khuntha (translated here as "intersex") applies to a person who cannot be easily characterized as male or female, or the one who has both male and female anatomy. The word is derived from a root referring to softness, gentleness and tenderness.
In shar'i terminology it refers to one who has the anatomy of both male and female, or one who has neither, and has a hole through which he urinates.
(Source Islamqa fatwa #116740)

the linked fatwa also addresses the topic of the effeminate which basically is a person who is male, but acts and or speaks like a female.

There's an ambiguous hermaphrodite this is basically a person on whether one couldn't distinguish or clarify is he/she rather male or female in his/her attributes (sexual attributes, such as reproduction in first place). Marrying this type of hermaphrodite is not regarded as allowed nor valid in Islam as you don't know whether you've married a man or woman:

The ambiguous intersex individual is one who shows no clear indications of being either male or female, and does not know whether he is a man or a woman, or he has characteristics of both genders.
This ambiguity is of two types: one that has the anatomy of both genders, where other defining characteristics are present in equal measure, and one who does not have the anatomy of either; rather he has a hole (through which he urinates). (Same source as above)

And unambiguous hermaphrodite this is basically a person where these attributes become clear and can be distinguished, so that this person could be regarded as more male or more female even if he/she has both sexual organs!

The unambiguous intersex individual is one who shows clear indications of being either male or female, so it is known that this person is a man or a woman. There is no ambiguity involved here; rather this is a man who has something extra that was created in him, or a woman who has something extra that was created in her. With regard to matters of inheritance and other shar'i rulings, such an individual is treated in accordance with what he or she appears to be. (Same source as above)

So let's assume one wants to marry a hermaphrodite: If this person got her menses and used to pee from her female organ she would be regarded as a woman even if she has a male organ. And in this case a Muslim man can marry her.
See also:
Fatwa's -in Arabic- islamweb #380261 and #131276.
And islamweb -English- Fatwa #413731.
Comment: If possible, can you also post the link to the English version of these fatwas?
Comment: @Ahmed the fatwa from islamqa gives somewhat the same information and it is available in English. One of the two fatwas displays a definition of hermaphrodite from ibn Qudama's al-Muqni' -which you may find in more details in the fatwa from islamqa. I'm not sure whether there is an English translation of any of them, but I've added a further link to the only fatwa in English I found on that site.
Comment: Jazakallah Khair


I keep on getting a brownish-green hue around me

Question: I always get a brownish-green hue around me when I edit out the green screen in after effects. Is the problem the lighting, green screen editing, etc. Can someone please help.
Answer: Lighting could definitely be part of the problem here. Typically, for green screen work, it helps to have a light between yourself and your green screen to get rid of those shadows behind you (sort of like a backlight).
To fix your current footage, I'd increase the sensitivity of your chroma key in After Effects, since it looks like AE is essentially leaving a thin outline of the screen around you. If you increase your tolerance, you should see that outline shrink a bit. Feathering the edges of your image can help with this, too.


I am not able to add the url of my community page to chat with customers section in service console

Question: I am trying to implement chatbot on my community page so when i am trying to add the url into service console's chat with customer section, but it says "Origins may not contain paths or queries, since they are not part of the origin".
My Url is something like this
https://xyz-pqrs.force.com/abc  (Dummy URL)
I tried with firefox as well but it didn't work. When I go with "https://xyz-pqrs.force.com", it works but i need to go with my exact URL.
I have already whitelisted "https://*.force.com" in the CORS.
Please help.
Answer: You need to remove everything past the ".com" so copy in " https://xyz-pqrs.force.com"


SharePoint Infopath forms giving user not found or is not unique

Question: I am getting an error while submitting a form in SharePoint List through Infopath .The ULS logs are not giving much except this error "System.Runtime.InteropServices.COMException: The user does not exist or is not unique.," .Its not happening for a single user and it happening for all the users in the Farm .I already checked the Portal Super user and reader account and they have appropriate permissions on the farm .Any guidance would be much appreciated
Comment: I also checked that all the SharePoint User of group fields are tied only to an individual user and not for multiple selections
Answer: Is there some people picker filed in your form?
If yes, please check the property of the people picker in the InfoPath form to see whether it has allowed multiple values, whether people picker control data type is User Type and check if the list is read-only.
You could try to create a new list to test whether the issue occurs.
Comment: Thank you ,Yes it has people picker fields and i have checked and made sure that there is no multiple select and the list is not read only .I have created a new list and it works wit Infopath .But i need to make this list work as Unfortunately this list infopath was developed longtime ago and it has some workflows and others


Terminology - DMZ

Question: The term DMZ is used to describe a separation area between a trusted zone and an untrusted zone. Ex: internal network vs internet.
Can it be used to refer to a separation area between a trusted zone and a less trusted zone.?
For instance,in mail architectures, we often have a mail gateway in a DMZ and an internal mail server in an isolated network that connects for instance to a domain controller. Can the isolated network that hosts the internal mail server be called a DMZ?
Answer: DMZ has its own detailed meaning which is fully described on Wikipedia.  It implies a machine that receives all external traffic that is not already linked to an internal request to the predetermined DMZ controller.
Many people simply use DMZ as a means of bypassing the main router's firewall but it can be used to implement a more advanced firewall.
To answer your highlighted question directly, DMZ can indeed be applied at any and multiple levels of networking.  So yes there could be a DMZ in the internal network between a trusted zone and a less trusted zone but that is not typically needed in most networks, as the router is usually sufficient to handle this.
Comment: Please don't confuse the true meaning of a network DMZ with the bastardized meaning touted by consumer home router manufacturers. While they could be considered *related*, they are most definitely *not the same*.

Terminology - DMZ


Can't Access FreeNAS via SMB on macOS 10.12.2

Question: I just upgraded my FreeNAS to 9.10 so as to take advantage of the features in the newer version of Samba that allegedly lets Final Cut Pro store its library over SMB. However, while I can get AFP to work just fine with the Mac, I can't connect to the SMB shares.
In both cases, I have guest access disabled. I created a user account on FreeNAS and can authenticate just fine to it when using AFP. Once I turn on SMB, Finder (correctly, I believe) replaces the AFP share listings with SMB ones. However, when I try to load the SMB share by clicking on my server's entry in Finder, it says "Connection Failed" and hitting "Connect As..." reports:

The operation can't be completed because the original item for "Photo_Vault" can't be found."

I don't see anything amiss in my settings, but can you point me in the right direction of where to even begin debugging this.
I've tried limiting which versions of SMB will be allowed to connect to see if forcing a newer version would help (SMB3 or higher), but that only seemed to make things worse, resulting in this message instead:

There was a problem connecting to the server "beatrice".
Check the server name or IP address, then try again. If you continue to have problems, contact your system administrator.

Incidentally: Zeroconf seems to be working fine. When I turn off SMB and use AFP, Finder connects just fine; additionally, if I try to connect directly to 192.168.1.30, it fails just the same as using the Zeroconf entry (beatrice.local). I can access the other network services on the FreeNAS just fine (web admin interface, AFP, etc.), whether I use "beatrice.local" or the IP address.
UPDATE: Testparm -s didn't report any errors. Here is my configuration file (which should be the default one from FreeNAS, I haven't edited it). Note that it includes the restriction on which SMB protocol should be used I referenced above; I've tried it both with and without that.
[global]
server min protocol = SMB3
server max protocol = SMB3_11
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 231347
logging = file
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = nobody
map to guest = Bad User
obey pam restrictions = yes
directory name cache size = 0
kernel change notify = no
panic action = /usr/local/libexec/samba/samba-backtrace
nsupdate command = /usr/local/bin/samba-nsupdate -g
server string = FreeNAS Server
ea support = yes
store dos attributes = yes
lm announce = yes
hostname lookups = yes
time server = yes
acl allow execute always = true
dos filemode = yes
multicast dns register = yes
domain logons = no
local master = yes
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
server role = standalone
netbios name = BEATRICE
workgroup = WORKGROUP
security = user
pid directory = /var/run/samba
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1

[Photo Vault]
path = /mnt/TheVault/Photo Vault
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
vfs objects = zfs_space zfsacl aio_pthread
hide dot files = yes
guest ok = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare

Comment: show us your SMB.conf. are you able to hit the shares from a windows box (just to test that SMB is actually working). I don;t know if freenas ships `testparm` but try `sudo testparm -s` to see if it indicates any errors in your smb.conf file.
Comment: I'm using this combination in a mixed Mac/Windows network, there's no inherent prblem. Testparm - s works on the console.
Comment: Thank you, @FrankThomas. I've updated my post with the smb.conf.
Comment: first thing I'm noticing is that your share name does not have an underscore in it, but your error message does. have you tried sharing it as `[Photo_Vault]` instead? how about the user account you are using? have you run `smbpasswd` to set the password for samba (though I must admit, I'm not certain that that is still necessary these days).
Answer: Set server min protocol = SMB3_00 instead of SMB3. (SMB3 defaults to the newest protocol in the SMB3 family, which isn't supported on macOS Sierra.)


12-2 TO 12-3 Wire

Question: I have an existing junction box in my attic which is powering my exhaust system in the summer. The wire is 12-2 and it is a dedicated line, nothing else on it. I am putting a bathroom on the 3rd floor and have a fan/heater/light combo which I will run 12-3 from the unit to the switch. Can I connect the 12/3 wire in the junction box to the 12-2 wire for my power so as to not have to take the 12-3 all the way to the breaker box? The unit will have 3 switches.
Comment: @ThreePhaseEel 12/5 if it's a switch loop. Neutral which he'll definitely need for the digital timers everyone wants now. At that point might as well lay some EMT.
Comment: You need 12/4 for a 3-switch unit...
Comment: @Harper EMT in residential - lot of extra work and pipe bending. The op does not state if his junction box is grounded either - he states 12-2 hot and neutral but does he really have a ground...?  If the box isn't grounded running EMT from it will not provide that ground either.  I have seen 12-2 run and that copper wire well - you know it was "EXTRA".. you never know a DIY might have done that Attic Fan.
Answer: It is not about the number of conductors it is about the load.  Under the best of conditions the #12 can carry about 15-amps for an extended period of time. Check the power requirements of the heat-fan-light. Then get the amp draw from the attic ventilator.  Add those together.  If you can stay under the 15-amps your OK.  Wire on.  You will need a 12-4 between the control switch and the new heat-fan-light or one 12-3 and one 12-2.  You need only one 12-2 between the junction box and the Heat-fan-light.
Comment: #12 is good for a 20A circuit which is good for 16A of *continuous load*.  However a thing that is on a twist timer (that does not have a "remain on indefinitely" detent) is not a continuous load, it can support 20A of loads like that.
Comment: #12 gauge wire is rated for 20 amps. Are you confusing it with #14 rated for 15 amps?  There is no "about" involved either...

12-2 TO 12-3 Wire