What does II mean in this strumming instruction?

Question: What does the II above the numbers in the strumming section mean?
Comment: A guess is it means don't play *on* the beats 1,2,3 and 4, but only the off-beats - sort of reggae.
Answer: The pattern diagram appears to separate the count into four separations,  seeing how the up arrow is coming in on the second half of the &.
Another way to count it would be the syllables One - E - And - Uh, where on count is broken into four beats, or one quarter note separated into sixteenths.
The strumming would be coming in on the And - Uh, or back two beats of each count, or the last two sixteenths of each count, down strum on the "And", up strum on the "uh".
<code>   e   +  uh    e  +  uh    e  +  uh    e  +  uh
1  .   .  .  2  .  .  .  3  .  .  .  4  .  .  .
       ↓  ↑        ↓  ↑        ↓  ↑        ↓  ↑
</code>
The two lines then are representing the two beats of the first half of the count.
Edit: looking at it again, I suspect the two lines are the PAUSE symbol...
Comment: Seems like they've borrowed the '**II**' sign used on recorders, for 'pause'.
Comment: That makes sense! I was searching everywhere for specific strumming symbols, but it looks like it was just the generic pause symbol XD
Answer: Guess:
I think the II sign has to tell us that the upbeat is mute. Compare this picture: (V)


A MiKTeX update removed amsmath as obsolete – can I use another package or get it back?

Question: I have a problem with amsmath package. After an update this package was removed because it was obsolete. But what package can use instead of amsmath?
Comment: I updated MikTeX 2.9 today and `amsmath` is still there. Another `ams` package was removed though, with the mention 'obsolete', as you say, but I really don't remember which... `:/`
Comment: Can you provide more details of the update? How did you perform it- using the appropriate package manager as in [How do I update my TeX distribution?](http://tex.stackexchange.com/q/55437) ?
Comment: Hmmmm... I checked package manager and updater. After update was some problem with file (no premission to write or something in C:\Users\Jablon\AppData\Local\MiKTeX\2.9\miktex\data\le fokder). I have restarted my machine and i deleted this. It works now :) It was some M$ problem probably. Thanks for help.
Answer: MiKTeX has reorganized the package amslatex. Therefore the update removes it:

The package amslatex is split in amsmath and amscls. (Also there is a new package amslatex-primer):

However, the update has not installed the new packages automatically. Therefore I have installed them manually. For AmSLaTeX you need at least amsmath. It contains the package file amsmath.sty. amscls contains the AMS classes (amsbook.cls, …).

Finally the local repository database is synchronized by calling the MiKTeX Package Manager, menu item Repository→Synchronize, see comment of Ulrike Fischer.
Comment: When miktex rearranges packages one should synchronize the local repository database to get it up to date. The command is in "Repository" menu of the package manager. After the synchronization miktex will reinstall the files on-the-fly when you try to use them.
Comment: @UlrikeFischer Thanks. It eludes me, why the synchronization is not already done by the update in the first place.
Comment: Probably to save time and bandwidth. Normally everything works fine even without synchronization.
Comment: @UlrikeFischer When `miktex-etex-base-2,9` (iirc) was renamed to `miktex-etex-base-2.9` and I tried "Update Formats", I got an error. So even if running `pdflatex` over some document and then installing packages on the fly was a solution in principle, the current way MiKTeX is implemented is not stable in the sense of it not having prevented this error.
Comment: @UlrikeFischer I *was* at some point prompted to reinstall something (I think it was `miktex-etex-base-2,9`, but it's been a while) on the fly, and it might even have been the "Update Formats" process which did this immediately after the error (I forgot whether it was so), but only after I figured out to manually add `miktex-etex-base-2.9` (with a period) via the package manager, everything started to work seamlessly again.
Answer: amsmath is definitely not obsolete!  It may have some old and unrepaired bugs, but it still has the status "maintained" and AMS has every intention of keeping it that way.
Something else must have gone wrong with your update.
EDIT: amsmath and the AMS document classes + amsthm used to be combined on CTAN under the name amslatex.  They have always been separate in TeX Live, and, although originally bundled together on the AMS server, were repackaged in mid-2010 to be distributed in two parts.
This split was implemented in late January on CTAN, concurrent with a minor update (version 2.14) "to provide more fluid interoperability with stix.sty.  It should be fully compatible with version 2.13."
The consequences of this change (and the ensuing confusion) eluded me when i first answered this question, a fact for which i apologize.
Comment: Shouldn't this answer be "uppercased"? ;-)
Comment: @egreg -- hmmmmph.  it's after quitting time.  (okay, i did it anyhow.)
Answer: You can use mathtools instead (you should it instead of amsmath because it fixes a bug).
Comment: `mathtools` requires `amsmath` so this wouldn't work if `amsmath` were missing!
Answer: I had a similar problem today.
I ran the update a second time, and that eliminated the error message.
Comment: [Welcome to TeX.sx!](http://meta.tex.stackexchange.com/q/1436)
Comment: In my case amsmath was already installed. Updating miktex solved the issue.
Answer: After manually installing package amsmath, amscls and amslatex-primer, you might have an error about etex.sty not found.
You can fix it by using "Package Manager (Admin)" from MiKTeX 2.9.
Choose Repository > Synchronize


Don't show cellular data warning on iOS

Question: If a user decides to not allow an app to access cellular data every time they try to open the app they are shown a warning telling them that cellular data is turned off.
Is there a way in the SDK to stop showing this message or control when / where it is displayed?
Answer: The system will show this message if you try to access the Internet when permission has been revoked. To prevent it from appearing, you could use Apple's Reachability code to detect network availability, and only make web calls if the network is available.
See also, this StackOverflow post.

Don't show cellular data warning on iOS


Separate Source Control binding for project in Visual Studio with SourceSafe

Question: I have added my solution to SourceSafe using Visual Studio.
Then in the SourceSafe client I have Shared(and branched) one of the project folders.
Now, back in Visual Studio, I want to change the source control location for that project to the branched source location.  But when I select Change Source Control, I can't select that one project in the list: no matter what project I select, all the projects in the solution show as selected, and if I try to change the location for that project, it complains that I'm trying to set the source control folder for the SOLUTION to an invalid folder.
What do I need to do to separate the source control down to project level such that source control folder mappings can be done on a project level?
Answer: Yup, it turns out I had to unbind my solution from source control.  Then use the Change Source Control dialog to bind each project of my solution individually.
Answer: Try this:
Create a blank solution, add just the one project to it. Add the solution to VSS (the project should already be there).
Then change the bindings for that project-solution combo. Save it and close solution.
Now open your original solution back up and check the bindings for your project.
Comment: No that didn't make any difference to the project binding in my original solution.  In the Change Source Control dialog, the Server Binding column for all projects show the Solution Folder.  I've got a feeling that I may need to Unbind from source control, then add each project individually to source control, and only then add the solution to source control? This would be a real schlepp though because I have 64 projects in my solution!


Make a programme executable by common users

Question: I've installed hddtemp on my Arch Linux, but it needs to be run with root permissions. I want to execute it as a normal user without using sudo. How can I do this?
Answer: It's possible to assign users in a group permission to run an executable by using the /etc/sudoers mechanism. For instance, to permit all users in the users group to run hddtemp with root permissions run visudo as root and add:
%users ALL = (root) NOPASSWD: /path/to/hddtemp

Answer: You can make the program SUID. This is NOT a very safe way to do things, since SUID programs can often unintentionally open ways to escalate privileges, especially if the program wasn't intended to be run SUID. Unless the sudo solution is unacceptable for some reason (it's hardcoded into a script/program that you can't change), you should go with that. You can even make a script to hide the fact that sudo is being used if necessary.


How to use contextual filters to a View for use as a sort criteria?

Question: I want a View with a default sort criteria that can be overridden by a contextual filter.  For example, the URL might end like this: ?sort=popular.  popular would be associated with one field and recent, the default, would be associated with another field.
This is on Drupal 7 and Views 3.
Comment: htoip.  I changed the term arguments to contextual filters, the new name for arguments in D7.
Answer: I am not sure how this translates to Drupal 7 and Views 3, but I have done the following with Drupal 6 and Views 2 using hook_views_query_alter
function mymodule_views_query_alter (&$view, &$query)
{
    if ($_GET["sort"]) {
        $sort = check_plain(trim(strtolower($_GET["sort"])));

        switch ($sort) {
            case "title":
                $query->orderby = array("node.title ASC");
                break;
            case "order":
                $query->orderby = array("node.nid DESC");
                break;
            case "somefield":
                $query->orderby = array("node_data_field_somefield_field_somefield_value ASC");
                break;
        }
    }
}

The trick is to make the views w/ the sorts, and look at the SQL, and use this to update your code.
Comment: Looks like a good answer, but it's a little over my head.  I'll have to come back after I've learned some more.
Comment: @htoip Were you able to confirm or deny this?
Comment: @Jeff I don't think I ever implemented that solution, but I am now familiar with all its parts and it looks like it would work perfectly.  Usually that's not how anyone should want to handle arguments, but I had to maintain compatibility with old URL's.
Answer: you can use "exposed filters", they will use url name/value pairs similar to contextual filters.
If you don't want to show the exposed filter to the visitor you can hide them.
Answer: In Drupal 7, query will look in following way:
$query->orderby[] = array('field' =>'node_title', 'direction' => 'DESC');


Omega theme on Ipad slides across and disappears

Question: I'm using the latest Omega 3 theme on my drupal 7.32 site caerleonlodgehillprimary.org. I notice on the ipad2 (also Ipad Mini), if you swipe across to the left, the entire page disappears and you are left with a blank page. Has anyone got any ideas why that is? I was wondering whether its some kind of corruption in the footer, the last thing I added was to add a Contact Us block showing the address and email in the footer (which is a View based on the Contact Us node), I noticed in portrait mode, the email spills over into the next block. any idea?
Answer: This is caused by my social icons in the footer, the same problem is referred to in this posting, it occurs when a DIV gets too big for the page, the Ipad cant cope with this and creates a load of space on the right of your page. In my case, I have an text indent -999 in the class of my social button, defined as :-
<code>.social-button{

    width: 30px;
    height: 30px;
    text-indent: -999em;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    margin-right: 2px;
    text-decoration: none;
    border: 1px solid #FFFFFF;
</code>
}
To resolve I put :-
<code>width:auto;
overflow-x:hidden;
</code>
on the css for the social icons Block in the footer and it worked perfectly as suggested in the link above. Sorry this is slightly off topic with a CSS resolution, but I though it would save someone (like me) hours of messing around with their theme to find a problem thats not there . Thanks


Creating dashboards that pull data from a SharePoint 2010 list

Question: I've been tasked with creating a budget control dashboard. I have a SharePoint list generated from a custom content type. This list contains information such as name, cost center, and fields that represent the employees position scheduling information. I would like to create a table to display the information, including calculating averages of columns an so on, with the list displayed underneath. I've created similar applications before using xslt and SharePoint Designer, but I'd like to venture into Visual Studio to create this one. Thing is, I'm not sure as how to proceed in terms of layout. I'm seeking advice or resources on how to create SharePoint 2010 apps that combine dashboards and lists. I know this is a fairly nebulous question, I apologize for that. I'm looking for an overview - maybe how you would layout, in general, something like this. Maybe I'm thinking about it the wrong way, I'm not sure. Any information is appreciated and I can provide more information if needed. Thanks for your time.
Answer: SQL Server Reporting Services if available in your SharePoint Farm is capable of creating some really sophisticated Dashboards.  Check with your Server Admin to see if it is deployed.  It may not satisfy your craving for .NET development, but the capabilities that that SSRS and the SSRS webpart provide are very cool and will definitely impress your executives and managers!
MSDN Blog: Report Builder 3.0 and SharePoint Lists
MSDN sharePoint Server 2010 business intelligence insights training
MSDN: Getting Started with Report Builder 3.0
Comment: Hey thats great! We will be implementing SSRS / SharePoint in the near future. I wasnt aware that we could query lists that way. Thanks!
Comment: Oh yeah, you most certainly can.  There are a lot of tutorials for SSRS that start off by building your dataset against a SQL Server.  Just replace it with a dataset against a SharePoint list and you should be able to follow along with the rest of the tutorial.  However, keep in mind that it does get trickier when dealing with multiple lists--TSQL has the advantage of easily building joined queries, something that is much tougher and error prone in CAML.  Good luck!
Answer: I would definitely recommend sticking with XSLT and maybe jQuery if needed.  This client-side code is more aligned with 2013 and O365 and is more than capable of achieving a dashboard.  If you develop a custom feature then you are into the realms of deploying to your SharePoint environment, IISRESET every time you need to tweak etc.
I appreciate there are times when server-side development is needed but I would avoid it if it is at all possible.
Comment: Thanks for the reply. So something like an asp/html dashboard that uses event handlers, ajax to update from the list ? Again, I appreciate your comment.
Comment: You can either use a web part or REST to grab the data from the list.  If you use a web part - data view, list view or CQWP - then XSLT can be used to present the data - including averages etc - in a dashboard.  If you use REST then use jQuery to process the data and output into your dashboard.  There are a couple of examples (dashboard and risk matrix) on my blog - http://paylord.wordpress.com


USB device is not detected properly

Question: I am using am335x board.USB device is detected when it is inserted while booting up the board. after the board is booted up, i unplug the device and is inserted again,it is not detected.usb driver switches off the vbus session when a device is disconnected from its port.every time i need to start the session using the command "echo F > /proc/driver/musb_hdrc".How to make it auto detect? If anyone has faced this problem,please post reply.
Answer: If faced the same problem. It seems that when you use ULPI mode, starting vbus does not work.
Have a look on a newer kernel in file drivers/usb/musb/omap2430.c
When an USB_EVENT_ID got notified, you should turn on vbus independtly of the mode your otg is working.
hope that helps.

USB device is not detected properly


How can I speed up this Keras Attention computation?

Question: I have written a custom keras layer for an AttentiveLSTMCell and AttentiveLSTM(RNN) in line with keras' new approach to RNNs. This attention mechanism is described by Bahdanau where, in an encoder/decoder model a "context" vector is created from all the ouputs of the encoder and the decoder's current hidden state. I then append the context vector, at every timestep, to the input.
The model is being used in to make a Dialog Agent, but is very similar to NMT models in architecture (similar tasks).
However, in adding this attention mechanism, I have slowed down the training of my network 5 fold, and I would really like to know how I could write the part of the code that is slowing it down so much in a more efficient way.
The brunt of the computation is done here:
h_tm1 = states[0]  # previous memory state
c_tm1 = states[1]  # previous carry state

# attention mechanism

# repeat the hidden state to the length of the sequence
_stm = K.repeat(h_tm1, self.annotation_timesteps)

# multiplty the weight matrix with the repeated (current) hidden state
_Wxstm = K.dot(_stm, self.kernel_w)

# calculate the attention probabilities
# self._uh is of shape (batch, timestep, self.units)
et = K.dot(activations.tanh(_Wxstm + self._uh), K.expand_dims(self.kernel_v))

at = K.exp(et)
at_sum = K.sum(at, axis=1)
at_sum_repeated = K.repeat(at_sum, self.annotation_timesteps)
at /= at_sum_repeated  # vector of size (batchsize, timesteps, 1)

# calculate the context vector
context = K.squeeze(K.batch_dot(at, self.annotations, axes=1), axis=1)

# append the context vector to the inputs
inputs = K.concatenate([inputs, context])

in the call method of the AttentiveLSTMCell (one timestep).
The full code can be found here. If it is necessary that I provide some data and ways to interact with the model, then I can do that.
Any ideas? I am, of course, training on a GPU if there is something clever here.
Comment: Can you post the output of using `tensorflow.python.client.timeline.Timeline` on some sample training epochs? Without good profiler data, it's essentially just shots in the dark to guess why. Better to gather direct evidence.
Comment: yeah, I can get on that in a little @ely.
Comment: Have you profiled your code? Guessing at where to optimize can be a fools errand. I like the Python line-profiler [kernprof](https://github.com/rkern/line_profiler), and w/ Keras you could make use of the TF tools like [TensorBoard](https://www.tensorflow.org/programmers_guide/summaries_and_tensorboard).
Answer: I would recommend training your model using relu rather than tanh, as this operation is significantly faster to compute. This will save you computation time on the order of your training examples * average sequence length per example * number of epochs.
Also, I would evaluate the performance improvement of appending the context vector, keeping in mind that this will slow your iteration cycle on other parameters. If it's not giving you much improvement, it might be worth trying other approaches.
Answer: You modified the LSTM class which is good for CPU computation, but you mentioned that you're training on GPU.
I recommend looking into the cudnn-recurrent implementation
or further into the tf part that is used. Maybe you can extend the code there.


Is a maple tree with a squirrel hole in it safe to tap?

Question: I have a large maple in yard with hole in it. I am not sure if anything lives inside, but I see squirrels run in and out at times. Is it ok to use sap from that tree? Would it be safe? It is a large hole.
Comment: I find it encouraging that the CDC pages listing dangerous diseases transmitted by rodents does not mention squirrels (note that it mentions ground squirrels, but they are not the same), http://www.cdc.gov/rodents/diseases/direct.html. I take this as good evidence that there are no food safety issues involved - but I am not a medical professional, so please don't take it for granted and maybe check it with some kind of hotline for pest control, or disease prevention, if you can find one. After all, food poisoning is connected to excrements and I don't know how clean squirrel keep their holes.
Answer: With the disclaimer that I've never actually tapped a maple tree, I'm pretty sure this is okay, assuming the hole doesn't indicate the tree is unhealthy.
Everywhere I've seen, for example this guide says that you can tap trees as long as they're mature enough - at least 10-12 inches in diameter. I did find some references (like this one) which additionally say that you should only tap healthy trees. These guidelines are really just to make sure that tapping the tree doesn't harm it too much, and that the tree is actually going to be able to produce sufficient sap with enough sugar in it.
But a hole that squirrels play in? Plenty of trees have holes in them, and as long as we're not talking about a gaping wound in a sickly tree, it should be fine. The tree isn't actually exposed in the hole, unless it's recently created or extremely large.
Now, given that you say the hole is "large": trees grow over wounds, trying not to leave them exposed. If a wound is sufficiently large, it may not be able to repair it effectively. At this point, again, it's the tree's health that's the issue, not food safety - you don't want to tap a tree that's already struggling to heal. So if the hole is large enough to worry about this, you should inspect it: see if the tree has grown a new solid layer over the wound, or if it's exposed and decaying from the inside. If you want to know more details about what to look for, I'd suggest gardening.stackexchange.com; they'll be better at answering specifics about tree health than us!
Comment: The sap boiling process would take care of any diseases.
Comment: @JohnDyer Presumably yes, though [cooking doesn't always make things safe](http://cooking.stackexchange.com/questions/32167/can-adequate-heating-transform-spoiled-food-into-safe-food). The point of my answer here, though, is that you should be worrying about the tree first, not food safety.


users avatar names based on Primary Key, is it safe?

Question: We upload users avatar with their primary key name. avatars name are 1.jpg,2.jpg,3.jpg,... according to their primary key.
We implemented this to omit avatar field from database, instead with use their primary key to access their photos.
Is it vulnerable or I'm just too sensitive about it?
Answer: Assuming (a) primary key isn't a secret in any way and (b) primary key is limited to filename-safe characters (which looks to be the case here as it's numeric), yeah, that's fine.
Naturally there are other security concerns with the content of user-uploaded images as outlined in previous questions.
The only other potential gotcha I can think of if you're moving this from a database BLOB implementation is that the database may be transaction-safe but the filesystem won't be. But as long as your application doesn't fall over when there's an avatar file missing that shouldn't be an issue.
Comment: My app does not fall over. I took good care of that. tnx @bobince


Convert X,Y State Plane coordinates to decimal degrees

Question: I have 1000's of data point I need to convert from North Central Texas 4202 into Lat/Long decimal degrees. Can someone give me a conversion equation so I can quickly convert using excel? I have only been able to find online conversion calculator which convert one entry at a time. This is not time efficient for me. Please help!
Comment: Can you provide a link to the calculator you found?  I should be able to pull the formula they use from the code.  Also, if you have access to a GIS program, you should be able to plot your coordinates and reproject them into the desired coordinate system and export the table back to an excel sheet.
Comment: http://www.earthpoint.us/StatePlane.aspx
Comment: I do have GIS as well. How can I export coordinates to excel? I already know how to reproject into NAD83 decimal degrees. Thank you for your help
Comment: What GIS software and version are you using?
Comment: I am using ArcMap 10.1
Answer: Since you have ArcGIS 10.1 available, it would be easy to import your current data in excel format, plot the XY coordinates in the current coordinate system, reproject your points to your desired coordinate system, and then export the data back to a new spreadsheet.
To do this, follow these steps:
1.)  Add your existing spreadsheet to ArcMap
2.)  Right click your spreadsheet in the table of contents and select "Display XY Data"

Choose the appropriate fields for your X and Y coordinates
Under "Coordinate System of Input Coordinates" select "Edit..." and choose the correct coordinate system.

3.) Once your points are plotted, right click your plotted data in the table of contents and select data -> Export Data.  Save the plotted points to a shapefile and add it to your map.
4.) Reproject the shapefile to the desired projection.
5.) In the Data Management -> Features toolbox, run Add XY Coordinates on your newly projected shapefile.  You may have to rename your existing XY fields if they are named POINT_X and POINT_Y, as these are the field names the tool uses.  This will add the XY coordinates in the new coordinate system to your attribute table.
6.) Open the attribute table of your shapefile, under table options select Export.  Choose an appropriate format and location to save your spreadsheet to.
Voila, you have a new spreadsheet with projected XY data.  If your ultimate goal is just to get the data into shapefile format in the correct projection, just do steps 1-4.
Comment: This seems easy enough. I think I am not reprojecting properly. I changed the coordinate system in "data frame properties" from State Plane "4202 US feet" to Geographic NAD83. When I add XY Coordinates the result is still in State Plane XY US feet. My desired result is NAD83 decimal degrees. What am I doing wrong?
Comment: I figured it out. Data Management Tools>>Projections and Transformations>>Project                                                                                Thanks so much. Your advice was extremely helpful
Answer: Assuming that your data is in a csv file (or similar) you can load data using the Load XY data in ArcGIS. From the ArcGIS help (9.3 unfortunately, as I can't find 10):

Adding x,y coordinate data as a layer

Click the Tools menu and click
Add XY Data.  Choose a table that contains x,y coordinate data. If the
  table is not on the map, click the Browse button to access it from
  disk.
Click the X Field drop-down arrow and click the field
  containing x-coordinate values.
Click the Y Field drop-down arrow and
  click the field containing y-coordinate values.
Click Edit to define
  the coordinate system and units represented in the x and y fields.
  The x,y coordinates will be automatically transformed to match the
  coordinate system of the data frame.
Click OK.


Windows phone upgrade to 10 stopped in middle, now the is not starting

Question: while upgrading my windows phone to 10 it stopped in middle because of power problem.now i am unable to start my windows phone and even i tried to hard reset but it doesn't work.when i connect my phone to power adopter it just keeps restarting. moving gears comes and then phone restarts again and again .please help
Answer: Have you tried downgrading your phone to back to Windows 8.1? There is already a detailed explanation of how to do this in the question, How to rollback from Windows 10 Technical Preview?
It is a simple process, but you will lose almost all of your data saved onto your phone. Follow the directions given here by Microsoft. You basically just download the Windows Device Recovery Tool, connect your phone to your computer, and let it run.


Not signing in g+, in Type-A-Number Challenge game

Question: I imported Type-A-Number Challenge game in to eclipse. I created leaderboard_id,achivements_id. I too checked sha1 used for creation of leaderboard and sha1 used for creation of apk file is same. I deleted project in Api console and recreated it with same sha1. But, when I click on sign in button in Type-A-Number Challenge game it is showing as "Sample not set correctly. See README ".
Answer: Go to  the res/values/ids folder update the leaderboard_id and achivements_id in them which u got in developer console.


Howto add recent into Nautilus Ubuntu 12.04.3?

Question: How can I add a bookmark for recent files in Nautilus on Ubuntu 12.04.3 LTS?
Comment: Check if you can have access to `recent:///`
Comment: there is no recent on ubuntu 12.04.3 - where can i see recent files  out of dash?
Answer: You can try to upgrade several important packages (gvfs, glib, etc.) from the webupd8team/gvfs-libmtp ppa, to mount the "recent:///" URI in Nautilus 3.4.
NOTE: Due to you are going to upgrade important packages of your system, I strongly recommend to do this in a Virtual Machine or in a Test Machine to see is everything is OK.

In this example I'm running Ubuntu 12.04 with Nautilus 3.4.2.
Add PPA & upgrade packages.
1) Open a Terminal window and type the following in order to add the ppa and upgrade the packages.

sudo add-apt-repository ppa:webupd8team/gvfs-libmtp
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade

2) Reboot your system.
3) Test if you can mount the recent uri.

Open nautilus, then Ctrl+L, then type recent:/// , then Enter to see if you can mount the recent files location.

Then to add as a Bookmark... in the recent uri mounted just press Ctrl+D.

NOTE:Now if you want to add recent not in bookmarks... just in the side panel under computer, above the Home directory like Nautilus 3.6... You should edit the nautilus 3.4 source code.
Nautilus 3.6:

Add Recent Files to Nautilus Panel.
1) Make sure you have enable the Source code repository

Open the Ubuntu Software Center
In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
Just in case I use the "Main Server" to Download.

Open a Terminal window and type:

sudo apt-get update

2) In the Terminal window type the following to install the necessary packages.

sudo apt-get install build-essential quilt

3) Install build dependencies.

sudo apt-get build-dep nautilus

4) Create a folder to download the source code.

mkdir ~/Downloads/src
cd ~/Downloads/src

5) Download the source code & Export variables.

apt-get source nautilus
export QUILT_PATCHES=debian/patches
export EDITOR=gedit

6) Create the patch and Edit the source code.

cd nautilus-3.4.2/
quilt new 99_my_custom_recent.patch
quilt edit src/nautilus-places-sidebar.c

After line 694 add:
/* Recent Files */
mount_uri = "recent:///";
icon = g_themed_icon_new ("document-open-recent");
add_place (sidebar, PLACES_BUILT_IN,
       SECTION_COMPUTER,
       _("Recent"), icon, mount_uri,
       NULL, NULL, NULL, 0,
       _("Recent files"));
g_object_unref (icon);

BEFORE:

AFTER:

Save the changes and close gedit.

NOTE: If you are not using English Language.. feel free to translate and write the string "Recent" and the tooltip string "Recent files" in your Language.

7) Build the deb packages.

quilt refresh
fakeroot dpkg-buildpackage

8) Install the deb packages.

cd ..
sudo dpkg -i *deb

9) Finally you can logout and Login to see the changes.
RESULT:

Hope this helps.
Comment: I'm getting feeling that you would know the answer for this question [How to increase icons and fonts in Nautilus sidebar (left pane)?](http://askubuntu.com/questions/354102/how-to-increase-icons-and-fonts-in-nautilus-sidebar-left-pane) ;)


Synonym split request - coincident

Question: Currently the tag coincident is a synonym of overlapping-features. Should this relationship be dissolved?
Answer: This synonym relationship should be removed, because they are not the same thing. Features can overlap without being coincident, and they can be coincident without overlapping. In GIS, while coincident can mean 'occurs at the same place' it is more commonly referred to in the context of a topology and means that the edges of two features share all common vertices where they are adjoining.
Comment: I think you are probably right so I have removed the synonymy to try and take a look at the four questions tagged [tag:coincident].  I'll just have to wait about for some background process to recognize that they are no longer synonyms.  After that we may need to review/retag [these questions](http://gis.stackexchange.com/search?q=coincident+is%3Aquestion).
Comment: @PolyGeo Thanks. Tried to apply it this afternoon and didn't realize it was a synonym until after I'd saved the edit and saw the other tag appear. I was like, I didn't type that! :) I see it no longer sees them as synonym, but it's still showing the other tag's questions at the moment. I seem to recall there were four with the actual coincident tag, but your search to review wouldn't be a bad idea.

Synonym split request - coincident


Why in Italy and Spain, as productivity grows, wages don't grow too?

Question: As you can see in this report: https://rpubs.com/lovepeacejoy404/crescita_salariale between labor productivity and the average wage there is a correlation of 76% (Pearson index), while with the minimum wage there is a correlation by 84%. As far as labor productivity is concerned, the correlation works for France, Germany and the United States in the sense that the average salary also grows as productivity increases, but in Italy and Spain, although productivity does increase, the average wage does not. I would like to know why and if, given the 84% correlation with the increase in the minimum wage, the average wage would also grow. Thank you
Answer: This is a question about correlation versus causation. There seems to be a correlation between productivity and wages, but that doesn't tell us about the causation. The question implicitly assumes that causation runs from productivity to wages. If that isn't true, then increasing productivity won't cause wages to rise.
That begs the question of why the correlation exists. Its possible that causation runs in the opposite direction. Or there might be a lag. Or there might be some third factor which influences both.


Most efficient antichess algorithm?

Question: I've been scouring the internet for general algorithms for playing antichess, but can't find anything. Does anyone have any ideas about how to win at antichess?
Answer: All game-playing algorithms are basically http://en.wikipedia.org/wiki/Minimax with http://en.wikipedia.org/wiki/Alpha-beta_pruning with different board-scoring functions.
You can google for antichess board-scoring functions.
Also according to http://en.wikipedia.org/wiki/Antichess you shouldn't make any of the starting moves of 1.d4, 1.e4, 1.d3, 1.Nc3, 1.Nf3, 1.f4, 1.h4, 1.b4, or 1.h3; they lose you the game.

Most efficient antichess algorithm?


Weierstrass transform on the Riemannian manifold

Question: I've read on this Wikipedia article that Weierstrass transform (WT) can be defined on any Riemannian manifold $(M,g)$, but it seems a bit complicated to me. I'm not sure but I guess one can write the Weierstrass transform as follow:
$$
(4\pi\epsilon)^{\frac{n}{2}}\exp(\epsilon\Delta)f(x)\mid_{x=x_0}=\int d\Omega_{x}\,\exp(-\frac{d(x,x_0)^2}{4\epsilon})\,f(x)
$$
where $\Delta$ is the Laplace–Beltrami operator, $d\Omega_{x}$ is the invariant valume element, $d\Omega_{x}=\sqrt{det~g}d^nx$, $d(x,x_0)$ is the geodesic distance between arbitrary point of $x$ and base point of $x_0$, $f$ is scalar function and $\epsilon$ is a constant. Could anyone help me how to write the WT and prove the relation?! I think I should use Normal coordinates.
Answer: No, not quite. The trick is that the quantity $\frac 1 {\sqrt {4 \pi}} \textrm e ^{- \frac {(x-y)^2} {4}}$ from $\Bbb R$ does not get replaced with what you suggest (the resulting transform would not have nice properties), but rather with $k(1,x,y)$ where $(t,x,y) \mapsto k(t,x,y)$ is the kernel of the heat equation (it does not have an explicit expression and it is not always unique - which means that on "wild" manifolds you get several Weierstrass transforms, each one corresponding to a kernel). Therefore, $F(x) = \int k(1,x,y) f(y) \ \textrm {vol}(y)$ (with $\textrm {vol}$ being the volume form).
Comment: Dear @Alex M., I cannot get your point. I think my relation reduces to the simple WT in $R$. What do you mean by the resulting transform would not have nice properties?! BTW, do you think the above relation can be valid on a simple manifolds e.g. on a manifold which is diffeomorphic to $R^n$?!
Comment: @AFZQ: Read that paragraph on Wikipedia again: *the Weierstrass transform $W[f]$ is then given by following the solution of the heat equation for one time unit, starting with the initial "temperature distribution" $f$*. This is exactly what I'm doing above. Working as you suggest would make "your" Weierstrass transform not have many nice properties that the one constructed with the heat kernel has. Been there, done that (in a different setting, though) - you won't find anything interesting in that direction. Keep in mind that the naive generalizations are not always fruitful ones.
Comment: @AFZQ: To clarify my comment above: what you are hoping for is like hoping that $\frac 1 {\sqrt {4 \pi t}} \textrm e ^{- \frac {d(x,y)^2} {4t}}$ will solve the heat equation on a manifold just because it happens to do so in $\Bbb R^n$. It is an educated hope, but it is destined to fail. The same type of thinking applies here: since in $\Bbb R^n$ the Weierstrass transform is a byproduct of the heat equation, it turns out that the same applies on a manifold - even if it initially shocks our expectations.
Comment: I think everything is starting to be a bit clearer now!


GFCI not working. Other receptacles do

Question: I wired up 4 new double gang boxes for a fish room I'm building. On the first double gang box in the fish room I tied into an existing outlet on the same wall that faces opposite for the room on the other side of the wall. I then wired the outlet that shares the double gang box with the gfci. I made sure everything was wired correctly. (Line and load terminals). And then continued the wiring for the next 6 outlets. With the breaker back on the gfci led light is on but the gfci outlet doesn't work but all the other outlets down the line do work. I tried resetting the the gfci, installing a different gfci, and double checked all the wiring. What would be causing this?
Comment: We'll probably need a wiring diagram or clear photos. It's hard to diagnose circuitry with what we have to work with here. Your assertion that "everything was wired correctly" is contradicted by the evidence.
Comment: When you trip the GFCI (test) do the the six outlets downstream shutdown as they should?
Answer: Move all wires to LINE
Placing any wires on LOAD is incorrect unless you have a very specific reason to do that.
"I have more wires to attach and don't know where else to put them" is not a specific reason.
If the GFCI fails with all wires on LINE, then the GFCI is defective.
If you have a specific reason to use LOAD, then attach the LINE wires first, stop and checkpoint your work, assure that the GFCI works in all respects.   Then attach LOAD.
Answer: So are you saying you put a GFCI outlet on a GFCI protected branch circuit?
Have you tried pressing the test and reset on the new outlet? With some brands of GFCI's they need both the test and reset to be cycled to activate them after losing power or for the first time install this could be a problem if you have this type as each time you hit the test it may trip the breakers GFCI function if you have a GFCI breaker.
If the outlet is the only GFCI
At a minimum press the test then reset and it may work.

GFCI not working. Other receptacles do


New Dalaran Quest Line

Question: What is the name of the quest that takes you to New Dalaran in WoW? Or who do I talk to in WoW to get to New Dalaran? I have a level 100 Hunter that has never been to the Broken Isles or Dalaran. I am desperately trying to get him there. TY in advance for your help.
Comment: Btw.. if you completed the quest chain at least once you can skip it with your other characters and go to Broken Shore's Dalaran right away.
Answer: You have to complete a series of quests to witness the dalaran moving from "icecrown to Deadwind pass then finally to broken island".
The first quest is named "The legion return" regardless of which faction you are in (alliance vs horde). The link below will have more step by step instructions.
Source: http://www.wowhead.com/guides/starting-legion-questing#broken-shore

New Dalaran Quest Line


NSPredicate with condition based on recursive relationship - Swift - Core Data

Question: I am using Core Data and I have a basic folder structure represented. Each item (file/folder) is a row in the table. Each item has a name property and also an optional relationship which points to the item which is its parent. I am trying to write a function which takes in an array of strings representing a path (e.g. ["myFolder", "mySubfolder", "mySubSubfolder", "myFile"]) and returns the item which is found at that path. In English, what I would like to ask Core Data is "give me all items whose name is myFile, whose parent's name is mySubSubfolder, whose grandparent's name is mySubfolder, and whose great grandparent's name is myFolder". The much easier way to describe this in words is to define a condition called item(at: path) which says to Core Data "give me all items whose name is path.last and whose parent satisfies item(at: path.dropLast())". I have hope in my heart that there is a fancy feature of predicates which makes this possible, but I am new enough to them that I am having trouble googling my way to an answer.
Answer: I like to use strongly-typed methods where possible instead of constructing and parsing format strings at runtime.
import Foundation

func predicateMatchingPath(_ path: [String]) -> NSPredicate {
    var path = path
    guard let last = path.popLast() else {
        return NSPredicate(value: false)
    }

    var ancestorKeyPath = ""
    let nameSuffix = "name"
    var predicates = [NSPredicate]()

    predicates.append(NSComparisonPredicate(
        leftExpression: NSExpression(forKeyPath: ancestorKeyPath + nameSuffix),
        rightExpression: NSExpression(forConstantValue: last),
        modifier: .direct, type: .equalTo, options: []))

    while let anscestor = path.popLast() {
        ancestorKeyPath.append("parent.")
        predicates.append(NSComparisonPredicate(
            leftExpression: NSExpression(forKeyPath: ancestorKeyPath + nameSuffix),
            rightExpression: NSExpression(forConstantValue: anscestor),
            modifier: .direct, type: .equalTo, options: []))
    }

    // Make sure the most distant ancestor is a root.
    predicates.append(NSComparisonPredicate(
        leftExpression: NSExpression(forKeyPath: ancestorKeyPath + "parent"),
        rightExpression: NSExpression(forConstantValue: nil),
        modifier: .direct, type: .equalTo, options: []))

    return NSCompoundPredicate(andPredicateWithSubpredicates: predicates)
}

print(predicateMatchingPath(["myFolder", "mySubfolder", "mySubSubfolder", "myFile"]))

// Output:
name == "myFile" AND parent.name == "mySubSubfolder" AND parent.parent.name == "mySubfolder" AND parent.parent.parent.name == "myFolder" AND parent.parent.parent.parent == nil

Comment: I understand the benefits of utilizing the type system, but in this case the massive amount of extra code doesn't seem worth it. Are there tangible benefits to your method?
Answer: Ok actually I think I figured it out. Haven't actually tested it yet but conceptually it seems right. Here is the code which creates the proper predicate string:
var predicateString = ""
var i = 0
for pathComponent in path.reversed() {
    predicateString += "name == \(pathComponent) && parent"
    for _ in 0 ..< i {
        predicateString += ".parent"
    }
    i += 1
    guard i != path.count else { continue }
    predicateString += "."
}
predicateString += " == nil"


How to setup Yahoo messenger in Empathy?

Question: After upgrading to 11.10, Empathy is not connecting to Yahoo Messenger. What are the new setup steps?
Answer: I can't vouch for Yahoo, because I don't have an account and don't wish to set one up, but on opening empathy it brings you a setup window.  Go to the dash and type in empathy. Just tried it with gmail and facebook, both work.  If you skipped this, you can try again from Edit>Accounts.  If you already made one and would like to add your yahoo, go to Edit>Accounts and click on the "plus" at the bottom left, and select "yahoo" in the dropdown, then fill out your info.
Hope this helps.
Answer: Easy without too much trouble.

Open Empathy. either in the Dash or in the icon above for the Chat.
If no accounts are created the account creation will appear. If there is an already existing account for any of the other chat services just press F4 to make the Account Window appear.
Click on the ADD Button.
In the Protocol List (The first option before inserting your user and password select Yahoo! (If you use the Japan version select Yahoo! Japan)
Insert ONLY the username and you password. The part about @yahoo.com is not needed.
An example is shown here:

Click APPLY button and done.

NOTE: The above switch that says On is if you want the account to be activated or not. Just in case you have several accounts.


Excel VBA Run Time Error '424' object required

Question: I am totally new in VBA and coding in general, am trying to get data from cells from the same workbook (get framework path ...) and then to start application (QTP) and run tests.
I am getting this error when trying to get values entered in excel cells:
Run Time Error '424' object required

I believe I am missing some basic rules but I appreciate your help.  Please see below the part of code in question:
Option Explicit

Private Sub RunTest_Click()

    Dim envFrmwrkPath As Range
    Dim ApplicationName As Range
    Dim TestIterationName As Range
    'Dim wb As Workbook
    'Dim Batch1 As Worksheets
    Dim objEnvVarXML, objfso, app As Object
    Dim i, Msgarea

    Set envFrmwrkPath = ActiveSheet.Range("D6").Value ' error displayed here
    Set ApplicationName = ActiveSheet.Range("D4").Value
    Set TestIterationName = ActiveSheet.Range("D8").Value

Answer: The first code line, Option Explicit means (in simple terms) that all of your variables have to be explicitly declared by Dim statements. They can be any type, including object, integer, string, or even a variant.
This line: Dim envFrmwrkPath As Range is declaring the variable envFrmwrkPath of type Range.  This means that you can only set it to a range.
This line: Set envFrmwrkPath = ActiveSheet.Range("D6").Value is attempting to set the Range type variable to a specific Value that is in cell D6.  This could be a integer or a string for example (depends on what you have in that cell) but it's not a range.
I'm assuming you want the value stored in a variable. Try something like this:
Dim MyVariableName As Integer
MyVariableName = ActiveSheet.Range("D6").Value

This assumes you have a number (like 5) in cell D6.  Now your variable will have the value.
For simplicity sake of learning, you can remove or comment out the Option Explicit line and VBA will try to determine the type of variables at run time.

Try this to get through this part of your code
Dim envFrmwrkPath As String
Dim ApplicationName As String
Dim TestIterationName As String

Comment: Really thank you for your quick reply,

i posted my question after trying all ways i found: Used/Unused Option Explicit ...tried other expressions; now by using your suggestion; am getting: Run Time Error '13' type mismatch ...

well, envFrmwrkPath is a path to the QTP framework entered in the excel cell by the user; i want to get this path then get other reusable files/folders...

i will add my excel my file if this could help...
Comment: If the cell contains a "path" it will actually be treated like a String.  Adding the file will be helpful.  Just edit your original question and include a link to your file.
Comment: yes i tried with String  and was ok, getting other errors dealing with QTP now. Thank you again for your help
Answer: Simply remove the .value from your code.
Set envFrmwrkPath = ActiveSheet.Range("D6").Value

instead of this, use:
Set envFrmwrkPath = ActiveSheet.Range("D6")

Answer: You have two options,
-If you want the value:
Dim MyValue as Variant ' or string/date/long/...
MyValue = ThisWorkbook.Sheets(1).Range("A1").Value

-if you want the cell object:
Dim oCell as Range  ' or object (but then you'll miss out on intellisense), and both can also contain more than one cell.
Set oCell = ThisWorkbook.Sheets(1).Range("A1")

Answer: Private Sub CommandButton1_Click()

    Workbooks("Textfile_Receiving").Sheets("menu").Range("g1").Value = PROV.Text
    Workbooks("Textfile_Receiving").Sheets("menu").Range("g2").Value = MUN.Text
    Workbooks("Textfile_Receiving").Sheets("menu").Range("g3").Value = CAT.Text
    Workbooks("Textfile_Receiving").Sheets("menu").Range("g4").Value = Label5.Caption

    Me.Hide

    Run "filename"

End Sub

Private Sub MUN_Change()
    Dim r As Integer
    r = 2

    While Range("m" & CStr(r)).Value <> ""
        If Range("m" & CStr(r)).Value = MUN.Text Then
        Label5.Caption = Range("n" & CStr(r)).Value
        End If
        r = r + 1
    Wend

End Sub

Private Sub PROV_Change()
    If PROV.Text = "LAGUNA" Then
        MUN.Text = ""
        MUN.RowSource = "Menu!M26:M56"
    ElseIf PROV.Text = "CAVITE" Then
        MUN.Text = ""
        MUN.RowSource = "Menu!M2:M25"
    ElseIf PROV.Text = "QUEZON" Then
        MUN.Text = ""
        MUN.RowSource = "Menu!M57:M97"
    End If
End Sub


Site map for assets

Question: I'm using the sitemap.xml plugin to generate a site map. This works for entries, but doesn't seem to allow the indexing of assets (PDFs in particular). Is there a way to create a site map of an asset directory dynamically, or through a dedicated entry that will create one?
Answer: You can manually create a dynamic sitemap with a Craft assets query, using any of the search parameters. https://craftcms.com/docs/3.x/assets.html#search

Site map for assets


Are you allowed to use another company's logo for a graphic design project?

Question: I want to create a booklet about NIKE for a school project & I also want to keep it in my design portfolio. Am I allowed to use the Nike Logo?
Comment: From their website: `"It's your responsibility to determine whether your proposed use is legally permissible. For example, some uses of Nike logos in a textbook may be considered "fair use."`. Since it's a school project and doesn't have any commercial purposes I guess it's ok.
Comment: User552853, post that comment as an answer please. If you can link to the website page you got that would be nice.
Comment: Are you affiliated with Nike by any chance? ;-)
Answer: To formulate an answer:
This is quoted from their website:

"It's your responsibility to determine whether your proposed use is legally permissible. For example, some uses of Nike logos in a textbook may be considered "fair use."

Usually there is nothing wrong with using logos or brand names for school projects or even 'practice' projects for your portfolio as long as you make it really clear it is just a concept for practice and the respected company has nothing to do with it.
If you want to see how other people formulate this, search on popular design sites such as dribbble for 'redesign concept' and you'll find many concepts.
Answer: I think their won't be any problem with that, as it's your school project and you are not going to use to it for your personal benefit.
As your complete project is based on particular brand so some where in the project you will require to use that logo.
Answer: I'm sure it will be fairly obvious that what you used it for was a school project. However, just make sure it's clear when presenting your portfolio for job interviews. You don't want to misrepresent that you did work for the actual company. This won't hurt your portfolio, if the work is good it won't matter if it was a school project, spec job, or actual client.


Randomized and Deterministic Communication Complexity of a function

Question: I have a problem I'm trying to answer for my homework. The question is:
Let $p$ be a prime number and let $GF(p)$ denote the finite field of size $p$. Suppose that A has input $x∈GF(p)$ encoded with $⌈log2p⌉$ bits and B has input $y∈GF(p)$ encoded with $⌈log2p⌉$ bits. Let $f:GF(p)×GF(p)→\{0,1\}$ be the function defined as
$$
f(x,y)=
\begin{cases}
0& \text{if}& x+y+xy=0\\
1& \text{if}& x+y+xy≠0
\end{cases}
$$
for all $x,y∈GF(p)$. Show that the randomized communication complexity of $f$ is $O(log\text{ } log\text{ } p)$ bits. Can you prove a lower bound on the deterministic communication complexity of $f$?
I've been thinking about using a random element $r∈GF(p)$ and make A calculate $f$ using $x$ and $r$ and sending the answer $r$ to B, but this doesn't seem to work as there are no general trend using such an protocol. For example that when A and B get the same answer, the function is $0$ or if they get different answers, the function is $1$.
Anyone have any idea how this protocol can look like? For example what kind of random input should be used?
Answer: Hint: The condition $x + y + xy = 0$ is equivalent to the condition $1 + x + y + xy = 1$, i.e. $(1 + x)(1 + y) = 1$, or in other words,
$$
(1+x)^{-1} = 1+y.
$$


Bending Moment Doubt

Question: I don't understand how bending moment is being calculated in the problem mentioned in the above link. I understand the parts after that i.e. calculating elastic potential and partial derivatives but I am just not able to understand the bending moment part. I would be glad to receive some responses on this.
Comment: Hello *Engineering*! I migrated the question here because I thought it is better suited for your site. If you have any questions or comments about the move, please drop me a line in [Robotics Chat](https://chat.stackexchange.com/?tab=site&host=robotics.stackexchange.com)!
Comment: Well, show some effort in what you have attempted and people may look at it and offer comments.
Comment: Thank you for your input. Actually, solution is already there. But I dont get it how in this numerical have they calculated bending moment.
Comment: @MechNovice - The answer is poorly labeled, which makes it difficult to read/interpret. For example, what is $M(x)$? Which $M$? Which $x$? When it gives $M_1$, what does that mean?
Answer: When you constrain a beam end to point in the same direction as the clamped end (which is the case with the lower beams), then you have to apply a moment equal to $Ql$ (where $Q$ is the end load and $l$ is the length) to maintain this angle. You'll note that this results in an end-moment magnitude of $Ql$ at each end, which produces symmetric curvature.
In this case, though, $Q_1$ is split between two beams, so the applied end moment for each is $Q_1l_1/2$, and the moment along each is $-Q_1x+Q_1l_1/2$.
No such end moment is needed in the free beam on top, so the moment along that beam is simply $-Q_2x$.
Is this what you're asking about?
Comment: Because counterclockwise moments are taken as positive. This is arbitrary; you'll get the same results if clockwise moments are taken as positive (corresponding to $M(x)=Q_1x-Q_1l_1/2$).
Comment: Yes, exactly that. But why do we need - before Q1x ?

Bending Moment Doubt


Is there something similar to Bernoulli effect with electricity?

Question: There are many parallels between fluid dynamics and electricity. Is there a thing similar to a Bernoulli effect with electricity? For example, would you see a decrease in voltage as the conductor narrows, and an increase as it widens?
Answer: No, I don't think so. Electrons move differently through conductors than fluids move through a given volume, you cannot apply Bernoulli's principle.
In fact, a constriction in a conductor leads to an additional spreading resistance and a wider conductor of the same material will have a smaller resistance.
Answer: When a body moves through space filled with air, then higher pressure is created in front of it, while lower pressure/depressure behind it. The higher pressure is plus, the lower pressure is minus. I use to call this a "principle of an arrow" (− >———> +).

The greater the velocity of the body is, the stronger is the plus in front of it as well as the minus behind it. This principle can be found in many things, among others also in the so-called "Bernoulli's principle".
What is "Bernoulli's principle" in its basic form? The picture below shows it. The water flows through a wider pipe and then through a narrower pipe. The velocity of the water increases in the narrower pipe. As a result, the water column over it is lower than over the wider pipe.

Why is that so? The water-columns over the pipes could be imagined as side-tails of the water-body. Since the velocity of the water is greater in the narrower pipe, a stronger minus (i.e. stronger depressure) appears in its tail than in the tail of the wider pipe, thus the air-pressure from above lowers the water column over the narrower pipe more.
At the same time a stronger plus (i.e. higher pressure) appears at the front part of the narrower pipe. Everyone knows that the water-jet that comes out of a pipe will reach farther if we narrow the pipe. That happens because higher pressure occurs in the front part.
So, higher pressure at the plus-side (the front-side), lower pressure at the minus- side (the back-side).
The principle of an arrow can also be seen with light. The archetype of this pattern (≈ principle) is the flame of a candle or a cigarette lighter. A violet-blue color appears on the back and a yellow-red color on the front of this fire-arrow. (The violet/blue/cyan are minus-colors, the yellow/orange/red are plus-colors. In the past they have been called cold and warm colors, but now I additionally call them minus and plus-colors.)

(image borrowed from www.pixabay.com, the arrow is added by me)
And this pattern (i.e. principle) can be found wherever colors appear. Look at, for example, these colors obtained from a light source (it is in the middle) with the help of a diffraction grating (image borrowed from www.except.nl . The arrows are added by me.).

A manifestation of the Bernoulli's principle can be seen also with another fluid, and that is electricity. If we make a series connection of two wires of same metal, but of different cross-sectional areas, place them on a table in straight south-north direction, under each piece place a compass (the compasses are identical) and then connect this assembly to a battery, we will notice that the deflections of the needles are different. The magnetic needle under the thinner wire makes greater deflection than the needle under the thicker wire (more about this you can find here https://newtheories.info).
Comment: You explain bernouilli by saying the difference in pressure can be related to the difference in the pressure of the *tails* of 2 different arrows. Why in the case of bernouilly do you explain using the tails and not the heads of the arrows ?
Comment: When the water moves through a pipe like in the image above, you can imagine the water as one water body which has only one head (where the water goes out) and two tails (like an octopus, lol). Since in the narrower part of the pipe the water moves faster, the pressure in this tail is lower. I don't know if I have guessed what you mean in your question, but ask me again if I have not.
Comment: I can see heads and tails everywhere in that analogy. You , however cherry pick the tails to explain the difference in pressure. If you chose the heads the pressure differential would be opposite of reality.
Comment: by the way do you have a source for the compass needle deviation being dependent on the wire diameter ?
Comment: It is not about cherry-picking, but about a principle. I am looking to find the principle in any fluid, including the light. In this example with the water there is only one "head", so you cannot speak of "heads". I must think how it will look like with many "heads" and many "tails".
The source for the deflections of the magnetic needles is my book https://newtheories.info, where you can find experimental proves and evidence for a completely new explanation of the electric current, including the magnetic deflection.


Spotlight not working with Netgear ReadyNAS

Question: I am unable to search AFP shares on a netgear NAS device using spotlight. Spotlight reverts to the default local hard drive. "Shared" is not user selectable. The NAS is using the latest Netgear OS V6. The unit is new and installed 10/2016.
Can Spotlight be used to search NAS shares, or is there another application that will resolve this issue?
Thanks
Answer: Try looking into this Netgear KB article https://kb.netgear.com/000045492/ReadyNAS-OS-6-8-File-Search

Enabling File Search
To enable File Search on your ReadyNAS,

Click System > Settings.
Under Services, click File Search.
Check the Enabled box, then click Apply.

File Search can also be enabled from the System > Overview screen.

File Search via Finder on macOS
If you use macOS, File Search integrates with Spotlight on SMB and AFP connections to ReadyNAS shares. If your share is set to be indexed and is mounted on your macOS, Spotlight will not have to use additional resources to scan the share. NETGEAR recommends using SMB instead of AFP and enabling .


Is it possible to tag friends in video with graph api?

Question: I haven't find anything related. Might be i would have searched wrongly.
I want to tag friends in video.
How do i do that using graph api in facebook?
Comment: Have you Googled `tag friends in video with graph api`? I see some promising results, check them out
Comment: ok. it seems we cant tag friends in video with graph api. Thanks for the keywords.
Answer: It is possible to tag friends in a video, but it's just not in the documentation. I've searched quite some time myself to no avail, but then tried a couple of things and got it working.
The two permissions you need are publish_actions and user_videos.
It works quite similar to tagging photos, which is done with the /{photo_id}/tags endpoint. Although the video equivalent /{video_id}/tags is nowhere to be found in the documenation, it apparently does exist.
With photos you can supply the parameter tags as an array. Video tagging only supports one tag at a time with the tag_uid parameter. So if you want to tag multiple people, you'll have to do multiple posts.
This is the final working solution with the PHP SDK:
$facebook = new Facebook(array('[YOUR_APP_ID]', '[YOUR_APP_SECRET]'));

$response = $facebook->api('/me/videos', 'POST', array(
    'access_token' => $facebook->getAccessToken(),
    'title'        => '[YOUR_TITLE]',
    'description'  => '[YOUR_DESCRIPTION]',
    'source'       => '@' . realpath('[PATH_TO_YOUR_VIDEO')
));

$facebook->api('/' . $response['id'] . '/tags', 'POST', array(
    'access_token' => $facebook->getAccessToken(),
    'tag_uid'      => '[FRIENDS_FACEBOOK_ID]'
));

Comment: Note that this worked for V1.0 of the Facebook API. This probably has changed (at least the syntax) as of V2.0 (and up). Not to mention the app review you need to pass to use these extended permissions.
Answer: Read this
https://developers.facebook.com/docs/reference/api/post/
The post supports adding message tags.
Under the message_tags column

object containing fields whose names are the indexes to where objects are mentioned in the message field; each field in turn is an array containing an object with id, name, offset, and length fields, where length is the length, within the message field, of the object mentioned


Way to look up a CEO's salary at particular companies?

Question: Does anyone know a good resource I can use to search for companies and then find out the salaries of it's CEO? I'm trying to find out what CEOs at small healthcare services and technology companies in Dallas make.
Any help would be greatly appreciated!
Comment: I'm voting to close this question as off-topic because research on CEO's salary has nothing to do with navigating TWP.
Comment: What is your goal in doing this research?
Comment: @JoeStrazzere https://workplace.meta.stackexchange.com/questions/370/faq-addendum-typical-salary-hourly-rates-are-off-topic
Comment: @JoeStrazzere IMO that is so razor thin its almost non existent.
Comment: @JoeStrazzere The user **can** update the question after it's closed, right?
Answer:
Does anyone know a good resource I can use to search for companies and
  then find out the salary of it's CEO?

A good Google search can determine the names of such companies.
Compensation of executives for publicly-traded companies are listed at Morningstar.com

Search for and find the company.
Click the stock ticker.
Select the Executives tab.
Comment: Voting for this because even though the question is clearly off topic, it does give the OP an answer that works.
Answer: Google maybe.  Seriously, if it is a public company then they must file with the SEC in the US.  If you are generically looking for comparison purposes that will require leg work to know the companies specifically rather than generally.
Most salary sites like Glassdoor.com use crowdsourced data and I just don't see most CEOs volunteering that information.
So back to my opening statement.  Just google the name of the company and CEO salary and if it is publicly available you should get plenty of links.  If it is not, then you really have no way of knowing.
For example, searching for the CEO Salary for Aetna, google gives it to you right in the search results.
On the other hand, searching for private company Cook Medical, and you find very little.  BTW, the CEO is Carl Cook,#65 on the Forbes 400 in 2017.  No mention of Salary anywhere, but he does own the company his father founded.
Answer: Public companies are easy so I assume you are asking about a private company. You can't get the specific salary of a private individual without having someone who knows the answer tell you. If you want to know what range a CEO in a given industry and location should get paid then here are a few ideas.

Ask someone who would know. People who you could ask are c-level executives at such companies or members of the board at such companies.
If you are looking to get such a job its worth consulting with a executive talent search firm to get their advice on the market. This could be tricky as they will want to be the agent of record when you get haired.
Companies such as Radford Surveys and Culpepper provide sell detailed anonymized compensation data for many roles, industries and market places.

Keep in mind that a large proportion of a CEO compensation may be based on company performance therefore salary numbers may not be very meaningful on their own and total compensation can vary a lot. Also, many CEOs of privately held companies may also own a significant stake in the company and therefore may only pay themselves a modest salary to live on.


Can an evacuated metal sphere be made such that it can float in the air?

Question: Is it possible to construct an evacuated metal sphere which can float in the air without imploding?
Answer: I doubt if a vacuum metal sphere can be constructed that is light enough to have an overall density less than that of air. One of the lightest and strongest metals is beryllium ($d=1.85$) but since as the sphere has to be thin enough to save weight, it's unlikely to be able to withstand the outside pressure of $1\:\mathrm{bar}$.
But a large, thin beryllium sphere filled with hydrogen (at atmospheric pressure) could certainly be made to float in air, if you get the dimensions right.
Comment: Gotcha, I think,  graphene is full of holes.....?
Comment: @Countto10-Hey, I see only now that you wrote this. I don't think I gotcha, I think, reading your comment...
Answer: The answer to "is it possible to build?" is "Not with current technology/materials".
However, in theory, this is of course possible.
Some years ago I did the math to reach an expression that relates thickness of a sphere shell and the density of its material, with the minimum diameter that would allow it to float in air. However, I tried some finite element method simulations with some well known materials, and the conclusion was clearly no (at least considering a spheric shell).
I can post the equation later when get home, but it's pretty straightforward to get there. At the time, I remember I tried considering metallic foams (such as aluminum foam) with a density of ~0.3 g/cm3, with a thickness of only a few centimeters, and the minimum diameter was something between 50 and 100 meters.
Comment: @cinico-But what happens if you make the radius, R, enormous? The surface area of the sphere varies with Rexp2, while the volume varies with Rexp3. Don't you reach, because of this, a point, while increasing R, where the uplifting force is big enough to let the sphere float and the thickness of the metal is big enough to withstand the outside air pressure?
Answer: It is not possible with a homogeneous spherical shell made of currently available materials (please see our US patent application 20070001053 at https://www.google.com/patents/US20070001053 ). The main failure mode is buckling. However, our finite element analysis (please see the same application) showed that it is possible using a spherical (inhomogeneous) sandwich structure, e.g., if the face sheets are made of beryllium and the core is made of commercially available aluminum honeycomb. To avoid the so called intracell buckling, the diameter of the shell made of these materials should be at least 3 m. This requirement can be relaxed using a different core.
Comment: @descheleschilder: The scaling of the problem is quite different from that for helium balloons. If you look at the formulas for buckling (say, those in our application), you'll see that if you multiply all linear dimensions by the same number, the conditions for buckling will not change. You cannot increase all dimensions but the thickness of the shell, as the critical pressure for buckling is proportional to the squared ratio of the thickness and the radius.
Answer: There's a nice dimensional argument that says that you can't just consider very large spheres as a solution to this.
Consider an evacuated sphere of radius $R$, and consider cutting it in half.  The force across this cut goes as $R^2$ obviously.  The length of the cut goes only as $R$ though, so in order to keep the stress constant (and below the stress at which the material of the sphere fails), the thickness of the material must go like $R$ as the sphere becomes large.
The total volume of the material the sphere is made of therefore goes like $R^2\times R$, where the first term comes from the area and the second the thickness, as the sphere becomes large.  So the mass of the sphere goes like $R^3$.
But the volume of the sphere, and thus the total lift, also goes like $R^3$.  So, above a certain point if the sphere does not have enough lift then you can't fix this by making it larger.
Note: in practice buckling will be a much more serious problem as another reply said: I'm just putting this here because the existence of a bound is interesting, and it's too long to be a comment.
Comment: @ttb-Nice one! In my answer, I arrived at the R-cubed dependence for the mass of the sphere in a much more difficult way!
Answer: It has been done, but with the help of helium inside the metal to aid in the displacement, when the Mythbusters flew a lead balloon. I know that the question is about an evacuated sphere, and not a balloon, but the difference is, from the point of view of physics, a question of engineering, not science.
Answer: The weight of the air with a volume equal to the volume of the sphere, where the radius R reaches the inner side of the sphere is:
$\frac4 3\pi R^3\rho_{air}$
The weight of the metal sphere is:
$\frac {4} {3}\pi\rho_{metal} ((R+T)^3-R^3)=\frac 4 3\pi\rho_{metal}(3R^2T+3RT^2+T^3) $
Now
$ P_{crit}= (\frac T R)^2 $, so $T=\sqrt P_{crit}R$  (see the comment above, where T is the thickness of the sphere)
Substituting this in the previous expression gives the weight of the metal sphere:
$\frac4 3\pi\rho_{metal}R^3(3\sqrt(P_{crit})+3P_{crit}+P_{crit}\sqrt(P_{crit}))$
So if we can find a metal (which we haven't (yet)) for which or the density, or the critical pressure, or both are lower than is the case in present metals, we can let the sphere float in the air.
Comment: This can be calculated with "[Barlow's formula](https://en.wikipedia.org/wiki/Barlow%27s_formula)", which has been used for 150 years to calculate the strength of pressure vessels.


How do I add another composition

Question: For my music class, we had to make a minor melody and a major melody. For the final project, we have to put these together in ABA format, so either major-minor-major or minor-major-minor. In noteflight, I made my major melody, so I need to switch to my minor, but I don't know how. How do I add another melody
Comment: Are you asking about how to use NoteFlight or about how to combine to major and minor melodies conceptually?
Comment: Voting to close as unclear. Are you looking for strategies about how to modulate? Please edit to explain what exactly "adding another melody" means to you, and what kind of help you're looking for.
Comment: How to use noteflight. I have a minor melody. I just don't know how to put it in noteflight
Comment: Do you just want to know how to change key signatures in Noteflight?
Answer: Two simple, well-used ways to consider. Either use relative keys or parallel keys. As in, if the 1st movement was in C maj., the middle part would be in A minor (relative) or, if 1st movement was in C maj., the middle part would be in C minor (parallel).
With each, the sonic change is not catastrophic - it flows nicely - and getting back to replaying the A section again will sound quite smooth.
There are, of course, other options, but those have been tried and tested over hundreds of years, so obviously work well!
Comment: I already have my minor melody. I just don't know to add it under my major in noteflight
Comment: @Matthew - exact opposite to what the question says! However, simply swap the ideas over. Or change the key for the middle section to reflect those ideas. Or is it use of Noteflight that's the problem? Not asked in the question. In which case, please clarify.

How do I add another composition


Update SharePoint List from excel

Question: I have to update sharepoint 2013 list with data from excel sheets. Here, 2 excel sheets are being used. I need to update 2 columns of SharePoint list taking column A from one excel book and the other column from another excel book. My client doesn't allow visual studio coding. Is this possible? or atleast updating SharePoint list by taking only selective data (only 2 columns from entire data) from 1 excel book.
Comment: You can use CSOM/JSOM in a script Editor web part & to read excel & update SPList in your site.
Comment: Another approach is to use powershell for loading the excel spreadsheet contents into a variable ,then access site,spweb, SPList objects & insert the above spreadsheet contents-variable into the SPList  items. Ref.  https://podlisk.wordpress.com/2011/11/20/import-excel-spreadsheet-into-powershell/
Answer: The ability to synchronize the data between a table and a list in Microsoft Windows SharePoint Services is deprecated.
for more info checkout msdn article MSDN link here!

Update SharePoint List from excel


addPostFrameCallback runs constantly when I only want it to run once

Question: In my application I have a few values that on startup I want to be able to refresh and reload from SharedPreferences, and make some adjustments to in the process if necessary. I'm currently facing the issue of actually grabbing these values consistently on startup however. Originally I had all these functions in my initState() function thinking this would make the values always reload on boot, but this behaviour doesn't seem to be consistent.

My get functions are all based on a variation of this:

Then I tried using addPostFrameCallback where I did the following:

This last implementation seems to run constantly every half second for some reason, and I can't exactly figure out why this is happening. Is there any solution to this, or any other solution I could try?
Comment: Hey, you are calling setState inside build method, so build method is rebuild again and again in infinite loop.
Answer: as you are calling setState inside build method, so build method is rendering again and again in infinite loop. if you need to do setState after screen open you can override didChangeDependencies method like below -
<code>@override
  void didChangeDependencies() {
    super.didChangeDependencies();
    WidgetsBinding.instance?.addPostFrameCallback((_) async {
      setState(() {
        // Write your code here
      });
    });
  }
</code>


How many times can the king and its surrounding squares be attacked?

Question: In a legal position, how many times can the king and its surrounding squares be attacked? There is a total of 9 possible squares to be attacked-the square the king is on and the eight squares surrounding it. The final tally is the added total of the number of times each of the nine squares is attacked.
Comment: Are you interested in *legal* positions, i.e. reachable from the starting position? Knights can be used to make more attacks than the 8 squares around the king.
Comment: Same with bishop, queen and rook. A diagonal attack on front and side square, as an example.
Answer: As @Brian Towers anticipated, here is 55 attacks.
<code>[FEN "B7/1R2n3/3Q1Q2/2Q3Q1/2N1k1K1/1R4Q1/1BNQNQN1/8 w - - 0 1"]
[startply "2"]

1. Rxe7#
</code>
But given the loose ruleset, both sides can attack; I found 83.
<code>[FEN "8/3Nnn2/1bnQqQb1/1r4Q1/1nq1k1qN/1R4Q1/1BNQqQB1/2K1Nn2 w - - 0 1"]
</code>
Proof of legality: 1. a4 b5 2. h4 g5 3. c4 d5 4. f4 e5 5. cxd5 bxa4 6. fxe5 g4 7. Rh3 gxh3 8. h5 Nf6 9. h6 Rg8 10. e6 Rg7 11. hxg7
Just for fun, here is an illegal and one-sided 88 attacks. Any piece swap will do for both colors.
<code>[FEN "8/2NNNNN1/1NNQQQNN/1NQ3QN/1NQ1K1QN/1NQ3QN/1NNQQQNN/2NNNNN1 w - - 0 1"]
</code>
Answer: There seems to be some confusion understanding the problem, so I will post an answer, probably not the maximum, and then somebody better than me can post the best solution.
I've promoted 7 pawns to queens and one pawn to a knight.
<code>[fen "R7/7b/3qnq2/2q3q1/2n1K1n1/2q3q1/3q1q3/7k w - - 0 1"]
</code>
Each of the 8 queens attacks 5 squares around the king = 40
Each of the 3 knight attacks 2 squares around the king = 6
The bishop attacks the king and 1 square around the king = 2
Total = 48


What does the GCC function suffix .constprop mean?

Question: Looking at the disassembly of a C++ program, I see functions like _Z41__static_initialization_and_destruction_0ii.constprop.221. What does the constprop mean in this case? It appears to be similar in appearance to the isra suffix (and is sometimes combined, e.g. .isra.124.constprop.226), but it means something else.
Answer: From source code comments I've read - they indicate functions which have been cloned during optimization.
EDIT: This may be the answer, maybe not.

Simple constant propagation
This file implements constant propagation and merging. It looks for instructions involving only constant operands and replaces them with a constant value instead of an instruction. For example:
add i32 1, 2

becomes
i32 3

NOTE: this pass has a habit of making definitions be dead. It is a good idea to to run a DIE (Dead Instruction Elimination) pass sometime after running this pass.

SOURCE
Comment: Always fun to resurrect an old thread. :) I'm not a gcc dev, but I will add a few things to this. If you have a static function and you happen to call it with a certain constant (or constants) for one or some of its parameter(s), gcc can create an optimized version just for that combination of parameter value(s). This phenomena can be exploited in very interesting ways.
Comment: @DanielSantos Thanks, this helped me figure out why my `always_inline` function was not inlined, but `call`-ed.
Comment: @YoYoYonnY Depending upon what you're trying to do, this can be a problem and is the reason the `flatten` function attribute was added. If you defined the *calling* function with this attribute, it should force the inlining (of everything that it can). I *think* that the reason it isn't doing it is because the compiler thinks that the constant-propagated version is better. I had this discussion with a gcc dev some time back, but I can't remember all of the nuances.
Comment: Cool. It looks like it might be interprocedure constant propagation since it creates multiple versions of the functions. Though the document is for LLVM, I guess a similar thing must apply to GCC.
Comment: Do you happen to know what optimization is being performed?


Brakes to the floor HELP!

Question: Please help, earlier this morning while driving from work, an young man was driving crazy on the freeway. He spin out of control hit 2 cars, then hit the semi-truck in front of me. Mind you we are all doing 70mph. I had to slam down on my brakes to stop. Now my brake symbol is on ❕and my brakes are to the floor. Please give me an idea on what may be the problem. I replace my brakes, rotors all around last summer. Please help. Thank you!
Comment: Are you saying the brake pedal is stuck to the floor even when you are not pressing it.  Is it the same with the engine running and stopped?
Comment: Do you have brake fluid loss?
Comment: Do you have Emergency Brake Assist?
Comment: [Can you provide more information about the vehicle?](http://meta.mechanics.stackexchange.com/a/1474/4152)
Comment: HandyHowie,the brakes are going to the floor I probably blow a brake line or something. I'm taking it to the shop as we speak
Comment: Let us know how they fix it.
Answer: It sounds like you either blew a brake line or possibly a seal on one of your calipers. Regardless, you should NOT drive the car. Have it towed to a reputable service station and have it inspected and fixed. A blown brake line may be inexpensive (a lot of the cost is the labor involved to re-route it through the chassis), a blown caliper seal may require a new (or rebuilt) caliper.
Answer: The brake symbol usually comes on when the level of fluid in the master cylinder is below a certain level.  Usually from a leak.
Your brake system works on hydraulic pressure via brake fluid.  When you depress the brake pedal you are increasing the brake pressure through a system of lines and hoses which go to your calipers.  The calipers squeeze the brake pads against your rotors slowing the car.  It is a relatively simple system and a closed system.
A closed system means that no fluid is lost unless there is a leak.  When a leak occurs fluid could seep out of several places, generally including the master cylinder, brake lines, brake hoses, or your calipers.  When fluid is able to escape air takes its place, so almost certainly you have air in the lines.
The reason the brake pedal will go to the floor with air in the lines, is that air is much less dense than the brake fluid and compresses much easier, which leaves your car with reduced (or nonexistent) braking ability which is very unsafe and should not be driven, because you will continue to lose pressure until this is fixed.
If you plan on fixing it yourself you will need to find the leak, which can be done by examining the places mentioned above and look for brake fluid in any of those places.  Try pumping the brakes rapidly and checking around and under your, tracing the lines starting at the master cylinder all the way to the calipers.  Look for puddles or drips of brake fluid under the car in these areas.
Once the issue is found you will need to replace the part which has failed (obviously), which requires draining your brake fluid and removing the air from the lines by a process known as bleeding the brakes.
A similar situation happened to me recently where I just barely dodged an accident but had to lock up the brakes, shortly there after I had the same problem because my brake hose had failed due to the stress put on it.
TLDR:
Your brake system has low fluid from a leak, find the source of the leak and bleed your brakes or get it towed to a shop and have them fix it.
Answer: @JohnDream has it right, his picture may help to amplify his answer.

As he said this is a closed system with the brake fluid reservoir providing for some small losses, expansion and contracting from temperature, etc. But if the pedal is on the floor, it's very likely there is little to no fluid in the system, or an extreme amount of air.
Just be glad this is all you have to deal with. Sounds like a very scary near miss.

Brakes to the floor HELP!


REST endpoint metadata in java

Question: All
I am looking for some method to show metadata info about RESTful webservice,
e.g. operations, parameters and so on.
Do u know any ?
Answer: One popular solution is to use Atom and AtomPub
Answer: Some rest endpoints support WADL.
WADL to REST is similar as WSDL to JAX-WS (SOAP).
You can find more about wadl at: http://wadl.java.net/ (including specification link).
Jersey (http://jersey.java.net) is a Oracles JSR-311 Reference implementation and it also have some additional features, like automatic WADL generation, which was recently (version 1.9) improved - it includes XSD schema for transmitted types (that can be used for far better client code generation).
In general, if you want to use some standard, please use WADL and don't reinvent the wheel..
Answer: I hear HTML is popular for representing end point meta data. You have link refs, you have forms for payloads, lots of room for english text to explain things, the format is well documented with a well known processing model.
Comment: Do u know any tool to generate this or you have actually meant writing it manually ?
Comment: You would write it manually, or if you actually have some meta data, then you can transform that in to HTML. What format is your meta data in now?
Answer: The jax-doclets package can generate javadoc-like documentation from your JAX-RS or JAXB annotations.
http://www.lunatech-labs.com/open-source/jax-doclets
On our projects we currently generate documentation by hand but we are beginning to evaluate this tool.

REST endpoint metadata in java


Can I play video games online with men?

Question: To be honest.. I started playing fortnite with a few friends online(they are boys). We all are JUST FRIENDS and no haram intentions are involved alhamdulillah. We are a group of four and all of us play together, I never play with any one of them alone. Is that also haram?
Comment: If you are a boy , then it's not a problem. If you are a girl, it shall be permissible as far no wrong things are done or intended( like talking to attract one other , etc, etc)
Comment: @An_Elephant Wrong...
Comment: **Talking with people of the opposing gender should be avoided, unless absolutely necessary.** This is based on multiple verses from the Quran and hadith which amply that conversing with someone of the opposite gender, whether in a group or not, is forbidden.
Answer: As long as there is no haram activities (forbidden things according to Islam), there is no wrong in playing with other people. One thing to make sure is even though there is no haram activities now, you should be sure you will not indulge in haram activities due to this friendship.  For whatever reason, you think it is not allowed, please update the question with your reason so we can know why you think it is not allowed. I will update my answer, when you update the question.
Answer: Playing video games in and of itself is impermissible, so you should refrain from that.
And Allah knows best.

Can I play video games online with men?


Is air resistance affected by both mass and surface area?

Question: If so, which has the biggest impact?
Comment: Related: http://physics.stackexchange.com/questions/133900/what-factors-determine-whether-wind-resistance-will-have-an-important-effect
Answer: What a layman calls "air resistance", a physicist would call drag.  Drag is affected by the area and shape of the solid object, the speed and orientation of the object relative to the fluid, and various properties of the fluid such as its density and kinematic viscosity.  The drag on a solid, rigid object isn't affected by the object's mass.
However, drag is just the portion of the force on the object that's due to the fluid.  The net force on the object will of course be affected by the object's mass, assuming that gravity is one of the forces on the object.
Comment: So air resistance is not a real force and is more like a collective term for the different forces that slow down an object (or act against the motive force/thrust) while traveling through air?
Comment: @user58953 It is a real force, much in the same way that friction (e.g., rubbing your shoe on a carpet) is a real force.  Many parameters go into determining the drag, but it is a single real force.  What RedAct is trying to say, beyond your question, is that drag is not the only force on an object as it travels through a liquid.  If there's gravity, gravity can slow down or accelerate the object depending on direction. But that has nothing to do with drag.
Comment: Air resistance (drag) most certainly is a real force, or rather a collection of forces, all of which are attributable in one way or another to a body moving through a fluid, and all of which oppose this movement.
Comment: I'm not sure what you mean by "not a real force" or "different forces".  Drag is the force acting opposite to the motion of the object relative to the surrounding fluid, that's due to the surrounding fluid.  You can take the total drag to be the sum (integral, really) of the drag on each of a bunch of little pieces of the object's surface, if that's what you mean. But all of the various attributes of the object and the fluid that affect how much the drag is (area, speed, density, viscosity, etc.) are not forces, if that's how you meant that sentence.
Comment: Just to clarify my earlier comment: the drag on a little part of a whole object's surface is different from what the drag would be on that piece of the object alone if it were removed from the object. I didn't mean to imply that drag is additive in that way.


Can you apply wipe-on poly over a varnish?

Question: Can you apply wipe-on poly over a varnished surface without stripping the varnish off? I have kitchen cabinets that were finished with varnish 3 years ago and would like to put a more durable finish like Minwax wipe-on poly.
Answer: Unfortunately "varnish" does not define a specific product.  It is generally a drying oil combined with some sort of film coat, but there are hundreds of things it could be.  Some of these would bond well to polyurethane (the varnish could actually be oil + poly) and some may not.
The only way to know for sure is to do a test in an inconspicuous area.  Even then, problems might not show up for years.
You can increase your chances of getting a good bond by using a coat of shellac, which is known to bond well to almost all finishes, before you apply your poly.
That said, realistically if your cabinets were made in the last 30 years the varnish is probably poly-based.  I'd say you have a better than 50/50 chance of success just applying poly (after a thorough de-greasing and scuff sanding - kitchen cabinets are notorious for getting cooking grease on them).
Answer: Short answer: yes, you can apply wipe-on over previous varnish.
Whether it'll work well in this specific case nobody can say, you'll have to try it and see. But following the basic prep guidelines it'll usually work fine.
It isn't as simple as just wiping on the Minwax product over the existing varnish. In addition to something that's probably obvious, cleaning the surface well beforehand, you must provide a texture for the new varnish to cling to. What this means in practice is washing down every surface you intend to recoat and then lightly sanding or scuffing them — be very thorough doing this and try not to miss any spots even in hard-to-reach areas. But also be careful you don't sand through along edges and particularly at corners.
So:

clean thoroughly;
wait until dry;
scuff or sand thoroughly but carefully;
wipe away every trace of sanding dust;
apply wiping varnish1;
wait for the wiping varnish to get good and hard before the cabinets see much use, perhaps a full week if you can manage it2.

1 Note that it doesn't have to be applied by wiping, you can use a brush or roller if you want although you will probably still want to wipe away some or most of the excess.
2 Full hardness won't be achieved for approminately a month.


Minimization of the squared difference of a generalized quadratic form and a given number

Question: For $i,j\in [n]$, let $\alpha_{ij}\in\mathbb{R}$ be given. Consider the function $F:\mathbb{R}^d\times\cdots\times\mathbb{R}^d\to\mathbb{R}$ defined by
$$
F(x_1,\cdots,x_n) = \sum_{i = 1}^n\sum_{j = 1}^n \alpha_{ij}(x_i,x_j)
$$
where $(x_i,x_j)$ denotes the standard inner product of $x_i$ and $x_j$ in $\mathbb{R}^d$. I call this kind of function a generalized quadratic form since, if $d = 1$, the function is exactly a quadratic form. In fact, letting $A = [\alpha_{ij}]_{n\times n}$ and $S = (A+A^T)/2$, $F(x_1,\cdots,x_n)$ may be written compactly as $F(x_1, \cdots, x_n) = \text{tr}(XSX^T)$, where $X$ is the $d\times n$ matrix formed by putting $x_1,\cdots,x_n$ as its columns. My question is: given a fixed number, say $\alpha\in\mathbb{R}$, how do I solve
$$
\min_{x_1,\cdots,x_n\in\mathbb{R}^d} (F(x_1,\cdots,x_n)-\alpha)^2
$$
and how do I find $x_1,\cdots,x_n$ that achieve the minimum? For my purpose, we may assume $S$ constructed above is positive semi-definite but I am also curious about the general situation. I am wondering whether this problem can be solved by playing with eigenvalues and eigenvectors of $S$. Any useful comments or direction to literature/topics would be appreciated.
Answer: Note that $F'_{x_j}=2\sum_{i=1}^{n}a_{ij}x_i$. In general, $F'=tr(2XS)$. You can use this derivates to find the extreme points of $(F-\alpha)^2$. You need to solve
$$2(-\alpha+\sum_{i=1}^{n}\sum_{j=1}^{n} a_{ij}x_i x_j)(2\sum_{i=1}^{n}a_{ij}x_i)=0\quad\forall j \in 1...n$$
Check this counts, please. Probably, you will need to use the Newton's Method to solve It. In addition, check this related question
Multivariate Quadratic Regression
Comment: Thanks for the response. I think there is no changing $j$ for $2(-\alpha+\sum_{i = 1}^n\sum_{j = 1}^n a_{ij}x_ix_j) = 0$ since $j$ is already in the summation. Also, this equation is a degree 2 polynomial equation. It feels like a codimension 1 algebraic variety and I am not sure how numerics could solve it. I do notice the active field of "polynomial system solving". Maybe I will find some notes and figure something out. Thanks anyway.
Comment: Thanks for the answer. I did try to compute the gradient and set it to zero. It seems that setting $2\sum_{i = 1}^n a_{ij}x_i=0, j = 1, ..., n$ would give me a system of linear equations. But what if I set the first part to zero? How do I solve it?
Comment: you need to find the solutions of $$\nabla (F(x_1, ..., x_n)-\alpha)^2 = 0$$  then I suppose there are many other solutions. You need to solve $$ 2(-\alpha+\sum_{i=1}^{n}\sum_{j=1}^{n} a_{ij}x_i x_j)(2\sum_{i=1}^{n}a_{ij}x_i)=0\quad\forall j \in 1...n $$ rather than $$ 2\sum_{i = 1}^n a_{ij}x_i=0, j = 1, ..., n $$. Try to solve by parts $$ 2(-\alpha+\sum_{i=1}^{n}\sum_{j=1}^{n} a_{ij}x_i x_j) =0 \quad\forall j \in 1...n $$ or $$ (2\sum_{i=1}^{n}a_{ij}x_i)=0\quad\forall j \in 1...n $$. Probably, you need to use numerical methods.
Comment: You can use Newton's Method. For algebric approach, I think that you need to learn grobner basis. I prefer numerical methods.


questions about the ReportServer database

Question: Are questions about the ReportServer database (the SQL Server database that is the brain of an SSRS deployment) appropriate for this site?
Comment: What kind of questions? Admin, tuning, maintenance, etc. yes. Functionality (like, "What is this table for?"), less so but still on topic as part of your duties as a DBA/DBD.
Comment: The particular question that prompted me to ask this one is about how to pull information from the database itself... but it sounds like it'd be ok!  :)
Answer: We have made a decision to include B.I. questions on topics such as reporting into scope for DBA.SE.  Questions about SSRS are certainly welcome here.  I'm pretty sure I've already seen discussion about the SSRS metadata on DBA.SE before, although I can't find it with a quick search.
In short, the answer to your question is that SSRS questions are certainly on topic for this site.  If the question strays a long way into development to the point that reporting is incidental (for example how to front a SSRS report through an IFrame in another application) then it may get migrated to Stackoverflow.
Feel free to ask your question.  The nice folks here at DBA.SE will do our best to answer it, or refer it to somewhere that would be more appropriate if we can't.  If you have any further questions, pop into 'The Heap' chat room on chat.stackexchange.com and ask.
Comment: Agree. Most SSRS questions will fall here, especially setup/config etc