Features selected with train data is so different from features selected with all the data

Question: I have 199 data, 77-diagnosed and 122-healthy. Each data has 12076 feature (gene expression). When I split data into train and test (N/2 for train and N/2 for test) and run feature selection on train-data and select best features and then run the same feature selection on all the data and select features, the selected features in two situation are so different(for example in the train data 259 features are selected and in the all data 119, and the number of common features is 28). The difference between the two categories is not impressive, and I don't know how to separate them. I tried information gain, random forest, chi-squared, sub-lasso and cfs (from FSelector package in R), but none of them works out. I need to reduce the features and prevent over-fitting and use a classifier to discriminate two classes, I tried SVM as classifier and also KNN (I know it is for clustering but all the results are desperating so I just tried it). The PC1-PC2 plot of data is also very bad (data points are not separable at all). When I divide people in dataset based on the age and sex, the PC1-PC2 plot is very good, but the results remains disappointing (for example when I choose male under 9, the data size reduces to 41 and I think that's the problem). The accuracy after classification is about 65 - 70%. Can anyone guide me how to make it better?
Comment: Did you randomly select the training half?
Comment: @MichaelChernick I select them randomly but with equal number of every class
Comment: Are the features all binary? Does each of the 199 data points have a distinct/unique gene expression? Do you have any known factors? (sounds like age and gender are good to use)
Comment: @probabilityislogic All the gene expressions are continuous, because there are 12076 dimension (gene expression) and they are continuous, yes they are distinct and unique (all together, but not every gene expression is unique). We also have factors (gender and age), I use them and they can discriminate very good, but when I shrink data, the results of classification is not good at all.
Answer: First, if you achieve an accuracy exceeding $65\%$, there is a sense in which that is a solid score. After all, you are beating a baseline model that predicts the majority category every time (which would have accuracy around $61\% = 122/199$). See my discussion here on this kind of comparison, which means that your accuracy between $65\%$ and $70\%$ has an $R^2_{accuracy}$, as I define it in the link, between $0.095$ and $0.225$. While these might not seem high, given the inherent variability in biological data and the possible determinants of health that are excluded from your model (diet, exercise, smoking, etc), these might be pretty good scores. (Indeed, it is routine for papers in the top journals of many fields to have $R^2$ scores like these, so why not $R^2_{accuracy}$ scores like those?)
Second, welcome to the instability of feature selection. This is expected behavior. Indeed, I addressed a similar question just two weeks ago. Frank Harrell of Vanderbilt University has a keynote presentation on YouTube (Why R? 2020) that does some simulations showing this instability, along with a quote I like.

Parsimony is the enemy of predictive discrimination.


Implement CI/CD using Bitbucket/Git and Codeship

Question: I'm trying to implement CI/CD using Bitbucket and Codeship(a CD tool like Jenkins) to achieve continuous deployment in Salesforce Orgs along with code versioning. I'm confused with the new folder structure which gets generated by VSCode(the config, app, manifest folders). The question I have is to understand where to put ANT build.xml, build.properties ant-salesforce.jar files.
I want to understand the folder structure for ANT related files.
Answer: I have similar setup in Azure DevOps and here is how it looks like -

You can have your own folder structure but make sure to map ant-salesforce.jar & build.properties in your build.xml. Also, when you run your CI/CD point to folder containing build.xml.


Stucked in BIOS(AMI)

Question: I was trying to install Ubuntu (the installation went well) while already having installed windows 8. After installation I wanted to change the boot option back to hard drive but this option wasnt there, only CD/DVD option. Now I am stucked in BIOS not knowing how to boot from hard drive. I have ASUS N56V laptop.
Comment: It seems that this BIOS have a "secure boot" option which can limit boot options. How is the drive partitioned - MBR or GPT? Is UEFI enabled? There could be also a backward compatibility option called "CSM".
Comment: Could try switching to/from legacy mode or to/from uefi mode depending on what it currently is. Otherwise, reset BIOS to default settings and see if that helps. You could also try reseating the hard drive, but that seems unlikely to help
Answer: You probably didn't make the drive bootable for one reason or another during the Ubuntu installation.
You probably can hit F12 or similar on your BIOS to bring up a boot menu, which should let you select the hard drive even if it won't let you set it as a boot device in the BIOS.
Or, you can boot off of your Ubuntu install disc and run it in Live mode.
Once in Ubuntu, bring up the Disk Utility, select Edit Partition, and make sure "Bootable" is checked.

Stucked in BIOS(AMI)


java basic question

Question: public static void main( String arg[] )

In the above statement, can I use an int array in place of the String array? What happens if I don't put anything in the parenthesis, i.e if I use an empty parenthesis?
Answer: When you compile the code with the changes that you mentioned, it will compile successfully. When you try to run, JVM checks for the main method with String array as arguments. Since there is no main method with String array as argument, your code will not execute successfully and it throws NoSuchMethodError.
Answer: No, I think you can't use int array instead of String array.because the argument int is used by the operating system to pass an integer value specifying the number of command-line arguments entered by the user. so you must follow the following pattern.
public static void main(String[] args)

public static void main(String args[])

Answer: The code will compile but not run.
The reason for the string[] is so that people can pass parameters through the command line.
Answer: I'm not sure what you mean by Int array but no, you cannot.  The method signature needs to exactly match public static void main(String[] args).  The only thing you can change is the name of the argument.  The name of the method, the argument type, the visibility (public vs private, etc) is what the runtime uses to find the method itself.  If it does not conform to that signature, it is not an entry point method and consequently will not be called when your application starts up.
However, it should be noted that what you're suggesting will compile without issue.  The problems will not arise until you attempt to run the application.
Comment: By Int array , i meant an array of integers.
Comment: @rajivpradeep, I figured that's what you meant, but no, you cannot.  It must be a String[].  when you think about it that makes sense.  The parameter array will be supplied by the shell and it doesn't know how to convert strings to ints.  All it understands is Strings.  If you want an int array, you must convert from String to Integer by using `Integer.parseInt()`
Comment: Thanks chris for ur answer. Thanks
Comment: Technically, java signatures dont look at the return type, nor do they look at the symbolic name for the arguments
Answer: The compiler will accept but the runtime will give you a NoSuchMethodError
Answer: The main method is the entry point for the java application. If you look at the java language specification, it specifically states:

The method main must be declared
  public, static, and void. It must
  accept a single argument that is an
  array of strings. This method can be
  declared as either
public static void main(String[] args)

or
public static void main(String... args)

The String[] array passed in contains any command line arguments that have been passed in by whatever launched the application. You can then read them and convert them as you need.
Answer: If you're looking to get numbers instead of strings, use this approach
public static void main(String[] args) {

    int[] numbers = new int[args.length];
    for(int i = 0; i < args.length; i++) numbers[i] = Integer.parseInt(args[i]);

}

Handling exceptions is exercise for the reader.
Other answers explain quite well your other issues of the 'why'.
Answer: No,it produces a runtime error like
Main method not found in class test, please define the main method as:
   public static void main(String[] args)
JAVA is more specific about main method signature, It considers your method as a general method in a class.
Comment: What does this answer differently compared to the other answers already here?
Answer: If you want to convert String args from main static method to int then do the following:
public class StringToIntArgs {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int[] anIntArray = new int[args.length];

        for(int i = 0; i < args.length; ++i) {
            anIntArray[i] = Integer.valueOf(args[i]);

            System.out.println(((Object)anIntArray[i]).getClass().getName());
        }
    }

}

Now compile and run the java code with arguments like below:
C:\Users\smith\Documents\programming\java>javac StringToIntArgs.java

C:\Users\smith\Documents\programming\java>java StringToIntArgs 1 2 3 4 5
java.lang.Integer
java.lang.Integer
java.lang.Integer
java.lang.Integer
java.lang.Integer

java basic question


Why the pressure of atmosphere doesn't crush you when you e.g. walk outside?

Question: Why the pressure of atmosphere doesn't crush you when you e.g. walk outside? I mean the density of air is $1.26 kg/m^3$, so with $100 km$ above us, it exerts much pressure on you when you walk outside.
Answer: If you were a completely empty shell you'd likely be crushed immediately on finding yourself in the earth's atmosphere. But you are filled with stuff (blood, flesh, bones) which is also at approximately atmospheric pressure. If you consider a point on your skin, the pressure of the air on the outside pushing it in is exactly matched by the pressure of the contents of your body pushing it out. So the net force is zero.
Comment: Here's what happens when you have an object that doesn't contain material at a high enough pressure to oppose atmospheric pressure: http://www.youtube.com/watch?v=Zz95_VvTxZM
Comment: Just to add an experiment to your explaination, try the following experiment: get a can of soda and put a little water on it (like 0.5 cm above the base) and a bowl with cold water.

Now, put the can on the kitchen and wait until the little ammount of water you putted on the can starts to evaporate. With some heat-gloves, take the can off the kitchen, turn it over (with the hole where you drink from the can looking down) and put it inside the cold water.

The atmospheric pressure will do the rest!
Comment: @Nestor You may want to check the usual meaning of "kitchen". It is hard to imagine putting the can on the kitchen.
Answer: To add to Dan's answer - the same thing also applies indoors.
Even with a roof over your head the outside air presses on the windows, doors and walls with the same air pressure, and so compresses the air inside the room to the same pressure.
Answer: Pressure acts in all directions. it does not care about direction. pressure is a property of the fluid itself. but the way you CALCULATE it is to find the 'weight of the air above'. this does not mean it is literally the weight above.
The reason you don't feel it is because your body is built as a vessel in such a way that there is almost zero NET forces due to pressure acting on your organs.
If you dive into water, the deeper you go, the body now DOES have net forces acting on it. this is how you feel water pressure. if you provide enough force, the body will contort and change to then equalise those forces back into equilibrium. this will probably be what kills you


Ambiguous Magento 2 Structure

Question: I am new in Magento Framework. Here I did found header.phtml, logo.phtml, header links etc. But i can't figure out how all these files are bind together? What holds these together? If i have to add another div where should I add? Please help.
Answer: M2 structure is altogether different than M1. Depending upon what are you planning to do, I'd recommend creating a new file and linking it using the layout xml.
I hope it helps.

Ambiguous Magento 2 Structure


Relationship between structural or statistical properties and hardness of classification

Question: I am trying to understand the relationship between structural or statistical properties of training dataset and hardness of classification in the  context of binary classification with SVM using RBF kernel. I would like to predict the hardness without actually trying to classify the dataset. The obvious properties are the size of the dataset and features. What other meta-properties indicate that an SVM using RBF kernel will result in low accuracy and/or extremely expensive computation?
Comment: I would look at the distribution of the distances. consider that the model depends not really on the features, but on the distance matrix.
Comment: @carlo, could you clarify the definition of "distance"? May I know distance between what?
Comment: RBF kernel uses distances $||x_1-x_2||$
Answer: The RBF kernel is local in the feature space, so it can only work well if a nearest neighbour predictor also works fairly well. It is often worth trying Nearest Neighbour first - if its results are dreadful then I question whether I have the right feature set.
But if you are going to use an SVM, it does not feel right to me to start with feature engineering then use assume the RBF is appropriate. Instead, design a problem-relevant kernel function. This will be equivalent to some set of features, by Mercer's Theorem, but what that set is does not really matter - you get the predictions directly by building an SVM with your kernel function.
Answer: The idea of using properties of a dataset to decide on classifier characteristics is called metalearning
I do not know much about metalearning itself, nor any specific aspects of metalearning for SVMs and classification hardness
A search on Google Scholar points to https://link.springer.com/article/10.1007/s10462-013-9406-y (open access) as a recent and well cited survey of metalearning.
I know of one result on metalearning-like results for SVM: the mean distance between classes is a good heuristic value for the $\gamma$ hyperparameter for the RBF SVM (both behind paywall):

Analysis of the Distance Between Two Classes for Tuning SVM Hyperparameters

Empirical comparison of cross-validation and internal metrics for tuning SVM hyperparameters


configure same domain name as external in bind

Question: I want to configure local domain zone in bind9 like "example.com" for local lan to add some hosts only. but if I configure that I am unable to connect to "example.com" which is public registered domain. how can I redirect in bind9.
Comment: I'm not quite answering the question (hence the comment and not an answer). You can use DNSMasq instead of bind (it is DHCP and DNS server). It can forward all DNS queries to external DNS and you can specify a local hosts, which will not be forwarded to external DNS. i.e. you can add "local=/myzone.example.com/" to the configuration and all queries to *.myzone.example.com and the host iself will be answered from /etc/hosts file, instead of a real DNS. Another way is to add "address=/doubleclick.net/127.0.0.1" in the config, which is easier probably.
Answer: If you do not have ownership of the domain in question, you should never do this; it is considered rather rude. For exactly example.com, however, when testing things, that's fine.
DNS clients will ask their configured nameservers for a domain name. If that server does not have any knowledge of the domain they're querying, then it must go and ask the root servers for more information about the location of the data. The resulting query process is somewhat involved, but at any rate, unless you're the official owner of example.com, that's not going to work. If the server(s) that are being queried first do have the required information though, then they don't need to query the root servers but can just return the wanted information.
In other words, you need to configure the machines you want to query your zone with your bind instance; if you've done that, it should just work.


Interstellar in In-Flight Entertainment

Question: Has the movie Interstellar been added to the database for in-flight entertainment on any flights yet? In other words, if I wanted to board a flight just to watch Interstellar, could I do that? If so, where?
Comment: Note that there is typically no guarantee that the monitor in the seat in front of yours will be operating correctly. Likewise, equipment changes happen all the time - replacement planes may have no in-flight entertainment. When additionally taking into account carbon emission, it appears most resonable for you to either (1) watch it in cinema (if they still have it), or (2) wait for it to appear on disc.
Comment: Why the downvotes, people?
Comment: Interesting method of choosing a destination....
Comment: I've never seen a film available on a plane while it was still showing in cinemas
Comment: While I don't plan to watch Interstellar, I would like to know more about the releasing of movies on in-flight entertainment, so upvoting.
Answer: So you want to watch a great movie strapped to a uncomfortable seat, while the person in front of you reclines his seat and crushes your feet, on a small crappy screen, interrupted by PA announcements, with babies crying, people coughing and farting and constant engine sound in the background.
The answer is no, not yet. You have to wait a few more months, maybe a year until its out of cinemas and then you get to fulfill your dream
Comment: Wrong, many airlines purchase the movies and show them in that period when the movie leaves the theaters and before it is on DVDs, the same period where the movies can be purchased on the so called "home cinemas" in cable networks. It is a great way for movie makers to get some extra bucks in this period from airlines actually.
Comment: You said that airlines buy movies when they leave the theathers. Which is exactly what I said. What are we arguing about? :)
Comment: I said, after they leave the theaters _and before they are on DVDs_, that is most likely to be less than a year AFAIK
Comment: Actually I was reading the comment in the question which says to wait for it to be on disc, then read your answer, mixed the two in my head and replied accordingly :) so your answer is right.
Comment: There are crying babies, farts and coughs in a film hall too :( 1080p (preferably a pirated copy)  + load of Nutella is my kind of heaven. Airline sites often advertise their in-flight entertainment (Malaysia Airlines for example). But from what I've seen, films get added to IFE when they are done in theaters.

Interstellar in In-Flight Entertainment


English, several localizations, how to get rid of them?

Question: For Ubuntu with English GUI language several English localizations are installed, like New Zealand, Ireland, Australia, Canada and so on. However only en_US is needed. How to achieve this goal? We doubt it was a mainstream who asks for english gui in its all variants.
Answer: You can't get rid of them easily, since all the English variants are shipped in the same set of language packs in Ubuntu. My advice would be to select en_US and leave it at that. The other installed English variants do no harm, do they?
Answer: You can install localepurge to purge all the useless locale info and translations that are not the same as the locale (en_US) used. To install this, open a terminal and execute the following commands:
<code>sudo apt-get update
sudo apt-get install localepurge
</code>
follow the instructions.
Also, whenever you install new applications in the future, the foreign locale info (non en_US translations) will be deleted upon installation.
Edit:
<quote from "man localepurge">
A Word of CAUTION
Please note, that this tool is a hack  which  is  not  integrated  with
Debian's  package  management system and therefore is not meant for the
faint of heart.  Responsibility for its usage and possible breakage  of
your system therefore lies in the sysadmin's (your) hands.
Please   definitely   do   abstain  from  reporting  any  bugs  blaming
localepurge if you break your system by using it.  If  you  don't  know
what  you are doing and can't handle any resulting breakage on your own
then please simply don't use it.
</quote>
Comment: personally, i've never run into any serious problems. every once in a while the system might complain but nothing serious.


Sound reasons for excluding a reviewer

Question: I am about to submit a paper, and I'm asked whether I want anybody to be excluded from consideration as a reviewer. I also need to state a reason. I briefly considered listing someone who - I have reasons to believe - once reviewed a paper of mine by listing criticisms that were unspecific enough that I spent a very large amount of time just trying to figure out what they meant. Of course my guess could be wrong, and it seems unfair to label someone as a suboptimal reviewer based on a hunch. Which led me to wonder - what are some good reasons for asking for exclusion of a reviewer? And additionally, what would polite wordings be for each of these reasons?
Answer: You should list reviewers (if any) that you think may be unfairly biased towards your science in some specific way. this includes persons with whom there may be a personal conflict that would shadow an objective review or people who have shown an unmitigated dislike for your science or the like. It is not intended to be used to list persons just because they may not agree with your science. In the specific case you list, I can see that such a reviewer may be unwanted but I do not think the reasons are strong enough to warrant signalling the reviewer as unwanted. The chances of the reviewer being asked may be small if there are many others that can be considered useful. Finally, if you were still to receive a review that is as unclear as the one you describe, you should ask the editor to clarify what you should read out from the review. After all, the editor must have read the review and used it to evaluate the degree of revisions necessary of your manuscript. So in short, you should save the nasty for listing as unwanted or non-preferred (whatever the journal terminology may be) reviewer.
Comment: Not that it's also the case when the bias is *in favor* of the author. A good reason to exclude a reviewer is if you have close ties to this person, whether professional or personal. Especially if they are not obvious to the editor (such as working in the same group and sharing authorship of previous publications).
Comment: Does the letter from the editor require you to give reasons? Many times you're not require to list the reasons, just the names.
Comment: You could be vague and say "served as reviewer in recent past" -- most journals know the importance of making sure single people don't serve as gatekeepers to small fields
Comment: But still, I am interested - how would you politely say 'this person has shown an unmitigated dislike for my science'? Surely you can't just say that to the editor?
Comment: Thank you. I'm not going to list this person because I also think it's not a strong enough reason, it was just the trigger for this question. Someone I'll certainly list is a person I'm collaborating with on some additional analyses of the same dataset, but that is quite clear-cut: he has too much incentive to want this paper published.
Comment: @RoboKaren - this particular life sciences journal does. There's a whole online form with boxes to fill, with 'Reason' being obligatory. I have no idea how common it is though.

Sound reasons for excluding a reviewer


Modal content UX

Question: I have a situation where I need to display a table with multiple rows of data. Row count can be from 1 to 99. Is a scrollable modal the correct UX, or should I display this info on its own page?
Comment: Do you have mocks of your efforts so far? What is the larger context here?
Comment: As Mike says, I think the larger context is key here: how are users coming to the table, what are they using it for, and where are they going afterwards? Without know at least these three things no-one will be able to give you a sensible answer.
Comment: Long story short, the user uploads a spreadsheet file into a database, the file is checked for validation, if there are any errors the user needs to see which rows failed and the reason (validation rule) why it failed.
Answer: Generally I steer away from tables in modals/lightboxes
Tables this large would almost certainly be handled in-page as you are likely to need to perform actions on elements in the table (create/delete/edit etc) and having a table in a modal (or slide-out/lightbox) would lead to horrible interactions down the line
edit: just saw your comment
I did an interaction like this where it was done in-page. It was much easier to manipulate/view the spreadsheet data when the user wasn't constrained by smaller windows.

Modal content UX


Tung oil does not dry

Question:
I have researched and done everything to get my tung oil to dry . It was put on to thick first coat. I removed the coat and sanded . Used lacquer thinner to remove . Still not dry . Has been 10 days .
Turned heat up to 75 in shop . It now was fairly dry but still slightly tacky . I used 50-50 lacquer thinner and tung oil . Wiped down and left it .
Still tacky when checked after 18 hrs .
What do I do ?
Comment: Aside from the problem you're having, tung oil is actually not a great internal finish. I think personally it's actually a dreadful choice for much of what it's used on. It's much more difficult to get a good-looking result using tun than other options, every one of which can be applied in exactly the same way and *all of them dry more reliably*. Plus its reputation for being water-resistant is exaggerated to the point that some express it as waterproof, which it isn't, not the way we use it on furniture.
Comment: I think there are likely two issues here but it's impossible to be sure. The first I'm pretty sure of, too much oil was left on. The second is a guess, you may have a particularly slow-drying tung (it's a natural product so it can vary). The no. 1 thing to speed drying of oil finishes isn't a high temp, it's more oxygen. Any fans available to increase airflow?
Comment: Thanks  I will think twice before trying tung oil again. I am going to lower the heat .I also put fans in . I am going to try UV lighting . I'm told it speeds up process.is there any product you recommend to go over tung oil when it dries. I have used epoxy resin in the past .
Comment: I wouldn't use tung oil and then go over it with epoxy (the wait to be confident it was as well cured as I'd be comfortable with would be intolerably long). Wiping varnish on the other hand, there's no need for it to be fully cured. What this boils down to is I'd never use tung oil if I intended to use an epoxy topcoat. UV and heat do both help oil polymerisation, and the trad way to get those was to put stuff out in the sun, but the increased airflow is an invisible helping hand there so it wouldn't have been properly appreciated by many in the past how much that contributed.
Comment: On the general concept of oiling first before another finish is used it's important to bear in mind that only some woods benefit from it and dark-stained softwoods may benefit much less than many unstained hardwoods for example. If tests had shown me I absolutely had to oil first to get the best optical effects from the wood v. straight epoxy I'd use BLO or a "Danish oil". And even with those (both touch-dry in hours, recoatable in 2 days max) I'd feel I had to wait at minimum 2 weeks and possibly a month — I've seen epoxy delams, it's not something I ever want to deal with on a new item.
Answer: The following are the major factors that universally affect an application of a drying oil not 'drying' properly:

Too much oil.
Not too much being applied, too much left on the surface. It's common practice to flood the wood, sort of spreading a puddle around, sometimes leave oil sitting on the surface for perhaps half an hour, and then wipe away excess1. While I don't apply oil this way myself2 this amount of oil being applied is not a problem. It's the wiping away of excess that many fall down on. My mantra is that the wood should feel dry when you're done3.
Damp conditions, especially if coupled with lower temps.
High humidity is the bane of oil finishes and always slows down drying and curing. And if it's particularly cold it can actually prevent proper curing of tung oil and other drying oils (and all finishes made from them which includes oil-based poly, "Danish oil" and similar blended products, and the majority of wiping varnishes).
Not enough air.
Good airflow is vital to getting oils to dry as fast as they're supposed to, just a window cracked open can make a noticeable difference but if necessary a fan set up to blow air over the piece can be necessary4. BTW this is one reason that oil-based finishes were rarely used on the interiors of furniture pieces, because the oils could take an indefinitely long time to dry due to restricted access to air.

So bearing these in mind we easily see the key elements of proper oiling technique, to prevent a sticky/gummy surface, are to be careful to wipe away all excess, if possible not to use the finish if it's too damp and cold and to ensure free access to air.
Also as mentioned in a Comment above, oils like tung are a natural product and as such can, and do, vary from batch to batch (the colour differences alone can show us this clearly). So when using a pure oil in wood finishing the oil itself can vary more than one might expect. More than it should in an ideal world but they get what they get. Pure oils can't benefit from a little additional metallic driers being added to even out drying times the way that different batches of linseed oil can when they're making BLO. This is why BLO is as a rule more consistent in performance than raw linseed, tung or walnut oils, although it too can vary in colour.

1 Coming back periodically if needed to wipe away any more that has exuded from the wood and beaded on the surface. This is reasonably common with oak for example but can be seen in other species (usually at a smaller scale though because the pores as smaller).
2 It's too wasteful and there's absolutely no difference in effect to applying the oil more sparingly at each coat and rubbing it in well — everyone using oil should do a few comparisons for themselves to confirm, to help reduce waste of expensive oil finishes.
3 Not even remotely oily. If it feels oily (and not sort of smooth and waxy) there's oil still on the surface that needs to be removed.
4 Some might worry that this will lead to too many dust nibs but that's not a concern, remember you left the surface dry after application. You did, right?
Comment: I appreciate your responses. Very helpful. I dropped the gloves on this one and started over. I stripped tung oil off and re stained. I believe this was the best answer . I am applying a different top coat product. No more tung oil. Although I still like the product as I have finished several successful projects with tung oil. I will keep you posted as to the outcome .

Tung oil does not dry


How do I find my missing bitcoin on Bitcore?

Question: I recently tried to send bitcoin to my Bitcore wallet and it shows completed on Coinbase side, yet its not in my wallet. Anyone know what to do?
Answer:
I recently tried to send bitcoin to my Bitcore wallet

bitcore.cc is a different currency (BTX) to Bitcoin (BTC). If you send BTC to a BTX wallet you may lose your money.

bitcore.io is "A powerful, modular node for bitcoin and blockchain-based apps." - I believe it is primarily aimed at developers - It isn't simply a Bitcoin wallet. It does include a wallet. If you are using that, you'll need to ensure the rest of the Bitcore suite is properly configured and up and running and, if necessary, synchronised.

If you are using some other wallet - remember that transactions can take a while if you set a low fee:

Why is my transaction not getting confirmed and what can I do about it?
Answer: You have definitely lost money. I made a similar mistake(( I read https://cryptoine.com/biswap/ that there is no fix or refund


How I can distort image(movie clip) from rectangle to polar?

Question: How I can distort image(movie clip) from rectangle coords to polar? Maybe I can do it in Node Editor or whatever?
I need to replace pixels from XY to Angle R. But how I can do it? Thank you.
Comment: Please at least upload an image to show what the "polar" means to be exact.
Answer: You can try using a texture node to perform a uv distort on the image by applying the blend texture radial.
otherwise you would have to distort the real uv unwrap or possibly use a modifier to distort a mapped mesh in 3d view.
EDIT:
So I imported this plane into Blender as Add > Mesh > Images As Planes
Then add an empty and clear the location of both "alt G"
Select the image plane and add 2 modifiers.
1. Subsurf, use simple, increase divisions to 6
2. Add a simple Deform modifier set to Bend.
3. Set Origin as Empty, then enter Deform Angle as 360 deg.
4. alter empty location if required.


PHP MySQL INSERT fails due to unique constraint

Question: On insert I am catching the unique constraint mysql_errno() 1062.
This works fine but I want to find the existing row to re-instate or modify it.
Is there are method to obtain the row id on insert fail?  I tried mysql_insert_id() but realised that would only return the row I'm inserting (or failed to insert) therefore, I get 0.
Is there no option but to issue another mysql_query and simply perform a select on the duplicate value?
I just want to make sure there is no better, quicker, more economical way to do this.
Comment: No other way but to SELECT first.
Answer: If you are attempting to insert a row if new or update existing values then REPLACE INTO is what you need. Also consider INSERT ... ON DUPLICATE KEY UPDATE Syntax if there are constraints involved as REPLACE INTO will DELETE and then INSERT.
Comment: Doesn't REPLACE INTO delete the existing row?  I want to see the row and contents before overwriting, or at least give the user the option to modify it.
Comment: It does - if you need to retrieve the row if it already exists then I  can see no other option apart from using a SELECT statement.
Answer: You'd have to check the table for any "unique" keys (SHOW CREATE TABLE will list them all), and then query the table for the associated values in the insert query you'd attempted. So if you're inserting fields A,B,C,D and B,C have the unique key on them, then:
SELECT id, B, C FROM table WHERE B=$B and C=$C;


Butter substitute for 1 cup of butter for baking

Question: What can I substitute for 1 cup of butter in baking recipes (e.g. cookies, muffins, cakes, etc.)?
I'm looking for something that has less saturated fat (and  also doesn't have trans fat).
Update: Since baking is less forgiving than cooking (i.e. if you don't use the exact amount of each ingredient the recipe might fail), could you please also include the amount you would need to use to replace 1 cup of butter?
Comment: See also: http://cooking.stackexchange.com/questions/2323/substituting-butter-for-oil-does-it-matter-for-baked-goods
Answer: In muffins and quick breads, I have found that you can actually substitute apple sauce for oil or melted butter. This has worked very well for me!
Use the same amount of apple sauce that you would oil/butter, if not a bit extra.
Comment: You can also use yogurt or sour cream in a 1:1 replacement in muffins and quick breads.
Comment: I do the same, but I tend to leave in some oil (1/4 to 1/2 of the original amount).  You can also use mashed bananas.
Comment: Is this a 1:1 replacement? I.e. do you use 1 cup of applesauce for 1 cup of butter?
Comment: Yes, I do a 1:1 replacement. For some recipes, I've found that I like to use a little extra apple sauce.
Answer: There are a lot of considerations to make when substituting for butter since it plays several roles that depend on the baked good.

Creaming solid butter with sugar is essential for the texture of a cake, because that's where you make all the little pockets that air will blow up later. Anything that you can similarly beat might substitute well. Personally I'm considering experimenting with bananas in recipes like this.
Baked goods that use baking soda and don't require creaming are good candidates for having their butter replaced, especially if they just require melted butter. This is where I'd be experimenting with yogurt or bananas or whatever else sounds interesting.
The way the fat melts determines how much a cookie spreads as it cooks. A fat with a higher melting temp would make taller cookies, while using melted butter would make flatter cookies. Oil would be a good substitute in recipes requiring melted butter, just remember that butter is 10-20% water.
In pie crusts, pastries, and biscuits, you build up layers of dough and butter when you roll and knead them, and this is what creates a flaky dough. Lots of recipes use part butter and part lard for their different melting points to balance flakiness and tenderness. Using any fat-free substitute would probably be disastrous but I haven't experimented. This is the one place where I really wouldn't consider using bananas, because you need fat to separate the layers.
Answer: Lard has less saturated fat than butter, and it's great in pie crusts. I can't speak to its other baking applications because I stick to butter for cookies and muffins and such, but experimenting with less butter when combined with lard to produce the total fat called for in such recipes might be worthwhile. Also, About.com has an article on dairy-free baking that you might find useful. It discusses when to use oil and when to use margarine (and when margarine is called for, there are some decent alternatives to traditional margarine on the market); the article has other great tips for baking, as well.
Answer: I use fat free Greek yogurt. I found it as a recommendation when I was looking up Greek yogurt and everything I have made with it came out as good or better than with butter. Use the same amount
Answer: Just use vegetable or canola oil. You'll likely need to adjust your measurement a bit, you typically would use less oil than the equivalent amount of butter. You may need to add a bit more water to compensate for the water present in butter (nearly 20% of butter is water).
Also note that the finished good will be textured differently. Cookies will tend to be flatter because you cannot cream the sugar into the oil as you can with butter.
Comment: @eagle: That would be sufficient, strictly speaking, but you may not need to do it at all. I would start with 80/20 and see how it works. It all comes down to what you're baking. I don't frequently (ever) substitute oil for butter, because I love butter. :)
Comment: Any idea how much less oil to use? 10% 20%? Or how much water to add? Or would both cancel each other out? In other words: 1 cup of butter should be replaced with 80% (of a cup) of oil and 20% (of a cup) of water?
Answer: A way to reduce the use of butter is to make a spread combining butter and canola oil.
1/2 cup butter (softened)
1/2 cup canola oil
Blend until combined, store in a covered dish in the fridge. Use like butter for baking or as a spread.
It has ~ half the saturated fat as butter and negligible amounts of trans fats. Provides mono-unsaturated fatty acids and omega-3 fatty acids.
A compromise though and not what you asked. I have found this to be a decent compromise.
Answer: I typically hate naming specific brand names but Smart Balance is a decent butter substitute for baking and is used in a 1:1 ratio.
Unfortunately, there will always be a texture difference because different fats react differently to heat, specifically how fast it melts. Shortening, for example, melts between 115 and 117, meaning it melts pretty fast compared to butter, which melts between 90 and 95. The faster it melts, the flatter your cookie is likely to be.
Comment: Based on the ingredients, this is basically just margarine. Still a fine answer (no trans fat etc) but I personally wouldn't be too excited about using it over butter.
Answer: You can use coconut oil instead of butter or in addition to butter. It will flavor the cookies or cake with a very mild flavor of coconut....use the organic brand of coconut oil.
Answer: Earth Balance (see this site) has excellent non-dairy, no trans fat butter sticks (1-1 substitute for butter). I've personally baked with them dozens of times and they work wonderfully for everything from pie crusts to cookies and muffins.
Answer: 1 banana can substitue for 1 stick of butter. I recently tried this for a banana bread recipe & it worked great. Added extra banana flavor & eliminated a lot of fat & calories. I recommend using a fresh banana (not too ripe) so the texture is still firm.
Answer: You can always use coconut milk. For 1cup butter use 1/2 cup coconut milk. The cookies will be fluffier and sweeter from the natural sugar.
Comment: Hello Ashtote. We don't do nutrition and health advice on our site. I left your proposal to use coconut milk, but removed the claims that it is healthy.
Answer: I use Star Balance non-dairy butter. It comes out tasting the same.
Comment: Smart Balance, maybe? Star Balance doesn't seem to exist. But there's already an answer saying Smart Balance with more information.
Answer: Any oil is the best solution I tried it and it tasted perfect


iMac 2011 with MacBook Air 2010

Question: I have iMac 2011 with ThunderBolt and MacBook Air 2011 with Mini DisplayPort. Can I connect them with a ThunderBolt cable? It is for work in Photoshop on two displays. Thanks!
Comment: Is the MBA 2010 or 2011?
Answer: To use Target Display mode with a Thunderbolt equipped iMac you need another Thunderbolt equipped Mac and a Thunderbolt cable [emphasis is mine]:

iMac (21.5-inch, Mid 2011) and iMac (27-inch, Mid 2011) support Target Display Mode via Thunderbolt to Thunderbolt cable (2 m) when the source is another Thunderbolt-equipped computer.

Source: iMac (Mid 2011): Target Display Mode does not work with Mini DisplayPort cable
If your MacBook Air has Mini DisplayPort then it will not work. More here about what options will work.

iMac 2011 with MacBook Air 2010


Can my son use my Gmail account for Pokémon Go without his Android accessing my emails?

Question: I installed pokemon go on my phone for my son. It's logged in with my Gmail account. I have now bought my son his own phone.  Is there a way to log into the game using my Gmail account without all my emails etc. showing on his phone? I never set up a separate username account and have only ever logged in using Gmail. He obviously doesn't want to start at the beginning again.
Comment: You can turn off sync of emails/contacts, in the account section of your phone, but he can simply turn it back on.
Answer: Sorry Sir that is not possible.
You will have to make a new account for your son.
Answer: Your e-mails should not show up on his phone if you log in to the game with your account. Pokemon GO only uses your basic profile info and e-mail address.
For example, my iPhone currently has two different Google accounts logged in to Ingress and Pokemon GO, and the mail app is connected to a third Google account. Android should be no different.
But if you still have doubts, you could always go the new account route.
Comment: Android Pokemon Go is different. It uses the system login account.
Comment: @SevenSidedDie you can [have multiple Google accounts logged in on a single device](http://www.makeuseof.com/tag/how-to-manage-multiple-google-gmail-accounts-android/), so I don't think it's not possible to have a different Google account logged-in for e-mail and the game.
Comment: @陽炎型駆逐艦磯風 On the article you link, it also says that some android apps can only accept a single login per device (Facebook, Dropbox, etc.). Is Pokemon Go one of them?
Comment: Yes, you can have multiple on Android, but it works very differently from how multiple accounts for different apps work on iOS. iOS experience is simply not relevant to this question.
Comment: @SevenSidedDie The original question didn't mention Android either, so I thought it was fair game (at the time).
Comment: Fair enough! I don't see them anymore, but I believe that was clarified in comments.
Comment: @SevenSidedDie There was? I didn't see comments on the question when I made that answer.


Was there a waterproof paper or a substitute that could be written on in the medieval ages?

Question: I'm making a character that keeps their books stored in their many large mouths. Thing is, it's a medieval setting and I'm not sure how the book would be made to survive being in such an environment.
Comment: Inside a mouth, you have to consider more than just moisture. Saliva contains enzymes which can break down organic materials. So, even if you have a material which can survive moisture, it may still break down inside a mouth.
Comment: Their paper wasn't very waterproof at all.  It was essentially felt made from recycled linen, but lacked any kind of binder; get it wet and it just went to pieces.
Comment: Wax it after writing on it provides some protection, or just write on Roman style wax tablets and your missive is entirely waterproof, overly warm temperatures may cause the wax to run though.
Comment: Not the same question, but somewhat related: https://worldbuilding.stackexchange.com/questions/163756/clear-waterproof-material-in-the-dark-ages
Comment: Paper was not made from wood pulp back then nor were the inks they used like ours. I almost want to downvote for not doing research but I won't because it is tricky finding how much more waterproof their paper was.
Comment: Is there any reason that one or more mouths could be without the saliva and other factors to make the environment detrimental to books?  Or that they couldn't be stored in waterproof pouches prior to placing them there?
Comment: Paper was quite rare in the middle ages - the more usual writing surface was parchment, which really does not like getting wet.
Comment: Stone and a chisel.
Comment: Does it have to be a mouth? could it not be a pouch like marsupials? Then the environment, though still potentially moist, would be more hospitable for storing of objects. The problem I see with a mouth is the risk that you swallow... however a pouch should still be suffiently personal and private that you could keep things in there of great personal value.
Answer: Many!
Let's start simple:
Fabric, yarn & String
You can actually use fabric to hold texts, by embroidery. As an alternative, you might actually just do knots in string, getting you the Inca-Script. Some yarns are very resistant to moisture and wet surroundings.

Bamboo strips
Did you know that "the art of war" was not written on paper but on strips of bamboo? With the right ink, the text was perfectly waterproof, and bamboo can be stored in moist environments for a long time, though not indefinitely. With the wrong inks, the writings would wear off over time. The following picture is a copy from the 18th century:

Wax/clay tablets
Romans used wax tablets (with a wood backing) for short-term notes. These are water-safe, and you can inscribe them with a piece of wood or specialized stylus, as seen on this picture of a Roman Tabula.

In a related fashion, clay can be used. It has an upside and a downside: the upside is, that once it dried, the tablet can be burned and thus preserved forever. The downside is, that unless it is dried and burned, it isn't necessarily waterproof.

Metal sheets
Thin metal sheets, about a tenth of a millimeter to a quarter of a millimeter, can be imprinted on akin to a wax or clay tablet and result in very clear texts. If the sheets are made from copper, gold, or silver, they won't corrode. Technically, this is called embossing, and if the metal is too thin, they can become rather fragile.

Thicker metal sheets, about half a millimeter or more, can be engraved and possibly more easily stored than an imprinted metal sheet. Those books would be much thicker and writing in them takes a skilled engraver, but they can stay extremely long.

Leather/Parchment/Vellum
Leather, parchment, and vellum are themselves water resistant to some degree, though the thicker the better in this case. There are many inks that can be used on them that are waterproof. Among them is iron-gall ink, so you could use strong acids or possibly even tattoo thick pieces.
Wood/stone tablets
Wood is somewhat waterproof, and has been used to engrave whole stories. Likewise, stone can be carved with letters, which takes longer but is more impervious to water, if the right stone is used. However, it's much heavier.
Metal casting
Using a clay or stone mold, whole texts can be cast into metal slabs. Depending on the skill of the caster, these plaques can be as thin as two millimeters. Their backside could be used to engrave commentary even.
Comment: Vellum works for windows because it's stretched in a frame. If you get unstretched vellum wet - say, like the pages of a book - and then let it dry without putting it under tension, it'll develop all sorts of curls and waves and will never again behave like the pages of a book ought to.
Comment: @Martha vellum is at least water-resistant to some degree - it has been used for windows.
Comment: Thin sheets of leather were my first thought. Your cheeks are proof that the environment inside a mouth doesn't damage skin. Leather would also be significantly lighter than metal or stone, would allow multi-colored printing, and would harm your teeth the least if you accidentally bit it.
Comment: You were doing so well, and then you wrote "Leather, parchment, and vellum are themselves waterproof". Um. Leather, maybe, depending on how it's tanned. Parchment/vellum? Yeah, very much no.
Answer: Writing with iron-gall ink on vellum has survived more than a thousand years of semi-sheltered storage; the combination and some of its properties are responsible for much of our detail knowledge of the pre-Renaissance period of European history.
Vellum is a special kind of lightweight leather; the skin is scraped very thin (removing the flesh side), then dampened and pressed flat before being trimmed to fit the required page size.  Because it's cured and mostly collagen, it's very resistant to time.
Iron-gall ink is made from copperas -- an ancient name for ferrous sulfate -- and oak galls, which contain gallic acid.  The final ink is brown-black, quite permanent -- and because it contains a small amount of sulfuric acid, it penetrates the vellum skin and literally etches itself into the medium, which makes it remain faintly readable even after the skin has been scraped to erase previous writing (recycling is not a new thing, and vellum was expensive).
These scraped and reused vellum skins with semi-legible older writing are called palimpsests and they've been found to contain everything from shopping lists to love letters, still barely visible underneath the newer writing (which might have been a book page, but more often was a newer letter or records document). There are vellum codices (a codex is a bound flat-page book, like the ones we use now, so called to distinguish from the scrolls that were still fairly common in the first millennium of the common era) that date from as far back as late Roman times and are still legible, and a book that was intended to last would still be made from vellum as late as the 17th century.
Comment: Vellum does not like getting wet, though. It reverts to, basically, rawhide if you get it wet and then don't stretch it. Even if you don't get it *wet* wet, just keep it in a humid environment, it'll buckle and curl and basically make your life miserable.
Answer: If you are not bound to use paper or parchment, your character can use books made with carved stones, fired clay or bones.

As additional bonus stones and clay could help the character in chewing their food.
Comment: Good image switch - that looks like a greek text to me.
Answer: Etching
This technique dates back to the 1500's, and creates relatively permanent metal prints that can last for millennia.  You basically cover a sheet of metal with wax, and scratch off the wax with a needle where you want your ink to show, then wash the whole thing in acid, and the acid eats through the metal wherever the wax was scratched, then the wax is removed leaving your image on a smooth metal plate.  Being metal, it's waterproof, and you can get very detailed text and images.  Etching can be used to make rubbings onto paper, so it's useful for making multiple copies.  The oldest master prints in the world are etched metal.  Many thin metal sheets can be bound together into a book, which while thicker than a modern paper book would still be easily recognized as a book to anyone familiar with them.  Go a bit later into the 1800 and you have Lithography, which is a similar technique but on thin sheets of stone.  In a fantasy setting, it's not unreasonable to imagine that lithography could have been invented a century or two earlier to fit into your "middle ages" time period.


Proof of perpendicular distance of an observation from the Maximal Margin Hyperplane

Question: I was reading about Maximal Margin Classifiers in "Introduction to Statistical Learning" and could not understand how is the perpendicular distance of an observation (which is a vector) from the hyperplane calculated ? I do know how it is done for a 2-D and 3-D space, but the formula (9.11) makes no sense to me. Shouldn't it use the MAGNITUDE ? Can anyone help me with this please ?
Answer: The equation $(9.11)$ is after the dot product of the hyperplane and point $x_i$. The author has skipped vector normalization. In maximization problems, normalization does not matter because  the magnitude of the normalization vector is a constant. The perpendicular distance of of a point $x_i (x_{i1}, x_{i2}, ....,x_{1p})$ from hyperplance is:
$\beta_0 + \beta_1x_{i1} + \beta_2x_{i2} + ... + \beta_px_{ip}$
Probably, you are studying the cost minimization of SVR. The author is trying to explain how to find the MAXIMAL hyperplane

observation point $y_i$ and calculated point (calculation is explained in image above) lie on same side of plane. This will ensure that our prediction is correct in terms of sign
maximize the distance from hyperplane: This will make regression robust. The points closer to hyperplane will be predicted correctly.


What is the meaning of 座っておいで?

Question: The おいで after the Te-form seems to convey a kind of command.
Could you explain the usages of this word, what part of speech is it and how it differs from the other kinds of commands?
Comment: Can you provide more context? I just want to make sure it's おいで and not e.g. おいて. おいで means "come", and I guess "Sit then come" is possible, but not very likely.
Comment: @dainichi 「おいで」 is also a 補助動詞 (or acts like one, anyways). See meaning 二② bullet 2 of [the 大辞林 entry](https://kotobank.jp/word/%E5%BE%A1%E5%87%BA%E3%81%A7-216568#E5.A4.A7.E8.BE.9E.E6.9E.97.20.E7.AC.AC.E4.B8.89.E7.89.88)
Comment: @DariusJahandarie, you're right. Hm... the use of おいで as an imperative without any (even weak) sense of "come" strikes me as outdated, but I won't argue with the dictionary.
Comment: It also behaves like a 補助動詞 in that it can contract―people say 「持っといで」.
Answer: 「[座]{すわ}っておいで。」 = "Go and sit there."
You can say this when both you and the listener (a kid or someone close, not someone older or higher than yourself) know there is a place to sit down nearby and that place has already been talked about between the two parties.  It is a casual/friendly imperative. = "Why don't you ~~."
おいで here is short for おいでなさい.  It is the honorific お + [出]{い}でる. In the 「Verb + て + おいで」 form, 「おいで」 is used just like a subsidiary verb.
See definition 二-➁-㋑ in:  https://kotobank.jp/word/%E5%BE%A1%E5%87%BA%E3%81%A7-216568#E5.A4.A7.E8.BE.9E.E6.9E.97.20.E7.AC.AC.E4.B8.89.E7.89.88
Comment: 'Why don't you' isn't really a casual request. It's appropriate to say to anyone (at least in the UK), unlike おいで.
Answer: Combination of 連用形 and おいで can have various meanings, depending on the context:

[連用形 + ておいで] Casual and mild version of 「連用形 + ていろ」 (stay/keep [verb-ing])

温かい飲み物を作るから、ちょっとそこで座っておいで。 ← 座っていろ。
これからお父さんがすることを、よく見ておいで。 ← 見ていろ。
今からここで大事な話をするけれども、お前は黙っておいで。 ← 黙っていろ。

[連用形 + ておいで] Casual and mild version of 「連用形 + に行け」 (go and [verb], leave here and [verb])

(in a train) あそこの席が空いているのが見えるから、座っておいで。 ← 座りにいけ。
あの映画はすごく面白かったよ。ぜひ、見ておいで。 ← 見に行け。
もうすぐ忙しくなるから、その前に、お昼ごはんを食べておいで。 ← 食べに行け。

[連用形 + ておいで] Casual and mild version of 「連用形 + て来い」 ([verb] before coming, [verb] and come, come with [verb-ing], etc.)

うちの家まで来るの? 歩くと遠いから、ゆっくり電車で座っておいで。 ← 座ってこい。(座りながら来い。)
明日の授業は難しいから、あらかじめ教科書を見ておいで。 ← 見て(から)こい。
明日18時から映画を見よう。長い映画だから、あらかじめ夕食は食べておいで。 ← 食べて(から)こい。

[連用形 + においで] Casual and mild version of 「連用形 + に来い」 (come to [verb], come and [verb]). Friendly invitation.

うちの家に50万円するソファーがあるんだ。座りにおいで。 ← 座りに来い。
東京は桜が綺麗だよ。見においで。 ← 見に来い。
今晩うちに、晩ごはんを食べにおいで。 ← 食べに来い。

[連用形 + ておいで + だ/です] Another way of making an honorific expression. 「連用形 + ていらっしゃいます」 (is [verb-ing]). This is not a kind of command, but I think it's worth mentioning here. Note that this is a polite expression.

社長が、部屋の奥で座っておいでです。 = お座りになっています/座っていらっしゃいます。
神様は、毎日のあなたの行動を見ておいでです。 = ご覧になっています。
Answer: Its like "come sit here", like the way you would tell a child or someone lower than you (or a peer if you're just speaking "cute" by using diminutives).
Comment: Nice parallel. I think one difference is that you need to pick between "come" and "go" in English (e.g., "come dance with my friend John" only works if John is near you or you are going to move towards John, while "go dance with my friend John" only works if John isn't near you), while 〜おいで works for any direction.
Comment: Also, this might just be my idiolect, but I think I'd use "come ~" with anyone I'm familiar with (e.g. "come help me set up this TV"), while I would not use 〜おいで with peers in Japanese.
Comment: @DariusJahandarie Using it with peers is contextual and maybe a bit geographic. I have friends who would speak like this when I lived in Kansai (particularly girls), but I never hear this in Okinawa. Also, I have never heard おいで used to mean "go", only "come". This stuck in my mind so I asked some friends, from Osaka, Okinawa and Aomori, and none of them imagine this to mean "go". Where does this idea come from?
Comment: It's quite possible there are dialectical variations. Bullet two of @naruto's very thorough answer is the type of thing I was thinking of for "go" usages of it.
Comment: @DariusJahandarie Haha! Come to think of it, in actual use I've never heard the phonetic use of おいで to mean "go", but as a harsh imperative in the specific phrase 出ておけ I have (much more common to hear でていけ though). I never even thought of them as the same, actually, because nobody actually speaks this way, at least not in any place I have lived. Also, ナニナニしっておけ is not the same as ナニナニしておけ, I think. One feels like "come do __!" and the other sounds like "do __ and leave!".
Comment: Anyway, what do I know. I just live here. I've never been to school.
Comment: @zxq9 Are you sure what you thought was 出ておいで wasn't 出ておいて (if I'm interpreting your comment correctly)?
Answer: 「座っておいで。」 = "Sit there."
There are two 「おいで」s:

「お出で」means "come and follow" or "come out". An example is 「お嬢さん、お出でなさい。」which means "Girl(s), come out(show up)."
「お居で」means "stay". Examples are 「あの方は今どちらにお居でですか。」which means "Where is he staying(living)?", and 「客人はまだそちらにおいでですか。」which means "Is the visitor still there?". 「お居で」applies to your case.
Comment: According to [大辞林](https://kotobank.jp/word/%E5%BE%A1%E5%87%BA%E3%81%A7-216568#E5.A4.A7.E8.BE.9E.E6.9E.97.20.E7.AC.AC.E4.B8.89.E7.89.88) and also to Martin's 1975 *Reference Grammar of Japanese* p.838, the same verb お出で is used for all three meanings.  I'm not sure お居で is right.
Comment: 大辞林's page says「いる」is one of the source of this expression. I don't know why 大辞林 says「いる」instead of「居る」.
Comment: [大辞泉](http://dictionary.goo.ne.jp/leaf/jn2/27217/m0u/) also says おいで is a kind of imperative of 居る, and google gives many examples of "お居で". And I agree that 座っておいで is more like "stay sitting / stay seated" than "sit down / take a seat". 「ずっとそこに座れ」 is weird to me but 「ずっとそこに座っておいで」 and 「ずっとそこに座っておけ」 are natural. So I can't say お居で is necessarily wrong. Anyway, we should write subsidiary verbs like this in hiragana in modern Japanese.

What is the meaning of 座っておいで?


Good quality C# code

Question: Where can I find samples of C# code written by top programmers, for learning?
Answer: There's a collection of Jon Skeet's C# and .NET articles and links online, and you can't go wrong with Jon Skeet's code.  It's not too code-heavy, but his insights in the other aspects of C# are invaluable - especially if you are really interested in really learning the language, not just learning the syntax.
Comment: Link doesn't appear to work anymore, new link: https://jonskeet.uk/csharp/
Answer: Scott Hanselman has a great series, "The Weekly Source Code" which are well worth a read.
Answer: You can have a look at the Mono project source code.
Answer: I would check out CodePlex.
Comment: There's a lot of code on CodePlex, but how much of it is good? ;)
Comment: Well, you need to choose projects carefully then...
Answer: In addition to the many suggestions on source code, I would also recommend the book Framework Design Guidelines as it has numerous useful dos and don'ts, which I find very helpful. There's also a section on MSDN with some of the same topics.
Answer: CodeProject has a lot of useful samples, and they're very good as learning tools because they're often not very complete or full-featured, so you still have to do some thinking and working to get them to do what you want them to do.
Answer: Half the battle of creating good quality code in any language is using it smartly. Software design patterns and practices like those published by Microsoft go a long way toward that. There are many books on the subject too.
The MSDN documentation itself is chock full of code samples freely available from Microsoft, direct from the makers of C#/.NET. There's a good chance of finding a lot of quality code from the software company itself, even if contained in simple examples. There are countless samples for everything and always little things no matter how much you know. Knowing the nuances of C# topics goes a long way too.
Also use insights gained from across a variety of books. Not every book contains everything, so expand your ability to make good coding decisions by knowing a lot from other people's experiences.
Rub elbows with a variety of programmers at user groups or even in courses, those outside the familiar culture of your workplace.
Start an open-source project or contribute to one of interest to be around more code.
Answer: Paint.NET is a great project that was originally open source. Due to abuse the author has closed the source, but an older version of the source is available through a third party.
Comment: People were building their own versions and selling them.
Answer: People often point to coding guidelines as the best way to write good code. Actually, I think that philosophically speaking, writing good code starts with oneself. Of course coding guidelines are important, but actually, there are conflicting guidelines and philosophies out there that make it very difficult to follow a set of coding rules religiously. For example, having multiple return statements in a single function increases cyclomatic complexity in code, but, without doing this, nesting is often increased. So, there's a decision to be made about how to restructure the code.
The most important thing is attitude. A good coder always asks questions, and listens to others. They may not always agree, but they are always looking for better ways to sharpen their tool set, and expand upon what they know.
I know this is abstract, but programming is all about abstraction.
A good way to get started is to take some code from your team, apply all of the code rules in Visual Studio to the code, and discuss how and why each of the rules could or should be implemented. Some rules will contradict other rules, so you must decide which are useful and which are not. It is also important to take note of the effects of each code rule over the long term, and to ask continuously ask the question: has this increased code quality? Or, is this just fiddling?
Answer: I found the following book greatly useful when I started programming:
Code Complete: A Practical Handbook of Software Construction (Steve McConnell - Microsoft Press)
http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670

Good quality C# code


One to many intersection of polygons

Question: using QGIS 2.18.16 I am trying to figure out how to find out what polygons  in layer one (blue) intersects the polygons in layer 2 (red\pink).  I know that there will be more than one intersection for most of the polygons in layer 1 (blue) but not sure how to calc it. In a perfect world I would like to add it as a attribute to the polygon in layer 1.
Comment: what data system are you using?
Comment: Data System?  I am using QGIS 2.18 and shape flies
Comment: I have used the intersection  function under Vector> Geoprocessing Tools .  This gives me the data but not in one to many way i am looking for it. it is many to one.  Any help would be great.
Comment: I would prefer to do this in a relational databases where many-to-one relationships are better handled, especially for geometry... you may be able to use the DB manager in QGIS to write a SQL spatial query against your shapefiles to join the features - if that might work for you, I'll see if I can write a sample...
Comment: DISCLAIMER: not a QGIS guy, but GIS is GIS, right?  When you use the Intersection Function under Vector>Geoprocessing Tools, switch the source and target parameters so you are intersecting red 1/16 section polys with blue plat maps ... I mean reverse the two arguments of the function.  Think B on A, not A on B.  -- This isn't an "Answer" to your problem but rather assistance with the concept behind the QGIS function.
Comment: @lowsparked so did you get that to work? all answers here are working perfectly...would be great if any form of acknowledgement would come from your end ,)
Answer: I found the following to work well on my small sample, though it involves repeated iteration through the layer1 features, so it might be slow on a large dataset. Also, I used QGIS 3.0.0. I am not sure how much it differs from 2.18.16.
First, load data (pardon my crooked quarter sections):

Second, use "Vector > Data Management Tools > Join Attributes By Location" to join the two layers. I selected "contains" in addition to "intersects" under geometric predicates to cover cases like polygon 2, where it doesn't cross the border of a quarter section. Use layer 1 (blue) as the input and the quarter sections as the join layer. Use the create separate feature for each located feature option under "join type".

This will create duplicate polygons wherever a layer1 polygon intersects with more than quarter section.

Lastly, we use the new joined layer to write the correct quarter section names into the original layer1 file with a bit of python.
# add layers and add new attribute to layer1
joined = QgsVectorLayer("...some path/joined.shp", "Joined layer", "ogr")
layer1 = QgsVectorLayer("...some path/layer1.shp", "layer1", "ogr")
res = layer1.dataProvider().addAttributes([QgsField("QS_list", QVariant.String)])
joined.updateFields()
layer1.updateFields()

# iterate through the layer1 features and for each,
# iterate through the joined features and for each,
# if the layer1 and joined IDs match, add the QS name to a list
# finally sort the list and write it into the new layer1 attribute
for feature in layer1.getFeatures():
    ID = feature.id()
    QS_list = []
    for feature_joined in joined.getFeatures():
        attrs = feature.attributes()
        attrs_joined = feature_joined.attributes()
        if attrs_joined[0] == attrs[0]:
            QS_list.append(str(attrs_joined[1]))
    layer1.startEditing()
    layer1.changeAttributeValue(ID, 1, str(sorted(QS_list)))
    layer1.updateFields()
    layer1.commitChanges()

There appears to be a trick to doing this in ArcGIS also (and it looks way easier). Spatial Join's hidden trick or how to transfer attribute values in a One to Many relationship
Here are the steps (the post on Esri Australia Technical Blog also has screen captures). I didn't test this.

In the Spatial Join tool's dialog navigate to the Zoning field in the dataset that is being joined and Right-click on it. Choose Properties.
Set the following:
Length: set the value which will be capable of storing the appropriate number of characters
Merge Rule: use Join
Delimiter: use any delimiter you like
Set the cardinality in the Spatial Join tool to "One to One"
  Run the tool.
  The resulting dataset should display zones that each of the property boundary polygons intersect, stored as text values separated by the delimiter of your choice.
Answer: If you are not familiar with or just not willing to use SQL in any way, you can also simply use the Field Calculator (the summary aggregate functions should be available from QGIS 2.16.x on):

layer1 | Open Field Calculator | New Field

Output field type = Text (string)

type in Expression:
aggregate(layer:=<layer>, aggregate:='concatenate', concatenator:=',', expression:="<field>", filter:=intersects($geometry, geometry(@parent)))

select layer2 name as <layer> under Map layers
replace <field> with fieldname of interest in layer2 (double quotes have to stay!)
if <field> is not of type string, use expression:=to_string("<field>")

OK should add the above field to the attribute table of layer1 as a concatenated string
save/quit edit mode (has been auto enabled)
Comment: join attributes by location and then this calculation was magic. Thank you!
Answer: I´d go for a Virtual Layer using the natively supported SQLite/SpatiaLite SQL dialect:

Layer | Add Layer | Add/Edit Virtual Layer...
Embedded Layers | Add (from file) / Import (from project) | select both polygon layers

Assuming their names are layer1 and layer2 with an id column
each and an attribute val in layer2 that you are interested in, running
SELECT a.*,
       GROUP_CONCAT(b.val) AS vals
FROM layer1 AS a
JOIN layer2 AS b
  ON ST_Intersects(a.geometry, b.geometry)
GROUP BY a.id

in it´s Query field will copy all attributes/geometries from
layer1 plus a concatenated string field vals, with the val's
from layer2 that intersect each polygon in layer1, into the
Virtual Layer.
Click Add and save to file (e.g. layer context | Save as...)

The more versatile way would be to use the DB Manager (as @DPSSpatial also mentioned in his comment I only just read...); this is a full scale DB client, capable of also runnning queries against the project layers (you'll find all currently loaded layers under Virtual Layers | QGIS Layers on the left) using the SQLite/SpatiaLite SQL dialect;

E.g. when executing the same query, you will be presented a result table
including a geometry field to check against.
Tick Load as new layer and save the created layer to file (don´t
forget to specify a geometry column if not already set).

One to many intersection of polygons


How to secure my wcf service using AWS authentication

Question: Can I secure my WCF service using AWS authentication. I am tring to figure this out by google search and finding articles on calling a service that is already secured using AWS authentication. Not an article of how to secure a WCF service with AWS. Isn't there an option, is my understanding of AWS authentication and signing wrong about this. Please point me to an article to start with.
Comment: To the sake of teaching how to (not) search for this kind of issue, we should publish the searches that do (not) worked to find answers to your problem!!
Comment: Are you talking about WCF SOAP services or WCF REST services?
Answer: I'm going to assume your intend is to create a WCF REST service that uses an HMAC based authentication scheme like Amazon S3 is using.
The way to implement this is to create your own WebServiceHost and override the ApplyConfiguration method. In this method, you set a new ServiceAuthorizationManager.
this.Authorization.ServiceAuthorizationManager = new MyServiceAuthorizationManager();

Derive the MyServiceAuthorizationManager class from WCF's ServiceAuthorizationManager and override the CheckAccessCore method.
class MyServiceAuthorizationManager : ServiceAuthorizationManager
{
    protected override bool CheckAccessCore(OperationContext operationContext)
    {
        // check the validity of the HMAC
        // return true if valid, false otherwise;
        return IsValidHMAC(WebOperationContext.Current);
    }
}

For more details on the implementation of the algorithm, see this answer.
Comment: Exactly what I was looking for, sorry my bounty has expired, let me open a bounty again and try to award you the bounty points


Smoothing found path on grid

Question: I implemented several approaches such as A* and Potential fields for my tower defense game. But I want smooth paths, first I tried to find path on very small grid ( 5x5 pixels per tile) but it is extremly slow. I found nice video showing an RTS demo where paths are found on big grid but units dont move from each cell's center to center. How do I implement such behavior? Some examples would be great.
Answer: There's actually a pretty nice article about this at Gamasutra (7 pages!). While Beizer curves will smooth a path, it won't cut across grid spaces like in your video example.
For example (from the article):

(a) is the result of a standard A* search, while
(b) shows the results of a postprocess smoothing operation.
(c) shows the application of a turning radius for curved turns.
(d) illustrates an A* modification that will enable searches to include curved turns that avoid collisions.
Answer: Note that while the Bezier curve answer given by Gajet will smooth the individual links on the path, it won't result in the smoothest or simplest path on its own.
You will need to remove unnecessary nodes from the path first, simplifying the overall path, and then build a curve from that.
Simplifying the path can be done several different ways.  The naive way is to just do a line of sight between nodes and remove any needs between them of the line of sight passes.  However, this can and will cause the generated paths to occasionally run too close to the corners of walls, causing agents to run into or clip through them.
You can use the line of sight tests from the outer edges of the nodes based on the agent's radius.  That is, take the vector between the two nodes, then take the positive and negative normals to that vector, normalized, and add the agent's radius.  Add those vectors to the original two nodes' positions, and ray cast between those modified points.
Another option that will fail in more cases but can be cheaper is to just take the box formed by the two nodes and check to see if any walls are in that area.
After you have the simplified path, you can smooth it with a curve if you want.  You may not need to, depending on how you want the agents' movement to look.
Comment: I'm guess this algorithm might fail under certain conditions, due to nature of beizer curve. think about a situation where a unit needs to go down 3 squares and then turn right and move 3 squares. if you remove unnecessary points, only the first point, turn block and last point will remain. now a beizer curve would go inside blocked area.
Comment: More like the Beizer curve would fail, not this algorithm.
Comment: @Gajet: correct, the curve you use should not be a Bezier curve in this case.  sorry if I implied otherwise.  note though that even without removing redundant nodes, bezier curves could cause wider agents to hit/clip walls on tight turns anyway.  you really want to hit the points on the path, so a spline is a better choice.
Answer: In addition to approaches mentioned above answers to smooth out paths with some post-processing, another approach is to use a grid geometry other than square tiles to get a closer approximation of the optimal path to begin with. Picture below shows the path approximated using square Tiles, Hex, Octal (meaning Tile + diagonal) in comparison to actual optimal path (linear distance).

You can see that Hex and Oct grids give better approximations than square tiles. The picture was take from Peter Yap's paper Grid-based Path Finding. Note that the paper actually recommends Hex over Oct because of performance reasons. The paper also addresses the difficulty of implementing Hex grids (since they can't be treated like simple AABBs), by proposing a new scheme called Tex grids. Tex grids are topologically equivalent to Hex grids (meaning they generate the same 6 degrees per node graph), and thus give same performance in terms accuracy in representing optimal path. Shown below is a typical Tex grid:

Note that the main focus of that paper was actually to improve performance of IDA (Iterative Deepening A*) search, which will definitely be important in an RTS game I'm sure. It was shown in the paper both from empirical results and math using Hex grids makes IDA exponentially faster than Tiles (square grid).
Downside is, like many papers I've read, it does not give you implementation details.
Answer: Try finding a normal path using A* or BFS or Dijkstra on the grid. Later use a beizer curve and make units move on it. This will generate a smoother path.
Comment: Are beizer curves fast enough for realtime calculations?
Comment: yep, much faster that you can think.

Smoothing found path on grid


system locks up starting today when I start Firefox -- ubuntu 20.04

Question: I would like ideas as to why Firefox is locking up my 20.04 Ubuntu so I can fix it.
I did the usual, started the computer, started my NordVPN and then opened up Firefox. I have done this since I installed 20.04 without problems. But Firefox now locks up my computer.   The first time it was when I hit a  link to another page, it locked up, but I was able to right click on the Firefox icon and "quit".   But when I restarted the computer and tried it again, now it just locks up and right clicking the icon does nothing.   The power down menu on the upper right does not work either.   I have to hit the power off button on the computer.  I did an update on the software for ubuntu 20.04 thinking maybe I was missing something, but it still locked up.
I thought I should maybe uninstall it and then install it again.  On Ubuntu 18.04, if you right click on the icon you can 'show details' and install or uninstall, but on version 20.04 there is no 'details' in the menu.
Answer: I did fix it.  I started system and not firefox.   Then went into the applications and uninstalled firefox and then re-installed it.  It seems to work fine now.

One question that came up. .. if you go into the applications and search for firefox there are TWO.   There is a "firefox" and a "firefox web browser".   Anyone know the difference??


Firebase deploy displays Welcome Screen with no App Content

Question: I cloned a quickstart angular application.
I run firebase init and firebase deploy,
and output shows deploy successful. I naviagate to the url, but it just shows the Welcome screen. Why don't I see my content?
Answer: The repo I cloned didn't place an index.html file in the /dist directory.
The welcome screen is the default index.html that firebase creates.
Comment: But for a plain html and vanilla javascript app/project,you should consider having all the file in the public folder(it is better if you create at starting) and the run init in the CLI.
Answer: After running: firebase init
Few questions will be asked and Reply(In Bold) as follows:

Are you ready to proceed? : Yes
Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. : Hosting: Configure and deploy Firebase Hosting sites

=== Project Setup

Select a default Firebase project for this directory: Your firebase Project name

=== Hosting Setup

What do you want to use as your public directory? dist
Configure as a single-page app (rewrite all urls to /index.html)? No
File dist/404.html already exists. Overwrite? No
File dist/index.html already exists. Overwrite? No

-----Firebase initialization complete!-----
Now Re-run your app using: ng build (Imp step)
----Deploy----
firebase deploy
Comment: @VishwaPratap Is your dist folder getting created? If yes, check index.html of dist folder. It should have your app-root content in it and not the welcome content. If it's having welcome content kindly re-build your app by running ng build and then observe the difference.
Comment: You can also edit "firebase.json" relative url of the index.html to point to your index page. This is because Firebase generates another index.html page inside a generated "public" folder and this is the one it point to in "firebase.json"
Answer: I jsut had this issue, its because I ran a build and then firebase init which caused the /build/index.html file to be overriten.
After you init the firebase project just rerun the build and then deploy.
Answer: there is no problem if you ran build and then do firebase init.
After deployment, if you see the welcome screen. Before doing anything just wait for some time and Refresh the page. it worked for me
Comment: I've been stuck at this for 2 days and I don't believe this was the solution♀
Answer: Angular projects aren't built directly inside /dist. They are usually built like /dist/your-project-name
So when you firebase init and you are asked What do you want to use as your public directory? provide it /dist/your-project-name instead of just /dist
And if /dist/your-project-name folder really has your project then it'll surely ask you File dist/your-project-name/index.html already exists. Overwrite?, you say no
In case it didn't ask you about overwriting then it means the public address you gave above is either incorrect or maybe you haven't yet built your project using ng build command.
Answer: Don't forget to rebuild you application again before firebase deploy. Your dist folder should be same folder name you setup as the public folder during your firebase init.
Comment: how do you rebuild the app again before deploy?
Comment: @user2763557 `npm run build`
Comment: run "npm run build" if you are using React or use "ng build" for Angular. then deploy.
Answer: I had same problem with my deployed react app using Firebase to solve that as suggested above in first answers rebuild your app after running firebase init successfully & before running firebase deploy command. Then deploy your app.
If it's first time then you see welcome screen with hosting documentation. Then wait for few minutes around 15 to 20 minutes, then open app URL. It's running
Answer: Update the firebase.json file
 "hosting": {
    "public": "dist/your-app-name"

for ex: my app name is "DataView" and looks like this the firebase config file:
 "hosting": {
    "public": "dist/DataView",

Answer: Important:

If you are already tried to deploy the flutter web app project, then 1st remove (1).firebase,(2)build,(3)firebase.json from your project directory root page.

then just follow the below 7 steps-->
1 step: First run firebase init
     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  {project path}\{projectname}

Before we get started, keep in mind:

  * You are currently outside your home directory

2nd step:
? Are you ready to proceed? Yes
3rd step:
? Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices. Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Actio
n deploys
=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

i  Using project ****21ed1 (projectname)

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.

4th step:
? What do you want to use as your public directory? build/web
5th step:
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? Set up automatic builds and deploys with GitHub? **No**
+  Wrote build/web/index.html

i  Writing configuration info to firebase.json...
i  Writing project information to .firebaserc...

+  Firebase initialization complete!

6th step:
Then run: flutter build web
 Building with sound null safety

Compiling lib\main.dart for the Web...                           2,656ms

7th step:
Then run: firebase deploy
=== Deploying to '****21ed1'...

i  deploying hosting
i  hosting[****21ed1]: beginning deploy...
i  hosting[****21ed1]: found 15 files in build/web
+  hosting[****21ed1]: file upload complete
i  hosting[****21ed1]: finalizing version...
+  hosting[****21ed1]: version finalized
i  hosting[****21ed1]: releasing new version...
+  hosting[****21ed1]: release complete

+  Deploy complete!


my juvenile bearded dragon still dull and greyish after shedding tail

Question: My juvenile bearded dragon sheds every few weeks. We haven't had any problems so far. I mist several times a day and his eating habits haven't changed. With that being said he is shedding his tail which always goes first and it is still dull and grey underneath. Is this something I should worry about or could he be shedding another layer sooner than normal?
Answer: I personally wouldn't worry about it too much. Just continue to mist daily, with the occasional shallow bath (mine love them!). If their feeding/dietary habits haven't amended, that's a positive.
I would get concerned when they are having issues actually shedding, whereby the skin does not come off. Although, this can be assisted, albeit with care, by soaking the area and gently rolling off the hanging skin (I would not recommend this if you're not comfortable, as this could harm the reptile).


Will the Earth flatten out?

Question: Since the rotation of the earth makes it more flat,due to the centrifugal forces, is it not possible for the force to completely flatten out earth into a plane ?
Comment: Related: https://physics.stackexchange.com/q/10670/2451 , https://physics.stackexchange.com/q/8074/2451 and links therein.
Answer: No, because the Earth is currently (approximately) in a hydrostatic equilibrium. There would be tendency for it to flatten if the rotation speed became faster, but since exactly the opposite is happening, the Earth would likely become (even) more spherical in the future.
Comment: Plus one, despite the fact that the Earth is not quite in hydrostatic equilibrium. The Earth's flattening coefficient $f$ does not quite agree with its dynamic form factor $J_2$. The reason for the discrepancy is that the Earth is not quite in hydrostatic equilibrium, thanks to the glaciation that ended about twelve thousand years ago. The Earth is still in the process of recovering from that glaciation, resulting in falling sea levels in northern Canada and in the Baltics.
Answer: The centrifugal force from the rotation will indeed try to drive the Earth towards becoming a plane. However, this is balanced by gravitational attraction (or surface tension in the case of small spinning liquids) which attempts to make the Earth spherical. The final shape will be a balance between the two, which is an oblate spheroid.

Will the Earth flatten out?


Which .NET framework version will be included in Windows 7?

Question: Does anybody know if Microsoft has already decided which version of the .NET framework will be shipped in Windows 7 next year (2009)? Will it .NET 3.5 (SP 1) or maybe 4.0?
Answer: Microsoft has issued a statement that there will be no other WinHEC before the next release of new Windows platform (Internet is abundant with information concerning this, one site). On the other hand, from Stephen Toub's, Somasegar's, ScottGu's blogs (some of the driving forces behind the teams) etc. mention that .NET 4.0 Framework will be pushed out somewhat with Visual Studio 2010 early 2010.
I haven't found a confirmation on the parallels between Windows 7 and and .NET 4.0, but it seem to be that Windows 7 could be out slightly before .NET 4.0, albeit not necessarily much so. A quote from ScottGu's blog post from mid-October tells

I am going to try and post some more end-to-end tutorials in the coming weeks that show off how to use ASP.NET MVC from the beginning, and then logically progress to richer and richer scenarios.  Included in the list of tutorials will be my infamous AJAX with MVC post that I keep promising to write - but so far haven't (my excuse: the Silverlight 2, ASP.NET MVC, .NET 4.0, VS10, and Windows 7 ship cycles are all happening in parallel on my team - and I've unfortunately been really busy which is the reason for the delay)
Answer: There are enough blog posts out there to know for sure that Visual Studio 2010 will be the development platform for .Net 4.0.  Since Windows normally ships just before VS we can assume it will have 3.5 installed.  Best part though is that the ship schedules have been hinted at having VS come out with-in the first few months of Windows shipping.  .Net 4.0 will not be in the box, but will be available very shortly afterwords.
Answer: The Windows 7 Public Beta Released January 2009 has .net 3.5.  .net 4.0 is nt ready for beta test inclusion, however, some of the beta community have heard buz that net 4.0 will release to the RC1 version of Windows 7 in beta testing.
Comment: Thanks for keeping us up to date!
Answer: In my mind, it depends on the release dates.
If Windows 7 is released before .NET 4.0 (which should be released with Visual Studio 2010), then it can not have .NET 4.0. But with .NET 3.5 is sure thing.
Answer: The current latest release is .NET 3.5 SP1
I've read blogs about "the features in .NET 4" so I'm thinking if Microsoft wants to make a smart move, they'll release Windows 7 AFTER they release .NET 4
the again, this is windows we're talking about...


Is there a way to use Siri with my Bluetooth?

Question: I have a new Bluetooth headset and would like to use Siri with it. As far as I know, the standard way is to hold down the "call" button for a long press. Unfortunately, my headset treats a 3-second press as a "turn off" signal. Is there a workaround? Possible options I've thought of include shortening the press needed to trigger Siri, remapping the "redial" function (which on this headset involves double-tapping the button", using an alternate combo to trigger Siri, or turning on "Hey Siri" for Bluetooth only.
Comment: Doesn't it have a 2nd button at all? My non-Apple headset [old pre-siri Jawbone] uses the call button long press like yours, as an on/off switch, but has a second button at the back which activates Siri. I'd check the manual.
Comment: i just got my HSP-B4 Bluetooth Headset【Upgraded Bluetooth V5.0】 with 15 Hours Talking Time,WOLFANG Lightweight Noisy Suppression Bluetooth Earpiece for Phone/Laptop/Car Blue from amazon yesterday and i can't find how to activate siri either
Answer: Most wireless headsets use a double tap of the main button for voice commands (like Siri)
You are trying to use it like wired headphones that have the controller by trying with the hold of the main button
If it has a second button also try double pressing or holding it
Answer: Airpods do this quite well. If you're using non-apple earbuds - you can either use the hardware control on the phone to activate Siri, connect a Bluetooth keyboard that allows Siri activation or get one that has a hardware control or sensor that operates like AirPods do with a tap to invoke Siri.
Answer: Perhaps another avenue for you to pursue for an answer is to look up yout BT headset on Amazon and check out the Answered Questions, which are located just under Customer Reviews.  That's where I learned that the Skull Candy BT headphones I purchased do not "support" Siri.
Answer: To add to what Mommy Me stated, I found out that if I press and hold the call button, quickly say "Hey Siri", then quickly release the call button, you will hear the 3-note headset response and then the Siri "gong" will respond.  If you hold the call button press too long (past the headset 3 note response) it will turn off the headset.  Also make sure you don't release the call button before you completely say "Hey Siri" or nothing will happen.
Answer: Press the call button and say "hey siri"


Single pole breaker in Transfer Switch trips on transfer to GEN position every time but only on Master Bedroom circuit, 5 others OK

Question: How can I use a single pole breaker in Transfer Switch to replace a Double Pole GFI breaker in box for bedroom lights and GFI Master Bathroom outlets? It trips every time I turn it on through transfer switch on gen power, both are 15 Amp Breakers (std breaker in transfer switch, GFI breaker in Panel). I only need to power the bedroom lights but looks like they are not isolated since it keeps tripping the breaker?
Comment: What make/model of transfer switch are you using?
Answer: You can't put GFCI, AFCI or MWBC circuits on transfer switches.
I'm referring to the flimsy 6, 8 or 10 circuit switches that let you flip each circuit to utility or gen individually.
And you have both GFCI and MWBC.
So, yeah, not gonna happen.
That panel should have never been recommended to you. Unfortunately generator salesmen recommend that type because 50 years ago the things are designed to be an easy bolt-up to "any panel" precisely so that salesmen don't need to know anything about your panel.  However, technology has passed it up.  The concept is obsolete (and a bit dangerous) by modern standards.  The breakers aren't even very good.
You need an interlocked subpanel, where you switch the whole subpanel from utility to gen, and the branch circuit breakers live in that subpanel. Those will work all day with AFCI, GFCI and MWBC.

MWBC = Multi-Wire Branch Circuit, shared neutral. Requires common throw.
GFCI = Ground Fault Circuit Interruptor, looking for current differences between hot and neutral, which could shock people.
AFCI = Arc Fault Circuit Interruptor, looking for the "sound" of arcing, which starts fires.


Do I cite the article or the article's sources?

Question: I am writing an article that is analysing an existing article, that only uses secondary research (research that wasn't conducted by myself - and that I'd obtained from this article). When citing this information in my essay do I cite the same article over and over again when talking about each piece of information? Or cite the article's bibliography? I am only obtaining information from this one article.
Answer: Cite the article(s) you use. If you need to talk about that article in terms of earlier ones, cite those.
An example. Suppose the article you are analyzing is "Smith". Then you cite Smith. But if you have to say somewhere that, for example "Smith was led to this conclusion from ... 'Jones'", where "Jones is in Smith's bibliography, then also cite Jones.
Otherwise you are sort of led to citing a chain of publications back to the foundations of the field. Very few papers require that sort of thing and they are very specialized.
Comment: To add to this, though, you need to make sure you actually read Jones too; you shouldn't cite Jones merely because you read Smith's citation of Jones.
Comment: To add, you can also write something like "See Smith (2016) and references cited therein".
Comment: To extend on the point @BryanKrause made: You should absolutely read Jones, as an important part of your analysis should be if Smith quoted correctly  - not (only) formally, but with regard to quoting wrong things that never were in the original paper.
Comment: @BryanKrause, yes indeed. Thanks for the clarification.
Comment: To reiterate: if you use it, cite it. The question of citing sources cited by the source you cite is subtler.