Rotating Object causes the size to change in Illustrator CS5

Question: I create a rectangle of size 200px X 200px. Select it, double click the rotate tool and rotate it at 45 degrees. This causes the rectangle to chage size and become 282.842px X 282.842px. How can I turnoff/disable this behavious maybe using the Preferences, or do I have to change it back to 200px X 200px by using the Tranform Panle.
Answer: Size isn't changing.
Width and height readouts in the control bar and transform panel are calculated based on artboard perpendiculars (90° angles).
The distance from corner to corner of a 200px square is 282.842 pixels. The distance from side to side is 200pixels. When you rotate the square 45°, the width readout changes to indicate the new width, which is now from corner to corner.
If you want the width and height readout to remain constant, you could use Effects > Distort & Transform > Transform and enter 45 in the Angle field. It will rotate the square visually. This might make for difficult editing at times though.
Comment: Sorry but where is the control bar?
Comment: The bar across the top of the screen when Illustrator is the foreground app. - the one with the align buttons.. fill and stroke colors, style menu, etc.
Comment: Oh. But I don't see any width and height readouts there.
Comment: You would, if you had a larger monitor. :) Some fields only show themselves if there's room for them. Instead you get the "transform" panel link in their place.


Sentient manta rays living in Jupiter?

Question: I am trying to remember a science fiction story I read that involved a civilization of sentient manta rays living in Jupiter. The book starts with the main character, a human, being given a body to join the manta rays, and ends with the humans and manta rays realizing that they can use the core of Jupiter to travel to other solar systems. I would have read this in the late 90s, earlier 2000s.
Answer: This is probably Timothy Zahn's Manta's Gift.
From the Goodreads summary:

When Matt Raimey had his accident, he thought his life was over. He never dreamed, in his wildest fantasies, that he'd end up in a spot like this. In the toxic atmosphere of Jupiter, born into the body of an enormous creature that looked like a cross between a manta ray and a dolphin, he is living a new life, unlike any humankind had previously experienced.

Also at the Science Fiction Review with more details about the story (although without revealing the ending).
When I searched Google for science fiction manta rays jupiter, the top hits were all about this book. Then again, Google search results are different for everyone, and I've done a lot of searching for science fiction stories to answer people's story-ID questions; maybe you'd get completely different results with the same search.
Answer: Iain M Banks, The Algebraist. It involves nearly immortal manta ray like creatures living in a gas giant, with a gate in its core.
Comment: I thought about this but there are too many details that don't match -- (i) in *The Algebraist*, the protagonist (Fassin Taak) is not "given a body" but uses a miniature spaceship; (ii) the Dwellers only resemble manta rays as infants; they change shape as they grow and as adults they resemble dumb-bells; (iii) *The Algebraist* does not take place on Jupiter (which is said to be uninhabited) but on the planet Nasqueron.

Sentient manta rays living in Jupiter?


Looking for a wireless soil moisture sensor

Question: I am new to arduino and have a basic question. I want to build a sprinkler controller system for my lawn which would detect moisture in the lawn soil and automatically starts the sprinkler controller to water the lawn when moisture in the lawn soil reaches a certain level. I am looking for soil moisture sensors that would be installed in the lawn soil and wirelessly transmit the moisture level to my arduino in the house. Any ideas where I can find these sensors?
Answer: The project is very much possible but it will be easier if you attach the moisture sensor directly to the arduino and add a wifi shield or a bluetooth shield to the arduino itself and make it communicate with computer or phone. You could also program the arduino to directly water the plants if it finds that they dont have much moisture. You will rarely find a sensor that transmits data wirelessly and still be economically feasible. The Sparkfun SEN-13322 moisture sensor is good for the purpose but again connect it to arduino direclty.
Comment: so how do I read the moisture in the lawn soil?  I can't put the sensor and arduino in the lawn so not sure what you are suggesting?
Comment: @JStorage I cant figure out why you cant put the arduino and the sensor in the lawn. For all such projects that I have seen arduino is encased in a box that protects it from rain etc. and the its connected to the sensor  and kept in the lawn. But also if you want this project to be messy you can actually wire the sensor in the lawn to the arduino inside but that will be a little too messy. Simply keep the arduino in a plastic box and attatch the sensor and keep it in the lawn.


Cura Sequential Printing

Question: I'm trying to get a sequential print going (first time trying this) and Cura won't slice due to build volume issues. From the graphic shown, it looks like this should be sufficiently spaced out but I'm not sure what the problem is. Any tips? I've moved the objects around all over the build volume and it never changes back to "allowable".
Comment: My Ender 3v2 has a build volume of 220x220x250 but if I try an object greater than 210 mm height or width, Cura will not slice the model.
Comment: Aren't the printable objects too high with respect to the available gantry Z height. What printer is this and what are the settings for the head dimensions?
Comment: The printer is a CR-10. The Z height in the build volume is 400 mm, but when I choose the sequential print "one at a time option" it decreases the max Z height down to the top of the object (which makes sense). With the 300 x 300mm bed size, I feel like the grantry easily has enough room to maneuver and print one without any interference from the other (I assume the granty keep out zone is what the shadow indicates)
Comment: Please add a screenshot of your printer settings and report the height of the model.
Answer: If the height of the object is larger than the free space between the gantry and the top of the first printed object, you will not be able to slice the object. The maximum printing height will reduce to the maximum available distance between the gantry rods and nozzle.
Note that the correct Gantry Height needs to be set in the printer properties. For instance, the UM3 I use has 60 mm free space between the gantry and the nozzle:

If you have a smaller height specified, or a taller print object os depicted in the image below, you will not be able to slice the prints (note that a 100 x100 x100 mm is scaled to 20 x20 x70 mm prints, which exceed the 60 mm):

When properly scaled below the 60 mm, i.e. to 20 x20 x50 mm print objects, you'll see that you are able to slice the objects:

Slice preview:
Comment: @Asterlux Glad it works! Note that shaving it not necessary, you can also lower the print through the plate, or scale the Z.
Comment: Thanks! It turns out the model height was 25 mm, which was exactly equal to the gantry height and if I shave 0.1 mm off the model it works.

Cura Sequential Printing


Are there weak force waves?

Question: In the same way as there are electromagnetic and gravitational waves that update the information on their respective field, is there an analogue for the weak and strong forces?
Answer: No, there are no weak or strong waves in the sense as there are for electromagnetic or gravitational waves.
The electromagnetic and gravitational waves are classical objects, they are possible vacuum solutions to the classical equation of motion for the field strength of the respective force, and can be radiated by objects charged under the respective force. But the weak and the strong force have no analogous classical limits - the weak force is suppressed by a factor $\mathrm{e}^{-\mu r}$ due to the mass of the W- and Z-bosons and thus very different from the EM or gravitational force, and it doesn't make sense to speak of a classical limit of the strong force because gluons and quarks are confined - there are no net charges under the strong force on a classical level, hence the strong force just vanished from our description.
In other words, the weak and the strong force are, in some sense, "fully quantum" in that their importance to our world comes completely from their quantized description, and a classical description does not make sense for them, thus we cannot speak of a classical concept such as a wave for the weak and strong forces.
Comment: I understand this is how, mathematically, you get waves out of QED. What about the physical meaning though? Is there nothing radiated from charged particles in QED?
Comment: So are waves a classical phenomenon? How can we get waves from QED?
Comment: @SuperCiocia: You don't get "waves from QED". If you're asking how QED explains the classical electromagnetic wave,s the answer is boring: QED has the classical electromagnetic force obeying Maxwell's equations as its classical limit, and there you then get the waves. The quantum field theory knows nothing of these waves.
Comment: @SuperCiocia: There is something able to be "radiated" from charged particles in QED. It's called a photon.
Answer: In QM most stuff boils down to particles.
For example, electromagnetism is mediated by photons and EM radiation is literally just beams of photons.
We should then have a couple of obvious candidates for strange and new kinds of radiation.
The strong force is mediated by gluons and there are 8 types of gluons. At a larger scale (like with atomic nuclei) the force kind of becomes washed out and what's left is mostly the exchange of virtual pions (which are quark antiquark pairs) to stabilize nuclei. So, while gluon radiation isn't really plausible under typical conditions pion radiation is more likely. I should also mention the hypothetical possibility of glueballs which are composite particles of gluons.
Likewise, weak force radiation would be W and Z bosons. However, I don't know if it is possible to have radiation composed of W and Z bosons in the same way that it is for photons. For one the W and Z bosons have masses. For another, the weak force is kind of weak.
In principle one could make a laser beam out of any boson. I have just gone over the gauge bosons which are the most obvious answers.  However, you don't even really need what we typically think of as bosons to obtain wave effects. For example, one can make a sound wave pass through air. Similarly, one can have effects in electrical conductors where electrons like air or water particles and carry waves through them. As well, the possibility of gravity waves exist. Consider also the common case of an electrical transformer where there are two coils of wire that intersect but do not electrically touch each other and yet they can transfer electrical signals through each other through magnetic waves (this is technically just a subcase of EM radiation but is still interesting IMO.)

Are there weak force waves?


How Ethereum solves trust problem

Question: I am a software engineer with blockchain background and I am new to the exciting Ethereum project. One thing I am not quite sure about is how Ethereum solves the trust problem between involved parties. Specifically, who can execute the contract? What if the owner of the contract does not execute it? Even if the contract will be executed as it is programmed, it does not matter if it is never called.
Answer: If you program your contract such that it has an owner and only its owner can call it, but other people benefit from it being called, the people who need it called will have to trust the owner to call it. For this reason, people don't usually program contracts such that only their owner can call them, unless the owner is the only person who benefits from it being called. (In many contracts, there is nobody in the role of "owner" in any case.) Usually you program the contract such that the person who benefits from it being called can call it.
If calling the contract requires a lot of gas, but the benefit of calling it is spread among many different beneficiaries, you may want to program the contract to refund the gas cost, or even provide a bounty, to whoever calls it. This can be a little bit tricky as the gas price needed to call a contract isn't knowable in advance, and you can't just rely on the amount spent in that particular transaction as the caller may be the miner who mines it, and thus profit from an unreasonably high fee. One strategy is to make the bounty payable gradually increase with time. People will have an incentive to call it as soon as it can be done profitably in case somebody else beats them to it.
Answer: You're conflating owning a contract and deploying it on the Ethereum network.
Once a contract is deployed, every miner 'runs' it from then on every time someone (or some smart contract) sends it a transaction. There's no stopping it.
You can 'invent' an owner by recording the address that initially deployed it (or any other address for that matter). Thereafter, inside each function of the contract, you could check to see if the 'owner' is the initiator of the transaction. If the function 'throws' for all addresses other than the 'owner', then you have a sort of ownership.
Search around the web for the isOwner pattern or the owned smart contract.
In some sense, a smart contract is similar to an API, but because it is deployed and running independently on all nodes, no one party can be said to 'own' it.

How Ethereum solves trust problem


Oracle Solaris 11 x64 root password?

Question: I have installed OS 11 x64 on a pc to evaluate if this could be my new system for a home storage array of 48TB. I have a very basic problem: I somehow cannot access root with the admin password created at the install. I am currently logged in as admin@solaris but in order to configure zfs, etc, I need root access. How can reset the root passwd or simply remove it temporarily? Thanks, Dan
Comment: Can you su to root after logging in as admin?
Comment: No, su asks me for password. Using the admin password won't allow me.
Answer: You can no more log in as root with Solaris 11 as, by default, root is not an account but a role. Just use sudo from your initial user login account if your need root privileges, eg
$ sudo -i

Should you want to revert root to its traditional (but less secure) non role setting, you can run:
# rolemod -K type=normal root

Comment: It also depends on _how_ you installed S11. The graphical installer configures root as a role with an expired password but the text installer configures a valid root password at install (and I think leaves root as a normal user). You _can_ convert root back to being a user rather than a role by editing /etc/user_attr.
Comment: Actually, the text installer leaves the choice to either create a regular user account with a password, in which case root is still a role, or not create an initial user account in which case root is indeed not a role. I'm not advising to revert root back to a user for security reasons.
Comment: Ah, maybe that changed since S11X? I don't quite remember it working that way but my memory may be faulty. I'm also not advising to change root from being a role, just saying that it can be done (enough people moaned about this on openindiana-discuss...)
Comment: That was already the case with S11X, see step 8 in http://docs.oracle.com/cd/E19963-01/html/820-7799/sliminstall.html
Answer: Here is another way to do it:
1) Boot from the text install DVD (or ISO file if your Solaris 11 installation is in a VM)
2) Make sure you boot into single user mode: at the initial GRUB screen, press Esc, then press 'e' to edit the Grub command line, add the switch '-s' for single-user boot
3) After booting into single-user mode, log in as 'root', the password is 'solaris'
4) Mount the ZFS root pool. Most HOWTOs recommend creating only the directory /a, this is not enough, you need two directories, we use /a/b in the following example. Also the -f flag (force) is important in the zpool import command.
mkdir -p /a/b
zpool import -f -R /a rpool
zfs set mountpoint=/b rpool/ROOT/solaris
zfs mount rpool/ROOT/solaris

5) Edit the file /a/b/etc/shadow, you may need to make it writable first. Find the row with root's entry, it is usually the first. Delete the password hash between the first and second colons, so the line now looks like root::12345:::::: (your number may be different).
6) Edit /a/b/etc/user_attr by commenting out the line root::::type=role. This makes root a "normal user" which is not recommended BTW.
7) Edit /a/b/etc/default/login by commenting out the line PASSREQ=YES. This will ensure that no password is required when logging in as root.
8) Reset the root mountpoint by issuing the commands
zfs set mountpoint=/ rpool/ROOT/solaris
zpool export rpool

The first command will complain about being unable to mount 'a' because the directory is not empty, cannot remount etc. Ignore this and reboot. You should be able to log in as root without a password.

Oracle Solaris 11 x64 root password?


iPad rings without call on the iPhone?

Question: My iPhone rings so does my iPad when I gets call which is normal thing. But recently my iPad got started ringing without any display number or any change in display, it was just sound(I was watching on Youtube on iPad but ipad display did not go away, it was just sound). But same time there was no call on iPhone. How can this possible? What could be wrong. Thanks
Answer: It sounds to me like a bug in iOS. If you aren't running the current version of iOS (iOS 9.1), update it by going into Settings > General > Software Update, as updating could fix your issue. If you are running iOS 9.1, report the bug to Apple, and wait for iOS 9.2 and hope that it does the trick.
Comment: I am using latest version in both iPad and iPhone. May be it could be bug I will post same to the apple forum. Thanks.

iPad rings without call on the iPhone?


Correct way to link to a page in wordpress

Question: I have a page called page-about-us.php within this page I have a link to another page which will link to accreditations.php. What is the correct way to do this through my page-about-us.php file?
Comment: If the WordPress is installed in the root you can use `/accreditations.php`. If it is not you can use the `Link`
Answer: Relative linking is one of your best friends in the basics of web.
Relative Link
Absolute Link

The first link will always use the current directory/location and go from here. If you were on a page such as http://example.com/inner/directory/page-about-us.php then clicked on it, it would take you to http://example.com/inner/directory/accreditations.php.
As for the absolute link, the link will always go to the specified URL regardless of current location.
Answer: You should use relative linking, this is guaranteed not to break if you move your website to a different domain name.
Answer: If I'm understanding your question, you are looking to put a link on one page to take you to another page.
If you use the pagepress editor that uses default wordpress you can achieve it by looking for the link icon which is a string.
If what I look for is to edit the php file directly I think you can put it as you normally would.
Answer: Per the official documentation of WordPress (Found here: https://codex.wordpress.org/Linking_Posts_Pages_and_Categories#Dynamic_Linking_in_Templates)--
Dynamic Linking in Templates

Whether you use permalinks or not, in templates you can link to pages or posts dynamically by referring to its unique numerical ID

<a href="<?php echo get_permalink(ID); ?>">This is a link

Hope this helps!
-Rush


2009 Honda Pilot 4WD

Question: I replaced a 7 year old battery 3 days ago. The solenoid was clicking so I figured it was the battery. The old battery had  an 11.5 amp draw . The new battery just went out again  today and solenoid is clicking again . The alternator was replaced a year ago. The drivers side air is blowing warm . The other zones including the rear and passenger compartments are cold . There seemed to be a puff of white smoke ( no odour) that emitted from the drivers side hood compartment. Any ideas thanks
Comment: Welcome to the site. A 11.5Amp draw?? When the vehicle's at rest (engine not running, nothing on, not trying to start it)? It should be in the low milliamp draw area. That's a huge draw on a battery which shouldn't be getting used for anything.
Answer: If your old battery had an 11.5 amp draw, it wasn't the battery's fault. Something in the car is on and draining power. Perform the battery draw test again and start pulling fuses one at a time until the draw disappears. That last fuse you pulled is telling you which electrical system is drawing power. Investigate from there.
If I were to guess:

dome light is on
parking lights are on
something is plugged into the 12V outlet
your seat warmers or AC outlets are clicked on

2009 Honda Pilot 4WD


What will happen if an X shape wings mounted on biplane?

Question: The question is What will happen  if an X shape wings mounted on a light biplane? What will happen in the place which upper wings come closer to lower wing?
Comment: What do you mean by "X-shaped wings"? Do you mean wings that are angled away from each other, so that they are closer together near the fuselage, and farther apart away from the fuselage? And do you have a more specific question than "what will happen"? Because as far as I know, the answer is going to be something along the lines of "it will fly".
Answer: Drawing from the hypothetical of "could a starwars X-Wing fly" which is brilliantly answered by James Gull here it is possible to achieve flight in this configuration

...It's not a very aerodynamic design. All those intersections at the
  fuselage will create a ton of drag due to interfering aerodynamics.
  The engines and wingtip pylons are not helping in that regard either,
  as they are not well blended in. The wings are essentially a biplane
  configuration, which definitely works. The designer would need to take
  extra care near the fuselage due to the surfaces being so close
  together; their wakes would interfere with each other. Careful tuning
  could help turn this into somewhat of an advantage in slow flight.

The Strop SP-7 was an early proposed design for such an aircraft. But it only
remained in this configuration for takeoff and slower flight segments, the wings folded into a mono plane configuration for high speed cruise. I cant find any evidence that it ever actually took flight.
Some aerodynamic "trials" have been done on the "design".
If you are asking about an "X" looking from the top down, it appears that Sikorsky dreamed up something like that and went as far as running tests on the design as well as building some of the major components but the project was ultimately canceled and it never flew.
Comment: Seen head-on, the Rutan Quickie https://en.wikipedia.org/wiki/Rutan_Quickie could almost qualify as an X-wing.


Creation of natural order

Question: Is the creation of time, gravity or other natural orders discussed in the Torah or rabbinic literature?
I was thinking that bereishit could infer a beginning to time. Is this correct? If so are there other phenomenon that can be inferred from the Torah?
Comment: Precisely how we know it was created!
Comment: Time was created right at the beginning.
Comment: @Shababnik I don't think any one knows. All we can know is that God was some how involved with the creation.
Comment: Just thinking, doesn't this have to do with the three elements? Sefer Yetzira talks about them
Comment: There is a gemara or midrash where some heretics mock the idea that Hashem created the universe, claiming "if He is eternal, why did He create it when He did, and not before?" and they are answered that Hashem created time itself, so there was no before.
Answer: According to Rav Nachman, time was created immediately after the "tzimtzum" occured. Refer to Likutei Moharan, 64:4:

Know, too, that dispute is the aspect of Creation. For the world was created mainly by means of the Vacated Space, as explained above. This is because without it there would have been nothing but Ein Sof, with no place for the creation of the world, as explained above. He therefore contracted the Light to the sides, and the Vacated Space was made. Within it He created the entire creation—i.e., time and space—by means of the spoken word, as explained above: "By the word of God the heavens were made…."

This seems to align with the words of the Rambam, in his Moreh Nevuchim (Part 2, 30:2).

The Universe has not been created out of an element that preceded it in time, since time itself formed part of the Creation. For this reason Scripture employs the term "bereshit" (in a principle), in which the beth is a preposition denoting "in." The true explanation of the first verse of Genesis is as follows: "In [creating] a principle G-d created the beings above and the things below." This explanation is in accordance with the theory of the Creation.

So, according to the Rambam, time itself was included in the creation of the universe.
The Rambam mentions "time". He does cite some sources, I think in Chullin, but I am not sure where he got it from. He says:

We find that some of our Sages are reported to have held the opinion that time existed before the Creation. But this report is very doubtful, because the theory that time cannot be imagined with a beginning, has been taught by Aristotle, as I showed you, and is objectionable.

[...] I told you that the foundation of our faith is the belief that G-d created the Universe from nothing; that time did not exist previously, but was created: for it depends on the motion of the sphere, and the sphere has been created.

See also the commentary "Crescas" on this Moreh Nevuchim by Rabbi Asher ben Abraham Crescas where it also echoes the idea that time itself was part of the creation of the universe:

כי הזמן מכלל הנמצאות, ר"ל שהוא נברא בהבראות הגלגל שהוא מתנועע:
Comment: What does it mean that time was created 'immediately' 'after' the tzimutzum 'occurred', when all three of those terms (in quotes) are themselves properties of time and therefore presuppose time already existing?
Answer: When it comes to natural order, one should not limit oneself to what the Sages said.  The Talmud itself tells us this:

The Jewish Sages say [this about an astronomy matter] and the sages of the nations say [that].  Rabbi Yehuda HaNasi said: And the statement of the sages of the nations appears to be more accurate than our statement. [Pesachim 94b]

The Midrash adds:

If someone says to you: 'There is wisdom among the nations,' believe it... [If:] 'There is Torah among the nations,' do not believe it. [Echah Rabbah 2:13]
Comment: I don't think this is an answer.
Comment: There is an entire book with adaptations from teachings of the Lubavitcher Rebbe on evolution, science etc... The Rebbe would say: Anyone who follows the developments in the secular scientific world in recent generations will notice that the conclusions of secular science are progressively converging to the conclusions of our Torah [Igrot Kodesh, vol. 16, p. 26](https://www.chabad.org/library/article_cdo/aid/111597/jewish/Introduction.htm). Isn't the natural order also created by G-d!
Answer: With regard to the creation of time you are correct in saying that "bereshit" is the creation of time.
The Mishna (Avos, 5;1) states ״בַּעֲשָׂרָה מַאֲמָרוֹת נִבְרָא הָעוֹלָם״ - "With Ten utterances the world was created". The Gemara (Megillah 21b) explains that these utterances refer to the creations in the beginning of parshat bereshit that preface with the words ״ויאמר״. The Gemara asks that there are only nine time where Hashem prefaces a creation with the words ״ויאמר״ and not ten. The Gemara answers that ״בְּרֵאשִׁית״ נָמֵי מַאֲמָר הוּא, דִּכְתִיב: ״בִּדְבַר ה׳ שָׁמַיִם נַעֲשׂוּ וּבְרוּחַ פִּיו כׇּל צְבָאָם״ - "The word "Bereshit" is also an utterance (even though it's not prefaced with ״ויאמר״) as it states (Psalms, 33;6) "By the word of the Lord were the heavens made; and all the host of them by the breath of His mouth"".
By all nine creations mentioned there in parshat Bereshit it is clear as to what Hashem created, however the Gemara doesn't clarify as to what Hashem created with the word "Bereshit". The Seforno (Bereishit, 1;1) explains that utterance of Bereshit created the concept of time:
.״בראשית. בתחלת הזמן והוא רגע ראשון בלתי מתחלק שלא היה זמן קודם לו״
"Bereshit - at the beginning of time; this is the first moment which is indivisible into shorter periods. There had not been a concept "time" previous to this, i.e. there had only been unbroken continuity."
The Vilna Gaon expresses this as well in his Aderet Eliyahu (Bereshit, 1;1):
״בראשית ב' הוא ב' הזמניי. כמו ביום. מפני שהזמן עצמו נברא והב' מורה על עת הבריאה שהיה בחלק הראשון מהזמן הנברא ודע מה שבא מאמר ראשית ולא ראשון.״

Creation of natural order


How to view Microsoft Document Imaging (MDI) files on a Mac?

Question: I've received a bunch of MDI files which I need to open on a Mac Snow Leopard. Any way around this e.g. free readers available?
Answer: MDI files were a proprietary file format used by Microsoft Office 2003 and 2007 on Windows. Searching around online, some people have luck opening them with QuickTime (which is already on your Mac), or GraphicConverter. Not having access to these files, nor a direct Mac equivalent, without more information we would be unsure if this would work or not. Office 2008 and 2011 on the Mac won't open them.
The best way to view these (and free too, really), would be to have a Windows using friend to open them in Windows and export as another file type.
Answer: If you have access to a Windows system, Microsoft has a MDI to TIFF that you can use.  It's a command line tool that runs on XP, Vista, 7, 8 and 10.  You won't need to install Office 2003 or 2007.
There's an free online utility:  Zamzar Free Online File Conversion  Disclaimer:  I am not a huge fan of sites like this, but I have used them in a pinch.  Be sure to read all the Ts & Cs before submitting your documents.
Personally, I would get ahold of a windows machine, even if it was a Virtual Machine (like Virtual Box) and just use the official Microsoft converter.  I am leery about software or services offered for free.


Photoshop bad resoluton?

Question: When I zoom in to color in Photoshop it gets so pixelated like in the picture below. Also when I want to draw or trace on a picture, It doesn't draw between those squares and just shift the line to the nearest square corner causing bad quality!
Is it normal due to my screen resolution? is there any way to improve this?

Thanks a lot.
Answer: Photoshop(PS) is a bitmap editor, it edits pixels. There is no info between the pixels. This is true even to vector content authored in Photoshop. So when you zoom in Beyond the documents native pixel dimension that is what happens.
Note this is not nesseserily the way it outputs on to say a print medium as the printer probably does not use nearest neigbourhood interpolation (PS does so you know what is in the sample).
Is there a way to improve the situation?
Well, it depends on what you mean by this. Yes you can make a bigger document. But in general is a bit hard to say as you do not describe what your purpose is. If you are preparing for a screen with this resolution itseems a bit counterproductive. Or maybe you want to work in Illustrator?
Answer: If you zoom to 800% or more, PS will show a pixel grid. This is a thing they added maybe in CS 5.
You can turn it off from the top menu: View > Show pixel grid
Comment: Thanks Joonas, I did it and it remove pixel grid but  the squares still exit.
Comment: @Sara Well that is because you are zoomed in over 1000%. It's a good practice to zoom in to do precision work, but basically the default zoom level to view the image at is 100%. If you take a photo and zoom in like crazy you will see each individual pixel. That is what the image consists of.

Photoshop bad resoluton?


Stokes' theorem confusion

Question: Stokes' Theorem states that, "For a smooth oriented region $V$ $\in$ $R^3$ and a smooth vector field defined on $V \cup \partial V$, where $\partial V$ is the boundary curve for $V$, $\int \int _{V} $ curl $\vec F .d\vec S$ = $\int_{\partial V} \vec F . d\vec r$. My question is, do we always take $\partial V$ to be the curve when $V$ is projected onto the $xy$ plane? (So if $V$ is a unit sphere, say, then $\partial V$ is the unit circle).  If so, why do we do so?
Answer: See the Math Insight website. In the website there is a toy applet you can play with.
The curve need not lie on a plane, and it is NOT a projection on a plane. It can only be the boundary of an "open" surface, so your should split your "ellipsoid" into two parts and apply the theorem respectively.
In a calculus course, the boundary (curve) is usually on a plane. It's only because of simplicity of calculation. It's not related to the theorem description.
Answer: No. $\partial V$ is a curve located somewhere in $\mathbb R^3$, it's not projected on any plane.
In case when $V$ is a unit sphere it doesn't have a boundary at all and $\partial V = \varnothing$.
If you want $\partial V$ to be a unit circle, you'd need $V$ to be, for example, a half-sphere, or, a unit disk.
Comment: Hmm, I had an ellipsoid as V for my example and for $\partial V$ they just took the ellipse on xy plane, I am not sure why they did so?
Comment: Are you sure it was a full ellipsoid? A half-ellipsoid would have the boundary being an allipsoid.

Another possibility is that they don't use Stokes' Theorem at all, but they are parametrizing the ellipsoid with the points of a region of a plane bounded by the ellipse. Without knowing what example you're talking about, I can't say.
Comment: Ahh you are right sorry I misread the question, my apologies!

Stokes' theorem confusion


Magic Earth Navigation POI import

Question: Custom POIs. I have made a POI in a number of formats:  .rupi,  .gpx,  .asc, .csv, .ov2, .txt,  containing some 250 handicap parking spaces I Denmark. How do I import custom POI with corresponding icon into Magic Earth Navigation?
Answer: At first you have to install "RupiManager".
Then put your poi.txt in "Import" folder and export it as KML by the app.
In the next step you have to open your poi.kml in "export" folder with magic earth.

Magic Earth Navigation POI import


Rotational motion

Question: Today I was thinking a bit myself about circular motion and I come up with a doubt. Suppose we tie a string with a bob and then fix other end of the string with a support. Suppose the string is inextensible and if we give the bob a velocity then it will undergo a circular motion and the magnitude of its velocity will remain unchanged as the work done by the tension will be zero. But we can say the string is providing tension to the bob as the bob has the tendency to move forward straight which would have increased the length of the string, so to maintain its length it provides the tension in such a way that it's length remain fixed. The time of impact is very small because in the next moment it's velocity changes the direction so we can say that an impulse is given to the bob perpendicular to its motion to  change its velocity but why it's magnitude doesn't change  though the impulse is perpendicular
Comment: Actually a diagram will be better but I dont know how to post a picture
Comment: What impact? Please explain the situation a little more (maybe with a diagram).
Comment: If you add a link to an online image, and someone can edit your post to embed it inside.
Answer: Nice doubt. Really was once confused in this.
The impulse provided by string continually changes direction. So it is going to be vector summed, but you considering its scalar sum.
The long explanation
So as the velocity is at a certain direction and tension is applied perpendicular giving it a simple perpendicular impulse so a slight component develops in a perpendicular direction and small about #Tdt#. So as very small variation in magnitude which we neglect but the velocity changes direction that's all.essentially the velocity changes direction and the next impulse (which we were calling the perpendicular impulse) will be perpendicular to the new velocity direction.This will make the velocity rotate by a small angle again.
So you see the the net impulse is vector sum of all (T*d t) at different time intervals which continually changes direction and over one complete direction is 0.
I hope you understand
Comment: So you got it??
Comment: Yes it's ok that if we neglect the change in magnitude then there is no doubt in the further motion but let us in case assume that the  change in magnitude in one impulse i very small but the bob is getting that kind of impulse so many times. Won't there be any finite change of magnitude after sufficient number of revolutions?
Comment: Sry i knew I messed up my answer so I edited it . Read it again
Comment: The impulses wil be changing direction not in a fixed direction but rather different direction
Comment: Which will be vector summer which will essentially be mathematics so I will have to show u calculations

Rotational motion


CheckedListBox Control - Only checking the checkbox when the actual checkbox is clicked

Question: I'm using a CheckedListBox control in a small application I'm working on. It's a nice control, but one thing bothers me; I can't set a property so that it only checks the item when I actually check the checkbox.
What's the best way to overcome this?
I've been thinking about getting the position of the mouseclick, relative from the left side of the checkbox. Which works partly, but if I would click on an empty space, close enough to the left the current selected item would still be checked. Any ideas regarding this?
Comment: Maybe I'm missing something. What is happening now when you check the box? Nothing? Is it checking something by default? What is happening that you want to stop happening?
Comment: I only want the box to be checked when I click the box itself, not the line. Imagine it looking like:

[ ] Item1

Currently, the box gets checked when clicking on the entire item, but I don't want that. I only want it to be clicked when I click the box itself, not the descriptive text next to it.
Comment: you could use an extra label, just the checkbox list, and then create labels,..
it's not that nice solved but it works :>
Answer: I know this thread's a bit old, but I don't think it's a problem to offer another solution:
private void checkedListBox1_MouseClick(object sender, MouseEventArgs e)
{
    if ((e.Button == MouseButtons.Left) & (e.X > 13))
    {
        this.checkedListBox1.SetItemChecked(this.checkedListBox1.SelectedIndex, !this.checkedListBox1.GetItemChecked(this.checkedListBox1.SelectedIndex));
    }
}

(With the value of CheckOnClick = True).
You could use that thingy with the rectangle, but why make it more complex the it needs to.
Answer: Well, it is quite ugly, but you could calculate mouse hit coordinates against rectangles of items by hooking on CheckedListBox.MouseDown and CheckedListBox.ItemCheck like the following
///
/// In order to control itemcheck changes (blinds double clicking, among other things)
///
bool AuthorizeCheck { get; set; }

private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
    if(!AuthorizeCheck)
        e.NewValue = e.CurrentValue; //check state change was not through authorized actions
}

private void checkedListBox1_MouseDown(object sender, MouseEventArgs e)
{
    Point loc = this.checkedListBox1.PointToClient(Cursor.Position);
    for (int i = 0; i < this.checkedListBox1.Items.Count; i++)
    {
        Rectangle rec = this.checkedListBox1.GetItemRectangle(i);
        rec.Width = 16; //checkbox itself has a default width of about 16 pixels

        if (rec.Contains(loc))
        {
            AuthorizeCheck = true;
            bool newValue = !this.checkedListBox1.GetItemChecked(i);
            this.checkedListBox1.SetItemChecked(i, newValue);//check
            AuthorizeCheck = false;

            return;
        }
    }
}

Comment: Thanks, it just works! Some optimizations are possible, but the idea works!
Comment: Yeah, like I said in the OP, I was thinking about something like this as well, but since it doesn't feel really good I started looking for alternatives :)
Answer: Another solution is to simply use a Treeview.
Set CheckBoxes to true, ShowLines to false, and ShowPlusMinus to false and you have basically the same thing as a CheckedListBox.  The items are only checked when the actual CheckBox is clicked.
The CheckedListBox is much more simplistic, but the TreeView offers a lot of options that can potentially be better suited for your program.
Answer: I succesfully used this property:
CheckedBoxList.CheckOnClick
https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.checkedlistbox.checkonclick?view=netframework-4.7.2
Answer: The text for a checkbox in a CheckedListBox is rendered by default is to place an HTML label after the checkbox input and set the label's "for" attribute to the ID of the checkbox.
When a label is denoting an element that it is "for," clicking on that label tells the browser to focus on that element, which is what you're seeing.
Two options are to render your own list with separate CheckBox controls and text (not as the Text property of the CheckBox, as that does the same thing as the CheckBoxList) if the list is static or to use something like a Repeater if the list is dynamic.
Comment: It's not a webform, but a winform :)
But I get your drift. The focussing is fine and actually what I want, I just don't want the checkbox checked when clicking on the item itself. Seems I'm gonna fiddle around with a custom control :)
Comment: Ok, it's hard to tell when there was only c# and CheckedListBox as the tags. I went ahead and added winforms.
Answer: Try this. Declare iLastIndexClicked as a form-level int variable.
private void chklst_MouseClick(object sender, MouseEventArgs e)
{
  Point p = chklst.PointToClient(MousePosition);
  int i = chklst.IndexFromPoint(p);
  if (p.X > 15) { return; } // Body click.
  if (chklst.CheckedIndices.Contains(i)){ return; } // If already has focus click anywhere works right.
 if (iLastIndexClicked == i) { return; } // native code will check/uncheck
  chklst.SetItemChecked(i, true);
  iLastIndexClicked = i;
}

Just checking to see if the user clicked in the leftmost 15 pixels of the checked list (the check box area) works at all times except re-checking a currently selected item. Storing the last index and exiting without changing lets the native code handle that properly, trying to set it to checked in that case turns it on and it just turns  back off when the "ItemCheck" code runs.


Hand Cream Glycerin

Question: Is there a problem according to any opinions of using creams and the like because of their treif animal content in the Glycerin of Sicha Kshtiyah:"anointing is like drinking"?
Answer: I heard a shiur by the OU's Rabbi Genack on this.
A custom arose among some Ashkenazic Jews not to apply anything specifically pig-derived on their skin, but otherwise, you can apply non-kosher items to your skin. Other than Yom Kippur, the rule of "anointing is like drinking" has nothing to do with kashrut today. It simply means that a Cohen who is given tithed olive oil (shemen terumah) for his consumption may also apply it to his skin.
One caveat: there is a category of prohibited items that is prohibited from all "tangible benefit" (issurei hana'ah), which would include smearing it on your skin. This category includes an item that was used in a pagan ritual, as well as meat that was cooked directly with milk. (This would only apply if the meat came from a ruminant.) I don't see any of this posing an issue with something like glycerin or most creams.
Comment: Anything non-kosher, other than swine-derived, can be applied to the skin? Isn't there a prohibition of deriving benefit from any _basar b'chalav_ that's forbidden _mid'oraysa_? (Anyway, CYLOR.)
Comment: @msh- someone who used to work in cosmetics once asked me about that since many products including shampoos use both fat and milk derivatives.  I assume in that case the fats are not fit for eating prior to being processed together with the milk.
Comment: @R'YDK, I was not commenting on R'Shalom's answer as it applies to cosmetics specifically but rather on the general statement "otherwise, you can apply non-kosher items to your skin".
Comment: Washing is more than the usual case of "tangible benefit" (hana'ah) because sichah, rubbing on one's body, is often considered a type of "drinking".
Comment: @MichaBerger precisely my point. "Sicha ki-sh'siya" is a Talmudic principle limited to Yom Kippur and Terumah; Rabbi Genack and others have said it was a misunderstanding applying it to kashrus. (Just as R' Chaim observed that "Panim chadashos ba'u lechan" as the Gemara uses it about burning sacrificial meat doesn't mean burned meat is "panim chadashos" vis-a-vis sheva brachos!)

Hand Cream Glycerin


Convert Char *ptr to Char *ptrArray[] to use in qsort

Question: Working on using qsort.
#include <string.h>
#include <stdlib.h>
#pragma once

int cstring_cmp(const void *a, const void *b);

int main()
{
   int count = 0;
   char * randomStr = "sdjsn9i3ms;sa;'smsn92;w;''[w0p4;dsmsdf";
   char * charArray[] =
    {"s","d","j","s","n","9","i","3","m","s",";","s","a",";","'","s","m","s","n"
    ,"9","2",";","w",";","'","'","[","w","0","p","4",";","d","s","m","s","d","f"};

   size_t strings_len = sizeof(charArray) / sizeof(char *);
   /*void qsort(void *base, size_t nel,
    size_t width, int (*compar)(const void *, const void *));*/

    qsort(charArray, strings_len, sizeof(char *), cstring_cmp);

    qsort(randomStr, strings_len, sizeof(char *), cstring_cmp);

    // Pause at command prompt
    system("pause");

    return 0;

} // Close function Main

int cstring_cmp(const void *a, const void *b)
{
    const char **ia = (const char **)a;
    const char **ib = (const char **)b;
    return strcmp(*ia, *ib);
}

So obviously my second qsort is not working. whether that's based on my cstring_cmp function that goes into my qsort not being able to support the base i give it or because my base is not formatted to correctly input into the qsort is a mystery to me.
My Question is how do I convert char * randomStr to char * charArray[] dynamically, during runtime, on the fly, or whatever cool phrase you can come up with. I've searched around a lot and maybe I was just not asking the right question, so I'm coming to you guys for some real question answering power.
Just starting C so if you please try not to fry my brain with your answers me and my brain would appreciate it.
My end goal here is to convert randomStr to a format of charArray, qsort it then convert it back to the randomStr format so i can do some find and replace things I have set up already.
Any help would be great, thanks.
Answer: First of all if you use char *randomStr = "Stuff" you can't change it, it's undefined behavior. Second, try this:
int
cmp_fry_brain(const void *a, const void *b)
{
    return *((const char *)a) - *((const char *)b);
}

/* This is equivalent to the one above (the compiler will likely emit the
 * exact same code).
 */
int
cmp(const void *a, const void *b)
{
    const char *x = a;
    const char *y = b;

    return *x - *y;
}

int
main()
{
    char str[] = "This is the end";
    qsort(str, strlen(str), 1, cmp_fry_brain);
    /* ... */
}

Comment: What's the benefit of the brainless `cmp()`?  Since you don't show it in use, it might not be obvious that it's the same as the brain-fried version.
Comment: @JonathanLeffler Fair enough, I added a comment :-)


Is 'Vulcanian' a disparaging term?

Question: The typical term for an inhabitant of Vulcan is "Vulcan" - but occasionally the term 'Vulcanian' is used (most notably by Harry Mudd in Mudd's Women). Is this term considered (in-universe) to be disparaging or merely old-fashioned (or some option)?
Comment: Depends if the speaker is Andorian :)
Answer: It's just a synonym of the word 'Vulcan' -- as in the race, not the planet -- used exclusively during the first season of TOS, before they'd settled on consistent terminology for everything.
The entry for the term on page 266 of Star Trek Concordance reads as follows:

Vulcanian; Obsolete term once used to denote a native of the planet Vulcan. Even Spock has used the term (CML, TA, TSP).
Star Trek Concordance (1969)

As noted above, Spock used the term himself in two episodes, and Kirk did likewise in one of those episodes, as did a Starfleet computer:

KIRK: Timothy, I haven't seen you since the Vulcanian expedition.
[...]
COMPUTER: Spock, serial number S179-276SP. Service rank, Lieutenant Commander. Position, First officer, science officer. Current assignment, USS Enterprise. Commendations, Vulcanian Scientific Legion of Honour. Awards of valour. Twice decorated by Starfleet command.
[...]
SPOCK: Lieutenant, I am half Vulcanian. Vulcanians do not speculate.
Star Trek: The Original Series - S01E14 - "Court Martial"

SPOCK: Limited telepathic abilities are inherent in Vulcanians, Captain.
Star Trek: The Original Series - S01E23 - "A Taste of Armageddon"
Comment: Glad to see this sort of variation between terms also happens in the original English version of Star Trek - not just in the German dubbing, where there is sometimes some confusion between alternative terms like Vulkanier vs. Vulkaner; Romulaner vs. Romulanier; Klingonen vs. Klingonier vs. Klingonesen.
Comment: Vulcans don't speculate? I've got to believe there are times when Spock does so.
Comment: But that would just be speculation...
Comment: @HamSandwich Spock also once claimed that Vulcans don't lie. But he was lying when he said that. I think this was in The Enterprise Incident.
Comment: @Barmar Even if Spock was telling the truth on that occasion it doesn't mean that he specifically cannot lie since he's only half Vulcan. His human side gives him plenty of differences from full Vulcans.
Answer: It would seem that Vulcanian is merely a more specific term than Vulcan. Vulcan could either mean "the planet Vulcan" or "of Vulcan", so it would be more precise to say Vulcanian to avoid confusion between communicators. The two words have the same meaning and are interchangeable, neither have a lesser or larger meaning and there seems to be no evidence I could find that it is disparaging, but according to Star Trek wiki, it is old fashioned because the term Vulcan was simpler, so people used it more frequently and eventually stopped using Vulcanian.
Sources:
www.stoacademy.com
en.wikipedia.org

Is 'Vulcanian' a disparaging term?


Access virtual machine my remote desktop

Question: Is it possible to access Windows XP on a virtual machine hosted in MS Virtual PC  via Remote Desktop?
Answer: All you should need to do is make sure that it's getting it's own IP and then enable Remote Desktop on the machine.  It may not work if they share the same interface but if you enable Remote Desktop and then play with the network settings you should get it working without much hassle.


Jumping from a source block to the tangled file

Question: Is there an inverse of org-babel-tangle-jump-to-org allowing one to jump from a source block to the corresponding place in the tangled file?
Answer: Here is a solution if you use :comments link in your code blocks header and if tangle multiple blocks into a single file. With cursor at code block it will jump to a point where this block was tangled using these comment links.
;; this is optional but might look better than defaults
(setq org-babel-tangle-comment-format-beg "-------->>  [[%link][%source-name]]")
(setq org-babel-tangle-comment-format-end "--------<<  %source-name ends here\n\n")

(defun sv-org-babel-tangle-jump-to-src ()
  "The opposite of `org-babel-tangle-jump-to-org'. Jumps at tangled code from org src block."
  (interactive)
  (if (org-in-src-block-p)
      (let* ((header (car (org-babel-tangle-single-block 1 'only-this-block)))
             (tangle (car header))
             (lang (caadr header))
             (buffer (nth 2 (cadr header)))
             (org-id (nth 3 (cadr header)))
             (source-name (nth 4 (cadr header)))
             (search-comment (org-fill-template
                              org-babel-tangle-comment-format-beg
                              `(("link" . ,org-id) ("source-name" . ,source-name))))
             (file (expand-file-name
                    (org-babel-effective-tangled-filename buffer lang tangle))))
        (if (not (file-exists-p file))
            (message "File does not exist. 'org-babel-tangle' first to create file.")
          (find-file file)
          (beginning-of-buffer)
          (search-forward search-comment)))
    (message "Cannot jump to tangled file because point is not at org src block.")))

Answer: I am not aware of a function shipped with org that jumps to the tangled file.
Furthermore, there is no separate function that generates the file name(s) for the tangled file(s) in org-babel-tangle. That makes the job a bit cumbersome.
The function org-babel-tangle-jump calls org-babel-tangle with write-region temporarily modified such that it does not write the region contents to a file but just delivers the file name that is passed to it in a  variable file locally bound in org-babel-tangle-jump. Finally, org-babel-tangle-jump opens the file with that name if it already exists.
(defun org-babel-tangle-jump ()
  "Jump to tangle file for the source block at point."
  (interactive)
  (let (file org-babel-pre-tangle-hook org-babel-post-tangle-hook)
    (cl-letf (((symbol-function 'write-region) (lambda (start end filename &rest _ignore)
                         (setq file filename)))
          ((symbol-function 'delete-file) #'ignore))
      (org-babel-tangle '(4)))
    (when file
      (setq file (expand-file-name file))
      (if (file-readable-p file)
      (find-file file)
    (error "Cannot open tangle file %S" file)))))

Answer: A little add up to Stas' fantastic function:
as org-babel-tangle-single-block is used with counter 1, the function only work if your source block is the first in the subtree, or if it have #+name: some name before the block.
explanation:
if the src block have no #+name:, the link in tangle file would be

[[file:babel.org::+begin_src python][No heading:2]] (if it is before first heading) or
[[file:babel.org::*a heading][a heading:1]] ("a heading" is the heading it belongs to)

and the counter in [No heading:2]  and [a heading:1]may not be 1.
With #+name: the link would look like
[[file:babel.org::this block][this block]], where the counter wouldn't matter.


Workshop attire for women in India?

Question: I've been invited to an academic workshop in India. As a North American woman, it is conventional to wear business casual (e.g., pant suit or dress) or even casual clothing to a conference or workshop in my field (geography/health). Would it be appropriate to wear business casual in India or to dress more formally? Are pants preferred over knee-length skirts for women?
Comment: Can you ask the folks who invited you? // If the venue isn't air conditioned, you might be more comfortable in a dress or skirt than slacks. // The conservatism in the US against flowers and frills is probably not so present in India.
Answer: This is out of my field as I'm male, but think of the temperature, so next be respectful (not suggesting you wouldn't...) but a lightweight business suit may be the order of the day.
Any images of last years conference available - may give you a hint...
I don't think you will be required to wear a sari ... Mind you a colleague went to a conference abroad and made some friends and they went shopping to get her some national dress as a memento .... and some light fun of course.
Comment: +1 for "*Any images of last years conference available - may give you a hint*" Absent suggestions from someone more specifically knowledgeable about India-appropriate attire, this is an excellent idea, and also it can be used (or at least attempted) for similar attire concerns elsewhere.
Comment: Agreed with @DaveLRenfro. That idea would have never occurred to me, but it's definitely going in the toolbox now!
Answer: I think a plain short kurti - preferably one that goes down past your bottom and is not sleeveless - with plain jeans (not ripped or stonewashed or with designs) is perfectly appropriate. I wear this outfit both in India and the US, and it doesn't look out of place in either country, while being extremely comfortable in the Indian climate. In the US, I believe kurtis are called long tunics here and are sold by several major brands.
I don't think there's a need to wear a sari. My friends who work in India only wear saris when they want an excuse to dress up :) For example, weddings, super formal events, etc. Of course my mother and mothers of my friends wore saris almost every day, to go to work. So maybe it's a generational thing.

Workshop attire for women in India?


How to implement read lock on record in salesforce?

Question: We have a requirement to implement the read lock on record such that no other transaction can read that record until the first transaction is completed or committed and other transaction have to wait until the first transaction is completed. Is this possible in Salesforce?
Comment: Check the `FOR UPDATE` keywords.
Comment: .@PhilW I think For update lock other transaction to update the record but other transaction can read the record , but I want that other transaction don't read the record until first  transaction is completed.
Comment: https://salesforce.stackexchange.com/questions/301843/soql-concurrent-reads-of-rows-when-for-update-clause-is-used
Answer: The FOR UPDATE keywords allow you to query records only if they are not already locked, as covered but the second "Locking Consideration" in the documentation.
The important points from these considerations here are:

Other clients can still query the same records while they're locked.

and:

If you attempt to lock a record currently locked by another client, your process waits a maximum of 10 seconds for the lock to be released before acquiring a new lock.

So as long as both clients are using FOR UPDATE in their queries you effectively get read locking. It is only when clients are using a mix of with and without FOR UPDATE that you don't get a read lock.


Autogrow on a SharePoint database?

Question: So now that I've become the semi-dba at my current job I'm trying to improve a lot of the things that weren't really being considered before. One of these is trying to make sure that databases aren't set to autogrow and are assigned appropriate size limits. My problem is the SharePoint database. Since the databases for SharePoint could grow at unexpected rates I'm not sure what to do with them. I'm looking for some advice from other dbas who manage SharePoint databases.
Comment: Please look at this response from Paul Randel where he briefly touches on my turning off AutoGrow can be a very bad thing to do: http://serverfault.com/questions/31499/can-i-change-a-live-sql-database-from-autogrow-safely/31634#31634
Answer: There are at least two ways you can handle trying to figure out the size of the database.

Go through a long planning phase where you figure out the expected workload and usage patterns. You then correlate that back to how much disk space per site the quotas allow for. And then you identify how many sites you can support taking into consideration restore time, site performance, and your own comfort level. This should give you an estimated database size that should ideally be 100GB or less. You can then pre-expand your database to the expected maximum size.
Just pre-expand it to 100GB. See this TechNet article.

On top of this you should always be monitoring your database sizes and set up alerts to trigger whenever things look like they could fill up in X days. X will be the time it takes you to not only expand the database, but make sure that it is properly defragmented afterwards and your new restore time figured out. X may also include the time that it takes to add more storage to your SAN/DAS.
The reason I picked 100 GB is because that is inline with the recomended max size of a sharepoint database taken from their documentation. It's not to say that you can't do larger, but need to understand the repurcusions of that choice.
Comment: You may want to also check out this question that was just asked: http://serverfault.com/questions/31499/can-i-change-a-live-sql-database-from-autogrow-safely
Comment: Option 1 is the best, although it is the one that companies are lease likely to invest in :(  The two following posts will show you exactly how to figure out how much content currently exists, plan for growth, and size needed disk and I/O: http://www.cleverworkarounds.com/2007/10/17/disk-and-io-sizing-for-moss2007-part-1/ and http://www.cleverworkarounds.com/2007/10/17/disk-and-io-sizing-for-moss2007-part-2/
Answer: Its tough becoming the unwilling DBA. You can set autogrow its just you should try to size your database up front to avoid fragmentation and performance issues with autogrow. Here's some articles by Paul Randal to help you out.
Welcome to the DBA world: http://www.sqlskills.com/BLOGS/PAUL/post/Becoming-an-involuntary-DBA-youre-not-alone.aspx
Sharepoint gold: http://www.sqlskills.com/BLOGS/PAUL/category/Sharepoint.aspx
Comment: Haha not really unwilling just unexpected. I'm actually enjoying it quite a bit and trying to get better at it.
Comment: It could be the start of a glittering DBA career :)

(Don't turn off autogrow BTW use it as a safety net).
Answer: First, for sharepoint you most certainly do want autogrow turned on. You do want to set a size limit of 100GB (the max recomended sharepoint database size).  As you've discovered, sharepoint isn't like a regular database application.  A month could go by before someone tries to create a new repository for stuff that uses 10gb, when your usually usage is 10MB a day.  Here is a Microsoft doc on what maintenance should be done to a sharepoint database.
Comment: 100GB is not the max SharePoint database size.  It is a recommended guideline due to restore SLAs, potential locking issues, etc.
Comment: it is the max when there is an issue.  PSS was pretty explicit about that when I've called.  There will havce to be a really really good business reason before I let any of my sharepoint databases grow beyond 100GB
Comment: I sit right next to the CSS SharePoint escalation team :)   From the Official Microsoft SharePoint Team Blog and Joel Oleson no less(http://blogs.msdn.com/sharepoint/archive/2006/08/03/sharepoint-content-database-restrictions-there-are-none.aspx) "There are no size restrictions built in... Properly configured WSSv3 and MOSS 2007 installations should be able to handle TB sized content DBs"
The recommendation (per the sizing guidelines here: http://technet.microsoft.com/en-us/library/cc262787.aspx) is of course 100GB, and as you say, it would take a heck of a business case to change my mind :)

Autogrow on a SharePoint database?


Entry to The US before 30-day grace period for student visa

Question: The F student visa allows me to enter the US up to 30 days before the program starts. For starting to set up things it is of my interest to arrive sooner than that. How hard is it to travel there beforehand with a tourist visa (waiver) and leave to, say Mexico, to then re enter on a proper date within the 30 days with the student visa? This seems easier than requesting for a status change inside the US from tourist to student..
Comment: Note that entry _by air_ under the Visa Waiver Program is in principle not possible unless you have a _round-trip ticket_ that will take you out of North America (that is, not just to Mexico) at the end of the supposed tourist/business trip.
Comment: `How hard is it to travel there` - subjective and opinion based
Comment: And what is your subjective opinion based on your knowledge and experience on the subject?
Comment: I understand, so in principle this should be possible not only by exiting north america, but also by soliciting the entry from a non-north American country to which to travel back after wards.
Comment: @lukashirsch: The requirement in 8 CFR 217.2(c)(1) is to have "a round trip ticket that will transport the traveler out of the United States to any other foreign port or place **as long as the trip does not terminate in contiguous territory or an adjacent island**". For this purpose, Mexico and Canda are "contiguous territories".
Comment: @Henning : The implications and difficulties of this are clearer now thanks. I would accept this as an answer to the question.
Answer: There are two problems with this plan.
First, in order to enter by air under the Visa Waiver Program, you need to hold a round-trip ticket, that will take you out of North America (that is, not just to Mexico or Canada) at the end of the supposed tourist trip. This is defined in 8 CFR 217.2(c)(1):

Applicants arriving by air and sea. Applicants must arrive on a carrier that is signatory to a Visa Waiver Pilot Program Agreement and at the time of arrival must have a round trip ticket that will transport the traveler out of the United States to any other foreign port or place as long as the trip does not terminate in contiguous territory or an adjacent island; except that the round trip ticket may transport the traveler to contiguous territory or an adjacent island, if the traveler is a resident of the country of destination.

There are conflicting anecdotal reports of how severely this is enforced in practice, but it seems to be clear that the airline would be entitled to deny you boarding towards the US if they haven't sold you such a ticket.
Second, in order to use the VWP at all (or to get an actual tourist visa), the purpose of your visit must be either tourism or business.  Setting up things to live in the US during your studies is neither of that.
You would have to lie about your intentions to the border control officer, and given that your passport contains a soon-to-start student visa it is quite possible that he would be suspicious about your true intentions.  If you're found to have lied in an entry interview, that could have pretty disasterous effects on your ability to enter the US subsequently (even with a visa already issued).
The only purpose that qualifies for the VWP is as a class B nonimmigrant, 8 USC 1101(a)(15)(B):

an alien (other than one coming for the purpose of study or of performing skilled or unskilled labor or as a representative of foreign press, radio, film, or other foreign information media coming to engage in such vocation) having a residence in a foreign country which he has no intention of abandoning and who is visiting the United States temporarily for business or temporarily for pleasure
Comment: The first point is easily remedied by obtaining a B-2 visa.  The second point could probably be explained away.


When is the Riemannian manifold $\mathbb{R}^n$ complete as a metric space with respect to the Riemannian distance?

Question: Consider the Riemannian manifold $\mathbb{R}^n$ and a smooth Riemannian metric $G:\mathbb{R}^n\rightarrow\mathbb{R}^{n\times{n}}$. What is the minimum assumption on $G$ such that the manifold $\mathbb{R}^n$ is complete as a metric space with respect to the Riemannian distance determined by $G$. The Riemannian distance $d_G(x,y)$ between points $x,y\in\mathbb{R}^n$ is defined as follows: $d_G(x,y)=\inf_{\chi\in\Omega(x,y)}\int_0^1{\sqrt{\left(\frac{d\chi(s)}{ds}\right)^TG(\chi(s))\frac{d\chi(s)}{ds}}ds}$, where $\Omega(x,y)$ is the set of all the piecewise smooth paths connecting $x$ to $y$. It can be easily checked that if $G$ satisfies: $\omega_1\Vert{y}\Vert_2^2\leq y^TG(x)y\leq\omega_2\Vert{y}\Vert_2^2$ for any $x,y\in\mathbb{R}^n$ and for some positive constants $\omega_1$ and $\omega_2$, then $\mathbb{R}^n$ is a complete metric space with respect to $d_G$. Moreover, if we can find a change of coordinate such that the metric in the new coordinate satisfies the preceding assumption, again the result is true. I am just wondering if there exist weaker assumptions on $G$ to show the result or there exist counterexamples to show that these assumptions are necessary.
Comment: These conditions are certainly not necessary. The bounds on $G$ imply that the volume of a geodesic ball grows like $r^n$ where $r$ is the radius. But there are plenty of complete Riemannian manifolds whose geodesic balls grow at either a slower or faster rate. In fact, these conditions are extremely strong and far stronger than needed for completeness.
Comment: Assuming that $G \ge c g$, where $c$ is a positive constant and $g$ is the standard flat metric, suffices.
Comment: How can I show the result using this condition? Do I need to construct a Cauchy sequence on the original metric and show that it has a limit?
Comment: Same proof as before should work. I don't see why $\omega_2$ is needed.
Comment: By having that lower bound, I can show that any Cauchy sequence in $\mathbb{R}^n$ with respect to $d_G$ is a Cauchy sequence with respect to $d_g$, where $g$ is Euclidean metric or the flat metric. As we know, $\mathbb{R}^n$ with respect to $d_g$ is a complete metric space. Hence, the sequence converge to a point in $\mathbb{R}^n$ with respect to $d_g$. Now, how can I show that the sequence converges to the same point with respect to $d_G$?
Comment: $G$ is continuous with respect to the standard topology on $R^n$.
Answer: You are assuming that the identity map between the Riemannian metric and the Euclidean metric is bi-Lipschitz, but this is certainly far too strong.  Here are two counter-examples:

Take some self-diffeomorphism $f$ of $\mathbb{R^n}$ with derivative unbounded below and above and pull back the Euclidean metric.
Take hyperbolic $n$-space, which is complete and diffeomorphic to $\mathbb{R}^n$ but not bi-Lipschitz to it.
Comment: Is this condition also necessary? At the moment I don't see why that sould be the case, but I cannot construct a counter-example. An intuitive approach would be: Let $p_n=(n,0,0,...)$. Choose the metric such that $G$ equals the usual Euclidian metric everywhere except $\bigcup K_n$ where $K_n$ is the ball with radius $1/n$ around $p_n$. Now choose $G$ such that $G\leq 1/n g$ somewhere in $K_n$. Then certainly $G$ does not fulfill the condition stated, but probably $R^n$ will be complete wrt this metric as well.
Answer: A standard necessary and sufficient condition is that every bounded set for your metric is bounded in $\mathbb{R}^n$ with the standard Euclidean norm.
Comment: I'm sure this is well known to people experienced with manifolds, but do you know of a text book mention that this fact?


Wordpress Recent Post with the badge "New" on the side of the title post

Question: Blog Page:
Single Post:

I'd like to greet everyone a Happy New Year and Happy Holidays. I have a request on how to put a label "New" beside the title post on my recent post and my single recent post(red Mark in the photo). I keep on finding for answers on the internet for days and I couldn't find one. I hope you guys give an idea, demo or answers on this particular wordpress subject this would give me a big help and I hope I didn't bother anyone on celebrating your holiday. Thank you.
Comment: This is something you'll probably want to add to your theme, both the archive page (for the top one?) and the single post page for the bottom one. Whatever your logic for 'new' you can then output the 'new' text / icon next to the date. Can you find the relevant bits in your theme? If it's a third-party theme you might want to make a child theme to do the actual extending so that you don't lose your changes when the source theme updates.
Answer: This should get you started. It checks if the post was posted less than a day ago, and if it was, it will display a label that says new, which you can style.
<?php if(get_the_date('Y-m-d-H-i-s') > date("Y-m-d-H-i-s",strtotime("-1 day"))) { ?>
New
<?php } ?>

You need to add this to your theme, in the file that displays posts.

Wordpress Recent Post with the badge “New” on the side of the title post


How to create and scan a list/array ... in embedded CLIPS

Question: How can I create complex data structures in CLIPS?
I will shortly explain what I intend to do:
if I have a list in C++ for example a list of car models.
several users then input keywords, I want to trigger an alert each time a keyword is not in the car models list.
I don't want to create a rule for each car model.
Answer: Use COOL instances. These are the closest analog to C++ classes.


How to safely connect to 120V wall power outlet

Question: I want to test the voltage drop of a conductor as the conductor increases in length, at 120V. I do not have a 120V bench power supply. Is there a safe way to connect the electricity from my wall outlet (that runs at 120V AC) to a set of probes/crocodile clips that I can attach to the conductor?
Comment: Voltage drop along a conductor is a function of current through the conductor not what voltage it is operating at. Use a low voltage source.
Comment: You're not talking about AC or DC, am I correct in assuming that you want 120 AC voltage?
Comment: AC from the wall yes
Answer: I believe what you are going to want will be an isolation transformer. This will protect you by not referencing the power supply from the transformer to earth ground and you will not shock your self by touching one of the conductors, as you will not become the ground path (you are earthed and the circuit is not). However, this will not protect you in the event that you short the conductors (touch them both at the same time). It is safer than connecting to mains power directly, but not completely safe. Never tell yourself that electricity is completely safe.
Comment: I think that you will understand that this is a bit short of a good answer. Explain why you believe this and how to connect it up. Then address the OP's concerns about shorting and electric shock (which is still possible).
Comment: Good job. The standard is quite high on this site and writing a quick but poor answer will only attract downvotes. I often find that I think I have an answer but have to do a bit of research and having to explain it clearly helps my own understanding. It's good fun.
Comment: I edited my answer to be more complete.
Answer: The safety of any power source is indicated by current flowing through the circuit in to the source. Small sources have pre-defined current sourcing\ sinking capability but since you are using power outlet directly this part should be fine.
Now if you want to measure the conduction\ resistance behavior of conductor at a specified voltage you'll have to think of something that will bring the current flowing through the conductor to a safe value (may be use a rheostat).
I don't think connecting the set of probes/crocodile clips directly from outlet is good idea as it will definitely cause short circuit.
BTW you can directly know the voltage drop with increase in length if you know the material property of the wire with the equation R = ρ*L/A.
But if you are doing it to get some practical data, please do not connect it directly until you have some sort of current protection in your circuit.


My mechanic won't pick up

Question: I have over 800,000 and my mechanic won't pick up. Yes I am in the road where it's valid but he will never answer
Answer: Check if you have any cars to have your mechanic deliver to you. If you have one car and it's seized or destroyed , he won't pickup as there are no cars to deliver.
Try calling Insurance instead.
Answer: An important detail is that the mechanic will not be back in service until you have paid all the mechanic and utility fees. Have you ensured that you have?
If you haven't, you need to freeroam until you get a message saying that those fees have been paid. The game will prompt you when that happens.

My mechanic won't pick up


How to solo Pyrocaustic Pete the Invincible?

Question: Is he possible to beat solo? Getting through his shield is the easy part but how would you damage his actual health?
He is resistant to both fire and corrosive so those are out of the question. I don't see how he can be beaten.
Comment: Shock does 1.0x damage against health in BL2: http://gaming.stackexchange.com/a/85231/11920 and he's only resistant to Corrosive while using corrosive attacks
Comment: When you take his shield down though he uses fire and corrosive so isn't he resistant to both then?
Comment: Not sure, he seemed to take more damage from Corrosive than Fire, but I avoided both and went for shock/nonelemental
Answer: Various tips:

Shock does normal damage against flesh/armor, so 1.0x not 0.8x. Shock works just fine against him and makes removing the shield a breeze. Non-elemental works fine against him too I think.
The Bee really really helps, especially during the start. Aside from the Damage over Time effects, it's extremely easy to dodge Pete's attack if you simply walk backwards and shoot at him.
Pete can be slagged like a normal enemy for a normal duration. If you have Slag grenades or a skill that slags, use it. Slag guns are far less useful in solo play through.
His DOT (damage over time) effects never wear off over time, so don't wait for them to go away.
The water valves open and let you remove the long lasting DOT effects from his novas. walk through the water to remove the DOT effect. The DOT effect is weak but it limits your shield's abilities (read: it removes The Bee's effect)
Opening the valves spawns a group of Rats or Spiderants. They increase in level by 3 each time they're spawned, ending in 66 I think.
Consider letting two DOT effects stack before opening the valves. This will limit the leveling up of the mobs from the valves
Open the south (I think) valve as it has Spiderants. The spiderants are far far easier to deal with than the Rats
If one spiderant/rat is alive when you turn the valve, no more will spawn. If you can stand leaving a spiderant alive and kite him around like Pete you should be able to water yourself down immediately after each nova no problem.
There are respawning ammo crates around the arena for a reason. Try and open them every once in a while for health/ammo since he takes a LOT of bullets to kill.
Some people suggest Fire/Corrosion immunity shields to limit his DOT effect, but later on in the fight he'll be doing both Fire and Corrode DOT every Nova anyway, so unless you've got a fire/corrode immune Bee I wouldn't bother with it trying to immunize yourself.
Immunity doesn't mean you don't take the DOT damage either, it just significantly reduces it. So you'll still slowly lose health and never have full shields.

In short, use Shock or normal damage, slag him, use the Bee, release Spiderants not rats. Try to always leave a spiderant around to kill for a second wind (and so you can open the valve without washing in more enemies each time). The fight is mostly about managing the non-pete enemies to make sure you can wash off the DOT, can get a second wind but so you don't get swarmed. Pyro Pete isn't actually a big problem except for the loooong fight and the DOT effects, just keep moving and he'll never hit you with anything else. No shields spawn with immunity to both elements (unless there's a unique/legendary I'm unfamiliar with)
He can be soloed, but of course a group really does help. With a group it's much easier to manage the spiderants/rats, he's less focused on one target and it's much easier to open the valves since you can assign one person to always do that.
Here's a video demo of a Siren soloing him:
Comment: Wiki article suggests using two shields with elemental resistance *when soloing*, because it is possible to insta-swap them between fire and corrosive novas.
Comment: What about his AoE things that hit you no matter what?
Comment: @DomenikVanBuskirk what about them? Those are only to cause the DOT which I covered extensively. There's no avoiding them or anything.
Comment: Didn't notice the "from his novas part the first time I read it, you're right.
Comment: @OrcJMR ohhh hadn't thought of that actually! I'm so used to opening the menu being a death-sentance in multiplayer. Do immunity shields remove current DOT effects too then?
Comment: No idea, honestly, but I'd not count on that much...
Answer: It is possible to grenade jump (unequip grenade mod, throw, be in air nearby when it explodes) up onto one of the ledges beside a column, and then up to a couple of huts, I think to the left of where you enter (definitely not the hut with the dook hut).
It makes taking cover from the novas very easy, you can pop in/out of cover, and if he is on the other side of a hut you won't take damage from them even if you're 10 metres away.
If you're not using a Gunzerker/Hoarder mod combo, ammo might get a bit tight.  In this case, take at least one of every weapon type with you, make sure you're getting the best damage/ammo you can out of each, and make sure your skill tree is damage-focused (Kunai/Cataclysm for Assassin/Siren).  Cooldown relic/mods will help here.
Answer: I was Level 42 when I did it solo and it was my first Borderlands Raid ever. Took me one try with Zer0. I used a Jakobs Revolver w/ 4300 Damage, Torgue Rocket Launcher w/ 36,966 Dam, Valdof Slag TMP and Corrosive LMG when his shield was gone, and had the Magic Missle Slag Grenades 8877x2 Damage and they Regen themselves. Class Mod: Disturbed Stalker +23% Pistol Fire Rate, +29% Mag Size, +26% Shield Recharge Rate with +3 Rising Shot. Vitality Relic +38% Health. Armored Turtle Shield 10,286 Cap, 827 Recharge Rate, 5.04 Second Delay, and -2115 Health. What I did was slag him, go in Deception, and shoot him with a rocket to do 42K Damage until I ran out of Rockets. I used the Grenades a lot and the Jakobs Revolver to do a lot of DPS. And just ran in circles in the area to avoid his attacks and to activate the Digistruct Ammo Supplys. When he uses his Ultimate Attack Dont use the Pipe that sends down the Rat except use the Spierant one. They are easier to dodge and take down quicker. Just got to play smart and outlast him, don't give up even if it seems like it's taking a while. Took me around 30 Minutes for me. Good Luck.
Answer: Pryo Pete is such a fun fight. One easy way to fight him is using either the alkine the bee or inflammable the bee (or both during his pyrocaustic stage) and a shock sandhawk from Captain Scarletts Campaign. During his nova attacks in the second stage, when you inventory on solo it pauses the game. so after the first initial nova wave whether it is fire or corrosive,you switch to the other shield to protect from the wave and counteract the DoT from his attack, hereby negating the use of water falls so you will never need to spawn the spiderants or rats. The main strategy is kite him in circles shooting him with the sandhawk then switch to another gun if you need ammo, however if you have maxed out your smg ammo capacity with eridium from the black market, you should be good if you can land critical shots on his head or flame pack. Using the magic missle helps with extra damage due to slag, and if you are playing siren, specing into the cataclysm tree with the abilities to cause slag, shock, fire, and corrosive damage from the phaselock. If you want to land critical headshots easily, use the tresspasser sniper rifle given as a reward from Mordecai. It has the special effect to bypass shields which can allow you to remove pyro petes helmet in his shield stage and land more critical hits dealing massive damage.


Spot colors changing to black in PDF and Ai file but not EPS

Question: In preview the Ai files shows black. If I open the Ai file the colors are displayed correctly but in a PDF they are totally black. Does anyone know what's going on?
Answer: Apple's Preview application can not render spot colors. In addition to a few other rendering bugs. This has been true for years. Apple doesn't appear to really care.
The solution is simple. Stop using Preview to view PDFs if you want PDFs to be rendered correctly. Use Adobe Reader or Adobe Acrobat.


How to implement svn's post-commit hook to automate the deployment of php web projects?

Question: This is the default stuff in post-commit.tmpl, which I think does nothing useful:
REPOS="$1"
REV="$2"

mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf

How can I make use of this hook to automate the deployment?
Answer: The post-commit hook is called on the server-side in the repository, which is a database, so you won't be able to do much from such a hook.
So just do your deployment from your working copy, after your commit. The easiest is to make a script for this, and of course make it also under version control.
If you're on Windows, there's a nice tool shipped with TortoiseSVN called SuvWCRev that you can integrate from your script. It allows you to retrieve all your working copy information so that the thing you deploy have somewhere the trace of what revision it was made from, and other useful stuff.
Comment: This would make a new question, but a few things:

Just make a bat with FTP commands, like here:
http://www.petefreitag.com/item/77.cfm

Or full thing:
http://www.capify.org/index.php/Capistrano and also
http://amiworks.co.in/talk/ads-automatic-deployment-script


Is there a non empty set a such that for every $x∈a$ , $\{x\}∈a$ ? - Axiom of Infinity

Question: Is there any non empty set a such that for every $x∈a$ , $\{x\}∈a$ ? If it is true, how do you deduce the statement from ZFC ( heavy use of the Axiom of Infinity I suspect) & if it false, where does the contradiction appear from ? And, if it is true, does it work as a weaker version of Infinity ? It seems to be the one originally used by Zermelo.
Comment: An example would be $V_\omega$. If $a\in V_\omega$ then $a\in V_k$ for some k, so $\{a\}\subseteq V_k$ so $\{a\}\in V_{k+1}\subseteq V_\omega$.
Comment: What is Vω ? An ordinal ?
Comment: https://en.wikipedia.org/wiki/Cumulative_hierarchy
Answer: Of course (as Wojowu points out in the comments) $V_\omega$ is an example of such a set (as indeed is any $V_\lambda$ for $\lambda$ a limit ordinal), but we can also prove in ZFC that the set $$\{\{\}, \{\{\}\}, \{\{\{\}\}\}, . . .\}$$ of finite Zermelo ordinals exists, which I think is what you were specifically looking for. We can prove this set exists using mainly Infinity and Replacement (it might be possible to avoid Replacement, but I'm tired and lazy right now :P) - one particularly silly way to do it is to define it as the set of elements of $V_\omega$, every element of whose transitive closure has exactly one element. (Replacement is being used here to talk about the transitive closure.)

By the way, you're quite right that Infinity is crucial: $V_\omega$ is a model of all the $ZFC$ axioms except Infinity, and no set as you describe exists in $V_\omega$.


Did I commit shrik? Which types of shrik is this?

Question: In today's fajr prayer I was praying in congregation.But in rakat 2 my udhu broke but I still prayed because I feet shy to break my paryer in fornt of people.And I know that my prayer was invaild.
So did I commit shrik?
Which kind of shrik minor or major?
Comment: Can you tell me what or which or whom have you declared as a partner of Allah to make this matter shirk? Scholars discussed whether this matter is kufr or not. But the closest to truth and the majority view is the latter.
Answer: Shirk means associating partner to Allah. The prophet said Every action is dependant on intention. From your question I could understand that due to shame and embarrassment you have continued to pray despite breaking wudu and this isn't shirk. Although the correct thing to do is to walk out,do wudu and join in again.
The prophet said فَاللَّهُ أَحَقُّ أَنْ يُسْتَحْيَا مِنْهُ
"Allah is most deserving of being shy from Him." Tirimidhi Book 43, Hadith 2996
So in future don't continue prayer in that condition as it may mean that you value people more than Allah.. Remeber this hadith next time. After we are humans, we Err and it's perfectly normal to have wudu broken. you are human. It may happen to anyone. Don't feel bad and neither would PPL think bad about you. Make wudu and join back


Using VBA to copy a Reference to a Cell from Sheet 2 to Sheet 1

Question: Anyone
I am new to Visual Basic Excel and would appreciate help with a particular problem. I have been reading reference books and searching Google to find a solution but I have not been successful.  I have completed all of the other project requirements except for this one.
I have a workbook that has 48 separate sheets and depending on which detail sheet is referenced, I need to provide information to the Summary Sheet. I am attempting to Copy only the Reference to Cells from a particular Detail Sheet to Summary Sheet.  For example I am trying to have the following in Cell(15,5) on the Summary Sheet  ='Detail 1'!E10  The purpose is to reference Cell(10,5) on Sheet Detail 1 so the value in the Summary Sheet updates whenever Cell(10,5) on the Detail 1 sheet changes.
I tried this code but it does not work among a bunch of other attempts.  It copies the formula but not the reference.
As I said before, I am still learning so, if what I show below is totally rookie code, I will suitably be embarrassed.  Thank You in advance for any help.
<code>'-----This is simplified Version of the code in a WorkBook with 45 sheets-----------

Sub CopyReference()

Dim SheetCounter As Integer

Dim RowNumber As Integer

Dim ColumnCounter As Integer

RowNumber = 10

ColumnCounter = 5

SheetCounter = 2   '------------This is the Detail 1 Sheet in the WorkBook-------------

Sheets(SheetCounter).Select

ActiveSheet.Range(Cells(RowNumber, ColumnCounter), Cells(RowNumber, ColumnCounter)).Copy

Sheets(1).Select                   '------- This is the Summary Sheet

ActiveSheet.Range(Cells(RowNumber + 5, ColumnCounter), Cells(RowNumber + 5, ColumnCounter)).PasteSpecial Operation:=xlPasteSpecialOperationNone

End Sub
</code>
Answer: This seems like what you need
<code>ThisWorkbook.Sheets(1).Cells(15, 5).Formula = "=" & _
     ThisWorkbook.Sheets(2).Cells(10, 5).Address(False, False, , True)
</code>


Pronunciation of Yerushalayim

Question: In the Tanach, the word Yerushalayim is almost always written without a yud between the lamed and mem, but pronounced as if there is a patach under the lamed and a yud following it. We find though that Malki Tzedek was called Melech Shalem in Bereshis 14:18, and the midrash in Bereshis Rabba 56:10 implies that that is referring to Yerushalayim. This would seem to indicate that the city's name, at one point at least, was pronounced Yerushalem, as indeed it is vowelized in Aramaic, and that at a later period it was changed to Yerushalayim, as it indeed appears in Meggilas Esther. Did the switch occur, when, and why?
Answer: In the Chumash, we find "Malki-tzedek, king of Shalem", as well as Avraham referring to the place of Akeidat Yitzchak as "Hashem Yireh." The midrash says those names were combined, "Yireh+Shalem" -> "Yerushalayim."
Note that in Aramaic, it's pronounced "Yerushlame", which fits with how it's written Biblically -- no yud before the final mem. However in Hebrew, it's "Yerushalayim."
Comment: This doesn't seem to answer the question (when and why); it just repeats what is said in the question.
Comment: Why is it then that in Tanach it is still spelled without a yud? The aramaic pronunciation also would seem to indicate that the name as Yerushalem persisted *after* the combination of the names mentioned in the Midrash, which then makes the question stronger - when and why did the change occur?
Comment: @Scimonster, that's because the question was edited substantially substantively since this answer was posted.
Comment: @msh210 Oh. Now i want to take back the downvote, but it's been too long. :/
Answer: Which Tanakh are you referencing to find the correct pronunciation of Jerusalem (ירושלם)?
We find in the Dead Sea Scrolls fragment of [Ezra 6:2] : "Yerushalem" (ירושלם). - without any niqqud [https://www.deadseascrolls.org.il/explore-the-archive/image/B-367571].

We also find Jerusalem pronounced "Yerushalaim" (ירוּשָׁלִַם) In the Tanakh [MT] published online @ [mechon-mamre.org]

[2 Samuel 5:5] - "Yerushalaim" (ירוּשָׁלִַם).
[Isaiah 2:3] - "Yerushalaim" (ירוּשָׁלִָם).
[Ezra 1:2] - "Yerushalaim" (ירוּשָׁלִַם).

We also find Jerusalem pronounced "Yerushalam" and "Yerushelem" in the Tanakh [MT] edited Rabbi A.J. Rosenberg [chabad.org] :

[2 Samuel 5:5] - "Yerushalam" (ירוּשָׁלַ֣םִ).
[Isaiah 2:3] - "Yerushalam" (ירֽוּשָׁלִָֽם).
[Ezra 1:2] - "Yerushalam" (ירֽוּשָׁלִַ֖ם).
[Ezra 6:3] - "Yerushelem" (ירֽוּשְׁלֶם֙).

We also find Jerusalem pronounced "Yerushalaim" (ירוּשָׁלִַ֣ם) in Tanakh online @ [sefaria.org].

[2 Samuel 5:5] - "Yerushalaim" (ירוּשָׁלִַ֣ם).
[Isaiah 2:3] - "Yerushalaim" (ירוּשָׁלִָֽם).
[Ezra 1:2] - "Yerushalaim" (ירוּשָׁלִַ֖ם).
Comment: Hi and welcome to MY! If the concordance is correct, the word _Jerusalem_ occurs 643 + 26 times in the _Tanakh._ Out of them only 5 times it is written using the full spelling with the _yud_ (see masorah for [Yirmiyahu 26:18](https://www.mgketer.org/mikra/13/26)). In all other (Hebrew) cases we pronounce it in a different way as the orthography would suggest, and add the _"yi"_ syllable (see [ketiv and qerei](https://en.wikipedia.org/wiki/Qere_and_Ketiv)).
Comment: Welcome to MY. The question asks, in my words,
"The name was pronounced Yerushalem and  at a later period it was changed to Yerushalayim. Did the switch occur, when, and why?" Your answer provides interesting facts (for which many thanks) but does not address the main question.

Pronunciation of Yerushalayim


Position of "empty" and "full" when used with another adjective

Question: How can I can explain to a learner why we say "an empty blue glass" and not "a blue empty" glass, both adjectives seem to be facts.
Comment: It would be good to explain what rule of adjective position you are using.  I guess it is "opinion before fact"  But there are other rules "Opinon/size/age/shape/color/origin/material/type" is one
Comment: @JamesK hmm, it sounds quite philosophical that whether a glass is empty or full is "opinion" :) Agree with your answer below though
Comment: There are some situations in which you might say "a blue empty glass".  For example, maybe there are many glasses, of many different colors, some full and some empty.  If you choose a full glass, you must drink its contents.  If you choose an empty glass, I will fill it with water, unless you choose a *blue* empty glass, in which case I will fill it with milk.
Answer: One explanation of the adjective order is that adjectives that are more fundamental to the nature of an object sit closer to it.
In the case of a glass, the colour of the material is more fundamental to its nature than whether it is filled or empty. You can't change its colour, but you can fill an empty glass.
It is a "blue glass" which might be empty or full.
Answer: Where more than one adjective are to be applied to something, the normal order is:

Opinion, size, physical quality, shape, age, colour, origin, material,
type, purpose.

'Empty' is a physical quality, so comes before "blue", a colour.
Adjectives order (Cambridge Dictionary)
You could have an ugly, small, empty, round, old, blue, German, wooden, reclining, TV-viewing chair.


Extending swap on Centos

Question: I recently created a swap file on my centos 6 based VPS using this guide. Now I wanted to extend this swap and I was reading through this guide. However, I think I've created a swap file than a partition. How do I go about extending this swapfile? The current size is 512M and I need to extend it by another 1G.
Answer: Can you show the results of
cat /proc/swaps

so we can be sure of your situation?
BTW - did you make sure the swap space (file or partition) is in your /etc/fstab?

If you created an lvm swap partition, extending it is easy and you can use the same guide - basically:
swap off; lvextend -L +1G VolGroup/LVswap; mkswap /dev/VolGroup-LVswap; swapon -a
If you indeed created a file - you can either repeat the procedure, create another 1G file and let swap handle it (swap space does not have to be contiguous)
Or you could simply remove the file (swapoff /path/to/swapfile; rm !$) and recreate it in a new size
Or you can use dd to extend your swap file (again - make sure to swapoff first)
dd oflag=append  conv=notrunc  if=/dev/zero of=/swapfile bs=1MB count=1024

UPDATE

It's advisable to use the free command first, to ascertain swap is not used.
As long as swap usage is 0, and no process is going to require more memory then physically available, there should be no issues.
Every swap device must be present in /etc/fstab for swapon -a to detect them all.
If using procedure (3) above, to keep swap "downtime" to a minimum, you can do the following:

3.1 Create new swapfile
3.2 Modify /etc/fstab to point to new swap file.
3.3 swapoff <path/to/OLD/swapfile>
3.4 swapon -a
3.5 rm <path/to/OLD/swapfile>
Optionally combine 3.3 and 3.4 as:
swapoff /path/to/OLD/swapfile && swapon -a
will ensure least amount of time without swap.
Comment: Thanks Dani_l. I actually followed step 3 to create a new swapfile, deactivated the smaller one and then deleted it. Activated the new one. Replaced the smaller one in /etc/fstab with the new one. Now I have one contigous swap file of 2G. I did think of step 2 but I did not know they need not be contigous. Thanks again!
Comment: are the potential issues on doing swapoff on a swap file in use? also, after swapon, are there any extra steps needed to get the system to recognize the larger file?

Extending swap on Centos