Meaning of "Search Cases with Upcoming Activities" in "My Cases" dashlet

Question: For a case with overdue (not yet completed) scheduled tasks, checking the "Search Cases with Upcoming Activities" in the "My Cases" dashlet correctly displays the next upcoming task which happens to be in the past (overdue). Unchecking this box, however, displays the third-to-last activity, which is as it happens also in the past (overdue) but comes well after the very next (overdue) task shown when this box is checked. My question is what is the function of the dashlet when the "Search Cases with Upcoming Activities" box is unchecked, and why would it show the third-to-last task in the sequence of tasks for my particular ongoing case. Many thanks!
Comment: I think there are others who are working on using SearchKit to provide alternative Case dashboards. just fyi.
Answer: Below is the query it runs, with the relevant parts being
LEFT JOIN civicrm_case_activity ca4
          ON civicrm_case.id = ca4.case_id
LEFT JOIN civicrm_activity t_act
          ON t_act.id = ca4.activity_id
          AND t_act.is_current_revision = 1
      ...
GROUP BY case_id ORDER BY activity_date_time ASC

but this query isn't full-group-by compliant and also I think the GROUP BY is in the wrong place. Also case_id is ambiguous since it could apply to the AS case_id in the select or the civicrm_case_activity.case_id field or the civicrm_case_contact.case_id field.
So it seems like there's something off about the query.
SELECT civicrm_case.id as case_id, civicrm_case.subject as case_subject, civicrm_contact.id as contact_id, civicrm_contact.sort_name as sort_name, civicrm_phone.phone as phone, civicrm_contact.contact_type as contact_type, civicrm_contact.contact_sub_type as contact_sub_type, t_act.activity_type_id as activity_type_id, civicrm_case.case_type_id as case_type_id, civicrm_case.status_id as case_status_id, t_act.status_id as status_id, civicrm_case.start_date as case_start_date, GROUP_CONCAT(DISTINCT IF(case_relationship.contact_id_b = 2, case_relation_type.label_a_b, case_relation_type.label_b_a) SEPARATOR ', ') as case_role, t_act.activity_date_time as activity_date_time, t_act.id as activity_id, case_status.label AS case_status, civicrm_case_type.title AS case_type       FROM civicrm_case
        INNER JOIN civicrm_case_contact ON civicrm_case.id = civicrm_case_contact.case_id
        INNER JOIN civicrm_contact ON civicrm_case_contact.contact_id = civicrm_contact.id
        LEFT JOIN civicrm_case_type ON civicrm_case.case_type_id = civicrm_case_type.id
        LEFT JOIN civicrm_option_group option_group_case_status ON ( option_group_case_status.name = 'case_status' )
        LEFT JOIN civicrm_option_value case_status ON ( civicrm_case.status_id = case_status.value
          AND option_group_case_status.id = case_status.option_group_id )
        LEFT JOIN civicrm_case_activity ca4
          ON civicrm_case.id = ca4.case_id
        LEFT JOIN civicrm_activity t_act
          ON t_act.id = ca4.activity_id
          AND t_act.is_current_revision = 1        LEFT JOIN civicrm_phone
          ON civicrm_phone.contact_id = civicrm_contact.id
            AND civicrm_phone.is_primary = 1
        LEFT JOIN civicrm_relationship case_relationship
          ON ((case_relationship.contact_id_a = civicrm_case_contact.contact_id AND case_relationship.contact_id_b = 2)
          OR (case_relationship.contact_id_b = civicrm_case_contact.contact_id AND case_relationship.contact_id_a = 2))
            AND case_relationship.is_active
            AND case_relationship.case_id = civicrm_case.id
        LEFT JOIN civicrm_relationship_type case_relation_type
          ON case_relation_type.id = case_relationship.relationship_type_id
            AND case_relation_type.id = case_relationship.relationship_type_id WHERE (1)
 AND civicrm_case.is_deleted = 0
 AND civicrm_contact.is_deleted <> 1
 AND (case_relationship.contact_id_b = 2 OR case_relationship.contact_id_a = 2)
 AND case_relationship.is_active
 AND civicrm_case.status_id IN (1,3)
GROUP BY case_id  ORDER BY activity_date_time ASC LIMIT 0, 10


How to calculate a wheel's linear velocity if there is slipping

Question: I am working on a car simulation game and I need to know how to calculate a vehicle's velocity if the gas pedal was floored and the car started accelerating from rest with some slippage in the wheels. So, is the traction force completely gone, or it decreases? And how long will the wheels keep slipping till it rotates again? Given the angular velocity of wheels, mass of car, and both the static and kinetic friction coefficients.
Answer: The traction force isn't completely gone; rather, the coefficient of friction, $\mu$, is that of kinetic rather than static (i.e. rolling) friction.  Typically, the kinetic coefficient of friction is less than the static one.
$$\mu_k < \mu_s$$
The engine is delivering some power $P$ to the wheels.  Rotational power is equal to the torque about the wheel's axle axis, $\tau$, multiplied by the angular velocity, $\omega$.
$$P_r = \tau\omega$$
Torque is equal to the mass moment of inertia multiplied by the angular acceleration.
$$\tau = I\alpha$$
$$P_r = I\alpha\omega$$
As angular velocity increases, assuming constant power, the angular acceleration decreases.  That is, the torque decreases.  Torque is also equal to the cross product of the radius from the axis of rotation to the force being applied.  Here, this is the friction force, $F_f$.
$$\tau = r\times F_f$$
For this setup, we can reasonably assume the radius and friction force are perpendicular, so the product is just $\tau = rF_f$.  Depending on your material, there will be some force that the static (rolling) friction, $F_{f,s}$, can hold based on its coefficient of friction.
$$F_{f,s} = \mu_s N$$
Here, $N$ is the normal force, or the load applied to the wheel in question.
 Above this force value $F_{f,s}$, there will be slipping.  When there is slipping, we will have to use the following equation:
$$F_{f,k} = \mu_k N$$
Hopefully this helps.
Comment: Kinetic friction gives the propulsive power while the wheels are spinning relative to the ground.  There is no other force propelling the car besides the force at this contact point.  This can help the car move it if we slam on the accelerator, or it can oppose it if we slam on the brakes and start skidding.  It depends on the relative motion.  For the case of accelerating, at some point, based on the equations above, the wheels will stop spinning relative to the ground and they can be considered rolling.
Comment: That is correct.  Both are friction forces, but their magnitude differs depending on the coefficient of friction.  Check out the Wikipedia article: https://en.wikipedia.org/wiki/Friction
Comment: Use the above equations to determine when the force induced by the engine -> axle -> wheel on pavement drops below $\mu_k N$.
Comment: If static friction helps the tyre remain constant relative to the ground, so it rolls forward, why do we say kinetic friction make the wheel roll as well? And when does the wheel continue rolling again after slipping?
Comment: Also, do we say kinetic friction helps in the car movement like the static does, or it opposses it?  I mean, does the kinetic friction act as tractive force itself and help the car in moving or it acts as an opposite force to the car's movement? And can i use this formula here: force moving = force applied by engine - force kinetic friction?
Comment: Thanks so much just last question, equation to use to determine the time of slipping and when will it return rolling?


Android, wifi active scans

Question: I need a frequent wifi scan on my android application (I'm trying to build a local indoor positioning system based on wifi RSSI values). IF I call wifi.startScan() I have onReceive() called back once every 6 seconds (I suppose by default it's scanning passively): how do I get more frequent callbacks? Should I ask for "active" scans? How is it done? Are there any drawbacks?
Answer: I've been trying the same thing and I came to the following conclusion. It's not possible on 2.1 and higher. I've got no clue on lower versions because my app had to run on 2.1 and higher.
-Changed stuff inside the Android SDK so it will enable active scanning
-Traced it back to the driver resulting in the following conclusion:
The driver will set the wifi module in passive mode every time. I've been looking to change this inside the driver but there was no setting inside the drive to achieve this.
Bottom line:
Not possible.
Answer: I don't think you can. It is a device and/or OS version dependend setting. On the Nexus One for example it takes roughly a second to scan whereas on the G1 it takes significantly longer (or get fresh results after a few scans). If I recall correctly, some Android Version (< 2.0) did not issue a fresh scan everytime startScan() was called but might have reused the old result. But I might be mistaken on that one.

Android, wifi active scans


android opengl es 2.0 converting screen coordinates to world coordinate

Question: I'm new to opengl es and trying to figure out how to convert an x, y screen coordinate to its respective opengl world coordinate. All of the examples I've found so far use GLU.gluUnProject() to convert between the two coordinate systems however, I'm not sure this method is usable in opengl es 2.0 and if it is I'm not sure how to retrieve the projection and model view matrices. The other examples that use gluUnProject access the matrices through the use of a MatrixGrabber class which is opengl es 1.X specific. I've also found iphone examples that use a vertex shader to convert between the coordinate systems however, I haven't been able to get this technique to work either. It seems there would be a simple way to convert 2D screen coordinates to 2D world coordinates. Any help would be much appreciated. Thank you.
Answer: Your assumption is incorrect, there is no simple way to convert screen coordinates to world coordinates.
Given a 2d screen coordinate and an existing view and projection matrix there is no way of determining the correct z-coordinate besides sampling the depth buffer (provided you have a depth buffer).
Projecting a 2d point into a view frustum would only give you a ray (or a line segment from the point projected on the near clipping plane to the point projected on the far clipping plane).
The following may be besides the point as you are using java, but I'm going to mention it anyway: if you consider using c++ I suggest you checkout the glm library :  http://glm.g-truc.net/
It provides replacements for deprecated glu functions, like glm::project and glm::unproject.
It is an excellent replacement for the opengl matrix stack and glu functions.
I hope this helps answering your question. Good luck.


If I change the root password on a linux server, can someone still access root if they created an SSH authorized_key for root user?

Question: I'm not even sure if I asked that right. Anytime someone mentions changing the root password, they mention changing /etc/passwd, or just using the passwd command, but I've never heard of having to change it in an authorized_keys file as well. Where might I find that, and how can I safely delete an entry or change this for root without causing havoc? Thanks!
Comment: Note that it's generally recommended not to allow anyone to log in over SSH as root, and if you follow that practice, there's no need to touch the authorized_keys file.
Answer: Yes. You'll need to delete the user's public SSH key to completely remove access. If you're simply trying to remove one user's access to root it's a little tricky. Hopefully you've been using separate private keys, because otherwise you'll have to recreate the file and redistribute the public keys to the authorized users.
To remove the entry, you need to edit the authorized_keys file. If this is your root user on a Linux box, chances are the the file can be found at /root/.ssh/authorized_keys. You'll need to remove the line that contains the public key of the user that you're removing. Unfortunately, there's no easy way to know what line this is without a copy of that user's public key.
Answer: Yes; it's considered bad practice to allow people to ssh in as "root" for just this reason. Your boxes should probably have root's ssh disabled, and use something like "sudo" to provide access controls over who can do what as root, that way you won't need to give out the root password or anything equivalent.
Leavers' accounts can simply be disabled and you can guarantee that they can't get back in (unless of course, they've left some back doors, which is something you can't do anything about anyway).
We use an ldap directory to store users, groups and ssh keys, then restrict "sudo" access by group.
Answer: If someone has had root, it's very difficult, perhaps impossible, to be sure they can't get it back, unless you reinstall and restore from a backup taken before they had access. Things to watch out for: firstly an old trick: any extra users in /etc/passwd with UID 0. For example:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
..etc...
something-innocuous:0:42:foo:/:/bin/sh
..etc..

That extra user would have a separate password and be effectively root as soon as they logged in.
Run visudo if you have sudo installed, and check for anything unusual there.
You should check /etc/pam.conf and all of /etc/pam.d (possibly elsewhere too?) to make sure nothing is configuring PAM to grant passwordless login to root from a particular IP or similar.
You should check for any extra processes running as root, that might offer up a root shell to a particular remote or local user; that process' executable need not exist on disk anymore, or need not be what it was when the process was started.
Finally, if you still don't think it's impossible: search any mount points whose mount options don't contain nosuid for setuid/setgid binaries (using something like find -perm /6000) or binaries that root might run, that might have been modified. Which ones might have been modified/added recently? Any of them. Timestamps are trivial to change.
A rootkit might have done any combination of the above, and might have patched the kernel (perhaps in memory too, without a reboot) to impede your ability to detect it (removing things from ps/netstat etc.)
Good luck. :-)
Answer: If you use SSH keys, you might want to consider disabling a password altogether.
SSH is close to unhackable without passwords, but these two are like an "or" so if you can hack either, you're hacked.
Comment: For remote logins that's right. The point about changing passwords is still pertinent though, as they are system passwords, used elsewhere after the initial remote login.
Answer: You can disable root logins via ssh by setting PermitRootLogin no in your sshd_config file.  If you have servers exchanging data or remotely executing commands as root (e.g. backup some systems) then you probably don't want to do this.  If this is the case then Kyle Cronin's answer is the way to go.
Answer: It is worth thinking very very hard about using ssh's authorized keys for root.
Let's say that I can be root on system ZZ and I add my public key to root's authorized_key.  Now, my private key is much more valueable because now it not only lets someone break into possibly all of my accounts, but, it allows root on ZZ as well.  Plus, of course, any system that lets root on ZZ also be root on themselves.
Note that if I put my private key on a system that others can be root on, those users can also get root on ZZ since they can trivially get my private key.
etc
etc
etc
It's a very dangerous relaxing of security.   People tend to be a bit too free about where they put their private key since it make ssh so much easier.
I concur with no root ssh along with sudo, but, if you do that, you might want to add special users which have no NIS/LDAP/NFS/etc network dependency so that you can still log in when there is a network fubar.  Normally root can log in when others can't since root tends to have less of these external requirements.


SharePoint 2016 On Premise NewForm Error with Designer

Question: I am using SharePoint 2016 On Premises. I am currently unable to use SharePoint Designer to create any custom form (NewForm, EditForm, DispForm). If I try I get the following error (Could not Save the list changes to the server). That is the only error I get, nothing in the SharePoint logs. I have read that this has been removed from SharePoint Online but I am using SharePoint On Premises. Is it possible that this removal has affected my on premise setup? If so how do I get it back? Thanks.
Comment: Are you using modern or classic SharePoint?
Comment: I'm using On Premise SharePoint 2016, classic. Also it's affecting every list, I cannot create a new form (edit, display) on any list. This also affects our Development and production environment.
Answer: Are there lookup columns in the list? Have you made any changes to the SharePoint server recently(upgrade/update)?
1.Try to install SharePoint Designer Service Pack 1.
Download 32-bit Edition: https://www.microsoft.com/en-us/download/details.aspx?id=42015
Download 64-bit Edition: https://www.microsoft.com/en-us/download/details.aspx?id=42009
2.Try to install SharePoint Designer 2013 on another client machine and test on it.
3.Please refer to following article to clear SharePoint Designer 2013 cache:
How to Clear Your SharePoint Designer 2010/2013 Cache
4.Restart the server.
Another similar question:
"could not save the list changes to the server" in designer
Comment: Hi Emily, this got it working on most lists though I am still having the same issue with one list that does have lookups. I read elsewhere this problem could happen if lookups are looking to a another location that doesn't exist but that's not the problem. All the lookups are pointing to the correct locations and all lookups work.


Why won't Silverlight sounds play on some computers?

Question: My Silverlight app successfully plays a repeating alert sound every ten seconds on a number of my own computers. One of my clients hears no sounds. I was just on the phone with him and verified that he could hear basic Windows sounds, sounds from another application, and sounds from another web page (not Silverlight, however) within IE.
Does anyone know of any settings which might affect Silverlight's ability to play sounds on a system which otherwise sounds (ha, ha) fine?
Thanks,
Ben
Answer: Maybe he has a problem with his DirectX (or more specifically DirectSound) installation.


Can't import tkinter in python2 on manjaro linux

Question: I installed tk-22.214.171.124 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get tkinter to work in python2?
Answer: When you install the tk package with pacman I believe it should be available to both python3 and python2 in Manjaro and Arch.
Try import Tkinter in the python2 interpreter (With the capitalized 'T').
Comment: Damn! So it's Tkinter in python2 and tkinter in python3! I am trying to run UCSF-Chimera and it's not able to import Tkinter. It says,

`File "/opt/UCSF/Chimera64-1.12/share/chimera/replyobj.py", line 24, in
    import Tkinter
  File "/opt/UCSF/Chimera64-1.12/lib/python2.7/lib-tk/Tkinter.py", line 39, in
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var `
 I know I'm straying away from the original question, but any ideas how this can be fixed? Any configuration?
Comment: Did you build UCSF-Chimera from the AUR [package](https://aur.archlinux.org/packages/ucsf-chimera/)?
Comment: Nope. I downloaded the executable from their website to build it. The AUR package is outdated (2013).
Comment: Even in Pymol (that runs fine and I'm using it currently as a replacement), the PDB plugin requires Tkinter and it doesn't work. It says `ModuleNotFoundError: No module named 'tkSimpleDialog'`. This leads me to believe it is a Tkinter problem.
Comment: Solved it using this: https://aur.archlinux.org/packages/ucsf-chimera/?comments=all


windows 2012 failover cluster, system validation, and storage spaces

Question: I have two host servers with Windows 2012 Hyper-V installed. I have also configured File and Storage Services with one Storage Pool, one Virtual Disk on each server. I used Star Wind SAN for Hyper-V and configured Quorum Disk using iSCSI. So I have C: for Windows install, E: for the Virtual Disk and Q: for the quorum disk. When I run the Validate Cluster Configuration Wizard, it sets the quorum disk to offline to run the storage test. This is expected but it also sets the Virtual Disk E: to offline for the duration of the test. The test succeeds and I am able to configure the cluster but a few of my services were down because they depend on the drive E:. Is there a way to tell the Validate Cluster Configuration Wizard not to look at the drive E:?
Comment: Why? You're not going to run the validation wizard on an ongoing basis are you? Shut down the VM's, run the validation, restart the VM's.
Comment: The way Star Wind works is that it creates a file and then it exports it as iSCSI disk. Initially, I was putting the quorum disk image on the E: drive but needless to say, it didn't work because the whole E: drive was going offline. The validation succeeded when I put the quorum image on C:. This is not a show stopper, only medium annoyance. It also complicates things if I ever have to run validation test again.
Comment: I guess I don't really understand how this relates to the Quorum disk or the StarWind SAN. - You have virtualized workloads on E. You run the Cluster Validation wizard which takes E offline as part of the test. This knocks your virtualized workloads offline. So the solution is to not run the Cluster Validation tests while you have running workloads on your Cluster storage. Why would you run the Cluster Validation while you're running live VM's? Take your workloads/services/VM's offline then run the validation.
Answer: First of all I don`t really understand why do you need Storage Spaces in this scenario - StarWind is fully powered to give the SAN disks and the clusters CSV. If the problem is that your E drive is storing the StarWind image files, then just stop bringing it to cluster and move all the data on the SAN.
What I can say for sure - you are doing everything correctly from the SAN software stand point if the cluster is still creating.
Comment: OK, gotcha. Well, storing the StarWind image files on Storage Spaces should work best for you, as I can see it. Anyway, my guideline for you is to move as much on SAN as possible and don`t give the E drive to cluster, and then all you want should work =.
Comment: I don't need storage spaces but I wanted to use them because of their flexibility. I want to manage all of the hdds and ssds using them. StarWind is great in terms of performance but once a disk is created, it's hard to change most settings. I wanted to have a storage server and then expose disks via iSCSI as needed. I found out that you can specify disks for validation if you use 2012 R2 so I guess the solution is to upgrade to 2012 R2. Another solution would be to separate file server and hyperv cluster but Star Wind specifically has a product that's supposed to work with hyperv(and it does)
Answer: It could happen that the OS thinks that your E drives have similar serials.
Also, what stands behind the E drive on the cluster nodes, is it just DAS?


How does tor find the nodes?

Question: How does tor find the nodes? In other words, how does tor know which ip addresses are tor nodes and which aren't?
Answer: The IPs and public keys of 9 directory authorities is compiled into Tor. Tor can download an initial list of all relays (the consensus) from those directory authorities.
See this section of the Tor Project FAQ.

How do clients know what the relays are, and how do they know that they have the right keys for them?
  [...] The directory authorities provide a signed list of all the known relays, [...] specifying their keys, locations, exit policies, and so on.
  How do clients know what the directory authorities are?
  The Tor software comes with a built-in list of location and public key for each directory authority.

How does tor find the nodes?


Cannot install Xubuntu 16.04 on Acer Aspire 5315 with Intel Celeron 530 (Laptop)

Question: I hope you can be of some help to me!
So I downloaded Xubuntu 16.04 ISO and burnt it using my MBA 2012 under OS X El Capitan.
Then I'd like to install Xubuntu on one of my older laptops, which is an Acer Aspire 5315 whose configuration is as follows : 2GB DDR2 RAM, 120GB SATA2 HDD, Intel Celeron M 530, 1280x800 display (I know, it really is an old and very low performance laptop which is why I chose Xubuntu over Ubuntu or any of its derivatives with fancier graphics). I then booted to the Xubuntu DVD and could go up to the language selection and 'accessibility' menu of the DVD. However, afterwards (I tried multiple times), I then get either an 'emergency shutdown' or a kernel panic (according to the terminal-like text I have on the screen). I also tried enabling acpi=off as I had trouble installing Lubuntu on a laptop with a Celeron M from 2006 and it solved the problem (which seemed different though as it clearly indicated a sleep-wake issue) on this laptop.
Question is: do you have any how I could successfully install Xubuntu 16.04 on this machine? Once, I know this an old laptop, it ram Windows 10 honorably and I'd love to be able to install Xubuntu on this machine despite its age.
Thanks
Answer: Maybe I have to use forcepae! I remember having to do that with the other Celeron M (although it was around 1.5 years older). I will try it out as soon as possible!


The ObjectContext instance has been disposed and can no longer be used

Question: I've seen this question asked a million times, but every single suggestion I've encountered I already seem to have covered.
I have entity framework in my MVC solution, and I have a 'repository' which attempts to retrieve a collection of MyObjects:
public static List<MyObject> GetMyObjects()
{
   using (var context = new MyEntities())
   {
       return context.MyObjects.Include("Contact").OrderByDescending(o => o.Date).ToList();
   }
}

I call this method as part of a controller action which attempts to serialize it:
public JsonResult All()
{
   return Json(MyRepository.GetMyObjects(), JsonRequestBehavior.AllowGet);
}

And I get the following error:
The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
I don't know where to turn on this one, I appreciate entity framework 'lazy-loads' relational data sets if and when they're needed, and I appreciate attempting to serialize the whole collection would indeed attempt to load these (outside of the using statement), but I have the 'Include' there.
What I've Tried
I've tried the 'include', I've also ensured no other associations are part of the MyObject class (i.e. I have no other Include()s to write).
Answer: To avoid this you have some options.Don't declare your navigation properties as virtual or disable Lazy Loading behavior on your context. Lazy loading is enable by default and is achieved by creating instances of derived proxy types and then overriding virtual properties to add the loading hook. So, if you want to work with a serializer I recommend you turn off lazy loading:
public class YourContext : DbContext
{
    public YourContext()
    {
        this.Configuration.LazyLoadingEnabled = false;
    }
}

These links can help you to understand better what I explain in my answer:

Loading Related Entities
Requirements for Creating POCO Proxies

If you remove the virtual keyword from your navigation properties, the POCO entity not meet the requirements described in the second link, so, EF won't create a proxy class to lazy load your navigation properties. But if you disabled lazy loading, even when your navigation properties are virtual, they won't be loaded in any entity. It's good idea disable lazy loading when you are using a serializer. Most serializers work by accessing each property on an instance of a type.
As a third option you could use the JsonIgnore attribute on your navigation properties that you don't want to be serialized as part of your entity, but as I said before, the best option is disable lazy loading.
Comment: Brilliant! I'm not at home at the moment to be able to try your solution, but I'm hopeful. I'll give it a go and feedback when it's tried and tested. Thanks again. +1.
Comment: Glad for having helped you ;)
Comment: Besides this I had to clone the entity as I was using two context one for online and another for offline db
Answer: When you use Include and using Lazy loading, and wrap the dbContext in a Using statement, then once it tries to get the linked objects, the dbContext is already disposed.
You can try eager loading of the navigation property like this:
IQueryable<MyObjects> query = db.MyObjects.Include(m => m.Contact);

Or you could take out the Using statement, as it is limiting your lazy loading...
Comment: If I take out the using statement I'm surely leaving unnecessary work to the garbage collector? I never like to not dispose of something that implement IDisposable. I may be wrong?
Comment: @JayMee Then you need to use the eager loading(as shown in my code here) if you want to keep the "Using" statement...
Answer: I had the same problem and solved like below;
I created a new object and put the values I am gonna use after getting object from db.
Example Code:
 var listFromDb= db.XTable.Where(x => x.Id > 5).ToList();

 var list = new List<Package>();

 foreach (var item in listFromDb)
 {
     var a = new Package()
     {
          AccountNo = item.AccountNo,
          CreateDate = item.CreateDate,
          IsResultCreated = item.IsResultCreated,
        };
        list.Add(a);
      }


Primordial black holes microlensing

Question: Could the movement of a PBH found in the outer solar system by microlensing be totally unpredictable and impossible to track after it was first detected?
Comment: I think (but don't know) that a microlensing event gives no information about direction of motion. If the only way to detect PBHs is by microlensing then it depends on the probability of a second event (and a third "in-a-row" to be confident it is the same PBH). This might be Answerable by someone who knows the probabilities.
Comment: The PBH in our outer system is the object which is thought to be possibly another planet. If it turns out that it's actually a PBH it would have the path which is postulated for the planet. When looked from above (onto the North poles), it should have an anti-clockwise orbit around our Sun.
Answer: To determine the orbit of any body around the sun, at least three observations are needed at different times. This is true for black holes as much as it is true for asteroids or comets.  With three accurate observations at three different times, a Keplarian orbit can be fitted.
The trouble with microlensing is that you only get a single observation. Even using additional clues (such as the length and brightness of the microlensing, from it's inferred effects on TNOs, from the observation that it doesn't seem to enter the inner solar system) you don't have enough information from a single microlensing event to determine the orbit.
The orbit would not be "random".  It would still be an ellipse, with the sun at the focus, and some elliptical orbits might be more likely than others. Still, the orbit would not be determined by a single microlensing observation

Primordial black holes microlensing


What is the difference between stopbars and Intermediate Holding Position Lights?

Question:
I know that stop bars continuously light red and stand at before taxi route joint, holding points, or at the runway entrance, but what about the Intermediate Holding Position Lights? How can we differentiate between the  stop bar and Intermediate Holding Position Lights with regard to function and location or color? I added pictures below; I am sure of the stop bar, but am I correct about the Intermediate Holding Position Lights? Btw; there is a definition for Intermediate Holding Position Lights: A set of three amber lights or full red stop bar are provided at intermediate taxiway holding positions.
Answer: Intermediate position holding lights may be used at larger airports as an additional means of controlling traffic while moving on taxiways to give way for other surface traffic an a taxiway intersection.  Stop bars are used to provide additional identification of the boundaries of runway safety areas and ILS critical areas to prevent runway incursions.
Comment: Okay and what about the picture? Do you agree with the marking of holding light is an intermediate position holding light? Because it suits the definition above: 3 amber light.
Answer: The main difference is that stop bars are used for stopping traffic from blocking ILS signals for traffic inbound on near runways, and intermediate position holding lights are used for holding short for taxiways.
Pretty sure your image has that explained already.


Does code signing Certificates need a key Pair? or a single Certificate

Question: I know that SSL Certificates use a private key on the server side and the public key for verifying it on the client side.
I am wondering, is it the same for Code Signing Certificates?
Or do they just use a single Certificate, signed by the CA, that you use to sign your code with. Or do you sign it with a private key, and then when you ship it, the public certificate is also provided for verification of the signature.
See the attached screenshot, this is the public key... but it has Code Signing ( 18.104.22.168.220.127.116.11.3 ) extension so was a little confused.
Answer:
SSL Certificates use a private key on the server side and the public key for verifying it on the client side.

Certificates are data. They do not perform any action, thus do not use anything. And they do not contain a private key. They are public key certificates, and "public" applies to both the certificate and the key in the certificate.
A certificate is a collection of data elements:

The public key that the certificate certifies.
Other data elements (e.g. identifying the key holder, the purpose of the key, a validity period, the certification authority and the identification of it's certification key…).
A signature binding the public key and (some or all of) said other data elements, verifiable against the certification public key.

Associated to the certificate, but not part of it, there is a private key, capable of making signatures that verify against the public key in the certificate.
To obtain a certificate, one typically:

Generates a public/private key pair and securely store the private key; that can be in a security device (HSM, Smart Card) or in a file (perhaps password-encrypted).
Generate and sign (using the private key) a Certificate Signing Request, and send that CSR to the Certification Authority. The CSR contains the public key, typically some of the above other data elements, and a signature of that made using the private key.
Obtain the certificate from the Certification Authority, after some checks.

Is it the same for Code Signing Certificates?

Yes, the above applies to SSL server and code signing certificates alike. The difference lies in the purpose of the key as encoded in the certificate, and (somewhat correspondingly) the care used by the Certification Authority to check the identity of the key holder.

Do [code signing certificates] just use a single Certificate, signed by the CA, that you use to sign your code with ?

No. Signing a piece of code can't be performed with only a code signing certificate. Again a certificate is public; and ability to sign an executable using only public information would negate the goal of code signing.
Code signing is primarily performed with a private key. It's typically also needed the code signing certificate for the public key matching that private key, because that code signing certificate is typically included in the signed executable, for the convenience of the verification.


How to get gas fee to send erc20 token at mass volume?

Question: Pardon me for my poor english. What I am trying to achieve is:
I am learning node JS developing a crypto currency exchanger as a homework project where user can deposit ERC-20 token and Ethereum. I am generating unique ethereum deposit address for every user, where they can deposit ERC-20 token and ethereum. but after sometime I want to move the received ethereum and ERC-20 token to another address (cold wallet). Now my question is, if someone only send ERC-20 token to the address and no etherum, then how I'll get ethereum to pay as gas fee to transfer the received ERC-20 token to cold wallet ? If suppose, I am first paying etherum (for gas fee) from cold address to the user address, and then using that etherum to transfer received ERC-20 token, will it work at mass level ? means if 10000 users do the same thing at the same time, will not it create a problem ? or is there any better solution for this ? please help
Answer:
if someone only send ERC-20 token to the address and no etherum, then how I'll get ethereum to pay as gas fee to transfer the received ERC-20 token to cold wallet

You buy ETH and deposit it on the address needing ETH.

means if 10000 users do the same thing at the same time, will not it create a problem ? or is there any better solution for this ?

Yes. Everyone needs ETH for gas fees.


How to send an email if a field value is changed

Question: I am working on an Issue Tracking List inside SP 2013. And I have a field named Issue Owner. I want to create a workflow that should be executed when an issue item is edited and at the same time  the Issue Owner field is changed. So is there a way inside the SharePoint designer to specify an If statement which validate if a field value is changed ?
Answer: No direct way because SharePoint Designer workflow don't give us Previous values like Event Receivers does.
If you don't want to follow Event Receiver path, then try below workaround

You need to have a hidden field in the list (Say Previous Owner).
Add logic in you New/Edit form to populate Previous Owner field with what value in Issue Owner field. (This should happen on Form Load)

Now in you workflow you can compare Previous Owner and Site Owner. Make sure to set Previous Owner = Site Owner at the end of the workflow.
Comment: i though this could be achieved out of the box..
Comment: @johnG not as of SP 2013. But if you think logically workflow is designed to act on Current Item and not its previous version.
Answer: You will need to create another field in the list by the name of Previous Owner. Don't display it in the view. Set it to the same value to Owner when the item is created by a separate workflow that is run when a new item is created. Then create another workflow that only runs when the item is updated and compare the values of the Previous Owner and Owner. Send out the email if they are different and update the Previous Owner field value to Owner field value.
Comment: seems it is not straight forward as i thought ...


Move Mysql database from Windows Xampp to Linux MySql Server

Question: I 'am looking for a way to move some database in my local xampp to remote MySql Server , running into a Linux VM (Centos 7)
Any idea or any suggestions to do this migration?
Answer: One way you could do it is by using HeidiSQL, a free MySQL client. You can get it here:
https://www.heidisql.com/
You can configure the connection to the Windows XAMPP server and the Linux server, and then Heidi will be able to transfer the data directly from one server to the other. To do that:

connect to the "source" server
right-click on the database or table you want to transfer and select "Export Data As SQL"
this will open a dialog box
you likely will want to select the checkboxes to create the tables and databases you want to transfer if it's the 1st time you have transferred them
if you want the data and not just the structure, be sure to select the data dropdown to transfer the data as well. I usually use "Delete + Insert", but your needs may vary
in the output dropdown, select the "destination" server. In this case, it should be your Linux server
In the Directory dropdown, you likely will want to leave it as [same as source server]
Then click the Export button and wait


Quine said that even logic could be revised on empirical grounds. Did he later reverse that position? Where?

Question: Quine said that even logic could be revised on empirical grounds. Did he later reverse that position? If so, in which of his writings?
Comment: Not exactly, it was more of "I should have made a different emphasis":"*Looking back on it, one thing I regret is my needlessly strong statement of holism... "no statement is immune to revision". This is true enough in a legalistic sort of way, but it diverts attention from what is more to the point: the varying degrees of proximity to observation...*", Two Dogmas in Retrospect. Linked in [If one agrees with Quine's dissolution of the Analytic/Synthetic distinction...](https://philosophy.stackexchange.com/a/42609/9148)
Comment: Pedantic, true, strictly speaking, but not that relevant in practice, see [Quine's 'Needlessly Strong' Holism by Verhaegh](https://philarchive.org/archive/VERQNS) for a commentary.
Comment: @Conifold What does he mean by "legalistically true enough"?
Comment: Great, thank you so much. You could put all this in the form of an answer instead of that of comment. Anyway, I remain open if someone else has another bibliogaphical reference on my question.
Answer: I think it is fair to say that Quine retreated from his earlier position in regard to the revisability of logic, at  least to some degree. Probably the most important reference here would be the chapter called Deviant Logics in his book Philosophy of Logic. Quine argues that there cannot truly be deviant logics, because anyone who claims to use different laws of logic is simply using the relevant words differently from ourselves. We might gloss this as saying that anybody who claims to use a different logic is merely changing the meaning of the words involved. Quine would not put it that way, since he does not accept such things as 'meanings'. Rather, he expresses it in terms of translation: if a speaker of an unfamiliar language professes to accept a compound sentence, but not a constituent of it, that gives us a reason not to translate the compound as a conjunction, etc. Quine's idea is that logic, specifically classical logic, is built into any translation manual that we might use to enable us to understand a foreign speaker. Indeed, it is more firmly built in than anything else, including scientific statements. Attempting to attribute a deviant logic to a foreign speaker would be like attempting to interpret them as believing something obviously false, like 1+1 is not equal to 2.
Whether this reasoning is correct is another story. For myself, I am much more receptive to the idea that there can be non-classical logics. It is true to say that if you change a logic then you are implicitly changing the meaning of at least some of the logical constants involved, but we can still recognise a family resemblance between constants. Intuitionistic negation does not mean the same as classical negation, but I can understand and use both, and I am aware that both have a claim to be called negation because of the similar roles they play in their respective logics. The intuitionist is not changing the subject when they use their version of negation, nor would I suppose that they are saying something obviously false if they deny the rule of double negation elimination. Likewise with the difference between relevant implication and material implication, etc. Whether there are specifically empirical grounds for revising logic is a more tricky question.
Comment: @See??? This is my problem. Two of my Professors, both very distinguished, have given me mutually contradictory answers on this question. So have done so far my two responders here! Perhaps it is a matter of checking which of your referenced writings is the most recent.
Comment: @both Apparently "Two dogmas in retrospect" is decades more recent than "Deviant logics", so this would indicate that Quine reverted his position on this twice.
Comment: Retrospect is more recent, but bear in mind that Quine's Philosophy of Logic is a sustained book-length account of his understanding of logic, whereas Two Dogmas and the Retrospect are concerned with whether some sentences (including logic) can be considered analytic. In the Retrospect (p 270) Quine does allow that logical truths are analytic and that to reject a law such as LEM is to change the meaning of the words, so I would say this definitely constitutes a departure from Two Dogmas.
Comment: So now it seems that Retrospect is self-contradictory... No wonder why my Professors disagreed...


Does "ongoing" only refer to the present moment?

Question: Can the word "ongoing" refer to past process?
Can I say "the game was ongoing when I arrived"?
Answer: Sure, the adjective means "in progress".  When you use it in a past tense narrative it means "in progress at the time of the narrative".
So you can say "The game was ongoing".
This is a little like the slightly confusing word "contemporary", which usually means "close in time to now" but can, in context, mean "close in time to then"
Answer: It doesn't sound like a structure that a native English speaker would use. Doing a bit of research on Google made me aware of the fact that one can use 'ongoing' in the past but as an adjective before the noun:

The ongoing game was at its peak when I arrived.

If you want to use it after the verb, I think English usage would tell you that it is better to put it after the present tense:

The elections are currently ongoing, so you still have a chance to vote.

If I put the last example in the past, I do not think it is grammatically incorrect, but I haven't come across on such a structure

The elections were ongoing at that moment, so you still had a chance to vote.

I wonder though if, when we use it before the noun, it has any negative connotation like 'It is ongoing, I wish it would stop' kind of thing...


What are these unknown visits to my private, unlisted webpage?

Question: Greetings this is my first time to post a question here so please be forgiving if I do something wrong or did not follow proper etiquette.
Here is my situation:
I created a private, totally locked down, unsearchable, and password protected account and photo gallery on a popular website for hosting photos. The only way this gallery could be accessed was with a private URL and then you would still need the password (its a strong password) to see the photos. Then I sent the private link in an email to ONE person from my gmail account to their yahoomail account.
I am tracking visits with Google Analytics and I know almost all the visits, they are either my own or the person I sent the link to. Except I cannot explain 4 visits from Russia and how this person was able to find my gallery.
I was able to extract some relevant information from Analytics which I listed below. From this information, I can assume that these visits are all from the same computer, yet from 2 separate locations in Russia. Something I can't explain is why all the normal (mine and my friend's) visits have Hostname listed as the URL of the website where I posted the gallery, however, these unknown visits have Hostname listed as co.lumb.co.
Here's the info, I broke it down by city, first city is Samara and second one is Moscow:
<code>> Location: Russia - Samara Oblast - Samara
> Date/Time: Dec 4 - (1st) 5:28am, (2nd) 12:28pm
> Sessions: 2 (1 New and 1 Returning)
>
> Aquisition: Referral
> First Source: ilovevitaly.com
> Second Source: forum.topic57207714.darodar.com
>
> Page URL: /
> Hostname: co.lumb.co
> Screen name: co.lumb.co/
> Second Page: not set
> Exit Page: /
> Exit Screen: co.lumb.co/
> Page title: (1st visit) Co.lumb CoOrdinates yoU (2nd visit) Co.lumb
>
> Service Provider: cjsc company er-telecom samara
> Network Domain: ertelecom.ru
> Language: ru
>
> OS/Browser: Linux i686, Firefox 33.0
> Screen Resolution: 1366x768
>
> ---------------------------------------------------------------

> Location: Russia - Moscow - Moscow
> Date/Time:
> 1st visit - Dec 6, 3:37pm
> 2nd visit - Dec 9, 9:36pm
> Sessions: 2 (Both Returning Visitors)
>
> Aquisition: Referral
> First Source: forum.topic57207714.darodar.com
> Second Source: forum.topic57207714.darodar.com
> Page URL: /
> Hostname: co.lumb.co
> Screen name: co.lumb.co/
> Second Page: not set
> Exit Page: /
> Exit Screen: co.lumb.co/
> Page title: (1st visit) Co.lumb (2nd visit) Co.lumb
>
> Service Provider: hosting telesystems network
> Network Domain: (1st visit) hts.ru, (2nd visit) ht-systems.ru
> Language: ru
>
> OS/Browser: Linux i686, Firefox 33.0
> Screen Resolution: 1366x768
</code>
Comment: Once you attach to Google Analytics, it is no longer "private and unsearchable". And it appears that a link to your site made it to a forum ...
Comment: I wouldn't put too much stock in the referrals. Referer (sic) headers are often spoofed by unsavory bots to drive traffic back to those sites.
Comment: `Page URL: /` unless I'm mininterpreting the output, this means they reached the root of your web server, which they can do via the IP alone.. I was originally thinking about a bot that scans the entire IP address space but it wouldn't have triggered the analytics script... so maybe it's a bot that scanned your site previously and then its human operator decided to take a look out of curiosity ?
Comment: And you're not the only one: https://wordpress.org/support/topic/a-non-existent-page-is-showing-up-on-my-analytics
Comment: Two possibilities I can think of for the alternate hostname: (1) under certain circumstances, host can be spoofed; (2) if you are on a shared server, access via IP address may yield another hostname on the server. Either way, you may want to dig into your web server settings, and possibly do some blocking in the server or via .htaccess.
Comment: It seems to have started a couple of days ago - more discussion on this same subject are [here](https://wordpress.org/support/topic/a-non-existent-page-is-showing-up-on-my-analytics) and [here](http://www.reddit.com/r/Wordpress/comments/2p0ivq/people_are_landing_on_columb_on_my_wordpress_blog/)
Comment: Hey, check out this blog post http://egenie.biz/russian-spam-traffic-from-darodar-com-co-lumb/ . The author covers traffic from Moscow and samara comming from co.lumb.com  . The email of your friend and your emails are ok. They are just sending that info straight to your GA account.  Simply put it's an "attack to your Google Analytics attack. And they do you so you click on link to see what's that traffic and follow it to the source. Which will lead you to a refferal link. You click it out of curiosity and the you generate revenue for them.
Comment: Let me guess, your Google Analytics account number is 57207714. If you clicked on the link, then the spammer then knows the IP address associated with the administrator of the website of the Google Analytics account number 57207714. The redirect is a decoy. It's that simple.
Comment: Note that Google Analytics is not a good tool to use for intrusion detection - any serious attacker will simply block the analytics domain on their machine since it is client-side.
Answer: There are multiple possible explanations.

The first one and the most likely (especially if the secret part of your url is not that long), is plain and simple bruteforce. If you're on a popular website, it really shouldn't surprise anybody that they are being scanned in order to find some juicy hidden urls. Given the fact that they are hitting your page with another hostname, I'd guess it's a pretty credible possibility.
The second one is that since you communicate with third parties on your page, your url was eventually leaked & sold (by google analytics, by the website host, etc).
The third one is that at some point, either your connection to the website or your email has been sniffed. In both case, your website eventually ended on a list of urls to scan.
Comment: or your friend forwarded it on. Or their email was compromised. etc...
Comment: Thank you Dillinur, and thank you commenters. I have good reason to believe the email to my friend was sniffed or otherwise compromised. Is there any way to test or find out if it was compromised on my end or my friends, or if it was sniffed somewhere in between? I use gmail from a browser and my friend uses a mail program to read their yahoomail. What can I do to secure my emails and prevent this? Can I use gmail's secure mail plugin for chrome to send encrypted email to a yahoomail account? Would that work? What else can I do? Thank you very much for taking the time to help!
Comment: The emails are ok. They are targeting his Google Analytics account. Apparently it's quite common.
Answer: This is so called referrer spam. The spammer hit your Web property by trying property IDs randomly. This type of spam doesn't require intrusion into your site or your Google account. It doesn't even require sending requests to your site. For more background and solutions to filter out these fake page views, see the following article:
http://veithen.github.io/2015/01/21/referrer-spam.html
Comment: You are correct. More discussion here. http://www.blackmoreops.com/2014/12/19/darodar-com-referrer-spam/
Answer: There are several harmless possible explanations for this.
If your website recently got a new IP address, it's possible that some misconfigured DNS or browser is set to cache the name for too long and is redirecting a website that used to be in your IP address to you. The visitor from that area probably tries to visit another website, and their browser receive your machine's IP address that used to belong to the other website.
Another possibility is that if you are sharing your IP address with another server, which is common in virtual hosting scenario, a misconfigured server could be redirecting the wrong traffic to the wrong virtual host.
Or it may just be Internet Background Noise.
Comment: After more research, I think it's been decided that this is referer spam, the wordpress thread on this was very helpful: https://wordpress.org/support/topic/a-non-existent-page-is-showing-up-on-my-analytics/page/2
Answer: Unbelievable, apparently these redirect to affiliate links, I noticed the same thing in my referrals and followed the link (incognito) and got a redirect to an aliexpress affiliate link.
And I am not alone, read this: http://www.sudorank.com/guide-how-to-block-darodar-referral-spam-to-your-website/  this guys got an amazon affiliate link.
So maybe this is a rather clever/bizarre experiment in tricking people to follow affiliate links.
So the way it works is that they make significant number of request with that referral to your website, then they will show up in your stats, you will be curious to see where is all these new traffic coming from and follow the link and baaam, you get the cookies and make them a bit of money :)
Comment: The link appears to be dead.


how to change the group index of a body dynamically in box2d

Question: I am new to box2d. I have started a new game in box2d and created 5 dynamic bodies in the world. Initially I need to prevent collision between them. so i set group index of all bodies negative. After touching a body i want to allow the collision with that body. How to reset the group index. Please help..
Answer: Sounds like you're looking for something like
b2Body *body = world->GetBodyList();
b2Filter filter = body->GetFilterData();
filter.maskBits = filter.maskBits | THE_RELEVANT_CATEGORY_BITS;
body->SetFilterData(&filter);

The idea here is that you can get the collision filtering data for any object, use some boolean logic to assign collision data to the maskBits field, and then use SetFilterData to apply that new collision data to the body. THE_RELEVANT_CATEGORY_BITS should be an element of an enumerated type in which each collision filtering category is represented by a unique binary integer.
Check out the box2D tutorial for more on this http://www.iforce2d.net/b2dtut/collision-filtering
Answer: if you have more than 1 fixtures of a body then you can use this chunk of code
for (b2Fixture* fix = body->GetFixtureList(); fix; fix = fix->GetNext())
{
    b2Filter filter=  fix->GetFilterData();

    filter.groupIndex = 0;
    filter.categoryBits = 0x0004;
    filter.maskBits = 0x0002;
    fix->SetFilterData(filter);
}


Blocking Facebook in a system

Question: Is there any possibility to block facebook on a user system without configuring through the server ? is there any coding to be added in somewhere or can we block through a browser ?
Comment: you can use firewall to block any website.
http://superuser.com/questions/270524/blocking-web-sites-with-windows-firewall
Comment: Modify the hosts file to point facebook.com to 127.0.0.1 ?
Comment: Who are you trying to block? Do they have Admin rights on the computer? Do they have computers knowledge?
If someone is knowledgeable enough he can practically bypass or remove most blocks.
Comment: @EliadTech they all are users i.e Employees and they don't have Admin Previliages.
Comment: You've answered only one of my questions... How skilled are they in computers?
Comment: @EliadTech No and i am a system administrator.
Answer: Using the hosts files for stuff like this works in theory (as mentioned by EliadTech) but is considered bad practice. The hosts file does still have it's uses sometimes, but for the most part it is just a 'relic' from the early days of ip-networking.
If you want to block certain domains/url's/ip-addresses for an entire (sub)network I would recommend setting up a (transparent) proxy server.
Besides adding the advantage of hiding your internal machines to the internet and lessening traffic load for much-used sites you can do all kinds of filtering and blocking without having to mess with hosts files on all client machines.
Another advantage is that even skilled users will not be able to easily circumvent this setup without arousing suspicion.
I use Squid alot. It's free, not very hard to configure and has a very lightweight footprint.
Answer: You can try what Lawrence suggested, and edit the HOSTS file (which is located here: C:\Windows\System32\Drivers\etc\HOSTS), though from my experience solutions with HOSTS file doesn't work properly.
As for what eramit suggested (blocking through the local FW), it is not possible to block URL from the built-in FW (not even in Win7 FW), only IP addresses (which a serious headache for any website in this magnitude).
In this thread TheCompWiz suggested to use an open DNS or some commercial filtering solution.

Blocking Facebook in a system


Monodroid, WP7 and WinForms in same Visual Studio Solution

Question: I am developing a cross platform application using Android(Monodroid), iPhone(MonoTouch), WP7 and Windows and would like to keep my code base as coherent as possible. The iPhone requires a Mac which is fine I can deal with that but Android allows development in Visual Studio which is great as I can manage three projects under the one solution.
Now adding an new android project to a new visual studio solution will allow me to deploy in the emulator just fine. Same goes with a new solution and new WP7 project and corresponding emulator.
The issue I have is that if I setup a new solution with a WP7 project first and then add an new android project to the solution I cannot launch the android project as it always defaults to the WP7 emulator even when I set the android project to active project.
From what I can gather I think VS2010 will allow an emulator for the solution but will not allow an emulator per project within the solution. Has anyone come across this? Is there a work around maybe via command line? One workaround would be to have two visual studios open at the same time but I am trying to avoid that if possible.
Source of the problem has been identified and solved
Within the same solution don't give different project type executables the same name as this causes Visual studio a problem when determining which emulator to select. I changed the names for my launching apps for each project within the solution and everything works fine.
Original:

Solution \ Android \ MyProject
Solution \ WinPhone \ MyProject

Fixed:

Solution \ Android \ MyProject1
Solution \ WinPhone \ MyProject2
Answer: This might be controlled via the "Deploy" setting.  Try disabling Deploy for the WP7 project in your solution configuration manager.
Comment: Thanks. Nice suggestion. I checked the solution properties and the WP7 project allows me to check/uncheck the project but the android project unfortunately is grayed out. I will investigate this further.


Comments Notification

Question: Where is the comment notification when anonymous users send a comment?
I don't find any notification in dashboard, or other pages to approve comments.
Comment: Do you mean you want an email when people add comments?
Comment: I don't know about the topic starter, but I do want an email.
Comment: And I can't believe there is no straightforward and mainstream solution to send an email to the admin for new comments waiting for approval.
Answer: The list of unapproved comments is on admin/content/comment.

Unapproved comments are the comments left from users without the permission of skipping the comment approval, which is given in admin/people/permissions.

In the site where I took this screenshot, authenticated users are allowed to skip the comment approval, which means that any user with an account is able to write a comment without it gets approved before to be visible to every user.
Comment: oh! tnx alot man.
Answer: If you want to receive an email notification when the anonymous user posts a comment, you can use the Anonymous Publishing module.
This module can be set up to send e-mail to administrators when anonymous content (inclusing comments) is created.

Comments Notification


What did Paul mean when he said, "he became sin" for us?

Question: What did Paul mean when he said:

"he became sin" for us (2 Corinthians 5:21)?

For it is written, "Cursed is everyone who hangs on a tree!" (Galatians 3:13, see also Deuteronomy 21:23).
Comment: I added references to your question.
Answer: Ambrose cited exactly the same Scripture in his explanation of 2 Corinthians 5:21:

The Lord is also called an accursed thing, not because the Lord was turned into an accursed thing but because he himself took on our curse. He says: For he is accursed that hangs on a tree. ... It is written that he was made sin, that is, not by the nature and operation of sin …; but that he might crucify our sin in his flesh, he assumed for us the burden of the infirmities of a body already guilty of carnal sin.*

Also, in many places in the Old Testament the sin offering could itself be called a "sin".  For example, the JPS Tanakh translation of Exodus 29:14 reads:

The rest of the flesh of the bull, its hide, and its dung shall be put to the fire outside the camp; it is a sin offering.

but the Hebrew underlying sin offering is the single word חַטָּאת, which can mean both "sin" and "sin offering".  The Greek Septuagint translation of the Hebrew usually translates חַטָּאת everywhere with the single word for "sin", ἁμαρτία.  Perhaps Paul, writing in Greek, had the Septuagint in mind when he phrased the verse as he did.

* The Sacrament of the Incarnation of Our Lord, VI.60
Answer: Paul states in II Corinthians 5:21

υπερ ημων αμαρτιαν εποιησεν .

I am quoting the TR (Stephens 1550) but the words are undisputed in any variance that I know of.
The EGNT (Englishman's Greek New Testament) translates this as

for us sin he made

Young's Literal Bible conveys the alternative meaning of υπερ :

on our behalf He did make sin

εποιησεν is an inflection of the word ποιεο, poieo, [Strong 4160], which means 'make' or 'do' The KJV translates it 'make' 353 times and 'do' 102 times. It also uses a smattering of other words, 'execute' 'bring forth' 'provide', and others, about 100 times. [Numbers are from Young's Analytical Concordance.]
To translate εποιησεν as 'become' is unsupported by any Lexicon on my bookshelf (BDB, Thayer, Liddell & Scott, Strong) and unsupported by the following English translations :- Young, EGNT, KJV, J N Darby, William Tyndale and The Wycliffe; all of whom have 'made' or 'did make'.

The verb εποιησεν also occurs in the phrase written by John in John 4:46

οπου εποιησεν το υδορ οινον  [TR, Stephens 1550]

'Where he made the water wine' [EGNT, KJV]
So water had something(s) added and it became wine. There was that which, added and suffused throughout the whole body of water, changed it into wine.
It was still a body of liquid, and was still a body of (mostly) water. It had not 'become' something else entirely. But that which was now added to it made it wine.
Something was there that had not previously been there. And it was there in every part of the whole body of it. Not any part of it was unaffected.
It was made wine - by the addition.

God, sending his own Son in the likeness of sinful flesh, and about sin (the word is περι) - condemned sin in the flesh. Romans 8:3
Sin was condemned in the flesh of Jesus Christ.
Once he was dead, sin was gone.

This is a truly momentous subject, having ramifications throughout the Hebrew scriptures : for example the word kaphar - translated 'atonement' -  which actually conveys the concept of 'containment' (see kaph, the hand).
And the subject is a thread that runs through every one of the twenty seven books of the Greek scriptures.
One dislikes to be so brief on such a subject, but needs must.
Comment: (+1) good answer. Can you please explain to me the connection between atonement and Christ coming in the likeness of sinful flesh. Sounds very interesting
Comment: @diegob Thank you. If you ask that as a separate question, I shall answer it. It is too much to respond within the confines of a comment.
Comment: I just made the question on here. Can you answer it whenever you have time? Thank you.
Comment: @diego Your question, as stated, will probably be closed as being off-topic. Are you happy for me to edit it for you so that it stays there ?
Comment: Yes please edit it
Answer: The fact that Christian theology espouses the idea that "Jesus is deity and 'became sin' for us..." presents several major problems:
The Torah (B'midbar - Numbers 23.19) says clearly, "G-D is not man, ... nor the son of man...." and Devarim (Deuteronomy) 32.4 clearly says that G-D is "without iniquity" -
"The Rock, His work is perfect; for all His ways are justice; a G-D of faithfulness and without iniquity, just and right is He."
Since Christians, and specifically Paul claim[ed] that Jesus was both G-D and that G-D, in the form of Jesus "became sin for us - by being hung on a tree" - How could G-D "become a sinful man [that is, state a lie - as found in Matthew 16.28, cf. Acts 1.6-7] and be cursed" since the Torah says clearly that "G-D is not man, that He should lie, nor the son of man, that He should change His mind" and is "without iniquity"?
Comment: God is not a man in nature, however (Judaism and Christianity believes) he can become a man (Messiah, Son of God) as he took the form of the angel before. https://www.biblestudying.net/history-of-judaism1.html


Motorcycle rear wheel stuck after being unused for a few years

Question: I'm trying to get my old bike up and running again after a few years of waiting, mostly outside, covered but still subject to all kinds of weather.
When i parked it it was fully functional,  but now, I'vre tried to move it and it looks like the rear wheel is really stuck.
Any ideas where to start investigating, what to try, in order to at least get it moving so i can take it into a shop.
It's a Suzuki Savaga LS650, from 1998.
Comment: Welcome to the site. This may sound silly, but is it in gear? Also, is the wheel not moving or the transmission? In other words, if there were no belt on it, would the wheel turn freely?
Answer: It is most probably the pads stuck to the disc - apparently from the comments (thanks ...) it is a drum brake, at least that is what I would start with.
After that, check the rear wheel bearings.
Comment: This bike as expanding rear brakes, not disc. Hopefully not rusted to the drum inside. That would make it more difficult than dealing with disc.
Comment: @CharlieRB - No lie. I'd think those types would lock up well before a disk ... more surface area to rust/corrode. Wouldn't doubt that is the issue.
Comment: If it is a drum brake, then that will be Challenge... it's bad enough when tgere is just a ridge to deal with...
Answer: Make sure the transmission is in neutral and see if it moves. If not, pull the clutch lever in and see if it moves. If not, I would put the bike on the center stand. Loosen the tug bolts and axle to remove the drive belt tension. See if there is any rotation in the wheel. This eliminates the transmission as the issue. If the wheel still doesn't turn the issue is likely the brake shoes are rusted to the drum (most likely cause) or the axle/hub bearings are seized.


Editing attribute tables in ArcMap

Question: I have a point shapefile with several fields. Among these fields is a comment field. I would like to be able to zoom into each point and add a comment into this field in real time without having to export the attribute table, etc. Is there any way to do this in ArcMap?
Comment: Why would you need to export the attribute table to edit it? With the attribute table open (right-click layer in table of contents) and while in an edit session, you can make changes to any field/record, not just the geometry. You can even right-click a particular selected record and choose zoom-to. If you don't want the attribute table open there's always the attribute window Michael mentions, but you must select features in the map to be able to zoom to them or change attributes there.
Answer: Well of course you can... Using the Editor toolbar!
Comment: Can you expand on this a little bit, a one-line answer does't explain very much. Have you tried the Attributes window on the editor toolbar http://resources.arcgis.com/en/help/main/10.1/index.html#//01m90000000m000000 ? It sounds like that would be better than editing the table directly in your situation.

Editing attribute tables in ArcMap


How to create links which pass arguments to a page?

Question: I am making a website which displays table from a database. For every row of the table I want to provide a link(or button) which will be placed in the last column and will redirect to a page displaying records from another table associated with that row. Is there a way to create such link which would pass an argument (row id) to another page so it could display apropriate records?
Thanks
Comment: You can use l() function https://api.drupal.org/api/drupal/includes%21common.inc/function/l/7
Comment: @AkashJain if you would elaborate a bit, it might be a good answer :)
Answer: You can use l() function, Like
Suppose You are showing some data in table format as you mention in your question and using some query you get some data from databse in $result variable,

$header = array(t('Approved By'), t('Role'), t('Points'), t('View
More'));
foreach ($result as $row) {
    $rows[] = array($row['user_name'], $row['user_role'], $row['date'], l(t('View'), 'node/' . $row['row_id']));
}
return theme('table', array('header' => $header, 'rows' => $rows));

Now above code create a page showing table

Approved By    Role                    Points    View More
Eve            content writer          94        View    -> url: my-page/1

John           content manager         80        View    -> url: my-page/2

Adam           manager                 67        View    -> url: my-page/3

Jill           admin                   50        View    -> url: my-page/4

function my_module_menu() {
    $item['my-page/%'] = array(
        'title' => 'my page',
        'page_callback' => array()
        'page callback' => 'my_page_callback',
        'page arguments' => array(1),
        'access arguments' => array('access content overview')
    );
return $item; }
function my_page_callback($row_id) {
    // Get some data from database using $row_id
    // show in table
}
Comment: That looks allright but my problem lies somewhere else. I need to pass the id of a row to a page function, which would fetch a set of rows from a database (not nodes) and display the table after clicking the link. I hope I made it clear this time.
Comment: @Gregson: I have edited the answer, Hope this will solve your problem, let me know if you any issue.
Comment: This works, thank you very much. Now it would be even better if I could do the same thing without displaying the data in the url address. If I won't find out how to do that, I will stick to this solution.
Comment: It doesn't have to be based on url link, maybe I could use a set of form submit buttons, but I am not sure that it is possible in this situation or how to implement that kind of solution. Any ideas?
Comment: Change url my-page/{row-id} to my-page and using javascript you can do that, on click just save row id in cookie, and then on page callback you will get value from cookie. But i am not recommend you to do in this way.


C&C4 says I need more command posts / points

Question: Playing C&C4. When I try to build beyond my unit cap (50) there is a female voice that says, "We need more command posts [or is it:'points'?]." How can I capture more? How can I get the unit cap beyond 50?
Answer: Command points are a built-in limit to the number of units you can have at one time. In general gameplay, there is no way to breach the cap - it's 50 command points no matter what you do.
However, if you're not adverse to doing a little bit of modding, you can increase the number of command points on a per-map basis:

So I have seen a few people ask about
  this, so I thought I would make a
  quick tutorial for it.  It is possible
  to increase the number of command
  points available for a specific map in
  C&C Tiberian Twilight.  At this point
  it is not possible to mod the command
  points globally(I think?).
To access the scripts interface, go
  to, Edit->Scripts
The script should go under
  "PlyrCivilian"  The script required is
  under the heading "ThreeSixty",(this
  goes under the "Actions If True" tab)
  and the script you want is "Override
  player command points".  Set the
  values of "total" and "Maximum" to the
  number of command points you want.
...and thats it.
the finished script should look like
  this:

<code> **If**

  True

 **Then**

 Override command points for player <AllPlayers> to total:X> Maximum:X
</code>

(Where x is the pop cap you want)
It is possible to extract the maps
  that come with the game, by extracting
  the .map files from Maps.big, using
  OSBig, and then modify them with World
  Builder.
Comment: where is edit ?
i didnt found it in my game folder
Answer: Use cheat engine. First, open the CNC 4 process and enter the value of your command points then press new scan. Now change the number command points you have from the game and press next scan. Keep doing this until you get 2 values in the scan list.
Double click on the value and then it will go to the table below. Double click on the value over there and change the value to zero.


Why is there an iOS 7 tag?

Question: So I asked a question pertaining to iOS 7 and was massively downvoted.  I assumed it would be ok as there is an ios7 tag, but people downvoted it because of the NDA, even though I didn't mention anything new.  Curious, I looked at the ios7 tag and found that all of the questions there were similar: no breaking of the NDA, but massively downvoted for that reason.  If any question with the ios7 tag is going to be downvoted, why does it exist in the first place, and can it be deleted?
Comment: Downvoting a question because of NDA violation seems stupid. If you don't think it should belong on the site for reasons of law violation flag it for a mod.
Comment: Related: [Should moderators enforce NDAs for software vendors?](http://meta.stackexchange.com/questions/94465/should-moderators-enforce-ndas-for-software-vendors) (cc @BenjaminGruenbaum)
Comment: "why is there an iOS7 tag?" -- because someone with enough reputation (the limit's quite low) though it would be a good idea to include the tag in his question.
Comment: The downvotes might not be because of the NDA but might be as any answer will change during the beta phase.
Comment: Not all questions in the tag are downvoted... Out of the 41 ios7 questions there are 4 with zero score, and 3 are upvoted. It must the tag with the worst record on SO though :-)
Comment: Even if your downvotes were NDA related (only the voters themselves can answer that point) the tag itself will be useful once the NDA is lifted.
Comment: @Mark: Well, new answers can be posted, the accepted answer can be changed, and the question can be closed and deleted later if it turns out the problem is definitively fixed and will _never_ be seen again. It's still a problem right now that needs an answer. On its own, beta software isn't a reason to prohibit a question. See also [What to do with obsolete posts?](http://meta.stackexchange.com/q/184602) from just a few hours ago.
Comment: @AnnaLear Thanks I wasn't aware of that. I still stand by my suggestion though. If you think a question has a problem that does not relate to its usefulness to the sites but to its legal status downvoting it is wrong. I'd flag it if I thought it was problematic in another way and leave it to a mod or a community manager like yourself to decide since you're aware of the legal implications and I'm not.
Comment: @Ben as a mod I can safely say I haven't a clue about the legal implications of NDAs I'm not even a party to that cross international borders.
Comment: @Flexo right, but you have much better access to people on SE who do. If you have a better solution to what one should do when they see something they suspect illegal and might get SE into trouble I'm all ears.
Answer: Technically, the tag exists because someone with 1500 reputation created it and applied it to a new question (privilege description here). More than one question has been tagged with it, so it will most likely persist.
A tag existing on the site is not an endorsement of everything about that topic, so it can't be used as a metric to determine what is or is not on topic. In this case, programming questions involving developing for iOS 7 are on topic. Others are not, such as how to downgrade the OS on your iPhone after installing iOS 7, or questions about selling UDID slots to non-developers (yes, people were asking that).
That said, I think people are being a little too harsh when it comes to questions about prerelease OS versions like this. There seems to be a bit of a vigilante effect at work here, where people feel that they need to punish anyone attempting to break their NDA with Apple. I'm bound by the same NDA, but that only covers things that I disclose. I am not responsible for policing anything else that others may leak, nor is Stack Exchange. People need to stop flagging these things, because I'll keep declining them.
In general, my take has been that if someone is asking a question about a bug that is specific to a particular build of a beta OS, that's too localized for Stack Overflow. That may not apply with the new closing reasons coming down the pipe, but I don't see how questions which deal with something that may be fixed next week will help future visitors.  If it's a bug you're dealing with, it does no good to report it here, and you should instead use Apple's bug reporter.
However, broader questions about the usage of a particular new API are viable here, and it's not up to us to close them. It's unfortunate that a good question like this asked now may be downvoted into oblivion, where the exact same question asked in a few months might get great answers and be highly upvoted.
At the worst, I would leave comments on these directing people to Apple's developer forums, which is where you can discuss these matters freely and where you'll actually get the engineers behind the technologies to respond directly. You can also help shape the direction of the OS that way.
As an aside, I'm not a huge fan of OS-version-specific tags, because people often use those and forget to apply the more generic [ios] to them as well. This significantly reduces the visibility of these questions, and whatever issue they're working with in iOS 7 may still be the case in iOS 8, etc., so you want people in the future to find this. That's a side issue, though.
Comment: We on Ask Different also deal with this on an annual basis (recent history of course) and find that having a short discussion each time helps people realize that tagging things as [tag:iOS] is almost always preferable to [tag:iOS7] - even in cases where the feature is closely tied to one release. That being said, the tags are useful for finding and organizing things and can be changed by the normal edit process - especially when there is community discussion to get non-elected moderators on board with when to use one tag over the other.
Comment: I've also put my two cents in to this answer - http://meta.stackexchange.com/a/184639/165931 - the presence of an NDA means the site can't attract the people that are in the best place to **answer** iOS7 questions and asking is just a vehicle to get good answers.
Comment: @JoshCaswell - Even things that are tangentially related get hit, like this question: http://stackoverflow.com/questions/17036655/ios-7-style-blur-view that was not asking about anything private (or this one that you commented on: http://stackoverflow.com/questions/17041669/creating-a-blurring-overlay-view ), but how you might go about doing something that Apple has shown publicly. That's disappointing.
Comment: Amen for your third paragraph! «I think people are being a little too harsh when it comes to questions about prerelease OS versions» This tag is a burned-out wasteland right now, even though a fair few of the questions would/will be considered perfectly decent SO citizens if it was November instead of the week after WWDC.
Comment: Very disappointing indeed, @BradLarson; I've been pondering whether there's anything that can be done to change the mood, but I think it may just have to run its course. I'm trying to keep an eye out for questions -- like 17041669 -- that can maybe be shielded with a little judicious editing.
Answer: Someone with the right amount of reputation (who's question was also probably downvoted) decided that his question could use that tag and he decided to make it.

Why is there an iOS 7 tag?


Why is the flame color from the New Shepard engine orange?

Question: New Shepard is described as using liquid oxygen and liquid hydrogen for its propellants. When hydrogen and oxygen burn, as in the Space Shuttle main engines, there is a short conical blue flame, beyond which the exhaust is clear (until the water vapor condenses). The New Shepard exhaust appears to have a long, distinctly red/orange/yellow flame, which would suggest that there is something else burning besides hydrogen and oxygen. What's going on?
Comment: A good question, especially considering the example of SpaceX's Raptor's hydrocarbon-rich but very clear blue flame (when it's not an early prototype engine slowly consuming itself). Sodium in dust can strongly color the exhaust when near the ground, but this clears up with altitude. The RS-68 exhaust is colored due to its ablative nozzle, but I haven't heard any indications that BE-3 uses such a thing. Though it might explain why BE-3U is basically a new engine...
Comment: Have we ever actually seen the flame of an SSME at similar altitude in similar atmospheric conditions filmed with similar exposure settings, without any other bright source of light nearby? In the SLS Green Run Hot Fire test, you can clearly see an orange flame, for example.
Comment: @JörgWMittag the closest match I can think of is the DC-X, and never mind exposure settings, the imagery was done with a radically different technology. The exhaust was visible at times, but the film used might respond to wavelengths common camera sensors would miss, and the manipulations in printing and scanning might exaggerate its visibility, especially if done by someone who's expecting the exhaust to be visible.
Comment: @JörgWMittag note that in the Green Run test, the exhaust is hardly in open, clean air. Even tiny amounts of sodium contamination from dust/concrete/etc will turn things bright orange/yellow.
Comment: Pic of DC-X (regeneratively cooled RL10 engines) showing pinkish-red plume: https://www.americaspace.com/2013/08/20/original-delta-clipper-experimental-team-inducted-into-international-space-hall-of-fame/
Answer: The first few feet of exhaust from the New Shepard is clear, and the reddish plume fades with altitude, so we can rule out an ablative liner like the Delta IV's RS-68 engine uses -- that would produce a more consistent yellow plume.
Hydrogen's emission spectrum includes lines in ultraviolet, violet, blue, green, and red. Very hot hydrogen combustion, like that occurring in the engine's combustion chamber, gives more of the violet and blue emission, but the exhaust is fuel-rich, and cooler than the combustion chamber due to expansion in the nozzle, so when the exhaust hydrogen combusts with atmospheric oxygen at lower temperatures, you see more red.
The space shuttle's RS-25 main engines also produce a little pink light in the exhaust plume, but it's faint compared to the very bright plume of the solid rocket boosters, so not so noticeable in photos. The exact exhaust chemistry may be different as well; I don't know how the propellant mixture ratios compare.
The DC-X also used regeneratively cooled, hydrogen-oxygen RL10 engines with no solid rocket boosters, and shows similar pinkish-red plumes:


Is there a website where one can watch past f1 races?

Question: Is there a website, like an archive where one can watch past f1 races? for instance monaco grand prix 2004?
Comment: Moderator note: while in general requests for off-site resources are off-topic, I've re-opened this one as *in this specific case* there is now an answer which is unambiguously correct.
Answer: As of 2019, F1TV is now available and is run by Formula One.  It offers annual or monthly subscriptions with access to "650+ races from our archives", clarified elsewhere as "...1981 to the 2018 season".

[Older information for historical reference]
Not legally, no. Rights to Formula One coverage are controlled by the commercial rights owner (Formula One Administration - see here http://www.formula1-dictionary.net/admin_force.html).
It is highly unlikely that any broadcaster with the rights to broadcast F1 races would be permitted to provide open access to internet at large in any case.
In the UK, Sky F1 trend to run repeats of archive races way back to the early races in the fifties. Alternatively, the FOA have historically released season reviews on video and DVD, including the 2004 season.


Change display order of View block in Content area of page

Question: I have a dynamic view block that is set to display in "content" region of a Basic page. The Basic page has a field that i want to display at the bottom (i.e. after view block)
Question: I cannot figure out how to change display order, so that page displays View block first, then a field from Basic page. Thanks in advance!
Answer: Try out the Field as Block:

Field as Block provides an easy way to display one or more fields of the current node in a block.


Is it possible to convert local currency to USD by depositing the money at ATM using an American bank account?

Question: Let's say I go to Russia. I can get rubles from Moscow's Citi Bank's ATM from my Wells Fargo account at the current exchange rate. There's a fee for each transaction, but it is very little. If you exchange USD for rubles at airport, the rate is very unfair due to the instability of the rate. Then, is it possible to deposit rubles at the same ATM to get USD in my account at the same rate?
Comment: You want to deposit cash (rubles) into a Citi Bank branded ATM in Moscow, Russia and expect CitiBank to exchange it for US dollars and credit the sum to your _Wells Fargo_ account somewhere in the US?  Are you that you can even deposit US dollars into a Citibank ATM in Moscow, Idaho and have that money credited into your Wells Fargo account in the US? let alone rubles into a Russian CitiBank ATM for conversion into US dollars into your Wells Fargo account?
Answer:
Then, is it possible to deposit rubles at the same ATM to get USD in my account at the same rate?

No this is not possible. Generally deposits into accounts outside country and not offered.


Send command to daemon

Question: I have a minecraft server running as a daemon. When you run it normally (not as a daemon), you can type commands into the console. How can you get to the console so I can send it commands while it's running as a daemon?
Answer: I would recommend running something like this in a screen session instead. The benefit of screen is that you can reattach to the console whenever you like to run a command, then send it to the background again as needed.

First type screen to start a session.
Run your minecraft server as you would in standalone mode.
Press Ctrla Ctrld.

You can now close your terminal session and minecraft or whatever software you use will continue to run in the background. Running screen -r will reattach you to this session to run commands.

Send command to daemon


Importing Brushes in 2.79 on Mac

Question: I have tried to look at other posts on how to do this. I don't seem to have an import brushes option in User Preferences>Add Ons. I see where others have had a similar problem and it was suggested a python script was offered to fix this. I am not quite knowledgeable with coding and such. No idea how to add script. Would love to have some of these free brushes for Blender I've seen posted. Any help would be appreciated.
Blender 2.79, MacOS versoin 10.14.6 (18G87), Intel Core i5, Graphics Radeon Pro 580 8 GB
Comment: Thank you. You were extremely helpful. That worked. Thanks for your time and efforts to help out a fellow Blender artist.
Comment: Converted to answer below.
Answer: Brushes are considered the same as any other part of Blender comparable to objects and materials - they are 'imported' through the Append function. If you have a brush(es) stored in a file, you press Append under File and then navigate to the file containing them. Select the ones you want, and confirm to append into your scene - then you should be able to find them in your current file. Check them to be Fake User if you want them to stay in the file after close and reopen.

Importing Brushes in 2.79 on Mac


What keymap do you prefer in ReSharper?

Question: I am using ReSharper since version 3 and I always used InteliJ Idea/Resharper 2.x keymap schema. Recently I have learned Ilya's Visual Studio keymap. They each have advantages.
What keymap do you use/prefer with ReSharper?
Answer: I think it's mostly going to depend on what background you're from. Personally I found going from Visual Studio to Visual Studio + Resharper very easy using the Visual Studio key map (not suprisingly). Someone coming from an IntelliJ background is going to find the IntelliJ mapping easier.
If you're new to both Visual Studio and IntelliJ I would suggest going with the Visual Studio mappings in case you find yourself in the horrible, horrible situation of having to use VS without R#er in the future.
Most people will supplement the default bindings with a few of their too - so if you're really missing something from one the just add it to the other.
Answer: Typically I use the IntelliJ mapping, simply because that's what was introduced to me when I started at my company, plus a few additions:

Alt+; to run the unit tests in context
Alt+C to close all windows.
Answer: The simple answer is 'it depends'; most developers I know (and I include myself in this) are creatures of habit. When developing, I tend to find that my 'muscle-memory' takes over when I'm performing tasks, whether that be using ReSharper keyboard mappings or the choice of CLI to use when doing simple command line tasks.
Both keymaps have their own advantages as you've stated, but the biggest advantage is how productive it makes you without getting in your way. Personally I use the Visual Studio keymap, because that's the one I know and for 90% of the tasks I need to perform with ReSharper I don't need to think about the steps involved in activating them (Ctrl+R Ctrl+V to introduce a variable for example).
Answer: If you have a Visual Studio background go for that one. If you have a Java background go for IntelliJ.
The Visual Studio one does have the advantage that other developers who want to use your pc for five minutes don't have to pull their hair out. but even then some hotkeys are different.

What keymap do you prefer in ReSharper?


Pytorch Facenet MTCNN Image output

Question: I am doing a face recognition app using facenet pytorch (https://github.com/timesler/facenet-pytorch) in python using two methods.
1st method
Code -
resnet = InceptionResnetV1(pretrained='vggface2').eval()
mtcnn = MTCNN(image_size=96)

img = Image.open(image_path)
image_prep = mtcnn(img)
plt.figure()
plt.axis('off')
plt.imshow(image_prep.permute(1, 2, 0))
if image_prep is not None:
  image_embedding = resnet(image_prep.unsqueeze(0))

In this code, I extract the face from the given images, and get the 512 encodings for recognizing faces.
In this example, I used two different faces, and plot the distance between the faces
        a.jpg       b.jpg
a.jpg   0.000000    1.142466
b.jpg   1.142466    0.000000

It works well...
2nd method
Code-
 img = Image.open(image)
 boxes, probs = mtcnn.detect(img) # Gives the coordinates of the face in the given image
 face = img.crop((boxes[0][0], boxes[0][1], boxes[0][2], boxes[0][3])) # Cropping the face
 plt.figure()
 plt.imshow(face)
 pil_to_tensor = transforms.ToTensor()(face).unsqueeze_(0) # Converting to tensor type
 image_embedding = resnet(pil_to_tensor)

In this code, I used to get the coordinates of the face, first and then the embeddings. The distance between the two faces -
        a.jpg       b.jpg
a.jpg   0.000000    0.631094
b.jpg   0.631094    0.000000

In 1st method, I directly feed the image to the mtcnn and gets better result, the distance between the two faces are more than 1.0.
In, 2nd method, I gets the coordinates of the faces using mtcnn.detect(), cropped the face from the given image, and feed to resnet. This method gives less distance between the two different faces.
Then, I find the reason for why the 1st method performs well than the 2nd method by plotting the result(face) before feeding to resnet.
In 2nd method, I feed the faces same as given in the input image(clear image) by cropping the faces using mtcnn.detect().
But, In 1st method, I directly gives the input to mtcnn(img) which returns the tensor of the faces in dark than in input image. This darker image is not a clear image(area around eyes are darker, I tested with many photos), Can't able to see the eyes clearly. This is the reason, the 1st method shows higher distance between two faces.
My doubt is, Why mtcnn returns the tensor in dark, How to solve it, Help me in this issue,
Thanks
Answer: Maybe besause tensor returns in [-1:1] range?
And you have to convert it back to uint8 [0-255].

Pytorch Facenet MTCNN Image output


Ubuntu ISO with make and gcc

Question: Are there any ubuntu ISO's that you can boot with that already have make and/or gcc (or other c++ compilers) installed?
I have successfully installed the ubuntu 18.04.2 version onto my XPS 7590, but the killer wifi card does not work. I researched ahead and knew this would be a problem and found the solution here: https://support.killernetworking.com/knowledge-base/killer-ax1650-in-debian-ubuntu-16-04/. Using this guide, I downloaded the suggested git repositories to a usb, but was disappointed to find that the ISO of ubuntu 18.04.2 did not include an install of make! When I got a GNU of make, I was frustrated when I found out it doesn't even include gcc! As far as I can tell it is extremely difficult to install these modules without internet - which I need the modules to be able to install the drivers to use my internet so... It's been a very frustrating catch 22. I honestly don't understand why such useful modules would not be included in the first place, but maybe that's my naivety.
Comment: Most people complain that Ubuntu is bloated (ie. already includes software that many people don't use), so no the package `build-essential` is not included by default as most don't need it. If you need it, add it (& deps) to your thumb-drive, or add an ethernet cable temporarily to your machine to download that way, then use wifi (*yeah I'm assuming your box has ethernet*)
Comment: Possible duplicate of [How to customize the Ubuntu Live CD?](https://askubuntu.com/questions/48535/how-to-customize-the-ubuntu-live-cd)
Answer: You can make a list of the packages you need to install by running the following command:
apt-get --simulate install build-essential 2>&1 | grep "^  [a-z0-9]" | sed 's/^T.*$//g;s/ /\n/g' | tee packages.txt

A copy of this list will be in your ~/Downloads directory if you need it.

Then, you can go to a working computer and you can download each package on the list by using the following url (replacing "packagename" with the actual package):
https://packages.ubuntu.com/bionic/amd64/<packagename>/download

Here is an example of the url to download make:
https://packages.ubuntu.com/bionic/amd64/make/download

Just click on one of the listed mirrors to download.
Don't forget to also download build-essential!

You will need to copy all of the downloaded packages (as root user) to the following directory:
/var/cache/apt/archives
Finally, you can run the following commands to install the packages:
sudo apt-get install build-essential

SOURCE

Ubuntu ISO with make and gcc