Opening a shapefile with no extension in QGIS

Question: I am trying to open an open license shapefile in QGIS (this is the link: https://pub.uni-bielefeld.de/record/2674065), I am not sure if the information is not there or if the content is not complete; in the package there is only one file without extension...I am a begginer so probably I am doing something wrong.
Comment: The .tgz is full of subfolders, each containing three to four shapefiles. You need to unzip the data before you can use it.
Comment: actually QGis can read directly from the tgz file, just drag it in and select the layers that you want.
Comment: The file is fine, it's just double-archived. First, download the archive file with the extension from the specified site .tgz 162 MB, then unzip it and get the file with the extension .tar 1.5 GB and once again unzip it and work with the necessary data files...
Answer: Was able to open it in Windows.
I would recommend a good unzip program, like 7zip:
https://www.7-zip.org/download.html
With this you can open up the
mapping-indias-elections.tgz file.
Navigate into the mapping-indias-elections.tag file.
And finally open the mapping-indias-elections file.
This will then show the sub folders that contain the actual ShapeFiles, which you can extract.


Organizing search in Drupal Commerce.

Question: I have site (e-shop) that uses Search API. Just Search API, Search Autocomplete, Display Suite Search and Database Search are enabled. It was not configured by me.
However, we have big problem. Search returns strange results, we cannot use search by brand cause when we choose brand on Exposed Filter with AJAX and catalog reloads, add to cart product's forms wont work cause forms were rebuild and there's no workaround for this issue.
Can you tell best (and modules) way to organize search in Commerce shop?
Do I need to use Facets and Apache Solr - technologies, which are not used now?
Answer: You can use the Search_api_db to avoid Apache Solr. Facets come in many flavors, there's no standard tutorial but some googling will get you started...

Organizing search in Drupal Commerce.


How to make 3.42m x 1.75m size pdf file with 300 dpi?

Question: I'm working to make big size pdf file for printing.
3.42m x 1.75m (300 dpi)
Printing company need 300dpi file.
I tried it in Indesign and Photoshop, but failed.
Please help me.
Regards.
Comment: Can you clarify what you mean by failed? You should also check that the company really does require a 300dpi file as it is more common to print large formats at lower resolution (or scale - i.e 1.71m x 0.875m @ 150dpi)
Comment: Can you edit your answer and include what exactly have you tried? Have you searched for a tutorial for either software?
Answer: This category can range wildly from advertising posters, vehicle wraps, 2 story billboards, etc. The variable to consider is the distance the viewer will be from the material. A person driving on a highway will never be able to discern the difference between 300dpi on a billboard and 40dpi. You would up close, of course, but the only people viewing a billboard up close are those installing it. Most advertising posters can get away with 100ppi. Vehicle wraps, much less.
The vendor may ask you to provide art at a smaller size than the actual printed size. For instance, if a billboard is to be 20' wide, the vendor may ask you to send a file 20 inches wide. If the billboard will be printed at 40ppi, then your 20" wide file would need to be set to 480ppi to allow for the scaling (12X40). Hope this helps.
Comment: While true, I don't think this answer relates to the question.
Comment: Totally relates to the question. A 300 ppi file of 3mts has no sense. The "print" company has no idea on what they are asking.
Answer: I created a file with those dimensions and dpi, Photoshop issued a warning that images larger than 30000 pixels in any would not be backward compatible. When I wanted to save this file, I had to save it in PSB format reserved for files larger than 2GB. Also noteworthy was the missing PDF format among the option. Based on this, I will conclude that these parameters will result in a file that cannot be saved as a PDF file.
Your options seem to be:

Discuss the matter with the printer and ask if lower dpi could work
Ask if you could deliver the file in PSB format, if they have Photoshop they should be able to open and print from it
If the project allows, print smaller segments to assemble after the printing is done
Print smaller size


Iron soup kettle with rust

Question: I have an iron kettle that is pitted with rust in pits. How do I get rid of rust so I can cook chowder in it? We have tried using a wire brush, filled with water and boiled it. Saw vinegar can be used but don't know how long to leave it in kettle or if needs to be diluted.
Comment: This appears to be related but not an exact duplicate: http://cooking.stackexchange.com/questions/12179/cast-iron-pan-rusting-on-bottom-surface
Answer: I'm assuming that you're referring to a cast-iron kettle. One of the common strategies for removing rust from cast-iron is to rub the oxidized areas with steel wool. You'll want to remove as much of the rust as possible that way, and then you can consider using a wire or plastic brush, soap and water.
Subsequently, once you're confident you've removed the rust, brushing with food-grade flaxseed oil (or shortening, in a pinch) and heating the pot for a period of time, then letting it cool so that the coating is mostly polymerized, will help reduce the likelihood of future rust development.
There is a guide to restoring cast-iron covering roughly the same set of steps.
The reason for preferring flaxseed oil is its polymerization properties as noted above, but you may want to see a more detailed explanation.
Answer: If it's cast iron or steel (definitely don't do with aluminum, stainless, or galvanneal), then the best and coolest way is to remove rust with electrolysis.
You can look up tons of videos on YouTube, but at it's simplest, you take a Rubbermaid container, filled with tap water, add a portion of washing soda (easily found at walmart), and suspend the item you want the rust removed from in the solution. typically by a stick laid across the top of the container.
To make it work, you put sacrificial metal inside the water/washing soda solution and around the perimeter of the container. Then you take an old car charger set to the lowest amp setting and clipping the negative clamp to your item you want the rust removed from and the positive to the sacrificial metal. Of course you have it unplugged while doing this. Plug it in and watch it work. I forget with is the cathode and which is the anode, but the rust gets stripped from the object and attaches itself to the sacrifice metal. The sacrifice metal ends up looking like some barnacle encrusted piece of junk.
You need to read up on doing it before you try it. Every video goes into how it works and why. They usually contain safety info as well and you need to pay special attention to it. It's one of things where it's easy and safe, but you can get yourself in trouble if you ignore some basic safety precautions. Most things are like that though. There are precautions to take, but don't get scared off of it. They actually use this method to keep a battle ship somewhere on the east coast from deteriorating. The salt water it's sitting in is a great conductor, which is what the washing soda does by the way. They drive in large steel posts around the ship and replace them periodically.
I'll hit the safety big ones. Firstly, this process give off a flammable gas. From every story I've heard, it hasn't every harmed anyone when ignited, it simply blows nasty, rust foam all over their shed, and it it's because they were doing it in a small enclosed space that it could build up enough to ignite in the first place. I've never heard of it happening when done outside.
The second big no-no is using anything but steel in the solution. Stainless gives off hexavalent chromate which is toxic to breath and galvaneal and galvanized give off bad gas as well. You shouldn't use aluminum, but only because it easily pits. What this process does is remove a very fine layer of metal at a time and it seems to work extrememly easily on aluminum. You can try it, but could damage the finish. If you stick to regular metal or cast iron, though, everything is cool. You can even reuse the water multiple times and pour it out on your lawn when you're done. Nothing toxic to it. And if you turn the car battery charger on a low amp, there isn't an electric shock risk either. I wouldn't stick my hand it in, but it isn't going to zap you if you do.
Here is an instructables link: http://www.instructables.com/id/Electrolytic-Rust-Removal-aka-Magic/step4/Attach-charger/#intro

Iron soup kettle with rust


Cat 5e, any gauge?

Question: I am working on a double leaf bascule bridge and installing a PLC I/O rack on the farside. The power transmission between the two piers (nearside and farside) is via a single submarine cable (installed 1987). Unfortunately, the submarine cable is made up of #10 AWG xhhw-2 control wires and no ethernet cables. Would it be possible to use 8 individual #10 AWG wires to make up the "4-pair" cable required for PLC communication? I would like to avoid wireless communication, and modifying existing/installing a new submarine cable is not an option.
Comment: I'm going to say "probably not", but...What is the cable length? Are the wires you have twisted in pairs? What Ethernet rate do you want to try to achieve (10 Mbps is much easier than 10 Gbps)?
Comment: You might be able to get a ethernet over powerline link running across wires like that.
Comment: Not for anything resembling Ethernet, no.
Comment: Does it have to be ethernet?  RS-485 might work well in this situation, if you can use a PLC that supports it.
Answer: This almost certainly won't work.
What makes twisted pair work for high speed data transmission is not just the diameter of the conductor, but also that the two wires in each pair are kept a constant distance apart along the length of the cable.
Wires in Cat-5 pairs are also twisted together, but this is done more to reduce cross-talk and interference (because the interference in one part of the twist will cancel the interference in another part of the twist) than to enable high-speed transmission in the first place.
So if your wires are not kept at a constant, controlled separation center-to-center, they won't provide a good path for high-frequency signalling. And if they aren't twisted together in pairs, they will be subject to cross-talk and interference.
As far as I can see, the "XHHW-2" spec is about the chemical and water-resistance of the insulation, and will have very little to do with how well these wires can carry high-frequency signals. The dielectric constant of the insulation will affect the characteristic impedance of the wire pair, but this effect could be compensated for with a matching circuit at each end of the cable if necessary.
Comment: Thankyou for response, I just found out that the Submarine cable does have Coaxial cables (RG-11) originally used for CCTV. Would a Ethernet over Coaxial Converter work?
Comment: @JoshRinehart, I can't say without seeing the datasheet for the coaxial converter, also knowing the length of the cable and the data rate you're targeting. (and even then, I'm not an expert on Ethernet installation). One issue will be that your video cables will be 75 ohm type while your converter might be designed for 50 ohm cable.

Cat 5e, any gauge?


"Could not find class" in JUnit

Question: I am using AIX machine to run few JUnit tests. These tests work fine in eclipse using JUnit for Windows and Linux platforms. I am trying to run these tests using JUnit command line and I am getting following error
<code># java org.junit.runner.JUnitCore testName
JUnit version 4.8.1
Could not find class: testName

Time: 0.012

OK (0 tests)
</code>
File is present at that location as testName.java. I have set my environment variables in /etc/profile file. These are my environment variables.

export CLASSPATH=/usr/junit/junit-4.8.1.jar:/usr/junit/
export PATH=$PATH=$PATH:/usr/junit/junit-4.8.1.jar:/usr/junit/

On AIX machine when I try to test JUnit using following code, it gives me same failure.
<code># java org.junit.runner.JUnitCore org.junit.tests.AllTests
JUnit version 4.8.1
Could not find class: org.junit.tests.AllTests

Time: 0.012

OK (0 tests)
</code>
AllTests class was not present in default location provided on JUnit website http://junit.sourceforge.net/doc/faq/faq.htm#tests_1
<code># find / -name "*AllTests*"
/usr/junit/org/junit/runners/AllTests.class
</code>
What could be wrong?
Answer: <code>org.junit.tests.AllTests
</code>
is in the wrong place, it is here
<code>/usr/junit/org/junit/runners/AllTests.class
</code>
it should be
<code>/usr/junit/org/junit/tests/AllTests.class
</code>

"Could not find class" in JUnit


Where to find MSP430 & CC430 code examples?

Question: I was googling for some MSP430 code examples (e.g. for SPI) for some time, unable to find anything. Do you happen to know, where to find some examples? They do have some on TI webpage, but very general, and not many of them.
Answer: MSP340 is a huge family with a few different non-code-compatible serial communication modules. You'll need to figure out which sub-family you're using and check the code examples page at TI for that device. The MSPWare package also has a lot of examples.
Beyond that it's usually a good bet to start with the evaluation module pages for the chip you're looking at and look for example code there.
Answer: There are tons of examples if you a search msp430 code examples spi I got tons of valid results like this one tutorial.   Of course you have to tailor the pin settings to the parts you have but the ideas are the same.


Is it possible to list all of the Steam games I have downloaded?

Question: I had about ten games on Steam on my old computer. Most of them were played at least once. Now, I want them on my new computer. However, I don't care about transferring them, I just want to know what they were. Is there a function in Steam that lets me track my download history or something similar?
Comment: As a side note, free to play games only show up for a few reasons:  1. You spent money through Steam on it at some point.  2. You purchased a bundle that included it before it was free (such as Team Fortress 2 from The Orange Box).
Answer: In the Steam client:
1)  Click your username from the top right, then click 'Account Details', to go to your Steam store control page.
2)  From the Steam store control page, under the 'Store & Purchase History' header, click 'View licenses and product key activations'.
This page shows, in chronological order, what games you have acquired and how (Steam store, retail code, complimentary copy, or gift).  Unlike the other methods above, this activation history includes any free games you may have previously installed, but deleted.
Answer: There is an additional way to view Steam games you own.
After logging in to Steam you can view your account's licenses by vising this webpage: https://store.steampowered.com/account/licenses/
Answer: Link: https://steamcommunity.com/id/PUT_YOUR_ACCOUNT_ID/games/?tab=all
Manual way: Go to your account-name, click on "show my profile", scroll down until you see "games" listed on the right side (probably above "Inventory" and "screenshots") and click it. Then select "all games" and you should see all games you've played at some point.
Answer: By simply installing Steam and going to the Library, there should be a list with all the games you own.
If there isn't, still on the Library page there's a search function in the upper left part of the screen. From there, you can access a drop down menu where you can choose what to list.
If you choose "All Games", you should see all the games you own on Steam and can redownload and reinstall whatever you want.
Answer: Yes, if you have access to your old computer and you haven't yet uninstalled your games/steam yet. If that's gone, I don't belive steam stores any sort of list of everything you've ever downloaded.
On any PC with Steam installed you have access to a list of currently downloaded titles (it's one of the filter options on the Library page, I forget the exact menu item and I don't have Steam here). The only thing I'm aware of that you can do is manually go down this list and download the same games on the new PC (or alternately copy over the whole Steamapps folder and keep your game content and possibly saves).
Comment: If you set a category on every game you download, then you can tell from your library which games you've at least downloaded, even if they are not currently insalled on that computer. Games with categories that are not installed will be darker in their category list than games that are installed.
Comment: @StarPilot that's also a good idea. I have a "do not want" category all of the crap goes to (why oh why did I start the TF2 beta)
Answer: https://github.com/GigaJunky/SteamManifests
Steam Manifests Data Extractor
A simple nodejs script to get an inventory of installed games details by reading the Steam manifest files
Prerequisites
you will need to install NodeJS https://nodejs.org this has been tested on windows 10 and Ubunutu 18.04 linux You may need to edit the your steam install path (line 3 of steammanifest.js) if you did not select the default.
running
extract the file to your computer and in windows just click on the steammanifests.bat file
or open a command line and cd to the path
<code>node steammanifests.js
</code>
this will generate two json files in the same folder
open the table.html file in you browser
clck on the Open File Button
select the computername-smfdata.json
you should see your sortable list of games populate
click 'Format Steam Manifest Columns CheckBox' to allow addtional filtering
you can also open the computername-smfpaths.json to show your full paths of steam folders
Author
BitJunky - (https://github.com/gigajunky)
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
http://tabulator.info/ - a great javascript table spreadsheet commponent
Answer: You can find it in the Steam library
Comment: Your answer doesn't add anything new to the already existing ones. Also, you should avoid one line answer, which is pretty low quality answer.


SQL Server backup collation issue

Question: I was given SQL Server 2005 backup with collation set to : SQL_Latin1_General_CP1_CI_AI
When I select any data it looks like the data is saved in different collation , for example :
user : "Micha³" - which should be "Michał" and so on
I've tried converting tables and database to one of Polish collation, also tried select with collate but it still looks the same.
Have anyone had similar issue and knows what actually is going on ?
Answer: Collation (sorting order) implies character encoding (mapping characters to bytes) - did you try using Unicode (utf-8, utf-16)? In a pinch, Latin-2 (a.k.a. ISO-8859-2, Central European single-byte charset) may be what you're looking for.
In other words, Latin-1 is a single-byte character encoding for Western-European languages, but it can't store characters from Central-European (or other) languages.
See also this for a longer explanation of charsets, collations, and other headaches.
Comment: @Martin: Ah yes, I'm nitpicking too much - the given collations only make sense in a single character encoding, so choosing a collation implies a character encoding. Edited.
Comment: That make sense , but it's not that I can't update those fields with Central European character string literals, because I can. What is bothering me is why backup that I retrieve is not showing those letter in appropriate way.
Answer: You say "when I select ...". Where are the query results being displayed?
Answer: To make long story short, the collation didn't have much to do with this issue, the other application that saved the data did that using some mixed-up encoding and I found out that they weren't able to display the data properly themselves.

SQL Server backup collation issue


Remove leading and trailing whitespace directories

Question: The problem is that Mac OS X lets folders get names like "    Foo  Bar   /".
This is what I could fix on my own and it works for most of the problems.
for d in */ ; do
    echo "$d" | xargs
done

Result: "Foo Bar /".
The only problem it leaves that last space between the directory name and the slash.
Can someone help get rid of that last space?
Comment: Thanks for the format cleanup fedorqui. Should have cleaned it up before posting.
Answer: Try this for a bash-only approach:
dir="some dir /"
fixed=${dir/ \///}
echo $fixed
some dir/

Bash string manipulation:
SUBSTRING REMOVAL BEGINNING OF STRING:
${string#substring}         - remove shortest substring match from beginning

${string##substring}        - remove longest substring match from beginning

SUBSTRING REMOVAL END OF STRING:
${string%substring}         - remove shortest matching substring from tail

${string%%substring}        - remove longest matching substring from tail

SUBSTRING REPLACEMENT:
${string/substring/replacement}      - replace first match of substring

${string//substring/greplacement}    - replace all matches of substring

${string/#substring/replacement}     - replace substring at front of string

${string/%substring/replacement}     - replace substring at tail of string

Answer: What about using sed like this:
name="    Foo  Bar   /"
echo "$name" | sed 's/^\s*\(.*\)\s*$/\1/g' | tr -s ' '

The sed expression removes all spaces before and after your name, while tr squeezes them to a maximum of one.
Answer:
The problem is that Mac OS X lets folders get names like "    Foo  Bar   /"

This is a Unix/BASH issue too. All characters except NUL and forward slash are valid characters in file names. This includes control characters like backspace and UTF8 characters.
You can use ${WORD%%filter} and ${WORD##filter} to help remove the extra spaces on the front and end of files. You might also want to substitute white space with an underscore character. Unix shell scripts usually work better if file names don't contain white space:
for file in *
do
   new_file=$(tr -s " "<<<"$file")
   mv "$file" "$new_file"
done

The tr -s " " uses the tr command to squeeze spaces out of the file name. This also squeezes beginning and ending spaces on Mac OS X too. This doesn't remove tab characters or NLs (although they could be added to the string.
The for file in * does assign the file names correctly to $file. The <<< is a Bashism to allow you to redirect a string as STDIN. This is good because tr only works with STDIN. The $(...) tells Bash to take the output of that command and to interpolate it into the command line.
This is a fairly simply script and may choke on other file names. I suggest you try it like this:
for file in *
do
   new_file=$(tr -s " "<<<"$file")
   echo "mv '$file' '$new_file' >> output.txt
done

Then, you can examine output.txt to verify that the mv command will work. Once you've verifies output.txt, you can use it as a bash script:
$ bash output.txt

That will then run the mv commands you've saved in output.txt.


Identify the type of the grammar

Question: I have found the following question from internet. They have even given the answer as option c. But i am confused because the grammar also does not looks like a Regular. Please help me to understand this answer
Answer: The given grammar is context free, non-regular; but they ask for the grammar after eliminating left recursion (by whatever technique they teach to do so).

Identify the type of the grammar


How to express "It's becoming too [adj]"

Question: I'll use "cold" as an example. It appears to be that one of the ways would be to say 寒くなりすぎる, but this construction baffles me as すぎる here works in joint with なる rather than 寒い. Is it still the only correct way of doing it? Also, would it be possible to say 寒すぎてなる, and if so, how would the meaning change?
Answer: (*) 寒すぎてなる doesn't work. If someone says it to me, I would ask them 寒すぎて何になる?
If you want to use an adjective, 寒くなりすぎる is the way.
The construction might start looking less baffling to you if learn to you see it as describing an excessive degree of a change (なりすぎる), rather than its result (寒い).
I will say nothing about なさすぎる for now…
Comment: 「なさすぎる」に関する情報は[な]{●}[さ]{●}[す]{●}[ぎ]{●}[る]{●}。。。とか?(^^)
Answer: There are definitely other ways to say it. In Japanese, there are plenty of verbs that encompass the meaning of "become". Instead of attaching 過ぎる to adj+なる+すぎる, you can just attach it directly to a verb that has the same meaning.
冷める (cool down)→冷めすぎる (cool down too much)
冷える (grow cold)→冷えすぎる (grow too cold)
There's nothing wrong with using なりすぎる either.
Answer: Phrases that comes to mind are 「寒くなってきた」 or 「冷えてきた」 but it just means "it's getting cold" so it doesn't imply extreme cold.
You can also say 「最近寒すぎる」to imply that it's too cold these days.


How much would cost to take a kg to the same distance of the planet than LEO in Mars?

Question: In Mars it's needed a much lower velocity to attain orbit. How would this impact the costs of taking 1 kg to the orbit of the planet, at the same distance of the planet than Low Earth Orbit but in Mars?
Answer: The cost in money terms depends rather dramatically on your assumptions. If your rocket for launching from Mars has to be transported from Earth, then it's going to be pretty pricey, since a very much larger rocket will have been needed to launch it from Earth. On the other hand if you are imagining that Mars has been colonised and has a thriving local rocket-manufacturing industry, it could be quite cheap.
What we can give though is the velocity needed to reach that orbit, and from that, and some assumptions about the launcher we can make a guess at how big it will need to be, and how much fuel it will need.
The velocity is given on wikipedia as 4.1 km/s. This tells us, via the rocket equation
$${\displaystyle \Delta v=v_{\text{e}}\ln {\frac {m_{0}}{m_{f}}}=I_{\text{sp}}g_{0}\ln {\frac {m_{0}}{m_{f}}}}$$
the mass ratio (the ratio of starting mass $m_0$ on the surface of Mars to mass $m_f$ put in orbit (including empty fuel tanks, rocket engines, etc. as well as your 1kg payload).  We can try a few plausible fuel combinations which will give us different values for $I_{sp}$:

A solid rocket motor, such as a space shuttle solid rocket booster, with an $I_{sp}$ of 250, gives us a mass ratio of 5.3
Standard storable hypergolic liquid propellants (widely used for long space missions), $I_{sp}$ about 340, mass ratio 3.3
Liquid methane and liquid oxygen (SpaceX proposal) $I_{sp}$ about 360, mass ratio 3.1
Liquid hydrogen and liquid oxygen (highest $I_{sp}$ commonly used) $I_{sp}$ about 450, mass ratio 2.5.

So, assuming an optimistic 1kg of rockets and tanks for your 1kg payload, you'd need somewhere between 5 and 11kg of rocket on the surface of Mars.
This ignores atmospheric resistance, among other things, which would be a big problem for a rocket this small, even, I suspect, on Mars.
Answer: Let's check the orbital velocities of low orbits around Earth and Mars.
Mars is 1/2 the diameter and 1/8 the mass. We can use the vis-viva equation to calculate the velocity of a circular orbit.
$$v = \sqrt{\frac{GM}{a}}$$
<code>         GM (m^3/s^2)      R (m)       a = R + 400 km   v (m/s)
Earth     3.986E+14      6.378E+06       6.778E+06       7905
Mars      4.283E+13      3.396E+06       3.796E+06       3551
</code>
It's a little harder to estimate the difference in the delta-v penalty to lift out of each planet's gravity well by 400 km because it depends in part on how fast you do it which means it depends on the specific rocket and how much you limit acceleration, but it's probably safe to estimate that for the small, uncrewed payload it will be roughy half on Mars than it is on Earth as well.
So for the same payload and exhaust velocity, using the rocket equation in the same way as in @SteveLinton's answer we can estimate that the mass of the rocket will be lower by the factor:
$$\frac{m_M}{m_E} = \exp\left( \frac{v_M - v_E}{v_{ex}} \right)$$
Assuming the exhaust velocity is moderate at 3000 m/s the Mars rocket's propellant is only 13% as massive as the Earth's rocket. Of course this is only a rough approximation, but we can say that it's going to be a much smaller rocket. (for 4000 m/s the ratio is about 21%).
Now the cost of putting that rocket on Mars to begin with, or building and fueling it there is going to be astronomical!


Bibtex4word, revtex4, and AIP style

Question: I am trying to get the AIP bst files to word with bibtex4word. I am new at pretty much all of it. I was using the word references but it does not have many styles, including Applied Physics Letters. I am using MikTeX 2.9, JabRef 2.9.2, and Bibtex4word. I have my references in JabRef. I am able to use Bibtex4word with the default styles (plain, alpha, IEEEtran) but am having a hard time installing the new styles.
I downloaded the files here: http://publish.aps.org/revtex then copied the "required" files as described in the Readme in the appropriate directories. I used MikTeX program manager to install the Revtex package and styles. I was then able to get the styles to work in bibtex4word, sort of. The aipnum4-1 style should use a superscript number for the reference and should be a minimal bibliography. The data in the bibliography seems to work right but there is a ton of extraneous stuff (like the category labels). I've included a "plain" and an aipnum4-1 example below using the Test4w.doc file included with the Bibtex4word.
Have I done something wrong in my setup? Is this a problem that others have? How do I fix it? Is there a better AIP-APL bibtex package that might work?
This is what I get using "plain" style:
Citation List

[1, 2, 3, 4]

Bibliography

[1] Bob Ollerton, Bill Ollerton, and Barnaby Ollerton. Dynamic stabilty in rapid turn manoevres. Journal of Broomstick Design, 52(4):273–282, January 1926.
[2] Claude E. Shannon. Juggling with quafffles. In Proc. Warlock Juggling Federation Convention, pages 384–389, Hogsmeade, January 1975.
[3] Kennilworthy Whisp and J. K. Rowling. Ancient broom games, chapter 2, pages 3–6. In [4], 2001.
[4] Kennilworthy Whisp and J. K. Rowling. Quidditch through the ages. Whizz Hard Books, 2001.

This is what I get using the "aipnum4-1" style:
Citation List

[[Ollerton, Ollerton, and Ollerton(1926), [Shannon(1975), [Whisp and Rowling(2001a), [Whisp and Rowling(2001b)]

Bibliography

[[Ollerton, Ollerton, and Ollerton(1926)]   author author B. Ollerton, author B. Ollerton,  and author B. Ollerton, 10.1598/JBD.52.4.1 journal journal Journal of Broomstick Design volume 52, pages 273–282 (year 1926)NoStop%
[[Shannon(1975)]    author author C. E. Shannon, in @noop  booktitle Proc. Warlock Juggling Federation Convention (address Hogsmeade, year 1975) pp. pages 384–389NoStop%
[[Whisp and Rowling(2001a)] author author K. Whisp and author J. K. Rowling, title Ancient broom games, Chap. chapter 2, pp. pages 3–6, in [[Whisp and Rowling(2001b)] (year 2001)NoStop%
[[Whisp and Rowling(2001b)] author author K. Whisp and author J. K. Rowling, @noop  title Quidditch through the ages (publisher Whizz Hard Books, year 2001)NoStop%

Answer: I emailed the author of bibtex4word (Mike) and he replied:

Some bibtex styles use Latex commands that Bibtex4Word doesn't
  understand. I add extra commands on an as needed basis. When I get a
  chance I will add the commands needed for the revtex styles.

I worked around this by using a different style to get the appropriate inline citation style, used Miktek to generate the references, then cut and paste them into MSWord. Unfortunately styling (superscript, bold, italics) got lost between the bibtex output PDF and MSWord.

Bibtex4word, revtex4, and AIP style


Upgrading Xserve hard drives

Question: Will 3Tb SATA hard drives work in Xserve (Model Xserve1,1) and allow all the space to be allocated.
Comment: You're probably aware that the Apple drives have custom firmware that sometimes work better with the fan control and error reporting. Just a FYI. :-)
Answer: This may be third-hand information, from this page of specs, but:

Apple reports that this Xserve supports "any combination of SATA or SAS Apple Drive Modules: up to 2.25 TB using three 750 GB 7200 RPM SATA drive modules; or up to 900 GB using three 300 GB 15,000 RPM SAS drive modules."
Answer: If you configured it with an Apple RAID card then no, you are limited to 2.25gb drives, but if it doesn't have a RAID card then you're fine.
https://support.apple.com/specs/xserve/Xserve_Late_2006.html
To identify your model, if you have a RAID card or not, look here:
http://support.apple.com/kb/HT1346

Upgrading Xserve hard drives


How to execute the code generated by codeDom?

Question: I just generated the .cs file using codeDom. Can someone explain how do I execute it?
Answer: The code below will allow you to compile the code using the codedom and then you can show the user if the code compiled correctly or not. It even creates a DLL as well.
Thanks
Alex
<code>// Store provider from the method into a object, Default is CSharpCodeProvider**
CodeDomProvider provider = this.GetCurrentProvider();

// Configure a CompilerParameters that links System.dll**
String[] referenceAssemblies = { "System.dll", "System.Data.Linq.dll", "System.Web.dll","System.XML.dll","System.ComponentModel.DataAnnotations.dll", "System.Data.dll", _mvcLocation };

CompilerParameters cp = new CompilerParameters(referenceAssemblies, this.fileLocation + this.fileName + ".dll", false);

// Generate an executable rather than a DLL file.**

cp.GenerateExecutable = true;

// Invoke compilation.**
CompilerResults _results = provider.CompileAssemblyFromFile(cp, this.fileLocation + this.fileName + "." + this.extention);
</code>
Answer: It's not quite that simple. See here for a primer.  Basically the CodeDom supports scenarios such as  code generation and dynamic compilation.  So .cs files created with the CodeDom are not executables in the usual sense.


Why does Kant refer to Hume's Enquiry as "otherwise uninstructive" in the Critique of Practical Reason?

Question: The Critique of Practical Reason,5:14, seems to damn Hume with faint praise, acknowledging his service for initiating a critique of pure reason but being otherwise uninstructive.  Was it in the Prolegomena that he said that Hume had awoken him from his dogmatic slumber?  Why the change of tone vis-à-vis Hume in the later work?
Comment: Kant explicitly excepts Hume from "otherwise uninstructive" in the preceding paragraph:"*Thus universal empiricism is revealed to be genuine skepticism, which has been falsely ascribed to Hume... Since in this philosophical and critical age no one can be very much in earnest about such an empiricism, and since it is presumably put forward only as an exercise for judgment... we can only be grateful to those who trouble themselves with this otherwise uninstructive work.*" [Beck's translation, p. 14](https://www.bard.edu/library/arendt/pdfs/bc_Arendt_Kant_CritiquePracticalReason.pdf)
Comment: So if Hume's is not the "otherwise uninstructive work," what is "this otherwise uninstructive work" that Kant is referring to?  Maybe Kant means that it WOULD be relatively uninstructive if one assumed Hume had been promoting radical skepticism, but taken properly, it is otherwise instructive.  Also wondering if there's maybe some German translation issue.
Comment: Who knows. There were many empiricists in Kant's time whose names only historians remember. He might have had somebody in particular in mind, or it could have been a hypothetical strawman. Your proposal does not seem to fit the text. Kant excepts Hume for accepting mathematics before the paragraph with "otherwise uninstructive" even begins. It is disjoint from Hume even if put into the subjunctive mood.
Comment: Yes, like much of Kant, it is ambiguous, opening the door for multiple interpretations.
Answer: Kant is not talking about work, Arbeit, in the sense of a work of writing, but of work in the sense of labor or effort.  If he were talking about the former, then we would understandably assume he must be talking about Hume's work or opus, but in the general sense, it can be unclear whose work or labor or efforts he is talking about. Hume's?   Or those who misread him?

Doch, da es in diesem philosophischen und kritischen Zeitalter
schwerlich mit jenem Empirism Ernst sein kann, und er vermutlich nur
zur Übung der Urteilskraft, und, um durch den Kontrast die
Notwendigkeit rationaler Prinzipien a priori in ein helleres Licht zu
setzen, aufgestellet wird: so kann man es denen doch Dank wissen, die
sich mit dieser sonst eben nicht belehrenden Arbeit bemühen wollen.

Of course, since it is difficult to be serious about this kind of empiricism, and it is probably only used for logical exercise and, through contrast, to shine a light on the necessity of a priori rational principles, we need learn nothing more from [those skeptics] who wish to trouble themselves with these [their] otherwise rather uninformed efforts.


How do I create a SINGLE symbolic link for Firejail, in Ubuntu/Fedora/CentOS?

Question: Firecfg will configure all symbolic links at once, but how do I create a single symbolic link to firejail a specific application that isn't securely preconfigured by for example, SELinux?
Answer: Because Firejail increases attack surface in some respects, it is wise to limit FIrejail to be applicaiton specific on pre-configured SELinux distros. In the case of SELinux, you will want to find out first if your application is protected by SELinux, and if it is not, then it is wise to use firejail for that specific application instead.
List SELinux enforcements semanage fcontext -l|grep appname
Make sure Firejail has a profile you need or you build one first, check
cd /etc/firejail
ls
Before we create a symbolic link, we may wish to first find the file executable name, navigate to your program execution folder
for Ubuntu / Fedora / CentOS
cd /usr/bin
ls
Note the filename of the app you wish to sandbox. To create a symbolic link or symlink simply type:
ln -s /usr/bin/firejail /usr/local/bin/program-name
Thats it :)


Difference between "mingle" and "intermingle"?

Question: How does adding the prefix "inter" affect the meaning and usage of the word "mingle" ?
Comment: Probably very little. *Mingle* by itself already means to interact with other members of a group. Adding *inter* seems superfluous, though some people who like bigger words more than smaller ones will tend to use it.
Comment: This question deserves more credit.
Answer: The two terms appear to have come into existence about the same period, the 15th century, and at that time the prefix inter- entered the English language  from French. They appear  to be just synonyms.
Inter-:

*Latin inter (prep., adv.) "among, between, betwixt, in the midst of," from PIE enter "between, among" (cognates: Sanskrit antar, Old Persian antar "among, between," Greek entera (plural) "intestines," Old Irish eter, Old Welsh ithr "among, between," Gothic undar, Old English under "under"), a comparative of *en "in" (see in). Also in certain Latin phrases in English, such as inter alia "among other things." A living prefix in English from 15c. Spelled entre- in French, most words borrowed into English in that form were re-spelled 16c. to conform with Latin except entertain, enterprise

Intermingle:

(v. t. Int.) to mingle, one with another; intermix.

intermingle (v.) (etymology)

late 15c., from inter- + mingle.

Mingle(v.): (etymology)

mid-15c., "to bring together," frequentative of Middle English myngen "to mix," from Old English mengan (related to second element in among), from Proto-Germanic *mangjan "to knead together".

As for usage( Ngram) mingle appears to be a more common verb than intermingle.
(Etymonline)
Comment: Darn. You beat me!
Answer: Check out these definitions:

Intermingle: to Mix or mingle together

and

Mingle: 1) to mix or cause to mix together. 2) to move freely around a place or at a social function, associating with others

Both words mean "to mix." However, the word "mingle" refers to socializing in a group setting. Beyond that additional meaning, I do not think the prefix "inter" has much effect. It comes from the latin inter, which means "among, between, betwixt, or in the midst of." Since both words already allude to the "mixing" of disparate parts, the additional prefix is superfluous.
Comment: Indeed, I've never heard *intermingling* used in a social context, and only rarely have I heard of non-social *mingling*.
Answer: I've not checked a dictionary, but as a well educated native English speaker, my response is that one would use "intermingle" talking about things rather than people and not in first person.  E.g., The threads were intermingled. I wouldn't say "I intermingled at the party." It might, technically, be correct usage, but it sounds strange and as if one is using a more complicated word to impress.
Answer: Mingle sounds like a generic term for socializing in a group.
Intermingle implies two distinct groups that are mixing.
Co-mingle is another term for this I believe, but implies gender more often then not.
Comment: Welcome to ELU, user126374! Can you offer any authoritative support for your legitimate opinion? We are looking for something a little more substantial than personal opinion.
Answer: I would say that intermingle means combining one element with another; whereas, mingle means associating without combining: e.g., in a compound, two chemical elements intermingle and combine; at a party, two human bodies mingle but do not combine.
Comment: Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer).


Finding total concentration of enzymes

Question: Sorry if my question is very basic for biology majors because I am not. I am trying to build a mathematical model of a particular pathway using systems of differential equations and in order to reduce the number of parameters, I need to know the total concentration of multiple enzymes. How are enzyme concentrations usually reported in the literature so I can google it? Also, this does not seem to me to be a straightforward measurement for professional biologists, so how are enzyme concentrations actually measured or approximated? Thanks in advance!
I am interested in the following pathway:
Comment: Yes. I was trying to use layman's terms (not very helpful). I'll think about your approach and see if I have anything useful to contribute.
Comment: I wonder whether you could clarify whether your equations deal with concentration in term of physical amount of enzyme (mg/ml) or (functional) activity (enzyme units per ml). The reason I ask is the latter is what I would think determines the operation of the pathway. But perhaps I misunderstand what your mathematics is modelling. Presumably you are trying to quantify the effect following some stimulus — can you elaborate. Oh, and in what tissue in what organism do you wish the concentrations?
Comment: @David: I am interested in the physical amount of enzyme, because I intend to use an oversimplified relational equation: $E_T=E_f + ES$ where $E_T$, $E_f$, and $ES$ stands for total enzyme (physical) concentration, "free"-enzyme, and enzyme-substrate complex, respectively. I think this would be a way to approximate a model of inhibition where $S$ is an inhibitor of the enzyme $E$, since the inhibitor would "eat up" the amount of free-enzymes. Ideally, I am interested in human fibroblast or endothelial cells. However, if data is too scarce for human cells, then mice would be fine.
Comment: @David: Also, by functional enzyme, did you mean an active enzyme?
Answer: Hi again TheLast Cipher,
Enzymes in a cell are usually semi-quantified by the: Western Blot technique.
But there are lesser known techniques.
E.g. For a Western Blot the unit of measurement is the color intensity of the enzyme band on the blot membrane.
If I were you I would look for journal articles covering your pathway of interest.
E.g. https://iubmb.onlinelibrary.wiley.com/doi/abs/10.1002/biof.5520320129
Covers the electron transport chain (Co-enzyme Q10)
If you can get through the pay-wall & read their results and you will find:

"Western blot analysis of membrane protein isolated from keratinocytes derived from one young and old donor. A representative picture out of five experiments is displayed."

Also they used and I quote:

"Arbitrary Units"

Maybe you could comment on which pathway and I can find some assisting material.
Comment: Your attachment is unfortunately RNA concentrations. I'll see what I can find.
Comment: Thank you very much, Andrew! I've uploaded an oversimplified version of the pathway as a rough sketch of what I am working on. So there are kinases in between the interactions and I'm interested in their concentrations (e.g. PIP2, PRAS40, TSC2, Rheb-GDP, Rheb-GTP, as found on figure 3 of https://pubmed.ncbi.nlm.nih.gov/28069808/).
Answer: The BioNumbers site (https://bionumbers.hms.harvard.edu/search.aspx) is often useful for these types of questions, if you're interested in an order of magnitude. However, if you want precise concentration ratios (i.e. something like "is there twice as much Ras as ERK, or more like half as much"), you are unlikely to get a definitive answer.
These may be cell type-dependent and even vary from cell to cell due to noise. You probably want to simulate your network with a variety of absolute concentration, and then the most interesting behaviors are those that are reasonably robust to the exact numbers used (results that depend on, e.g., having almost exactly the same number of molecules of Ras as ERK are likely irrelevant as they would be too "brittle" inside a living cell). Once you find out what the necessary limits are for a given behavior that you find interesting, you could think about checking whether values reported by the literature indeed tend to fall within those bounds.
Comment: Hey, thank you very much for this. This looks like a great resource!

Finding total concentration of enzymes


imagemagick for thumbnail

Question: I would like user to upload most of their photo albums online, would it feasible to create and save one in thumbnails folder and one in full size folder or generate thumbnails on the fly when the user access their album? It will be something like eBay does. Webspace is not a concern since I have an unlimited plan.
Answer: Store the thumbnails when they're uploaded, or better yet, create a thumbnail (and store it) when the image is first accessed.
Storing them means that the server won't have to do unnecessary processing on every page load.
Comment: Thanks, yes, it help to lighten server load.

imagemagick for thumbnail


Atomic transition involving two electrons

Question: In the Helium-like Iron ion, Fe XXV, there is a transition from $1s2p$ to $2s^2$, and the energy of the two levels are measured as 6667.5686 eV and 13546.26 eV.  It seems like this transition involves jumps of two electrons, so will we simply observe a single emission/absorption line for this transition or two lines for each electron transition?
Answer: The number of absorption or emission lines depends on the number of photons involved in the process, not the number of electrons. There could very well be a case where a single photon transitions between two different states that involve changes in quantum numbers for two electrons. In an atom, the electrons are often tightly coupled, so it helps to think of transitions between eigenstates of the multiple-electron wavefunction, not of transitions between single electron states.
I would be interested to know what your source is for the transitions and energy levels. Usually one transition is a process with one photon. Transitions can occur one after another, causing emission of multiple photons, but that counts as multiple transitions. Second order processes exist that require two photons present at once, but the spectral signature of those is a dim, diffuse line rather than two distinct lines.
In terms of angular momentum, $1s2p$ has $l_1 = 0, l_2 = 1$, and $2s^2$ has $l_1 = 0, l_2 = 0$, so it looks consistent with a transition involving a single photon.
EDIT: I took a look at the NIST page you linked, and yes, each line in the table corresponds to a single spectral line. The column headed "Ritz Wavelength Vac" is the wavelength of the photon. Each line is the result of experimental data, and if you want to see the paper with the source for the measurement, just click the links to the right.
Comment: http://physics.nist.gov/PhysRefData/ASD/lines_form.html you can just key in Fe XXV and see the results, so you mean this transition emits a single photon with the energy difference between the combined energy levels of two electrons?


looking for novel from 50's or 60's

Question: I am looking for novel from 50's or 60's.The book is about a "dream" which he is shown how to wind a coil. He winds it and almost goes through the wall. He later builds a spaceship out of concrete and uses the coils for drive.
if i remember he was a owner of some construction company..
thats it there is no more..    please help
Answer: You're likely thinking of "The Wailing Asteroid" (1960) by Murray Leinster. A favorite of mine as a kid, only last year did I find the movie based on it: "The Terrornauts" (1967) (adaptation by John Brunner)

Now, very reflectively, he plugged in a metal lathe and carefully turned out a
   very tiny specimen of the peculiarly-shaped magnetic core. He wound it by hand,
   very painstakingly. It was a tricky job. It was six o'clock Saturday morning
   when the specimen was finished. He connected the leads to a storage battery and
   threw the switch. The small object tore itself to bits, and the core landed
   fifteen feet from where it had been. Burke beamed.
Comment: I have to find a copy of this now!! I loved and it more than 40 years ago..and It stuck with me.. I have been looking with google for about a year! Thank you again

looking for novel from 50's or 60's


How do I manually generate a base58 private key from my secret spendkey?

Question: What are the steps for deriving a base58 private key from a secret spendkey?  Sort of like the answer here, but for Monero or another Cryptonote: https://bitcoin.stackexchange.com/questions/8247/how-can-i-convert-a-sha256-hash-into-a-bitcoin-base58-private-key
Answer: Monero has some base58 functions in src/common/base58.*.
If for some reason you wanted to store your secret keys as base58, you could use those. There are usage examples in tests/unit_tests/base58.cpp.
Comment: I'd just add, this link details Monero's implementation with reference. https://monerodocs.org/cryptography/base58/


Pedaling not connecting right away

Question: I ride a rather usual Merida hard-tail mountain bike.
Recently I've come to notice that when I start pedaling (bike already in motion), it can take up to as much as quarter of a turn for the pedals to click and the chain to start pulling the bike again.
What could cause this and more importantly, how can this be fixed? Is this merely a problem of chain tension?
Comment: Does it skip when you apply power after it catches?
Comment: Skip? Could you elaborate please, I'm not all that familiar with bike terminology.
Answer: The parts that Blam refers to are known as the pawls and the ratchet inside the freehub. Slipping can happen for a number of reasons, including worn ratchet, worn pawls, weak springs, or excessive accumulation of grease & grime within the freehub.
http://dirtmountainbike.com/features/work-freehub-body.html has a thorough explanation of the different freehub types.
Depending on the hub you have, a repair consists of either cleaning, rebuilding or replacing the freehub. Some freehubs are rebuildable, others are not and must be replaced as a unit. That said, it's often possible to extend the life of a non-rebuildable freehub by flushing out the old grease & gunk and regreasing.
The mechanic at your local bike shop can almost certainly take care of this for you. If you're more of the do-it-yourself type, http://www.parktool.com/blog/repair-help/freehub-service has step-by-step instructions for several different freehub types.
Answer: Check if chain doesn't slack when coasting. A similar symptom happened to my bike, the cause was a worn spacer inside the free body had deformed and caused drag between the freewheeling part and the body, causing the cassette to apply forward torque on the chain. This caused a slack on the upper part of the chain, so when i started pedalling again, i had to first take up the slack.
In this case, lubrication helped only a little and for a short period. Partial rebuild of the free body resolved the issue (however it was a very old hub an it shortly broke again).
If your bike has a freewheel instead, you can just swap it.
In some cases, dirt and debris can contaminate the lube inside a free body or freewheel, and prevent the pawls from engaging. In such cases, a rebuild using fresh, clean lube solves the issue. Some lubricants get sticky with time, forming a goo or paste that also prevents parts from moving freely. The cure is the same as previous.
Answer: Because you say that this happens when the bike is already in motion, I suspect that what you're experiencing is normal. In most bicycles, the rear hub has a ratchet mechanism which allows it to freewheel in one direction. This means that when the bicycle rolls forward under its own momentum (or down hill), the pedals do not move. Moreover, you can pedal backward even while moving forward.
This also means that in order to feel any resistance, you have to pedal sufficiently fast for the speed at which you are going and the gear that you are in.  If you do not pedal fast enough, it feels as if there is no tension in the chain, because in fact there isn't: the hub is moving faster than you, and freewheeling, and so the chain isn't exerting any torque.
You must pedal faster or switch to a higher gear (if possible).

There is also a chance that the ratchet mechanism in your hub is not working properly, so that indeed there is some looseness. The way to check this is to stand still with your brakes fully engaged, and try to pedal forward. There should be almost no slack in your drive train: the pedal should not move forward if the bike is restrained. If the pedals can rotate forward while your bike is restrained from moving, then have it serviced. It looks as if your rear cassette hub or freewheel may need to be replaced, or some other problem in the overall drive train. In other words does the problem reproduce when the bike is not already in motion? If so: problem.
Answer: Most likely it is not the pedals clicking in but the hub / freewheel
You have little springs on metal that let it click to coast but when you pedal they catch.
So if the spring is worn or the metal is worn it may not catch on the first and have to travel to the second (or third).
A quarter pedal is a lot of motion.
This is going to get worse as you have fewer points of contact and they are getting banged on.
I know you are not asking about single speed freewheel but this is a reference
freewheel
The trials freewheel has 72 points of engagement for a faster engagement
The coast / engage can be in the free hub or the free wheel
-  fix hub and freewheel
-  free hub and cassette
SheldonBrown
You might have a freewheel on the bike
BIG.NINE 40-MD
If so you can just replace the freewheel
But most likely you have free hub / cassette
You will see hub used for free hub so just because the says hub does not mean it is not a freehub
And you will see the term freewheel used for cassette
But if they say cassette they typically mean cassette
I doubt this is chain.
Do you have visual slack in the chain?
A 1/4 turn would be chain drooping half way to the ground and you would have problems with the chain coming off.
Answer: Basically, there's 2 mechanism in play so it should be one or the other. A loose in the chain or a broken freehub.
Check that there is no loose when you cross the chain from smallest platter to smallest cog on the cassette. If there is, remove chain link to remove loose.
Check that your freehub start pulling the wheel almost as soon as it start turning (forward). If that's not the case, you should change you rear hub or wheel.
Comment: People mix the terms but the click can be in the free hub and cassette is just gears.  Or you can have fixed hub and the click (coast/engage) is in the free wheel.
Answer: I just got an old 90's bike (like new with same problem) and usually it's the poor grease used in older entry level Chinese made bikes that dries up and turns into wax that does this. Of course it could be alot of other things too. Adding light oil may work, from open side of freewheel hub, lay bike on side add oil and let gravity help it get into freewheel, then ride bike. Some solvents or WD40 could work better on really bad dried up grease. You may have to tear hub apart and repack with good grease, if it's not a mechanical issue it's the lube inside period. Good luck. PS As a bicycle messenger in Boston for about 15 years , I coined the saying "In this business either you break the bike, or the bike breaks YOU!" Be good.

Pedaling not connecting right away


chart webpart Sharepoint 2010

Question: how to create a custom web part/visual web part that will generate a chart from an existing sharepoint list. Is there any possible way of doing this aside from using the OOB Chart Web Part? We have been given a task to build a SharePoint site that will be used for logging, tracking and managing IT related requests and issues within an organization and records will be saved in a custom list (ticket list). There will be a page to display reports(report page) wherein a custom web part should be use to display a chart that will show a summary of data gathered.For example, a pie chart showing the request according to status, if it is new or rejected.
Answer: If you are comfortable in coding, then you can create a custom visual web part in which you may use .Net Chart Control 3.5/4.0. This chart can read data from your custom list through SharePoint Object Model programming. I have done this for one of my project and works absolutely well.
The other way could be to use application pages developed in Visual Studio where in you can show .net chart controls. So it depends what you need.
If you want to understand how to write custom web part to display charts, then here are the references:
http://mosshowto.blogspot.com/2008/12/asp-net-chart-control-sharepoint.html
http://abhijitjana.net/2010/11/07/using-silverlight-chart-controls-with-sharepoint-2010/
The below two reference given by Dave and sanket are also good if it fits your requirement.
If you are looking for some free stuff then you should have a look at codeplex:
http://charts4sharepoint.codeplex.com/
Cheers.
Answer: If you are only talking about a small amount of data then I would suggest you consider using the Excel REST service.  You can use Excel to create your chart then pass the list data to it and get the redrawn chart image back again - all through a URL.  This will give you a head start http://paylord.wordpress.com/2013/04/20/excel-rest-meets-xsl/
If there is too much data then take a look at one of the jQuery chart libraries such as http://www.amcharts.com/.
Answer: You might want to try Collabion Charts for SharePoint - completely GUI-based, has pie charts and more.

chart webpart Sharepoint 2010


Prime rib weight on a restaurant menu - raw or cooked?

Question: When a restaurant menu lists a weight for a steak, I know it's raw weight. But when it lists the weight for prime rib, is it raw weight or cooked weight?
Answer: I don't think there is consistent rule - I have seen restaurants sell meat in 100g portions, where they literally weigh it as they carve it off a large roast joint, and also restaurants where the raw weight is listed, then they roast a piece of meat of that weight (often for two or more to share).
The best policy is to ask each time!


Could some one explain me technically as to why the bandwidth is severly limited in underwater channel for communications?

Question: I understand that, due to the harsh characteristics of the underwater channel, the effective bandwidth for communication underwater (using acoustics) is severely limited. But i would like to know the technical reason behind this? and what is the impact of the underwater channel on the bandwidth?
Answer: Acoustic communication is fundamentally limited because the channel bandwith is a function of the carrier frequency, and you cannot use high frequency carriers in acoustic applications.
Wikipedia says

Typical frequencies associated with underwater acoustics are between
  10 Hz and 1 MHz. The propagation of sound in the ocean at frequencies
  lower than 10 Hz is usually not possible without penetrating deep into
  the seabed, whereas frequencies above 1 MHz are rarely used because
  they are absorbed very quickly. Underwater acoustics is sometimes
  known as hydroacoustics.

The channel bandwith is then limited (given ideal circumstances) to the nyquist rate.
Things like radio can use much, much wider channels. Traditional WiFi has a typical channel bandwith of 20 Mhz, whereas the maximum possible channel width of an acoustic communication medium is ~1 Mhz.
Basically, the physical transmission medium imposes a hard upper limit on the available throughput, which is then further reduced by real-world limitations (e.g. underwater noise, etc...).
Answer: It is difficult to transmit wide bandwidth signals at reasonable power levels due to the limitations of underwater transducers.  Most underwater acoustic transducers are used at their resonant frequencies in order to achieve reasonable transmitting efficiencies.  Also most of these transducers have Q's on the order of 5.  Thus a transducer operating at 10 kHz will only have a useful bandwidth of about 2 kHz.  Higher operating frequencies allow more bandwidth but the attenuation of sound in sea water increases rapidly with frequency so the range will be limited.  You can only increase the transmitting power so much before cavitation sets in when the acoustic pressure exceeds the ambient pressure and air bubbles are generated which greatly attenuate and distort the sound energy.


Why does the outlet work for a washer, but not a light fixture?

Question: Light fixture works in one room but when I plug it into the outlet in the laundry room it doesn't. The washer works when you plug it in to the same outlet.
Comment: What type of light?  Incandencent bulbs (and many appliances) are forgiving but CFL and LED bulbs often require correct hot/neutral wiring.  Get an electrical outlet tester from your favorite hardware store and use that.
Answer: Is this a duplex outlet, and if so are you using the same socket ?
If the light works anywhere, the light works.
The difference is something in the outlet. The good answer would be that the outlet is no longer tight enough to make good contact with the lamp plug.
Try squeezing the pins on the plug of the lamp, and then putting it back in the washer socket.
The bad answer is that there is something in the socket or wiring that have too much resistance to allow the small current draw of the lamp, but will let the big current of the washer to go through.
A test would be to plug a toaster, hair dryer or electric heater into the washer socket and see if it works.
If the if any of those work, and the lamp does not, there is a serious problem in the wiring.
It is likely the outlet or the wires right where they attach to the outlet. But you will need repair by someone that can find and fix the problem.


Modify link options when hovering over post title

Question: In dashboard, clicking on "Posts" reveals rows of posts. When I hover over one of them, specifically over their title, I get hyperlink options such as "Edit" and "Trash". I have a plugin that adds another hyperlink option "Duplicate", however I'd prefer to get rid of this option (depending on the post type). I've checked the plugin settings but there are no options there that will allow me to do this. Is there way to change the hyperlink options when hovering over the posts' titles?
Comment: Do you just want to get rid of the link because it is annoying or you want to remove the link injection for some technical issues?
Comment: I do not know the specific hook, but this should be around [manage_posts_custom_column](https://codex.wordpress.org/Plugin_API/Action_Reference/manage_posts_custom_column).
Comment: I want to remove the link because it doesn't work correctly for a certain custom post type.
Answer: If you want to just hide the link in the admin area, you can add this CSS code to your admin area. Assuming that the extra link is the LAST one in the row, add this code to you theme's functions.php file:
add_action('admin_head', 'my_custom_fonts');
function my_custom_fonts() {
  echo '';

This will hide the link added by the plug-in. If the extra link is not the last one in the row, then you have to replace :last-child with :nth-child(n), which (n) is the number of the element in the row, starting from 1.
Comment: I was trying to avoid doing it in CSS because I thought it would be applied late in the program flow, which might make the link appear temporarily before it suddenly disappears. However, putting the CSS in the functions.php worked very well.


iPads on Business account need to group message

Question: I have 10 iPads that we use for training.  I want to be able to text as a group as we are working on activities.  How do I set up the iPads to allow group messaging without facebook or phone numbers?  They all have the same Apple ID.
Answer: If you are using the same Apple ID to login to all the iPad, how will you identify who sent which message?
If the identity of sender and recipient are irrelevant, and you just need the message to be synced across all the iPads, an inelegant but simple approach is to send the message to yourself, i.e. the same Apple ID which is logged into iPad.
The downsides will be that the each message will appear twice, once for sender and once for receiver. Also, the message will be marked as read immediately.
The solution discussed above is not elegant and it is recommended that you register each iPad with unique Apple ID, and create an iMessage group conversation with all the recipients added.


Is loopholes are halal in islam

Question: Is loopholes are permissible in islamic finance?
I am a bussiness man someone adviced me to buy loopholes to avoid taxes and increase you bussiness rapidly..
Answer:
163 And ask them about the town that was by the sea - when they transgressed in [the matter of] the sabbath - when their fish came to them openly on their sabbath day, and the day they had no sabbath they did not come to them. Thus did We give them trial because they were defiantly disobedient.
—Al-'A`raf 163

This is alluding to a story that is expounded upon in the tafsirs, about a town by the sea populated by the people of the Book.
According to the Torah Law, the Sabbath was a required weekly observance where the people of the Book were forbidden to engage in work, including fishing. The trial, here, was that the fish were difficult to catch normally, but they were visibly present and would be easy to catch during the Sabbath when they were forbidden from doing so.
Some citizens of the town decided to engage in a trick — a loophole — in order to take advantage of this; they would set out their lines and nets and traps before the Sabbath day started, and just leave them out during the Sabbath unattended. Then when the Sabbath was over, they would return and collect the catch.

165 And when they forgot that by which they had been reminded, We saved those who had forbidden evil and seized those who wronged, with a wretched punishment, because they were defiantly disobeying.
166 So when they were insolent about that which they had been forbidden, We said to them, "Be apes, despised."
—Al-'A`raf 165-166

While this was technically within the scope of the law against performing work on the Sabbath, it did not respect the Sabbath as they were expected to do. As such, those people were punished.
That said.
Financial systems are built around man-made laws, and we as Muslims are expected to adhere to them insofar as they do not contradict divine Islamic law. However, unlike the Sabbath law which was a divine commandment with very clear expectations that were transgressed in the above scenario, one cannot necessarily say the same thing about financial law.
In particular, it must be remembered that in many financial systems, a number of "loopholes" are intentionally left in because they're meant to be exploited. This might be because doing so is in the interests of the government or whatever powers were involved in drafting the law in the first place, or simply as concessions to make the law easier on the people.
So while the general principle of exploiting a loophole which breaks the spirit if not the letter of the law would still be problematic, that doesn't mean you can't take advantage of exceptions or concessions that are intentionally built into the law. Assuming, of course, that doing so does not involve lying or fraud or depriving others of their rights, or other such acts which are forbidden in general.
As such, one cannot give a blanket "loopholes are haram/halal" statement without understanding both the financial system involved as well as the specific loopholes being considered, and you'll need to take it all on a case by case basis.

Is loopholes are halal in islam


How to read/write a binary file?

Question: I'm trying to write to a binary file, read from it, and output to the screen.
I can write to a file, but when I try to read from it, it is not outputting correctly.
Answer: Reading and writing binary files is pretty much the same as any other file, the only difference is how you open it:
unsigned char buffer[10];
FILE *ptr;

ptr = fopen("test.bin","rb");  // r for read, b for binary

fread(buffer,sizeof(buffer),1,ptr); // read 10 bytes to our buffer

You said you can read it, but it's not outputting correctly... keep in mind that when you "output" this data, you're not reading ASCII, so it's not like printing a string to the screen:
for(int i = 0; i<10; i++)
    printf("%u ", buffer[i]); // prints a series of bytes

Writing to a file is pretty much the same, with the exception that you're using fwrite() instead of fread():
FILE *write_ptr;

write_ptr = fopen("test.bin","wb");  // w for write, b for binary

fwrite(buffer,sizeof(buffer),1,write_ptr); // write 10 bytes from our buffer

Since we're talking Linux.. there's an easy way to do a sanity check. Install hexdump on your system (if it's not already on there) and dump your file:
mike@mike-VirtualBox:~/C$ hexdump test.bin
0000000 457f 464c 0102 0001 0000 0000 0000 0000
0000010 0001 003e 0001 0000 0000 0000 0000 0000
...

Now compare that to your output:
mike@mike-VirtualBox:~/C$ ./a.out
127 69 76 70 2 1 1 0 0 0

hmm, maybe change the printf to a %x to make this a little clearer:
mike@mike-VirtualBox:~/C$ ./a.out
7F 45 4C 46 2 1 1 0 0 0

Hey, look! The data matches up now*. Awesome, we must be reading the binary file correctly!
*Note the bytes are just swapped on the output but that data is correct, you can adjust for this sort of thing
Comment: Don't forget to `fclose(ptr);`!
Comment: Note that on Linux (and on Unix-based systems generally), the `b` flag is 'optional' — there is no distinction made between a binary file and a text file on such systems.  The difference matters intensely on Windows, though.  If your code has pretensions to portability, add the `b` when you're going to treat the file as a binary file.
Comment: In binary mode, does `fread` function terminate reading while it found CR or LF characters?
Comment: i know is old, but there are some questions i have to make: "// write 10 bytes to our buffer" means that saves what is in your buffer to your file?
Comment: @Gaunt - Yes, I should have said "from" to make that clearer; I've fixed that now. In that example I'm assuming "buffer" exists, and is populated with some data and that will be written to "test.bin" as pointed to by `write_ptr`. If you run that you could then "hexdump" the test.bin file and see those bytes in it.
Comment: @shjeff No. That's what the `sizeof(buffer)` is for. It tells `fread` how much data to read.
Answer: There are a few ways to do it.  If I want to read and write binary I usually use open(), read(), write(), close().  Which are completely different than doing a byte at a time.  You work with integer file descriptors instead of FILE * variables.  fileno will get an integer descriptor from a FILE * BTW.  You read a buffer full of data, say 32k bytes at once.  The buffer is really an array which you can read from really fast because it's in memory.  And reading and writing many bytes at once is faster than one at a time.  It's called a blockread in Pascal I think, but read() is the C equivalent.
I looked but I don't have any examples handy.  OK, these aren't ideal because they also are doing stuff with JPEG images.  Here's a read, you probably only care about the part from open() to close().  fbuf is the array to read into,
sb.st_size is the file size in bytes from a stat() call.
    fd = open(MASKFNAME,O_RDONLY);
    if (fd != -1) {
      read(fd,fbuf,sb.st_size);
      close(fd);
      splitmask(fbuf,(uint32_t)sb.st_size); // look at lines, etc
      have_mask = 1;
    }

Here's a write: (here pix is the byte array, jwidth and jheight are the JPEG width and height so for RGB color we write height * width * 3 color bytes).  It's the # of bytes to write.
void simpdump(uint8_t *pix, char *nm) { // makes a raw aka .data file
  int sdfd;
  sdfd = open(nm,O_WRONLY | O_CREAT);
  if (sdfd == -1) {
    printf("bad open\n");
    exit(-1);
  }
  printf("width: %i height: %i\n",jwidth,jheight);  // to the console
  write(sdfd,pix,(jwidth*jheight*3));
  close(sdfd);
}

Look at man 2 open, also read, write, close.  Also this old-style jpeg example.c: https://github.com/LuaDist/libjpeg/blob/master/example.c  I'm reading and writing an entire image at once here.  But they're binary reads and writes of bytes, just a lot at once.
"But when I try to read from a file it is not outputting correctly."  Hmmm.  If you read a number 65 that's (decimal) ASCII for an A.  Maybe you should look at man ascii too. If you want a 1 that's ASCII 0x31.  A char variable is a tiny 8-bit integer really, if you do a printf as a %i you get the ASCII value, if you do a %c you get the character.  Do %x for hexadecimal.  All from the same number between 0 and 255.
Answer: I'm quite happy with my "make a weak pin storage program" solution. Maybe it will help people who need a very simple binary file IO example to follow.
$ ls
WeakPin  my_pin_code.pin  weak_pin.c
$ ./WeakPin
Pin: 45 47 49 32
$ ./WeakPin 8 2
$ Need 4 ints to write a new pin!
$./WeakPin 8 2 99 49
Pin saved.
$ ./WeakPin
Pin: 8 2 99 49
$
$ cat weak_pin.c
// a program to save and read 4-digit pin codes in binary format

#include <stdio.h>
#include <stdlib.h>

#define PIN_FILE "my_pin_code.pin"

typedef struct { unsigned short a, b, c, d; } PinCode;

int main(int argc, const char** argv)
{
    if (argc > 1)  // create pin
    {
        if (argc != 5)
        {
            printf("Need 4 ints to write a new pin!\n");
            return -1;
        }
        unsigned short _a = atoi(argv[1]);
        unsigned short _b = atoi(argv[2]);
        unsigned short _c = atoi(argv[3]);
        unsigned short _d = atoi(argv[4]);
        PinCode pc;
        pc.a = _a; pc.b = _b; pc.c = _c; pc.d = _d;
        FILE *f = fopen(PIN_FILE, "wb");  // create and/or overwrite
        if (!f)
        {
            printf("Error in creating file. Aborting.\n");
            return -2;
        }

        // write one PinCode object pc to the file *f
        fwrite(&pc, sizeof(PinCode), 1, f);

        fclose(f);
        printf("Pin saved.\n");
        return 0;
    }

    // else read existing pin
    FILE *f = fopen(PIN_FILE, "rb");
    if (!f)
    {
        printf("Error in reading file. Abort.\n");
        return -3;
    }
    PinCode pc;
    fread(&pc, sizeof(PinCode), 1, f);
    fclose(f);

    printf("Pin: ");
    printf("%hu ", pc.a);
    printf("%hu ", pc.b);
    printf("%hu ", pc.c);
    printf("%hu\n", pc.d);
    return 0;
}
$

Answer: This is an example to read and write binary jjpg or wmv video file.
    FILE  *fout;
    FILE  *fin;
Int ch;
char *s;
fin=fopen("D:\\pic.jpg","rb");
if(fin==NULL)
     {  printf("\n Unable to open the file ");
         exit(1);
      }

 fout=fopen("D:\\ newpic.jpg","wb");
 ch=fgetc(fin);
       while (ch!=EOF)
             {
                  s=(char *)ch;
                  printf("%c",s);
                 ch=fgetc (fin):
                 fputc(s,fout);
                 s++;
              }

        printf("data read and copied");
        fclose(fin);
        fclose(fout);

Answer: I really struggled to find a way to read a binary file into a byte array in C++ that would output the same hex values I see in a hex editor. After much trial and error, this seems to be the fastest way to do so without extra casts. By default it loads the entire file into memory, but only prints the first 1000 bytes.
string Filename = "BinaryFile.bin";
FILE* pFile;
pFile = fopen(Filename.c_str(), "rb");
fseek(pFile, 0L, SEEK_END);
size_t size = ftell(pFile);
fseek(pFile, 0L, SEEK_SET);
uint8_t* ByteArray;
ByteArray = new uint8_t[size];
if (pFile != NULL)
{
    int counter = 0;
    do {
        ByteArray[counter] = fgetc(pFile);
        counter++;
    } while (counter <= size);
    fclose(pFile);
}
for (size_t i = 0; i < 800; i++) {
    printf("%02X ", ByteArray[i]);
}

Answer: this questions is linked with the question How to write binary data file on C and plot it using Gnuplot by CAMILO HG. I know that the real problem have two parts: 1) Write the binary data file, 2) Plot it using Gnuplot.
The first part has been very clearly answered here, so I do not have something to add.
For the second, the easy way is send the people to the Gnuplot manual, and I sure someone find a good answer, but I do not find it in the web, so I am going to explain one solution (which must be in the real question, but I new in stackoverflow and I can not answer there):
After write your binary data file using fwrite(), you should create a very simple program in C, a reader. The reader only contains the same structure as the writer, but you use fread() instead fwrite(). So it is very ease to generate this program: copy in the reader.c file the writing part of your original code and change write for read (and "wb" for "rb"). In addition, you could include some checks for the data, for example, if the length of the file is correct. And finally, your program need to print the data in the standard output using a printf().
For be clear: your program run like this
$ ./reader data.dat

X_position Y_position  (it must be a comment for Gnuplot)*

1.23 2.45

2.54 3.12

5.98 9.52

Okey, with this program, in Gnuplot you only need to pipe the standard output of the reader to the Gnuplot, something like this:
plot '< ./reader data.dat'

This line, run the program reader, and the output is connected with Gnuplot and it plot the data.
*Because Gnuplot is going to read the output of the program, you must know what can Gnuplot read and plot and what can not.
Answer: #include <stdio.h>
#include <stdlib.h>

main(int argc, char **argv) //int argc; char **argv;
{
 int wd;
 FILE *in, *out;

  if(argc != 3) {
    printf("Input and output file are to be specified\n");
    exit(1);
  }
  in = fopen(argv[1], "rb");
  out = fopen(argv[2], "wb");
  if(in == NULL || out == NULL) { /* open for write */
    printf("Cannot open an input and an output file.\n");
    getchar();
    exit(0);
  }
  while(wd = getw(in), !feof(in)) putw(wd, out);

  fclose(in);
  fclose(out);

}

Comment: Even the official documentation of getw and putw says you should not use them, tho.

How to read/write a binary file?


What mechanism happens inside an inductor from the point when potential difference is applied?

Question: What happens when a potential difference is applied across an inductor? I am trying to get a picture of mechanism from start, just after potential difference is applied in detail? In resistor we can see that there are positive ions opposing and current flows at constant rate so energy dissipated in resistor is equal to that given by battery. But what is happening in conductor so that the induced EMF gets equal to E? What is the picture of the mechanism?
Comment: Welcome to electronics.stackexchange.  Instead of creating duplicate questions, please edit your previous question to improve it (then delete this duplicate).
Comment: possible duplicate of [how can potential difference induced between ends of inductor in simple dc circuit be equal to emf?](http://electronics.stackexchange.com/questions/86495/how-can-potential-difference-induced-between-ends-of-inductor-in-simple-dc-circu)
Comment: I have deleted that question as it didnt give a clear sight to the question
Answer: There is a well known, well studied phenomenon known as electromagnetic induction that is mathematically described by Faraday' Law of Induction.
Essentially, if the current through a loop of wire is changing, the associated magnetic field threading the loop is changing and, by Faraday's Law, there is an associated induced emf.
Now, to your question:

But what is happening in conductor so that the induced emf gets equal
  to E ? What is the picture of the mechanism ?

Let's assume the wire making up the loop is an ideal conductor or effectively so.  Now, recall that there can be no electric field inside an ideal conductor*.
With the voltage source E connected to the loop of wire, the only way for there to be no electric field in the conductor is for there to be an induced electric field that precisely cancels the field due to the voltage source.
Since the requirement for an induced emf is a time changing magnetic field and associated time changing current, the time rate of change of current is precisely the value required to induce an emf that cancels the applied voltage.
*there are conditions in which this is not true but these are beyond the scope of this answer.
Comment: As you said the field inside any conductor is zero ... It is zero in the steady state when there is not a potential difference that is constantly maintined .... And even if we assume the field to be zero then from where are th electrons getting the energy to the increase in current di/dt ??
Comment: @user28804, for an ideal conductor, there is no electric field inside *period*.  From *Electromagnetic Theory for Microwaves and Optoelectronics* (courtesy of Google books):  "Then just as in the static case, there must be neither a time-varying electric field nor electric charge inside the perfect conductor...".  Also, recall that the voltage source *supplies* energy to the inductor and that this energy is *stored* in the magnetic field.
Comment: You are not answering the question that i am asking " how does the value of current changes with time if the induced emf is equal but opposite to emf of cell ?? "
Comment: @user28804, actually I *have* answered that question, in this answer and in an answer to your other, related question.  But it's an answer you *refuse* to accept:  supposing an ideal conductor, *it is the only logically consistent state of affairs*.  This is not much different from considering massless particles in a non-relativistic context where *massless particles can have non-zero, acceleration with zero net force applied*.
Answer: A resistor and inductor both resist current flow, but the inductor opposes CHANGES in current while the resistor simply opposes the MAGNITUDE.  The inductor opposes changes in current because changes in current cause a magnetic field (or back EMF) that pushes back against the current trying to flow.
Here is an Inductor analogy:
Let's say you push a guy using a constant force.  If he is a resistor, he immediately starts moving at a constant rate.  And if you stop pushing him, he immediately stops.  A big guy (large resistor) moves slowly and a small guy moves fast.  Easy to understand, right?  Now, lets say he is an inductor.  The instant you push him he feels like a brick wall, but then he starts to move faster and faster and faster.... then you stop pushing him and then he continues to move but slower and slower and slower.... until he stops on his own.  A big guy (large inductor) will be sluggish compared to a small guy.  In this analogy, the force=Voltage and speed=Current.  I suppose you can say that a resistor has no momentum properties while an inductor does.  Hope this helps... now on to the math...
One of the best ways to analyze inductor circuits is to use the well known equation for an inductor:
V = L*di/dt
Rearranging, we get this:
V/L = di/dt
What does this mean?  It means that the rate of change of current through the inductor is constant and equal to the voltage applied divided by the inductor value.  If we integrate the equation we get:
i(t) = V/L * t
So, in time, the current through an inductor is a simple linear ramp (y = mx).  This type of analysis is used mostly in Switch Mode Power Supplies (SMPS) where the inductor is used for DC/DC conversion (i.e. 5VDC to 3VDC).
Hope that helps.  By the way, in this figure, the back EMF is equal to V because the voltage source V is an ideal source that dissipates any transient back EMF.  But note that from my figure, when the switch opens up, the back EMF voltage will go to infinity because there is no ideal voltage source there to keep it from doing so.  Why does it go to infinity?  Because the change in current was infinite (the switch stopped the current instantly!).  V = L * INFINITY!!!  So, if you push an inductor guy and he is moving, you can't stop him instantaneously because he'll rip your arm off. (-:  If you are superman (ideal) I guess you can do it.  This is why inductive loads quite frequently produce large voltages that can blow stuff up.  Fun stuff...
Comment: To be sure, an ideal inductor does not "resist current flow".  Indeed, the voltage across an ideal inductor, for *any* constant value of current, is zero.
Comment: as i mentioned my question was to get a picture of what is happening with the electrons and why is the induced emf equal to emf of the battery ? Because we can see that the current is increasing with time and for that to happen some energy has to be provided and if the emf induced in inductor equals emf of the battery , the electrons are getting no energy as they move along the circuit then how is the current increasing ?
Comment: @user28804, if the crux of your question is regarding the energy of the electrons *as they move along the circuit*, then you're "barking up the wrong tree".  See, for example, this:  http://amasci.com/miscon/eleca.html#electron
Comment: To be clear, your original question did not mention anything about electrons.  As far as I can tell, we've answered your initial question and follow-up questions.  You'll need to restate your question more precisely to get better answers.
Comment: And inductors do resist current flow if you're talking about AC.  That's why they're commonly called "chokes".  But Alfred's comment is true for DC - inductors do not resist DC current.
Answer:
from cnx.org
In your case R is the ESR of the battery (you may want that to be zero but then you leave the real world)
What is happening is that electric and magnetic fields are interacting. I don't think you can easily model that in terms of physical analogues.


Installer packages: .bin, -rpm.bin, tar, tar.z

Question: Is it correct that most of Unix&Linux software supports x-copy deployment? If I download the installation package and uncompress the files into a particular directory - would that be enough to start using that software?
Comment: What is an "x-copy deployment"?
Comment: Just for clarification, `tar`,`tar.z`,`tgz`,`tar.gz` etc are archives and do not necessarily contain installable software, they could just be backups for example.
Comment: MOVED: Just remember that you can cause compatibility problems by doing that. If you get a program from an Ubuntu .deb that relies on another program that you get from a RHEL .rpm, there may be strange and dangerous errors. Even with only one package, it might be built to run on a tailored framework.
Comment: @Gilles x-copy deployment is an installation method simply by copying files. as opposed to more cumbersome methods, e.g. on Windows once files are copied some of the needs to be registered in a registry, etc, which prohibits moving the installed software from  one file location to another and usually adds unnecessary layer of complexity.
Answer: That is true for binary builds of packages. Typically:

.rpm for Red Hat based distros
.deb for Ubuntu/Debian based distros
sometimes .tar.gz files (only if they're binary builds)

Often when you download a .tar.gz, .tar.bz2, etc. these are source distributions, so will need to be configured and compiled. Once they go through these steps they're often meant to be run from a specific directory such as /usr/bin or /usr/local/bin.
They can be moved around but then the $PATH and $LD_LIBRARY_PATH will need to by dynamically changed to reflect their new locations so that any shared libraries they depend on can be found.
Binary builds?
Both .deb and .rpm provide source packages in a binary form, so that you can build a custom binary package more easily. These packages are typically named something like .srpm, on Red Hat based distros, and their is tooling to assist in building these into .rpm packages more easily. There is something similar on Ubuntu/Debian as well.
Comment: @Wutaz - I think you're misunderstanding what I said. Did some portion of my answer make you think I was suggesting you could take the `.deb` files and install them on RH systems and vice verse with the `.rpm` flies on Ubuntu/Debian? I know this is technically possible but I wasn't trying to mention this.
Comment: @Wutaz - yeah I'd move the comments up there and then delete these. They confuse the context of my answer since they aren't really relevant to it. Once you've moved them I'll delete these comments that I left.
Answer: The normal way to deploy a program is a package tailored for each distribution: rpm format for Red Hat and CentOS and SuSE and others, deb format for Debian and Ubuntu and Mint and others, etc.
In addition to providing the files, such packages provide many other services, such as:

Record where the package is installed and track versions and updates.
Ensure that dependencies (e.g. libraries needed by programs) are present.
Track which files belong to which package.
Register and if applicable compile plugins, modules, libraries, etc.
Register documentation in documentation indices.
Register menu entries for interactive software.
Register startup scripts for daemons.
Register file types for applications provided in the package that can edit or view files.
etc.

Basic archives such as .tar.gz work too, but they provide none of these services, so you need to do all of this manually. They're good enough to run most programs manually (if you took care of installing their dependencies) but no more.


How do you get the Angry Wings achievement in Jetpack Joyride?

Question: I've been trying so long to get this freaking achievement.
How is it done?
Answer: I just got the Angry Wings achievement.
Here is what I did:

Pick these 2 gadgets: Free Ride & X-Ray Specs
Try to start the game with Profit Bird
Destroy it asap since the vehicle box will be quickly spawn
Use X-Ray Specs to get an early look on vehicle box
If other vehicle shows up, tried to avoid it
This will give you an advantage to have different vehicle as the box will be quickly spawn.
If you accidentally take the box, destroy the vehicle asap
If the Profit Bird shows up, take it & finally got the achievement

Good Luck!
Answer: It all comes down to luck, unfortunately, there's no way to affect what vehicle you get.
The only strategy I can suggest is keep starting a new game until the first vehicle you get is the Profit Bird, destroy it and keep destroying every vehicle you get afterwards. Eventually you'll get the Bird again. I would suggest having a second chance stocked just in case.
The reason you should destroy vehicles as soon as you get them, is that the game seems to spawn vehicles only a little while after the last one has been destroyed, and you'll never get the same vehicle twice in a row. Since you're aiming for maximum vehicle variety, destroying vehicles as soon as possible is the way to go.
Note: This answer was posted before the availability of gadgets. In later versions of the games where gadgets are available, I would recommend equipping "Free Ride", starting games and dying until you start with the Profit Bird, then destroy it and keep collecting gadgets and destroying until you get another one, if you die, pause and restart the game rather than waiting for the score, this way you'll always start with a bird. This lowers the "luck" factor of this achievement significantly...
Comment: Yeah I kept going for the profit bird but when I died I hit restart and kept pauseing and i would restart until I got it again and when I did get it again it gave me the achievement was this a glitch I don't know or they did this purposely so I think restarts don't count as new games
Answer: Actually it is very simple when following this steps:

Use Free Ride and X-Ray
Start a game with a ride, if the ride is not the Profit Bird lose the game and start again till you get the Profit Bird from the begin
Crush the Profit Bird ASAP and look for another one using x-ray
If you loose, pause the game quickly and press restart. Doing this you will always start with the Profit Bird.
Repeat this process till you find the second Profit Bird.
Answer: It is possible to get the same vehicle twice in a row. I did it with Mr Cuddles, but it wasn't in one game.If you're someone with the Romeo Alpha Delta achievement you might not have to destroy vehicles ASAP but for normal people you probably will
Answer: You're gonna have to hope that the first vehicle you get is the Profit Bird. Then when you get it and any other vehicles, make them crash ASAP. If you live long enough, you'll eventually get the Profit Bird again. Good luck!
Answer: Use free ride and x-ray spec gadgets, unequip vehicle magnet and always start with profit bird for that make replay. Wait for luck sometimes two consecutive birds come then angry wings completed, I tried for 3 days and with no technique came success.
This is what I experienced and got angry wings.
Answer: Once you get the profit, pause the game and hit retry. When you get the profit bird again you will get the angry birds acheivement.
Comment: Does the next vehicle have to be the bird or can you just play until you get the bird again?
Answer: I saved up for the Piggy Pack Jet Pack and set the options for Free Ride and Easy Dodge Missile Jammer.    Got the double Profit Bird twice in one session after weeks of trying.


Force SSL not working either with Joomla or htaccess

Question: We have a multiple sites in Joomla. Following are the details.

Hosted on domain mydomain.co.in, sub.mydomain.co.in.
Amazon EC2 instance, behind load balancer.
We have bought WildCard SSL certificate for *.mydomain.co.in and configured it on load balancer.

I have set Live Site variable from Joomla configuration to https://sub.mydomain.co.in.
When I browse site with https://sub.mydomain.co.in or http://sub.mydomain.com, it works fine. But I would like to force all requests to https://.
I tried to achieve this by

Setting Force SSL variable to Entire Site in Joomla configuration.
Adding following code in .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
But nothing works, when I do either of these two browser says This page has redirect loop.
I dug a little more to look whether redirection is happening from any other places like.

Virtual host configuration in httpd.conf
Any Joomla redirect plugins.

But there is no such code/plugin which is causing redirection loop.
Can anyone help?
Thanks in Advance.
Comment: What's in your `httpd.conf` and its subfiles?
Answer: You are checking the wrong variable in your rewrite condition.
Because you are using Amazon Elastic Load Balancer to terminate your SSL sessions, Apache in your instance is unaware that they came in via HTTPS, and does not set HTTPS.
ELB sets the X-Forwarded-Proto header to http or https depending on how the request was received. You can check this header instead, to effect the redirect.
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]


Changing Apple ID on second hand Macbook Pro

Question: I bought a Macbook Pro second hand and the previous owner did not disable their iCloud account. Is there any way to erase it back to factory settings so I can set up my iCloud account on the device?
Answer: Can you go back to the seller? I'd try to contact them and have them remove it. Or contact the original owner.
Also check and see if its firmware locked.


Forces applied on a planet

Question: Planets go around the sun in elliptical orbits. The highly exaggerated diagram below shows a portion of such an orbit and the force on the planet at one position along that orbit. The planet is moving to the right.Why choice "b" is the correct answer ?!!
Comment: To be honest this isn't a very well written question though, I would say b or c could both be reasonable answers given the way the diagram is drawn (I didn't realize at first it was a "top down" view instead of a view at an angle). If they wanted to make it completely unambiguous that b was the answer, they should have included the sun in the diagram, and placed it close to the planet. Maybe this gives you a hint.
Comment: Which answer makes the most intuitive sense to you, and why?
Answer: A force which is perpendicular to the velocity acts like a centripetal force and does no work.  In the (top view) sketch, the force component which is parallel to the orbit acts backward backwards from the velocity and slows it down.

Forces applied on a planet