Trying to debug slow DrawIndexed calls. 0.1+ms CPU usage per call

Question: I have just been reworking my rendering pipeline. There is an issue I had noticed cropping up during this work but now its become constant and I cant figure out the cause.
Every call to DrawIndexed is costing 0.1ms - 0.2ms in CPU time. Even when there's no state change to explain it. I can just duplicate the call to DrawIndexed call 5 times in a row in the code (to eliminate the chance something else in the loop is impacting it) and all calls will have the same cost when looking in NVIDIA NSight (see below).
I have had frames where I will draw 100 times from the same vertex buffer with different offsets (each being a chunk of the map) and its the same. You can see in this trace there is a few without any state changes showing this behavior.
If I instead render the whole buffer at once the CPU usage is the same but the GPU barely changes, which makes sense, there is so few triangles there's almost nothing to do.
I've tried changing just about everything I can think of to try to tease out what's going on but nothing seems to to impact it.
Any ideas would be greatly appreciated.
I should just mention I am running a pretty high end system 9900k, 3090.
Answer: Micro-timing of Direct3D calls is not an accurate way of measuring the CPU overhead of the API. There's a number of work queues involved to minimize kernel mode transitions.
Take a look at Microsoft Docs. It's a old article, but it's still relevant.


How can I sort Lists in the Quick Launch menu in SharePoint 2007?

Question: I am creating several custom lists in SP 2007 according to the team's demands. These are displayed in the Quick Launch in the order that have been created, however I would like to know if I could sort the lists in a different order, e.g. alphabetically.
Answer: Do you use Publishing features? Normally you can changer order in Quick Launch settins from Site settings, Look and Feel column. You can find step by step guide here http://support.sherweb.com/Faqs/Show/how-to-change-the-order-of-the-items-in-the-quick-launch-of-sharepoint-sharepoint-2007  for example.
Comment: Hi, Thanks a lot for your post, it's been really helpful, easier than I thought. I do love your link because it's visual and fast to understand. Thank you for your help.
Answer: If publishing feature is enabled or you created site using publishing template, http://office.microsoft.com/en-us/sharepoint-server-help/customize-navigation-links-on-the-quick-launch-HA010255192.aspx#BM10
If not, you have to use code to sort it...Example here
http://blogs.msdn.com/b/sridhara/archive/2008/06/03/case-about-sorting-the-quick-launch-navigation.aspx


How to travel between castles in the Loire valley?

Question: I'm planning to visit Loire valley and spend a week there. I know that I can travel from Paris to Tours by TGV, but I don't know what is the best way to explore the valley and visit individual castles. I don't need guided tours, I'm looking for a way to travel between the castles.
Comment: Since the castles are often far away and public transport will take a long time to get you there, I would suggest to rent a car.
Comment: Most of the castles aren't accessible by public transport at all, so it's either coach/tour, or car. (Or, if you want a more active vacation, bicycle! - though you'll only be able to catch about one chateau per day this way though, there's about 3 reachable from Tours, so you'd need to train-hop to different base towns. Car is your best bet otherwise.)
Answer: A car is definitely a must have to visit the Loire valley. You have independence, and you can find some beautiful castles and view the country.
But you can go to some castles by train from Tours. Here are some examples:

Chenonceaux: you can take the train from tours to Chenonceaux and
walk to the castle. It can be beautiful because you have to cross
the French garden.
Blois: can be reached by TER (= regional train)
Chambord: can be reached from Blois

For biking, you could visit www.chateauxavelo.com or see the map made by the tourism office. The map is good but only available in French.
Answer: Minibus is also a good option.
Tour Evasion ( the company I've traveled with ) has half-day tours ( two castles - approx 20-30 EUR ) and full-day tours ( four castles - approx 50 EUR ).
Entrance fees are not included, but the prices are reduced.


Document Cleanup tool in sharepoint

Question: We have thousands and thousands of documents on sharepoint many of which are old and obsolete.  I was wondering whether there was a tool that you can point at our intranet that will go through sharepoint and flag any documents that havent been modified since a certain date.
Answer: Within SharePoint you can create an information management policy.

An information management policy is a set of rules that govern the
  availability and behavior of a certain type of important content.
  Policy enables administrators to control and evaluate who can access
  information, how long to retain information, and how effectively
  people are complying with the policy. The most common creators and
  enforcers of policy are compliance officers, records managers, IT
  staff, and others who are responsible for managing risk.

For documents you can create retention policies in several ways:

You can create a retention policy definition within your site collection, then apply that policy to content types throughout the site.
You can create a retention policy that's associated with a content type that's defined in the root of the site collection.
You can create a retention policy that's associated with a local content type that has been applied to a list or library.
You can create a retention policy directly on a list or library itself.

When creating a retention policy you can add stages. Within your stage you can say for example move all documents that are not modified within 1 year to the recycly bin or to a record center.
For example
Comment: its best to add retention policy in this case
Answer: None that I know of.
However, you can run a powershell script (like this one) against your entire farm and export an inventory of your documents to a csv file. Opening it in Excel and filtering by date, as a first step you will be able to identify those that are older than a certain date.
You might as well modify the script to move them somewhere else or delete them altogether.
Here's the script found in the aforementioned link:
<code>function Get-DocInventory() {
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
    foreach ($spService in $farm.Services) {
        if (!($spService -is [Microsoft.SharePoint.Administration.SPWebService])) {
            continue;
        }

        foreach ($webApp in $spService.WebApplications) {
            if ($webApp -is [Microsoft.SharePoint.Administration.SPAdministrationWebApplication]) { continue }

            foreach ($site in $webApp.Sites) {
                foreach ($web in $site.AllWebs) {
                    foreach ($list in $web.Lists) {
                        if ($list.BaseType -ne "DocumentLibrary") {
                            continue
                        }
                        foreach ($item in $list.Items) {
                            $data = @{
                                "Web Application" = $webApp.ToString()
                                "Site" = $site.Url
                                "Web" = $web.Url
                                "list" = $list.Title
                                "Item ID" = $item.ID
                                "Item URL" = $item.Url
                                "Item Title" = $item.Title
                                "Item Created" = $item["Created"]
                                "Item Modified" = $item["Modified"]
                                "File Size" = $item.File.Length/1KB
                            }
                            New-Object PSObject -Property $data
                        }
                    }
                    $web.Dispose();
                }
                $site.Dispose()
            }
        }
    }
}
Get-DocInventory | Out-GridView
#Get-DocInventory | Export-Csv -NoTypeInformation -Path c:\inventory.csv
</code>

Document Cleanup tool in sharepoint


Is there a way to completely conceal a spell from a Mage?

Question: I'm trying to come up with a plot where my character is possessed by a supernatural being via magic. The problem is, our cabal covers all of the ten Arcana, which means that, no matter what I chose, it would be immediately evident to one of them that something was wrong whenever they had their Active Mage Sight on, and I'd really like to keep it a secret. I thought Veiling spells would cover this, but apparently it only works for Peripheral Mage Sight. I've talked to the GM, but he seems inclined to follow the game mechanics. Any thoughts?
Answer: Yes, but not the way you think, and not forever.
Mages are the greatest detectives in the universe, at least as far as Chronicles of Darkness is concerned. It is by design that very little can be kept a secret from Mages for too long, and for that very reason, really successful Mages are masters of misdirection: make your opponents think they have the truth, so that they stop looking, or just never give them a reason to look in the first place. I like to call this technique, layering.
The simplest way to hide supernatural stuff would either be Prime 2 Veiling spells, or another Veiling spell from an Arcana aligned to whatever you want to hide. Some Veiling spells can be improved with a Reach to make them report false information, and we can assume with Creative Thaumaturgy that this can apply to any spell you need. So, make the Veiling spell report that you have something more benign instead, such as a Fate blessing or something like that. Then, apply a second layer of misdirection. You can either Veil your Veiling spell or put another spell on yourself that calls more attention to it.
To finish it off, don't make anyone think you are hiding something, or just make it appear like you are hiding something else. Mages tend to be very busy with their own mysteries, and it shouldn't be like they have a lot of spare time to scrutinize everything they run into with great detail.
Of course, if the mystery you are hiding is really really interesting, you are doomed to be discovered. There are infinite ways they can catch you and figure out what you are hiding, from seeing your past to reading your mind, just to name a few of the less esoteric ones.
Comment: Thank you very much! Yes, my intention wasn't to keep it hidden forever, but just not to make it immediately obvious that something was going on as soon as they spotted me.  In fact, I do want them to find out, just not so easily.
And I actually liked your suggestion; I had considered using Reach to report false information, but I was a little worried that one of them might win the Clash of Wills at the first try, which would be... boring. But the second layer of misdirection might actually work.
Answer: If you want your character to conceal his magical influence to Mage Sight, you can use the following spells.
First, you have "Suppress Aura", a Death 2 Veiling spell (page 129-130 of the Mage core book). It specifically says that the subject appears as a Sleeper to Mage Sight and that magical attempts to see through the disguise provoke a Clash of Wills.
Second, you have "Supernal Veil", a Prime 2 Veiling spell (page 168). It can be used to hide the supernatural being possessing your character. It specifically says that passive abilities such as Peripheral Mage Sight automatically fails to detect it and that active abilities such as Active Mage Sight provoke a Clash of Wills. If your character is remotely controlled by a spell, Supernal Veil can be used to hide that spell instead.
Comment: For Supernal Veil, you may get bonus to the Clash of Wills through two ways: use Reach to go to Advanced Potency (+1 bonus), or take advantage that the Primary Factor of the spell is Duration to increase it for free  (+1 bonus for day-long Duration, +2 for week-long, +3 for month-long, +4 for year-long or longer).
Comment: The problem with Suppress Aura is that some of them already know I will become a Mage, hence it would be very suspicious if I suddenly appeared as a Sleeper.
Supernal Veil actually sounds very interesting. The Clash of Wills thing is what I wanted to avoid, but I guess there's no escape from that. I'll try to convice the GM to give the caster a big bonus for that haha. Thanks!


Why is there nothing in Pokemon Go?

Question: I was playing Pokemon Go in New York, but I did not find any Pokemon, Pokestops or Gyms. What happened?
Comment: Did you try restarting and/or uninstalling and reinstalling?
Answer: There are can be multiple causes for this, as will be covered below:

You are traveling too fast. (This actually results in you being able to see Pokestops and Gyms, but you will not be able to collect anything from them or see any nearby pokemon.
The GPS could not locate you (i.e. if you are in the subway). If you can not be located by the GPS when the app opens, it will show a blank ground with no roads or anything.
You might be in a part of the city where there is nothing located there.
If all of the above does not apply, then you may want to contact support.
Answer: those are likely root causes - the (works 99% of the time) solution is to force quit the app and restart.  if that doesn't work (at least 3 times) sign-out of your session, and log back in.
if all that fails, delete the app from your phone and download it again.  i personally haven't had to get to this step, but i quit/restart the app at least 6 times on average per day.  the app seems to get less and less stable with each new update release.

Why is there nothing in Pokemon Go?


Error 1962: no operating system found after installing 12.04 (Lenovo ThinkCentre)

Question: I just installed a fresh copy of Ubuntu 12.04 on a new Lenovo ThinkCenter from a USB drive. When I restarted after installation, the boot sequence didn't find the OS. Instead I got the no operating system found error. When I started Ubuntu from the USB, I could see the HDD and that it had all the installed files. I just couldn't boot into it. It appeared that GRUB was not at the right place or that there was something wrong with the UEFI and GRUB. What is the simplest way to fix these errors?
Comment: Just remove the bootable pen drive at the right time when after successful installation when the ubuntu prompts to restart. Also select the device while booting and then install.
Comment: @iamd1 This doesn't work for most Lenovo BIOSes
Comment: I had the same problem on a Lenovo ThinkCentre M92p (Tiny). Make sure you set the bootable USB up by first formatting, then partitioning, then dd'ing the img file. I didn't partition, just formatted. It installed, but notably didn't mention where to install. Then it had this 1962 no operating system found problem. By starting again and partitioning the usb properly first, it worked. I found out by installing an earlier version to see if I got the same error (so an earlier Ubuntu version may also be an approach).
Answer: Ok...this took a lot longer than it should. But here it goes:
Installing 12.04 on a 64 bit system that supports UEFI booting like the Lenovo ThinkCentre will create three partitions on the system: a FAT partition for EFI, the ext4 partition for ubuntu and some swap. However, restarting the machine, I was not able to boot at all. Initially, the Intel Boot agent would kick in and try to boot from the network. Even if you turn that off, as indicated later, it still doesn't boot. It says no operating system found.
Now here are the things I tried that didn't work for me:

Change the SATA controller type to IDE Using a boot repair disk (it
doesn't know how to handle EFI with GPT partitioning)
Changing the order of the boot sequence to put HDD first
Changing the boot mode from UEFI, to Legacy or to Auto
Recompiling GRUB2 and putting it in the UEFI paritition, as indicated here:https://help.ubuntu.com/community/UEFIBooting

The first good direction I got was from this UbuntuForums thread.
People were having problems with earlier versions of Ubuntu. One of the suggested solutions is to install 10.04 first, and update from there.
What this really does is forget UEFI altogether, and create just two partions..the ext4 for ubuntu 10.04 and swap. You could then upgrade to ubuntu, which keeps the same partitioning. A couple things to note...mind your architectures, since this particular machines support 64 bit or 32 bit, so the 10.04 you install first should have the architecture you intend to keep. Also, your network card will likely not work on the 10.04 kernel, so you will have to upgrade from the cd by installing the alternate iso. Follow these instructions: https://help.ubuntu.com/community/PreciseUpgrades#Upgrading_Using_the_Alternate_CD.2BAC8-DVD .
What I did instead was, First installed 10.04, then install ubuntu 12.04 again, but go to 'do something else' on the partitioning page...and i simply chose to reformat the main ubuntu parition and leave the swap as is (mind you, after 10.04 you probably have only those two partions on the HDD you installed the ubuntu on). [in retrospect, I could just have created those partions without installing 10.04, it seems]
Once installation is done,  I restarted, but was greeted with an error "invalid arch independent ELF magic". Looking this up indicated that grub was probably from a previous version of ubuntu,and needs to be installed again. I had to boot from the liveCD/USB again, and reinstall grub2 (you can follow these steps:https://help.ubuntu.com/community/Grub2/Installing#Reinstall_from_the_LiveCD)
Alright, now restart again. It should boot, but I got some errors at the begining which said "no suitable mode found" and "no graphics mode found". Apparently, this is something simple that has to do with fonts. Found this bug report https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/699802 and then used the workaround on comment #24 and viola. Now the system boots into 12.04 with no errors...it is using legacy booting...but it working for now at least.
I believe this can be fixed in the installation process of 12.04, but things are this way for now.
Answer: I had the same problem installing Linux Mint 17.1 (Ubuntu 14.04 base) on a Lenovo H430. I'm not sure why I didn't have any issues installing Linux Mint 15 on the same box a year-and-a-half ago, but I probably spent 10 hours trying to get Mint 17.1 to work. I tried ARR's own fix above, I followed steps outlined on several other web pages, I tried Boot-Repair. In the end, the ease of the fix was inversely proportional to the time I spent banging my head.
All I needed to do was to enable the Lenovo H430 CSM option (Compatibility Support Module) in the BIOS/UEFI (F1 on power up to enter UEFI). The other settings fell into place automatically. Then I rebooted and was actually a bit angry that it worked given the time I had invested on more complicated attempts at solving the problem. In the Startup tab of the UEFI my settings were

CSM [Enabled]
Boot Mode [Auto]
Boot Priority [Legacy first]
Quick Boot [Disabled or Enabled, either will work]
Rapid Boot [Disabled]
Boot Up Num-Lock Status [On] (shouldn't matter but included for completeness)
Keyboardless Operation [Enabled] (shouldn't matter but included for completeness)

I had made changes to Boot Mode and Boot Priority and Quick Boot several times in my attempts to get the new Linux install to boot. But without enabling CSM, nothing worked. If you have a Lenovo H430 and are having trouble installing Ubuntu or any other Linux, I would definitely recommend trying this setting. If you have a different computer but have a CSM option, this might work for you as well.
Comment: Switching to CSM in the UEFI settings as described above (but F12 for my computer) worked on my Lenovo Ideacentre Q190 with Ubuntu 16.04.3 server.
Comment: This is the way! CSM -> Enabled solved my problem. Thank you!
Answer: You need a boot loader in the MBR in order to boot from the hard disk.  The MBR is not in a partition of the disk, it's at the beginning in a special place.  So when the installer asked you where to put GRUB, if you told it the same partition as Ubuntu, it won't be found.
Probably the easiest way to fix it is to use the GRUB Boot Repair Disk.  My experience is that this will usually fix the problem automatically.  I'd give it a try before trying anything complicated, unless you really want to learn a lot, and have a lot of patience or troubleshooting abilities.
Comment: unfortunately, this did not help. The problem likely has to do with ufei, which I think the new lenevo machines have...
Answer: I had the same issue and the following worked for me:

Run ubuntu from installation disk
install and run boot-repair (you need internet access)
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

just choose the "Recommended Repair"
boot from harddisk installation
repeat steps 1-3
restart.

it should work now.
Answer: I would suggest that you boot into the BIOS (usually it's F1 IRCC on ThinkCentes) and go to the SATA option and change it from AHCI to either IDE or Compatibility mode. I work at a place that has all ThinkCentres so if you're unable to find that option to configure the BIOS. Make a comment on the Model-Type (ie. 4329-ACU) and I'll check to see if we have that same model  tomorrow and will edit this to include exact steps. I have had the same exact problem when taking a machine right out of the box and installing Ubuntu (regardless of release).
Hope this helps!
Comment: This is a 91p(4518-XF2)...I changed the SATA options to IDE, and still the same problem. I have put the HDD to be the first boot device in the 'primary' and 'automatic' boot sequence. Does changing it to IDE fix it for you all the time, or do you do something else as well?
Answer: I had this same issue on a Lenovo ThinkCentre, but I needed to run in AHCI mode.
To fix the boot up error 1962, I went into the BIOS setup (held down F1 after starting), navigated to STARTUP and changed the BOOT MODE to UEFI. Now, every time I boot, it immediately boots into Windows 7 without errors.
I believe my MBR became corrupted (or lost entirely), but this method worked fine after restoring a backup image of the hard drive (which obviously wasn't 100% complete).
Answer: I just ran into the same problem installing 12.04.1 LTS on a Lenovo H430 machine.
So I installed it again using the above answers as clues and the statement: "[in retrospect, I could just have created those partions without installing 10.04, it seems]" in particular.
So rather than installing 10.04 first, I just deleted the existing partitions using manual partitioning in the installer first.
And then used a guided install to recreate the new partitions. Then when the install started it asked me if I wanted to create a new Master Boot Record and I said yes and now it boots into Ubuntu just fine.
Answer: I ran into that issue, and currently I'm (again). Error 1962.
Now, I'm not using ubuntu (is my mom's pc), but since the issue is about the hardware, the OS doesn't make any difference.
We bought the E1 thinkcentre on Jan/2013, 4 days after purchased the pc crashed. Lenovo exchange the HDD then but with w7 instead w8. A faulty lenovo technician tried install w8 but he failed and then for some reason the MOBO was damaged. Lenovo took the PC and 1 month and half later we got the PC back home with a new HDD and a new MOBO (according Lenovo). I powered up the pc and 4 hours later, guess what: 1962 again.
Using the logic, I thought, new HDD, new MOBO, should be the cable... or connectors, or definitely the MOBO.
Using the logic, I thought, new hdd, new mobo, should be the cable. I found something that confirms this suspects:
ERROR CODE 1962 - NO OPERATING SYSTEM FOUND - Lenovo Community
The cable Lenovo use is too tight and faulty. So it's a lenovo issue. They need find a solution exchanging the tipe of cable. Unfortunately for us under warranty we can't change the core components as we wish, that is a problem. We'll need stand.
Answer: On my machine, boot-repair experienced an error! Fortunately, I was able to successfully boot Ubuntu 14.04 on my Lenovo ThinkCentre by:

Setting boot mode to legacy in BIOS.
Booting Ubuntu LiveCD.
Using gPartEd to delete all partitions.
Using the Ubuntu installer, selecting the "Replace current operating system" option.
Answer: I had this problem with an ECS A75 board which BIOS was based on Lenovo. Apparently, most of Lenovo BIOS have this little issue that makes the UEFI boot always seek for the boot folders with same structure as in Windows 8.
I lost 3 days trying to figure out how to make Red Hat 6.5 boot properly after installation. Ok, RHEL have outdated Kernel and Ubuntu 13 already changed this, but in case someone still needs this solution, here goes how i solved it:

Boot to Live Ubuntu and then mount the boot partition;
Inside this partition there is one only folder, named [EFI]. Inside [EFI] folder, a subfolder named [REDHAT], containing the files [grub.conf] and [grub.efi]. Probably in Ubuntu this subfolder is named [UBUNTU];
On [EFI] folder you should duplicate the subfolder, whatever it is, and then rename this copy as [BOOT];
Now, inside the newly renamed [BOOT] folder you should rename the files to [Bootx64.conf] and [Bootx64.efi];
Unmount the partition and try to boot to your system now.

Let us know if this works for your problem.


why do we say Hashem hoshia... 3 times in korbanot?

Question: Why in Korbanot and by Arvit do we say the passuk of Hashem hoshia…, Hashem tzvaot ashrei…, and Hashem tzvaot emanu… three times?
Answer: The commentary to the Artscroll siddur states that Arizal recommended these verses be recited three times each after reciting ketoret. So I guess there is some kabbalistic reason behind it.
(I realize this doesn't really explain the three-fold recitation at Arvit.)
Comment: Or why not after the ketores said after ein kelokeinu
Comment: @Dude Those who recite ein kelokeinu during the week (nusach sefard and nusach ashkenaz in Israel) as opposed to shabbat and festivals, do recite these verses then


How to transfer C drive with Windows 8 OS to a new hard drive

Question: I have an OCZ Agility 3 SSD capacity 64GB, i bought a new SSD Vertex 4 capacity 128GB, how can i move all my C: drive contents including files \  windows 8 \ mbr \ boot basically everything to the new SSD \ Hard drive without reinstalling windows 8, and copying all my settings and files?
Comment: I might be wrong but I don't think it is possible to copy **everything**
Answer: This can be easily (and very fast) done with CloneZilla.
I suggest cloning the entire disk, than resizing the partition to fill the ssd (or make another partition there, whatever you want)
Answer: There are dozens of solutions.
Acronis has been the go-to for years for many people. There is also Easus (they have a free version http://www.easeus.com/disk-copy/), CloneZilla (as mentioned) and more.
Acronis and Easus are both great, and I have heard good things about Clonezilla too, although I never used it.
Answer: I usually use Acronis True Image, it's easy and fast. (true image is not free)
However, there's a lot of software doing exactly what you need:

ghost (ex norton ghost)
easis drive cloning
easus disk copy
ping
clonezilla

I always suggest you to do the cloning process using a live cd (all of those software have a live cd).
for reference, just take a look here: http://en.wikipedia.org/wiki/Comparison_of_disk_cloning_software


changing hard wired smoke alarm on house that once had an active alarm system which is now shut down

Question: Nothing was disconnected - i just did not resign up when I bought the house.
If i shut off the main breaker to the ouse, can I be sure the smoke alarm wires are dead - no electricity in them?
Comment: Nope! I did the same thing when removing popcorn from my ceiling. Turned off all the breakers assuming I was good, and still almost got shocked by my smoke alarms.
Answer: OK, clarify. Are you referring to alarm system detectors, or hard wired line-voltage (120V) smokes?
Either way, if you shut off the main, you should have no line voltage power anywhere. Line voltage smokes can, and typically do, have battery backup (9V battery), but this would NOT pose ANY safety hazard with regard to working on them.
If you are talking about an alarm system, then there is also mostly likely a system battery backup, but again, this should pose no safety hazard at all since these systems run on low voltage anyway.
Comment: +1 And always check wires with a non contact tester before handling them, no matter what breakers are turned off.


Is "To get you to know me better" grammatically correct?

Question: Is "To get you to know me better" grammatically correct? It is supposed to be an informal letter.
Comment: Yep!  It's not a complete sentence, though.  Is it part of a larger sentence, or is it in a context where it would make sense by itself?
Comment: I think we need to ask what you intend by this.  If it's something like:  "I've sent you these pictures and some of my writing to get you to know me better." then it works but it's not really idiomatic.  (I'd say, instead, "so you can know me better" or simply "so you can get to know me better" or "to help you get to know me better")
Comment: This will always remind me of Dickens, "Come in, and know me better, man!"
Answer:
to get you to know me better

is not, as pointed out, a complete sentence.
It consists of one infinitive clause

.. (for you) to know me better

as object complement to another infinitive clause (with causative get)

(for X) to get you [(for you) to know me better]

Their subjects, you in the lower clause and X in the upper one, got deleted with the complementizers,
leaving only the bare subjectless infinitives.  So, as far as it goes, it's a correct phrase.
But it's not correct as a sentence, because infinitives can't form sentences.
A sentence has to have a main verb that is inflected in the present or past tense.
And there are lots of sentences where to get you to know me better would not work.
Executive Summary: Use complete sentences when asking questions and when giving examples.
Answer: It sounds awkward and should be reworded to more accurately fit the context of the particular statement.
For example, to use a previous contributor's example, "I've sent you these pictures and some of my writing to get you to know me better," you don't want the person to know you better, you want them to know your pictures and writing better.
It would be better to say something like, "I've sent you these pictures and some of my writing so you can get a better idea of my skills."
Sometimes, rather than struggling over individual words or phrases, it is better to cross everything out and start over.  Think about the message you are really trying to put across, and go fro there.


Date popup in exposed filter

Question: I'm using Drupal 7 with views 3.
I have used an exposed filter for a date field and I want to provide option to choose date from datepopup for date filter? How can I do this?
Answer: The Better Exposed Filters module integrates with the date type fields, including the date popup. You can use this module to easily add an exposed filter with the date popup.
There are some known issues with BEF's integration with the date module; from the module page:

(Note: Support for fields supplied by the Date module is a little funky until #392836: Exposed Date filter format (in Views) and/or #502824: Date format in exposed filter (views) are resolved).

Also, you can only add this type of filter to entity fields at the moment, not properties. There are various discussions going on about this.
Comment: Note that the module which enables this on `BEF` is `date_views`.
Comment: Some more details on how to implement this would be helpful.
Answer: You don't need BEF to get popup calendar with exposed view filters. You just need "Date pop up"  and "date views" submodules.

When creating new exposed filter in "Filter" dropdown select "Date"
then choose the Date filter
choose a date field  (for instance "Date: Date (node)")
in extra settings config , in the "Date selection form element" section select "Popup"
follow other regular steps.
Answer: Drupal 9/10
I Just did a normal exposed filter (for a timestamp / date) field
Selected between dates left all defaults blank then added (in a module)
<code>/**
 * Implements hook_form_ID_alter().
 */
function SOMEMODULE_form_views_exposed_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  $view_ids = ['my_view_id'];
  if ($form_id === 'views_exposed_form') {
    $view = $form_state->getStorage('view');
    if (!empty($view) && in_array($view['view']->id(), $view_ids)) {
      $form['field_timestamp_wrapper']['field_timestamp']['min']['#type'] = 'date';
      $form['field_timestamp_wrapper']['field_timestamp']['max']['#type'] = 'date';
      $form['field_timestamp_wrapper']['field_timestamp']['min']['#title'] = t('From');
      $form['field_timestamp_wrapper']['field_timestamp']['max']['#title'] = t('To');
    }
  }
}
</code>

Date popup in exposed filter


How can I make in floor heating duct covers pet safe?

Question: I have heard recently that some floor heating duct covers can injury some pets.  What should I look for to know which ones can be harmful and how do I make them pet safe?
Comment: The mesh might work. But I think you missed the point. It's not the pet's paws that are the problem. Pets like to lay on the grates for the warmth. But sometimes the dog tags hanging from their collar fall into the slots on the grate. If the tag, then twists sideways the dog's neck is caught on the grate and he can't get up without choking or breaking his neck.
Answer: In terms of what to look for, a lot will depend on the pets in question, but if we talk about pets such as cats, dogs, and rabbits as being the more likely to roam, it's about the size of the opening. Standard vent covers for your floor are typically the slatted kind with very thin openings and these are safe, but kind of boring, so many of us replace them with more intricate and interesting designs since, well, they have to be visible and nice looking is a bonus. So, if you go this route:

Look at the shape and size of the openings in the designs. Some may seem quite small, but if they have curved patterns they can be larger than they look at a casual glance.
Give yourself a measuring tool of some sort, it could even be your thumb if your hands are big enough, but something that you can insert and test with.
It may be possible to find some that have a mesh or filter that's there to prevent small objects from falling in, this would also help with small paws.

Beyond that, if I was to DIY it now, I would probably use the mesh for screen doors. In that situation:

Cut the screen mesh to size
Open the underside of the vent and apply a bead of glue around the interior edges
Guide the mesh inside the vent cover and position
Press firmly into the glue and wipe excess from the visible side
Allow to dry before replacing onto the floor

There might be additional ways to make the mesh screen more firmly attached, perhaps with bracing pieced along the edges inside or something along that line. You want it to be firm enough to hold some weight briefly, but you should inspect on a regular basis to ensure that it's still in place.
For myself, I replaced the vents since I wanted an updated look anyways. Fortunately, I managed to find a good set at Home Depot that had a nice pattern of small squares. :)


Can I run the wires from a cable into a panel through separate knockouts?

Question: I am trying to add a thick outdoor rated cable (from a hot tub gfci breaker box) to my main panel box. The top of the box has two entry points that are not being used, but they are too small to allow all 4 wires into the box.  Can I cut the outer sheath back and run two wires through each entry hole with clamps to secure just the inter sheath?
Comment: Note that it's legal and acceptable to make your own "knockout", via a hole saw or punch, if you have space to do so.
Comment: You might move some of the existing cables to the smaller knockouts, freeing up a larger one.
Comment: I take it this "thick outdoor rated cable" is a UF cable, or is it SE cable? Also, what diameter are the holes in question, and what size are the wires in this cable?
Comment: Hello, and welcome to Home Improvement. Interesting question: keep 'em coming. And, you should probably [take our tour](//diy.stackexchange.com/tour) so you'll know how best to participate here.
Answer: No never; you can never split a cable like that.
What you can do is transition to EMT conduit and individual THHN wires, which will pack nicely in EMT conduit.
I would start by heading to a proper electrical supply house for a cable clamp that is a proper fit for your large cable.  You need a proper electrical supply because they have both the depth of stock and knowledge.  Home Depot etc. will sell you the wrong thing with a smile.
Next, I would buy a large steel box, say 4-11/16" square deep, or 6" square, with knockouts that will fit that cable clamp.
I would use EMT metal conduit to plumb out of a knockout on the service panel, to a convenient location. This can be just a foot or two.  There, install the box. Use the largest size EMT the panel knockout can accept (3/4", surely)  and correct fittings. If the junction box hole is too large, they make special washers to solve that, but then,  you can't use the EMT as ground path, so run a #10 ground wire.
There should be a #10-32 tapped hole in the back of the box for a grounding screw. If you are wiring a ground wire through the EMT, pigtail off this.
Then, you terminate your cable in the large junction box in the normal way (give yourself 12" of wire length).  Terminate the ground wire to the box chassis or other grounds.
For each of the hot and neutral wires, obtain the appropriate gauge copper THHN/THWN-2 wires with enough length to reach the breaker, run through the EMT and give 12" spare length in the box.  You need one white or gray for the neutral, and two of any other color but green.  Black and black is fine.
Run the three individual THHN wires through the EMT conduit, terminate one end at the breaker or neutral bar.  Inside the box tie the individual wires to the wires of the cable.
Three THHN copper wires of #6 will certainly fit in a 3/4" EMT conduit, and are good for 70A. This is more than #6 cable.
If the wires are small enough, you can use large wire nuts for the splice, otherwise use right-sized Polaris style connectors. If your cable is aluminum, that is fine but you must use Polaris.
Answer: By "thick outdoor rated cable", do you mean the rubber insulated cord that is used for TEMPORARY connections and extension cords? Because if so, it is illegal for you to use this cord in any way as a permanent installation connected to your breaker panel, connector or not, conduit or no conduit.
Comment: It seems unlikely that such cable would be used "from a hot tub gfci breaker box to my main panel box"
Comment: @Jasen, read his first line again. " I am trying to add a thick outdoor rated cable..." What would that be? UF cable does not come in 10/4 sizing.
Comment: some sort of armoured cable possibly.


What is the character limit for an encrypted USB drive password in Disk Utility?

Question: Is there a character limit for an encryption password when formatting a USB drive as Mac OS Extended (Journaled, Encrypted) in Disk Utility? I was able to use a very long 65-character password but was wondering how much longer I can make it.
Answer: FileVault 2, uses the User's login password as the encryption passphrase.1  macOS/OS X doesn't have a limit as to the length of a password2.
You can have a password without a limit, but practically speaking, it's not feasible to do so.

1 https://en.wikipedia.org/wiki/FileVault#Security
2 https://security.stackexchange.com/questions/22721/password-length-limits-in-history-of-operating-systems-and-popular-web-sites


iTunes shows App Updates Badge, but no updates are available

Question: On my iTunes page, it is showing a 7 next to Apps to indicate I have 7 apps with available updates.  When I click on the link to show available updates, regardless of which iTunes account I have, it always shows "No Updates are available".  How can I see what apps it thinks I have updates for, or reset that counter?
Comment: I have 3 itunes accounts, and I have logged in as each one, checked for updates and still there are no updates available but the badge still shows 7.
Comment: Are you using the same iTunes account you used to download the applications?
Comment: Is there a way we would be able to find out which one of the apps needs updating when such a thing occurs?
Answer: The common cause of this is when you have purchases in one library that belong to two Apple ID's. You will have to sign in to that second Apple ID to download those updates. This means iTunes is working as it was designed (although it is confusing since the Apple ID for each purchase is "hidden" in the info and not easily displayed.
A less common instance is when there is a problem with either the on line store or your local files that store the apps.
Here are two articles that will help if you simply have more than one account making purchases:

Which account did I use to make a specific purchase?
iOS: Changing the signed-in iTunes Store account
Comment: I have checked all my apps and every app is either one of my 3 itunes accounts.  Thanks anyway for your help.
Comment: Bummer - you might have to wait for someone to answer how to troubleshoot problems with the Apple ID or the iTunes app. Have you tried asking Apple online for support? Anything that makes me less likely to spend money on the store always gets their attention to help me resolve/understand the issue whether I'm in warranty or not.
Answer: Another cause for iTunes to do this is when you purchased an app in one country's store and you changed it to another country. That's what happened to me.
Updates are only available from the AppStore country you bought the app in (but the badge may still be displayed).
Comment: Any way to solve it?
Comment: Change the store country in you iTunes Account settings, as there is no way to migrate purchases done in one country to a different one.
Answer: Another cause for iTunes to do this is when you purchased an app in one country's store and you changed it to another country. That's what happened to me.
Updates are only available from the AppStore country you bought the app in (but the badge may still be displayed).
Answer: This happened to me, my wife and I use separate computer accounts but they both use the same iTunes store ID. Occasionally I would have to go into my wife's computer account and run the app update in iTunes there to get rid of the badge in iTunes under my computer account.


What's the chain level Gromov-Witten theory

Question: I think I heard there is such a theory, but I just can't find reference.So I am asking if there really has such a theory and reference if yes. Thanks firstly!
Comment: HYYY -- this and some of your other questions are potentially quite interesting but I think some more details and/or background are in order (e.g. what kind of answer do you expect in this particular question?) -1; to be reverted if more details are given.
Comment: HYYY -- I'm sorry but it seems to me that your question has become a bit longer but still does not contain any extra information with respect to the original version. You are looking for a reference to the chain level GW theory, but you do not tell us what you expect it to be or what properties you would like it to have. I think I have a guess as to what it may be and I'd be interested to know if my guess is correct but it's your question so it's for you to set up the rules of the game i.e. to state what requirements something has to fulfill to be called a chain level GW theory.
Comment: I think a chain-level GW theory should be something like a cohomological field theory (CohFT - as defined by Kontsevich-Manin), except with (co)chains C^* everywhere instead of cohomology H^*. I don't know if this is written up anywhere. My guess is no.
Comment: Hi,algori,thank you! I have edited it now.I think I just need reference (or better, comment)
Comment: I think Kevin Lin is correct and as far as I know, this is still a conjecture. Costello says this in his articles on Calabi-Yau $A_\infty$-categories and on the Gromov-Witten potential, but these articles were written a few years ago, so something may have happened in the mean time.
Answer: A theory of the type you might be talking about is stated in Sullivan's "Theorem 4" in "String topology and sigma models", http://books.google.com/books?hl=en&lr=&id=yuGic0WClQ4C&oi=fnd&pg=PA1&dq=string+topology+and+sigma+models+sullivan&ots=2Oympt_Z4g&sig=W4GOnI6Cn-7IjsJEH7x9c8-qnnY#v=onepage&q=string%20topology%20and%20sigma%20models%20sullivan&f=false.
Whether it is a Theorem is somewhat unclear to me.


Updating ADW Launcher for Cyanogenmod 7

Question: I'm running Cyanogenmod 7.2.0 Sholes on Motorola Droid with the ADW Launcher. The free version on the Market is an updated version of the one in my system's mod. Is there anyway to update it in the mod itself, instead of having to download it and have them be two separate apps?
Comment: If it's the same app (same package name, correct signature) it should simply update fine, and not appear as "separate app". Otherwise you could always install it, make it a system app (e.g. using *Titanium Backup*), and after being sure it works simply freeze/remove the "old" one.
Answer: System apps are always installed in /system but when system apps get updates, they are downloaded to /data as an update to the /system app.
If you download an app from the Market that its already installed in /system, it will upgrade the one you already have, but it won't install it as a duplicate.
In your specific case, if you find an updated version of ADW Launcher in the Market and you download it, you will be able to use the updated version of ADW Launcher if its the same app as the one in /system. If Cyanogenmod has a modified ADW Launcher on /system and you install the original in the Market, you might end with two different launchers (I haven't tested this part, so I don't really know if it will be an update or another app the one it installs).

Updating ADW Launcher for Cyanogenmod 7


Need a window exhaust fan with louvers that close automatically

Question: I currently put a box fan in a window as an exhaust fan when I need to ventilate a room in my house.  But when I turn the fan off, I need to remove the fan and close the window.  I'd like to have a system with louvers that automatically close when the fan shuts off so I don't need to worry about hot air or bugs coming in.  But I don't want a unit that requires any alterations to the window frame.  Is there such a thing?
Comment: Last bathroom fan I saw actually had "motorized" louvers, using a simple electro-thermic actuator (simple and cheap, as opposed to motor + position sensor).
Comment: See the [meta discussion](//meta.diy.stackexchange.com/q/607/2196) for more details about our product recommendation policy.
Answer: Plenty of manufacturers make louvered fans that only require air flow (or the lack of) to operate the louvers. If you don't want to screw the flange to the window frame, you can attach a smaller one to a plywood insert, cut to fit snugly inside the frame.

source
Answer: Whole-house fans are generally equipped with a motorized louver system.
Exhaust ducts (eg bathroom ventilation fans or clothes drier exhausts or kitchen exhausts) often have a seal of some sort which is simply blown out of the way while air is flowing, then closed by gravity.


coreplot: show new data

Question: Probably it is quite easy, but I do not find it:
I have some data in a variable "data".
After initialising the scatterplot everything is fine. Then the data of "data" changes. What should I do now. Old solution: release plot and create a new one. It orks, but this is not nice.
What I try:
  [self.scatterPlot setGraphData:data];

Nothing happens. Therefore I assume I need one more litte step, like "reloading" or "updating", but I cannot find any such possibility.
Ideas?
Answer: [[self.scatterPlot] setNeedsDisplay];

If you draw your plot inside drawRect: this will do it.
Answer: Found the solution.
the missing line is:
  [[self.ScatterPlot graph] reloadData];

coreplot: show new data


Buick Lacrosse CXL transmission fluid

Question: I just had my transmission fluid changed in my Buick Lacrosse CXL, they used an STP brand of fluid and said it was Dexron III. I am reading that GM recommends Dexron VI for this car. Is it ok to use DEXRON III? Will it damage my transmission?
Comment: Welcome to Motor Vehicle Maintenance & Repair!
Answer: Depending on what year your LeCrosse came out will dictate what is specified for your vehicle. GM specified Dexron VI for all 2006-newer automatic vehicles. If yours is a 2005, it should be fine.
With that said, it is absolutely NOT okay to use Dexron III (Dex3 - or any other Dexron) in place of Dexron VI (Dex6) fluid. Dex6 is a high-performance synthetic blend ATF. Dex6 came out in 2006 and can be used in older vehicles which specifies Dex3/4, but the other way around is not true. Dex6 is a bit thinner fluid and will handle heat better than Dex3. Will Dex3 kill your transmission? Probably not, but if you have a warranty on the vehicle, you will surely void the part which covers the transmission. You'll also most likely cause unexpected wear issues in the tranny, especially if the vehicle is used for towing.

Buick Lacrosse CXL transmission fluid


jqDock and PNG images with transparent background

Question: I'm trying to use a jqDock library, but it refuses to work with transparent png images. Is there any tweek to make it work properly.
Thanx in advance.
Answer: jqDock does not "refuse" to work with transparent images : it has no concept of what "transparent" means. So the answer is No, there is no "tweak" that will help. If the jqDock plugin is not working it is most likely a missing image, malformed or inappropriate HTML, or a script error ... all of which can be checked with the appropriate developer tools available in, or for, all modern browsers.


Capitalizing the word "media"

Question: When referring to the overall news media, can I use the capitalized word "Media"?
Comment: Welcome to English Language & Usage! Try to be more specific about your intended usage. Is this specifically just the news media, not general TV or other aspects of media? Example sentences are useful in cases like this for people to easily follow what you're asking about.
Answer: No, you would still use media. You'd only capitalise if you were referring to the place or to a particular proper noun i.e. "this year I'm going to college to study Media Studies".
Answer: I would go with media and not Media.
We must understand that unnecessary capitalization is futile.
Answer: Overall news media is media.
Single media sources are actually called mediums.
It's from Latin. Singular - Medium. Plural - Media.
Depends on the context, but i'm guessing overall is everything overall. In that case, why not?
Actually, why would you do that? It's one thing to emphasize with Capitalizing, but a properly structured and worded sentence can go miles further than any attempt at poor emphasis indication.
I'd rather you not, but you can. Valid, but not... nice?

Capitalizing the word "media"


Use Mathematica to save all citations from Google Scholar search

Question: How can I save all citations from a Google Scholar search? For instance, in a search for "Radon transformation", there are about 35,500 results. I want to download all citations into a string - is there a simple way to get Mathematica to do that? (And sorry, no, I haven't tried anything yet. Not sure where to start.)
Comment: @rhermans,
In September 2014, the SDNY upheld TVEye's affirmative defense of fair use with respect to its core function of indexing news clips in a searchable database. The court reasoned that this indexing function is transformative because it ["converts copyrighted works into a research tool to further learning."](http://www.tmtlawwatch.com/2015/09/southern-district-of-new-york-court-parses-fair-use-in-fox-news-copyright-infringement-dispute-with-media-monitoring-service/)
Comment: That surely would be against the fair use policy, wouldn't it?
Comment: @rhermans  I don't know - I haven't checked that. I am certainly not intentionally trying to do something that breaks their rules - I figured it would be fair to try. If it is against fair use, then never mind.
Comment: A few tens of queries surely are fine but 35K will make you noticed.
Comment: The policy states "Don't misuse our Services. For example, don't interfere with our Services or try to access them using a method other than the interface and the instructions that we provide." I was hoping to use MMA to automate the "interface interaction" process, but maybe that violates the policy.
Comment: A colleague got locked out after doing a bunch of searches by hand. I guess a bot would get kicked out faster...
Answer: This could get you strated
gsq[str_String] := Block[{url},
  url = "https://scholar.google.co.uk/scholar?hl=en&q=" <>
    URLEncode[str] <> "&btnG=&as_sdt=1%2C5&as_sdtp=";
  Cases[
   Cases[
    Import[url, "XMLObject"]
    , XMLElement["div", {"id" -> "gs_ccl", "role" -> "main"}, ___],
    Infinity]
   , XMLElement["h3", {"class" -> "gs_rt"}, ___], Infinity]
  ]

Use "inspect element" in your browser to understand the div  ids.
Answer: (This is an abbreviated version of a post on my blog
Google Scholar (via scholarly)
GoogleScholar is not really intended for programmatic access, and you may also hit usage limits.  That being said, python packages like scholarly exist to do this, and if you make only a few requests, you should be fine:
(* install the python package *)
ResourceFunction["PythonPackageInstall"]["scholarly"];

(* create a python session and function to get the first 10 results *)
session = StartExternalSession[
    <|"System" -> "Python",
     "SessionProlog" -> "from scholarly import scholarly"|>] ;

searchPubs = ExternalFunction[session,
  "def search(terms):
    query = scholarly.search_pubs(terms)
    results = []
    for i in range(10):
      results.append(next(query))
    return results"];

(* demo: perform the search *)
example = searchPubs["Radon transform"];

(* extract information from the result *)
Dataset @ Query[All, "bib", {"pub_year", "author"}] @ example

A Better Way: OpenAlex API
OpenAlex is an open project that makes it easy to get data.  The easiest way is get started is to do a text search through the web, and then click the gear button to generate the corresponding API query:

It is then straightforward to copy and execute the corresponding API query in using URLExecute (you may of course modify it to suit your needs:
example2 = URLExecute["https://api.openalex.org/works?page=1&filter=default.search:radon+transform&sort=relevance_score:desc&per_page=10"];

Dataset @ Query["results", All, {"publication_date", "doi"}] @ example2

OpenAlex has many other powerful features, including (machine-learned) topic groupings, links to open access versions of documents, etc.  The documentation is excellent.


Converting sound to keystrokes: can I actually try it out?

Question: I heard that there are ways to tell which keys you press based on your laptop microphone. Is there a project that I could run as a proof of concept to actually experience that on my own?
Comment: I made it into an answer.
Answer: They only conclusive parts of that analysis is that it is possible to recognize typed characters by the same person over time when you have previously run extended machine learning on that person's typing.
This implies that a program must be installed on their computer to really know what they're typing, making this approach totally useless for actual hacking. If a hacker was to implement this, he'd be wasting a lot of time for nothing since the keylogger would already be installed and more precise than anything else.
Comment: I know this is how the study did teach the program what was being typed but if you remove the key logger you now have weekly "encrypted" data. We have lots of methods of description the written word, Yes adding this layer of complexity makes things harder but, by no means makes it impossible.
Answer: I understand why they don't want the public to have this code, sniffing passwords across the room is devastating.
So probably not without some serious dedication to data science.
But if you'd want to take a shot, read up on feature extraction and try replicating their diagram.
Azure ML studio has a free drag-and-drop machine learning editor if i recall.
Comment: Don't know why that was downvoted, i thoroughly searched for some proof-of concept code but couldn't find any. I'm not an expert in the field but i do know you'll have to build it yourself until it gets released. So the answer is probably no, you cannot experience this on your own.


How to embed gcc and gcov command in expect script

Question: I wanted to embed gcc and gcov command as part of expect script..
I tried as..
#!/usr/bin/expect -f
send ":gcc -fprofile-arcs -ftest-coverage c.c\r"

send ":gcov c.c\r"

But it doesnt run and execute the commands.
Any insights to this? Thanks.

The problem I have is I am not sure how can I embed the command at the right place. All I know was there is a given test cases as below :-
#!/usr/bin/expect -f
spawn $env(SUBJECTS_SRC_DIR)/vim -u $env(HOME)/.vimrc $env(TESTS_SRC)/copy1
expect "copy1"
sleep 1
send ":se lines=24\r"
send ":se columns=80\r"
send ":redir >> move_2.1.1.out\r"
send "$"
send "\007"
send "5h"

send "\007"
send ":redir END\r"

send ":wq\r"
expect
exit -onexit {
interact
}

This is contained in a specific file named testfile. Once this testfile is executed in Perl script, an output is generated.
Something like below:
$IN_DIR/$SCRIPT_FILE;

$outfile = "$OUT_DIR/t$scriptCounter";

I tried to put the expect command which you have suggested earlier in a separate file named and passed to a new variable named...$MY_FILE in $IN_DIR.
And then, i passed $IN_DIR/$MY_FILE;
but it doesnt do anything. The .gcno files are not executed either so thus .gcov.
Answer: Expect is useful for interactive programs, not for command-line utilities. If you want to just execute gcc and gcov as part of expect script, do this:
exec gcc -fprofile-arcs -ftest-coverage c.c
exec gcov c.c

BTW, running gcov without first running the executable is futile: you need to produce the runtime coverage data before you can analyze it.


Shape key driver not working with IK bones

Question: Blender version 2.79: I configured a shape key driver for when the leg rotates in X, to repair the "shoulders", but the problem is that the repair shape key shows all the time, even when the bone is not rotated. Here is the file:
Answer: You should try some or all of the following things:

Unlock the shapekeys:

In your Driver Editor, choose Type > Averaged Value:

Create a Modifier > Generator with a X value of -1:
Comment: I did this, but it looks like the shape key doesn't go from 0 to 1000 when the bone rotates, i rotate the bone and it just makes a little bit of the repair, when i click in that button unlock shapekey, the shapekey shows all the time, when i click on it again, the shapekey just shows a little bit, even if the bone is rotated at maximum.
Comment: maybe select the driver curve and rotate it to see its effect, your bone doesn't rotate more than several degrees


Gene/protein expression specific to a group in omics

Question: I am wondering what is the significance of finding a particular protein specific to a disease or control group? when we detect 1000s of proteins in a proteomics experiment, how can one be sure that the specific proteins found in say, a disease group is really absent in control group than by random chance?
Comment: Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
Answer: You can never be 100% sure that a difference is real and not a statistical fluke. This is the entire concept underlying Type I errors - these are errors where the null hypothesis (usually, that there is no difference) is incorrectly rejected (a difference is called significant, when in fact none truly exists). Especially when performing many hypothesis tests, it's possible that a variable with truly identical distributions between two groups appears to have very different distributions simply due to sampling variability.
You can reduce the chance of making such an error by reducing the level of alpha used to determine significance, and by performing appropriate multiple hypothesis correction. With stringent significance thresholds and conservative correction, you can make it extremely unlikely that a "significant" difference could be due to random chance, but it's not usually possible to conduct an experiment with a Type I error rate of 0%.
Comment: But since the proteins are specific to group x , and therefore lacks any measurement in the group y (since they are not detected), Thus the scenario here is not to see if the means are different. how to run a statistical significance test against something not detected ( should it be assumed 0 mean and 0 sd for the non-detected group? and then to determine with the desired p-value threshold?)


Futuristic Heat Gloves

Question: In my story, I've been drafting a character with abilities based on fire and heat. I had this idea that he could have gloves that can increase in heat on the outside while the inside temperature stays mostly the same. My question is: would these be possible to make (out of any material)? If it helps, this story takes place in a futuristic setting.
Answer: It would be trivial to make a portable flamethrower with the nozzle attached to a glove's palm. In fact, some people with enough spare parts and time have already done it.
https://youtu.be/C4KuDBkWw2o
While there are many Darwin Awards (and honorable mentions) that relate to death by fire, a quick search indicates that not one has been awarded so far having to do with homemade flamethrowers. If you are quick enough to release your novel, it may be cited when someone tries to lit a cigarette with such a glove.

Seriously now, having heated hands is a bad idea™. If your hands are just as hot as a good cup of tea, the most you can do with those is becoming a very unique reiki practicioner, which you can do without the gloves anyway.
But if you hands are hot enough to do anything truly superhuman - from softening PVC to melting solder - you are just a distraction away from the ER. If your eye itches, if you pick your nose, if you use your fingers to whistle, if you scratch your butt... It will not be pleasant.
And if you need to grab someone to prevent them from falling from a ledger... You won't be making many friends, nor getting many teamwork awards.
You will always be better served by having a good soldering iron and a heat gun.
Comment: "honey, your hands make me hot" got a whole new meaning now!
Comment: @L.Dutch imagine his teenage years... ouch!
Comment: @BladeWraith, the dream of Victorian educators
Comment: Thanks for your response! It definitely gave me some things to think about. I know it's not in the question (perhaps I should edit it), I wasn't thinking of superhuman feats with this, I was just thinking about causing burns with your touch. I was thinking that it could be used in hand to hand combat or something
Comment: https://youtu.be/Eoy11_p2dOI at 1:10.
Answer: How hot are we talking, and how long does it need to work for?
There are two ways you can deal with this:

Insulation
Cooling

Materials with a vacuum in between two layers of material are basically as good as you can get with insulation. With this you will have a heat conductivity of about 0.006-0.008 W/(m·K). Insulation will only slow down how fast the inside heats up.
You can calculate this with the following equation W = kA/L (W is the Joules of heat every second (work), k is the heat conductivity, A is the surface area, and L is the thickness).
So if the glove was 1cm thick, and the surface area of our hand is about .05m^2 according to google, and we plug in a theoretical ideal 0.004 for our conductivity we get.
W = 0.004*0.05/0.01 = 0.02 J/s
This is the energy being transfered and getting through every second per degree Kelvin (Celsius) the gloves are heated up.
For a male each hand make up about 0.65% body weight (0.5% for females). That means for a 200lb man, 1 hand would have a mass 0.58kg. I was going to treat humans as water, but a google for "heat capacity of human flesh" actually gave me a result (3500 J/(kg*K)), which is actually pretty close to water.
So to heat up your hand 1 degree will take about 2030 J of energy.
So if the gloves where only 1 degree hotter on the outside it would take 28 hours to get your hand to the same temperature (though I imagine your body can dump the heat in sweat. I am not sure what the limits are for that.)
So how hot can these gloves be before you get burned. Temps of between 40-80 degree Celsius will cause burns over varying amounts of time (40 over long time, 80 over a second). Let's say the user wants to be able to use the gloves for a minute before it reaches 50 degrees and they start burning their hands. That is 30 degrees over room temperature.
So that means 2030*30 = 60,900 J of energy need to get through the glove to burn our user. Over the span of a minute, that means a full 1000 watts of energy can get through.
Looking at our easier equation, that means the outside of the gloves can be a full 50,000 degrees Kelvin. This is really hot. Like crazy hot. You can melt steel and stone. It is hot enough that I thought I made a mistake. Then I looked up the kevlar gloves that can withstand lava. The big problem is not the heat getting through, its melting the gloves themselves.
Looking up high temp polymers Looks like we can get up to 600 degrees Celsius currently without melting with some newer ones. We are constantly making better ones and you could probably say "something something carbon" to say the gloves have a melting point of around 1500 degrees Celcius. At this point you can melt steel just fine.
At those temps you could use the gloves for about 30 min before the internal heat got bad.
The other method you can keep them going is with active cooling. Water tubing could carry heat up your arms to big heat sinks on your back. To balance the heat getting through the gloves with the insulation above, the gloves would need to pump about a hundredth of a liter of water a minute.
More traditional insulations might require about a liter of water a minute pumped through to maintain thermal balance.
The bigger problem is where you are getting the energy to heat the gloves.
Comment: Thank you for your response! I really appreciate all the detail in it! I don't think I need it to get nearly as hot as you mention, but it's nice to know the upper bounds of how hot it can get and things like that.
Answer: No need for science fiction, we have substances that can do that now.  There are a variety of thermal insulators that would be capable of being made into gloves.  Aerogel would be one example.  There are a variety of ceramic heat shields that would work as well.  Just google thermal insulators.
Comment: Thanks for your response! I will definitely look into those things, I'm sure they'll be really helpful.

Futuristic Heat Gloves


How much disk space should be allocated for FreeBSD?

Question: I have a Samsung N150 netbook with 160 GB hard disk. I want to install FreeBSD OS. There will be no other OSs, no dual booting or like that, just FreeBSD. So the manual says to have a separate partition for /var, /usr and /
Earlier I used Ubuntu where I created / with 30 GB and rest for /home. But what will be the optimal disk size for use in FreeBSD? How much can /var grow into? Also if I install applications from ports where will it go? Is it to /usr/local/bin or /opt? Which is recommended?
My usage will be as a development machine. i.e it will have all my personal stuffs like music plus development software, server etc. I think of having separate partitions for keeping development files and mounting when ever required. Also separate partition for other stuffs like music, docs etc. So that even if I reformat the OS, I will only have to wipe the OS files, and not my personal files. So which format (like ext4 or zfs) should those partitions have? Can those be on extended partition since FreeBSD need a primary partition.
Comment: No matter what the manual says, I wouldn't create a separate partition for `/var` and `/usr` except with very special requirements (which you don't have). Separating the OS from your own data is a good idea, but dividing the OS into bits isn't useful.
Comment: It is always a good start to let the installer choose  by using the suggested defaults.  Then have a look when the system is up and running.
Answer: I would use this kind of arrangement for 160G:

a: 100M / (the only thing that goes in / for BSDs is boot files, /root, and /etc)
b: 200M-1G (swap) Note, BSDs use swap much differently than Linux or Windows. You hardly ever need as much.
d: 100M-500M /tmp (however much tmp space you think you need. Make bigger if editing very large files)
e: 300M-20G /var (By default, /var/www is used by httpd for web serving. So make it big if you will be hosting, or if you have a ton of logs)
f: 10G-30G /usr (where all programs go, including ports.
g: 50-100G /home

Note that /home is the last partition. This is done on purpose. It's good practice to not partition all space. This way, if in the future you begin to run out of space in a partition you can add space from the unused space.
And why not just use a big / ? Mainly because it makes for easier upgrading and more granularity over security. for instance, using one big / you can't make use of nodev and nosuid mount options. You also can't tune for performance(noticeable performance) by using the noatime and friends in partitions which could benefit.
Answer: Why bother with a complicated set-up on a workstation? One partition sized 20GB (or 30GB if you plan to build the world from sources) should be plenty for / and the rest should go to /home. I was going to recommend ext4, but realised you are not using Linux. Why not just use whatever is available as default. Change this only if you have special needs.
Answer: Read 'man tuning' for proper disk partitioning and why you should use different partitions, unlike what other posters have said. The handbook should be followed and, afaik, ALL FreeBSD users partition their systems as shown.
Comment: The `tuning` man page is for *performance* tuning. Not everyone needs to make their life more complicated for a few percent of disk performance. Worse than that, its recommendations are not relevant to today's hardware, where the OS is a small part of the disk space, RAM (so disk cache) is cheap, and real performance comes from SSD or RAID rather than relying on disk geometry which the disk controller may be manufacturing out of thin cloth anyway. It's unfortunate that this advice hasn't been updated since it was written a decade ago.
Comment: @Gilles - note that the first few paragraphs of 'tuning' directly address disk layout. Also see Eartz post.


How to configure Delete in Outlook to save items to folder other than Deleted Items

Question: Let's say that you don't want to use the Deleted Items folder in Outlook. Instead when you delete a message, you want it to go to a folder other than Deleted Items (for example, a folder called "Unneeded". Is there a way to configure Outlook to do that? Also assume that you are using Exchange and Auto Archive is disabled.
Comment: Wich Outlook do you use? 2010?
Comment: 2010 (sorry I thought I had included that)
Answer: I suspect it will not be configurable.
See if this works for you  https://stackoverflow.com/questions/11854770/outlook-2007-intercepting-a-mail-delete-command/11998947#11998947


Can a Player Character create and use diseases or traps?

Question: In several 4th edition books, I have seen traps and diseases, such as Deathsong (Book of Vile Darkness p33) or a magic crossbow turret. Is there a way for a character to learn how to create and use them? Or is it only for the Dungeon Master's use?
Comment: What, exactly do you want from this? There are few general methods, but many specific methods for specific things or equivalents.
Comment: If you, the DM, want the specific PC to be able to create things like that, then the PC is able to.  If you don't want that, then the PC can't.  That said, be very careful what you allow your players and their characters to do.
Comment: @DCShannon how exactly do you handle a rules as written question when there are literally *no rules* to govern the situation? There *are no* rules for creating diseases, and the limited rules for creating traps likely don't do what the OP is looking for.
Answer: Unfortunately, "real" traps violate 4e's action economy.
However, for your specific example, the crossbow turret, it is possible. The Artificer has the power: Animate Arbalester which animates a crossbow she's holding so it can make attacks as a minor action.
For prepared traps in a stronghold or diseases, or any narrative device which is used outside of combat, use a skill challenge and narrate the consequences. If they're trying to defend their base or set up an ambush, encourage them.
For in combat things, allow the players to refluff their powers, such that to the narrative, they are doing these things, and to the mechanics they are performing their normal class powers.
Comment: +1 for finding Animate Arbalester, but -1 for a vague refluff suggestion. Therefore I do nothing.
Answer: Technically, No
I don't think there's a way you can do this with only the rules-as-written, but that's because I can't find the required elements, not because there's anything in the rules to prevent it.
Added Content
That being said, I think you can add this into your game through creating new content without adding or modifying any rules. By that, I mean creating new items and martial practices and/or rituals.
By 'crossbow turret' I originally thought of something you would hand fire, which is more of a weapon, but maybe you meant something that fires on its own, which is more of a trap.
Trap Example
This is tough. I think rituals and/or martial practices are about the only way you can pull this off using just the mechanics available. These are extremely open-ended mechanics which can do just about whatever you want them to. The idea is to encapsulate longer, more complex actions that wouldn't make sense in combat. Combat actions are mostly represented by powers.
I would think creating a magic turret would be a ritual, rather than a martial practice. There is a martial practice, Forge Weapon, that lets you create a magical weapon, but it's just a base magic weapon +X, rather than one with the kind of special properties it would need to fire on its own.
Here's a possible ritual:

Conjure Crossbow Turret
Level: 12
  Component Cost: 1,000 gp, plus a Crossbow as a focus
  Market Price: 3,200 gp
  Category: Creation
  Key Skill: Arcana
  Time: 10 minutes
  Duration: 1 hour
You magically animate a crossbow in an adjacent empty square. The crossbow will aim and fire magical bolts at your opponents. The crossbow is not consumed as part of the ritual, and no ammunition is needed.
On your turn, you may command the crossbow to fire as a minor action. It performs a ranged basic attack on the nearest enemy in range using your statistics as if you were firing it normally.
The maximum number of shots it can fire is determined by your Arcana roll. The crossbow falls to the ground in its space once it has fired its maximum number of shots, or when the duration ends, whichever occurs first.

<code>Arcana Check Result        Maximum Number of Shots
19 or lower                2
20-29                      3
30-39                      4
40+                        5
</code>
This is pretty powerful, as most rituals don't help you directly in combat, and certainly don't deal damage. You will have to be careful about how it is used, and might need to re-balance it at some point. The Arcana check table could be modified, you could require a Standard action to fire, or you could prevent them from applying a proficiency bonus, just to name a few possible tweaks.
Weapon Example
Here's a possible way your characters could make a 'magic crossbow turret', by which I mean something along the lines of a light machine gun with a bipod. Create a new Superior Ranged Two-Handed Weapon:

Weapon: Crossbow Turret
  Prof: +2
  Damage: 2d8
  Range: 30/60
  Price: 75gp
  Weight: 25lbs
  Group: Crossbow
  Properties: Load Minor, Special
Crossbow Turret: This weapon cannot be fired unless it is set up, and cannot be moved unless it is taken down. Setting up and taking down are minor actions.

Allow your characters to create this weapon with the martial practice 'Master Artisan', or a magical version with the martial practice 'Forge Weapon'.
Disease Example
I don't have the Book of Vile Darkness, so I'm not sure what Deathsong does. The closest things I can think of which are not powers would be the Assassin (Executioner)'s poisons from Heroes of Shadow, or perhaps alchemical items which can be made by characters with the Alchemist feat from the Eberron Player's Guide. For either of these, you would simply need to create a new poison or a new alchemical item.
Comment: I feel like my best answers are the ones that get downvotes, and rarely any explanation.


Should upcoming computer scientists be worried about the rising competition in the field?

Question: I am a high school student who is very interested in computer science and has been studying it since middle school. I've heard a lot of news about the rise in computer science majors in college and how that affects school acceptance rates.  Should I be worried about this and how it'll affect my college application experience or is it not a big deal? If I should be worried about this, how do I separate myself from others and raise my odds of being picked?
Answer: If you want to maximize your chances of admission, I suggest that you:

Take the maximum number of computer science classes that you can.

Take the maximum number of math classes you can.  Take the most advanced math classes you can.  For instance, if you have a chance to take AP calculus, do that.

Obviously, get as good grades in these classes as possible.
It's possible that it might also help to take as many science classes as possible (e.g., physics, etc).
And, of course, follow all the standard advice for how to do well in high school and maximize your chances for admission into college.
Important caveat: Admissions criteria vary by school, and generally are not public, so it's hard to know for sure what is best to do to raise your odds of admissions.


M/S concerns regarding the end-user

Question: I know the question of M/S vs. X/Y recordings has been discussed many times as well as the benefits of both. All of that aside, I'm a little concerned about how my M/S recordings will be used by the end-users. What are your thoughts as far as being decoded incorrectly or phase issues go?
Comment: Are you doing LtRt mixes of a 5.1 mix? If so then keep an eye on your phase scope. It could be decoded by a dolby decoder incorrectly.
Answer: I may be in the minority here, but most of the time when I come across an M/S recording in my library that I want to use, I usually do a quick M/S to stereo conversion using a plugin preset (S1 Imager, Bx _control, etc) and move on. It's rare that I'll actually take the time to experiment with the width of the stereo image. That being said, I appreciate the format but don't normally take full advantage of it, for the sake of time and productivity.
Comment: Thanks for the answer Jay. I'm with you as far as the way I use M/S effects. I recently put up an online library and I'm debating on how to record my newest set of effects. I just wanted to get a sense of how many mixers and sound designers take the time to use M/S to it's full potential. I would hate to see it get used improperly. Thanks again for your input.

M/S concerns regarding the end-user


Whats the difference between "Type Certificate" and "Type Certificate Data Sheet" and how it fits into airworthiness

Question: From my knowledge, a type certificate is given to the manufacturer which in turn allows them to get an airworthiness certificate for the plane it manufactures without having to go back to the FAA to ask for it. I know the TCDS outlines the general information about the design and assigns specific numbers to it. That is about all I know about TCDS though. If anyone can tell me more about the two and how they relate to each other and airworthiness it would be greatly appreciated!
Comment: [FAA Order 8110.4C - "Type Certification"](https://www.faa.gov/documentLibrary/media/Order/FAA_Order_8110_4C_Chg_6.pdf) fully explains the entire aircraft certification process (TC, TCDS, Airworthiness Certficate, etc.)
Answer: The Certificate Data Sheet is a component of the "Type Certificate"

§ 21.41 Type certificate.
Each type certificate is considered to include the type design, the
operating limitations, the certificate data sheet, the applicable
regulations of this subchapter with which the FAA records compliance,
and any other conditions or limitations prescribed for the product in
this subchapter.

In other words if Boeing holds the Type Certificate for the 737 they hold all the above listed documents including the Certificate Data Sheet, this in turn allows them to apply for "Production Under Type Certificate" to actually build the airplane. If you want to see whats included in the TCDS, they are public and you can check them out here for your favorite airframes.


What's the word for "synonyms of a phrase"?

Question: I'm looking for multiple ways to say "Call the Police". When searching the thesaurus, I couldn't find anything. In my head, I can come up with "report to the authorities", or "report a crime", but I don't know the word for these phrases so that I can do more digging and find more examples.
Answer: I believe "paraphrase" as a noun is the goose you're after.
Answer: The word is still synonym.
Following is Merriam-Webster's definition of the word. I am adding my own emphasis to expressions and phrase.

1 : one of two or more words or expressions of the same language that have the same or nearly the same meaning in some or all senses
2 a : a word or phrase that by association is held to embody something (such as a concept or quality)
       // a tyrant whose name has become a synonym for oppression

Note that the second and third example phrases in the question are not synonymous with the first (or even with each other).
The following are synonyms of call the police:

contact the cops
get in touch with the authorities

But these are not:

report to the authorities
report a crime

In the original phrase, nothing has actually been said about a report being made, nor about a crime having been committed. It describes a simple action, but makes no assumptions about why the action should be performed.


What kind of transformation does the Y-gate do on the bloch sphere?

Question: I'm going through "Quantum Computation & Quantum Information" by Michael A. Nielsen and Isaac L. Chuang, and as a high school student with no previous knowledge, I cannot understand some things about linear transformations on the bloch sphere.
Comment: Hi, and welcome to QCSE.  What do you understand so far? Do you know what the $X$ gate does? Can you visualize the Bloch sphere in your mind's eye?  Can you see how $\vert 0\rangle$ and $\vert 1\rangle$ correspond to poles of the sphere?  Can you imagine sticking a line through the $Y$ axis, and giving the sphere a $180^\circ$ rotation?
Comment: I visualise X and Z gates but cannot do the same with Y, because I dont have deep understanding of complex numbers. Can you give me a simple explanation?
Comment: Hi Dimitris, a great place to start if you are new is grab a copy of Susskinds' Quantum Mechanics the theoretical minimum. This book explains all the key concepts and required mathematical concepts in an easy to access no bs manner to get you going into QCQI
Answer: The nice thing about the Bloch sphere is that you can visualize the various rotations without having to think too much about complex numbers.
The $Y$ gate causes a 180-degree rotation around the $y$-axis of the sphere. (Imagine spinning the sphere a half-rotation around the $y$-axis.) For example, if your state is at either end of the $x$-axis, then rotating 180 degrees around the $y$-axis will move your state to the opposite end of the $x$-axis. Same if your state is at either end of the $z$-axis. But if your state is on the $y$-axis itself, then applying a $Y$ gate does not rotate the state — it remains in the same place.
Mathematically, yes, this is represented with complex numbers. If it helps, you can think of the $x$-$y$ plane of the Bloch sphere as sort of like polar coordinates representing the relative phase between the $\left|0\right>$ and $\left|1\right>$ parts of your superposition — the $x$-axis represents the real part, and the $y$-axis represents the imaginary part.


MariaDB/mySQL is there a way to limit a user to SELECT and SHOW queries?

Question: We have a support team member who we'd like to limit his access to our database. He has never caused any problems with UPDATE or DELETE but we'd like to limit him to SELECT/SHOW/etc if it's possible. Is there a way? I'm not talking about limiting the number of queries, but the types of queries he can run.
Comment: Have you tried [the manual](https://dev.mysql.com/doc/refman/8.0/en/roles.html)?
Answer: Use GRANT to give them the exact authority that you would like them to have. It sounds like they may only need SELECT. For global authority use:
GRANT SELECT ON *.* TO 'supportmember'@'localhost';
Or limit the authority to a specific database using:
GRANT SELECT ON specificdatabase.* TO 'supportmember'@'localhost';
Or to a specific table in a specific database:
GRANT SELECT ON specificdatabase.specifictable TO 'supportmember'@'localhost';
Answer: In addition to @Dave's answer, if you would like to give this user the equivalent of SHOW VARIABLES then you would give him SELECT on Performance Schema System Variable Tables too.
If there is a more limited subset of data you would like him to see, then you can create views that execute as the definer and give him SELECT on the view only, so he would have no access to the underlying tables. This would enable you to filter by rows too if necessary.


Tomcat7 not sending responses to remote clients

Question: I have Tomcat7 installed on an AWS EC2 machine running Ubuntu 16.04. I start Tomcat7 on port 8080, and, from that same machine, can telnet to localhost 8080, execute "GET /", and see the index page.
However, when I telnet to it from a different machine, a connection is made, I can execute "GET /", but then the connection closes with no response.  I know that it is connecting to the same server and service because I can find it on the server with netstat -an.
If I execute an invalid command, eg, "XYZZY /", I get the Tomcat error page, and an entry in the logs.  But valid commands do not return any response, and do not show up in the logs.
Things I have done previous to posting here:

Use netstat -an to ensure that the connection is happening as I expect.
Move to port 8085 to ensure that it is not some conflict with the port.
Apply the setenv.sh settings to force IPv4 as suggested here (https://askubuntu.com/questions/567093/tomcat7-is-listening-port-but-not-processes-requests)
Apply the setenv.sh settings to use urandom suggested here (Tomcat7 hangs on deploying apps)

So how do I get Tomcat7 to start returning responses to the remote client?

server.xml (this was original 8080, but I changed it to test if it was a port conflict):
<Connector port="8085" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" />

setenv.sh (based off of responses from previous questions that sounded vaguely similar; forces urandom for entropy, and IPv4 addresses):
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -Djava.security.egd=file:/dev/./urandom"

Local test:
xxx@xxx:~$ sudo /etc/init.d/tomcat7 restart
[ ok ] Restarting tomcat7 (via systemctl): tomcat7.service.
xxx@xxx:~$ telnet xxx 8085
Trying xxx...
Connected to xxx.
Escape character is '^]'.
GET /
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <title>Apache Tomcat</title>

It works !

<snipped for brevity>

Connection closed by foreign host.

Remote test:
$ telnet xxx 8085
Trying xxx...
Connected to xxx.
Escape character is '^]'.
GET /
Connection closed by foreign host.

If instead of GET /, I issue XYZZY /:
$ telnet xxx 8085
Trying xxx...
Connected to xxx.
Escape character is '^]'.
XYZZY /
<title>Apache Tomcat/7.0.68 (Ubuntu) - Error report</title>
HTTP Status 501 - Method XYZZY is not implemented by this servlet for this URI

type Status report

message Method XYZZY is not implemented by this servlet for this URI

description The server does not support the functionality needed to fulfill this request.

Apache Tomcat/7.0.68 (Ubuntu)
Connection closed by foreign host.

So again I know that I am connecting to Tomcat.
If I do connect remotely but do not immediately issue a command, but instead on the local machine execute netstat -an | grep 8085, I get:
xxx:~$ netstat -an | grep 8085
tcp        0      0 0.0.0.0:8085            0.0.0.0:*               LISTEN
tcp        0      0 xxx:8085                yyy:52329               ESTABLISHED

Where yyy is my remote address, so I know that the connection is occurring correctly.
Answer: Disappointingly, the problem was a firewall doing port verification and thus killing the requests.  So anything starting with "GET " was being blocked outbound, which is why I was seeing the results I did.  Changed it to port 80 and suddenly everything works.


problems were detected while vaidating & converting Ecore models. The names are not well formed for model objects in diagram

Question: I tried to install the EMF plugin inside eclipse but some of the default Ecore diagram and EMF Generator Model projects were not available.
So downloaded a different eclipse installer for modelling  i.e. Eclipse Modeling Tools (275 MB ) and found all the relevant model related & diagram based project now.
I have followed the same tutorial http://www.vogella.com/articles/EclipseEMF/article.html .
I was able to create the webpage model diagram & then the webpage.ecore file but then the  webpage.genmodel the model generator file was giving errors like the " names used in the diagrams for the objects are not well formed " in webpage model diagram .
I googled for these errors which according to me mean that the names are not proper according to the given language for modeling constraints & no resolution to these errors were found.
then tried to ignore the errors and tried Generating the domain classes for java code, java code is generated but then the other following modules Create your model & Edit your model under Run your plugins category does not work further due to the previous errors on this link http://www.vogella.com/articles/EclipseEMF/article.html.
Please help me debug these errors
Answer: check if Name property is not null , you need to fill it
http://emftools.tuxfamily.org/wiki/doku.php?id=emfvb:quickstart
Answer: You need to set the name of Epackage and also prefix and URI
[1
[2


Editing resource forks on the command line on Mac OS X

Question: Mac OS X stores some files with resource forks.  I need to create a file with a resource fork.  The trouble is, I need to create this file on the command line.  Is anyone aware of how you can create a file with a resource fork on the command line in Mac OS X?
Answer: You can directly access the resource fork of a file using path/to/file/..namedfork/rsrc.
Answer: First, OS X doesn't really use resource forks... it supports named forks and HFS+ supports the resource forks, but that's mostly for backwards compatibility with OS 9 and old-style Carbon stuff... however, there are command line tools installed with the Developer Tools (so you'll have to install these... if you don't have them, you can get them from developer.apple.com).
See the man pages for the following tools:
ResMerger
Rez
RezDet
RezWack
The man pages are installed with the developer tools, so
<code>man Rez
</code>
in the terminal will work. The man pages are also available online:
Rez(1)
Answer: As an alternative, you can make a copy of an existing file, fork and all, using ditto:
ditto -rsrc srcFile dstFile
Answer: If you're trying to add a rich text resource fork (for example, to display software license when mounting a .dmg), check out Rainer Brockerhoff's free AddLicense source code.


Which active MLB player has the highest Body Mass Index of the league?

Question: I've been reading about Bartolo Colon and got intrigued: Which active MLB player has the highest Body Mass Index of the league?
Comment: Does this essentially mean who is the fattest?
Comment: Essentially, yes. That said, BMI is actually a very crude measure of being fat: given the fact that muscle weighs more than fat, body builders are usually obese by BMI metrics, although they have virtually no body fat. Not the case of Prince Fielder though...
Answer: This list states that the active MLB player with the highest Body Mass Index is Prince Fielder at 38.4.
Note: Prince Fielder is currently* listed at 5'11" 275 lbs. for a BMI of 38.4. However, Bartolo Colon is currently* listed at 5'11" 285 lbs. (265 lbs. in reference list, circa 2011) for a BMI of 39.7.  Depending on current* listings, this would make Bartolo Colon as the active MLB player with the highest Body Mass Index, but this may vary when we consider listed weight vs. actual weight.
*As of the 2014 MLB season
Comment: When the Mets picked up Colon this offseason, every restaurateur in Queens rejoiced.
Comment: I vote for Prince Fielder. Michael Lewis reported in Moneyball, "Prince Fielder is too fat even for the Oakland As. Of no other player in the [2002] draft can this be said." And that included Jeremy Brown.