When dealing with the class imbalance problem in a binary classifier, there are three ways I know of to address it: over-sampling, under-sampling and using cost-sensitive methods.   Are there any guidelines, rules of thumb or general strategies to choose among these methods? A possible answer would be: over-sample when the positive class has more than 100 instances (I just made it up).


Machine Learning - Where is the difference between one-class, binary-class and multinominal-class classification?

Where is the difference between one-class, binary-class and multinominal-class classification?  If I like to classify text in lets say four classes and also want the system to be able to tell me that none of these classes matches the unknown/untrained test-data.   Couldn't I just use all the methods that I mentioned above to reach my goal? e.g. I could describe C1, C2, C3 and C4 as four different trainings-sets for binary-classification and use the trained models to label an unknow data-set ...  Just by saying, Training-Set for C1 contains class 1 (all good samples for C1) and class 0 (mix of all C2, C3 and C4 as bad samples for C1).  Is unlabeled-data C1 -> 1 or 0  Is unlabeled-data C2 -> 1 or 0 ... and so on ...  For multinominal classification I could just define a training-set containing all good sample data for C1, C2, C3 and C4 in one training-set and then use the one resulting model for classification ...  But where is the difference between this two methods? (except of that I have to use different algorithms)  And how would I define a training-set for the described problem of categorizing data in those four classes using one-class classfication (is that even possible)?  Excuse me if I'm completely wrong in my thinking. Would appreciate an answer that makes the methodology a little bit clearer to me =)


Check if file exist before counting the length of the string in text file

I am having a hard time figuring up why this code of mine gives me an unhandled exception error where in fact it is an if statement..           If (Not System.IO.File.Exists("C:\file.txt") And System.IO.File.ReadAllText("C:\file.txt").Length <> "20") Then             MessageBox.Show("Code executed!")         Else             MessageBox.Show("Failed to execute!")         End If   Can you please tell me what have I missed?


How to create a custom block and call in a region programming Drupal 9

I am looking for a solution where i can create a block via my custom module that i already achieved. class CustomExercise1Block extends BlockBase {    public function build() {        $build['wrapper']['#markup'] ="Hello World!";     return  $build;   }  Now this block start appearing on Structure > Block Layout from there i can chose the block and call in any region which i want. But i am looking for additionally that stop this process and do via programming from same module so once in above my custom module a block created it i assign it a region and page visibility so it start appeared in that region and page I am looking for Drupal 9


How can I repair Unity after trying to install macOS theme from noobslab? Icons and dock vanished!

Last night I successfully installed Ubuntu 12.04 64-bit, and then I tried to install Mac OSX Theme following .  But after I installed the last thing, GNOME Tweak Tool, I ran compiz and my Ubuntu bar disappeared, then the system froze, so I restarted, and now all I see is wallpaper; no icons, no bar.   Now I'm using Ubuntu 12.04 Live CD. It's all I can use, live CD.  And one other thing, I have Windows 7 64-bit, and it's full of spyware and trojans. Can I clean it from my Ubuntu?


Does $\sum_{i,j\in \mathbb{N}} \frac{1}{(i+j)^2}$ exist?

Does  $\sum_{i,j \in \mathbb{N}} \frac{1}{(i+j)^2}$ exist? I tried with $ \frac{(i+j)}{2}\ge \sqrt{ij} $ but this seem to be of no work as for each fixed $i$, $\sum_{j} \frac{1}{ij}$ does not exist. We need a better estimate. But I can not find one. Thanks a lot for your help.


Use cases to define a variable as `protected`?

I understand that one should use protected when one wants to make the variable visible in all classes that extend current class, but what does that mean exactly?  What are the most common use cases?  I suppose another way to frame the question would be, what are the key cases when you would want a class variable to be visible from the class' children but not from external classes.


Including a comma at the end of a list before a dependent clause

I have this sentence on my resume:     Develop the front-end of a platform using HTML, CSS, and Bootstrap to connect people and systems   Is there a comma after Bootstrap? I wanted to elaborate on the reason for building the application rather than simply listing the programming languages I used.


Is it possible to store user's crontab in user's git repository on OpenBSD?

On OpenBSD and with OpenBSD's  and , is it possible to store the  of a user in a  repository of the same user?  What would be the proper way to accomplish something like this?  (To steer the answer into the correct direction, I would not be opposed to changing some permissions in the system, although I'd rather not have to recompile the binaries, nor violate any good security paradigms.)


$$\sum_{k=1}^{\infty}\frac{2k^2}{5^k}$$  I came across this problem and I didn't get how to solve it at all. May someone explain this to me?


I'm having massive problems with Debian's locale Settings.   I want my server to talk to me in standard English (en_US.UTF-8?) and additionally have de_DE.UTF-8 available for a few Python scripts that require it. I fudged around with pretty much all combinations of locale-gen, dpkg-reconfigure locales and editing of config files.  Now, when logging into my server, I'm greeted with this:  Last login: Fri Mar 13 22:23:14 2015 from 1.2.3.4 -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)   What does this even mean?  On my other server, I somehow managed to configure everything correctly, and locale -a correctly outputs the following there:  C C.UTF-8 de_DE.utf8 en_US.utf8 POSIX   On this server, however, I only get this at the moment:  C C.UTF-8 POSIX en_US.utf8   How do I fix this?


Options for Data Encryption in SQL Server 2008 R2 Standard Edition?

I'm helping a friend with setting up encryption of data on SQL Server 2008 R2 Standard edition. Upon original research I thought I could use   but did not realize that it was only available for Enterprise or DataCenter versions of SQL Servers. Upon further research into SQL Server 2008 R2  I saw that it does allow for "Data encryption and key management" but I'm not sure what it means or how to implement it.  What is the most efficient and low cost method for data encryption? Should I do something through SQL Server or just use third party tools to encrypt the whole volume where DB and backups are? Also if someone can point to a way to use "Data encryption" that comes as feature in standard edition I would really appreciate. Every time I search for encryption on sql server I keep ending up on how to use TDE and in current scenario it is not feasible for the size of business to purchase Enterprise Edition.   Reason for encryption - HIPAA Compliance. If access is gain to file system for database or backups, data is encrypted and can not be of any use. This could include physical access to the machine or access through local admin.


Dualboot windows 8 uefi and ubuntu 13.04 64-bit

I am trying to dualboot windows 8 and ubuntu 13.04 64-bit. Windows 8 is installed in uefi mode with secure boot disabled. To install ubuntu i followed this guide:   When ubuntu was installed the windows bootloader should have been overwritten and the system would automatically boot into ubuntu. That wan't the case for me. For me I booted into windows without being able to choose os. I followed the guide anyway and downloaded EasyBCD 2.2 and added an entry for ubuntu in the win8 bootloader. When rebootin and choosing ubuntu i get a black screeen with white text and an error message about things missing. Any ideas?  This may have been answered but i have tried google and have not found anything that helps me. I'm new to linux/ubuntu.


A while ago, I accidentally created hundreds of thousands of files in my home directory which I subsequently deleted.  Since then however, running ls in my home directory has been extremely slow (taking tens of seconds to print). It has also been slow in other directories (as in taking 1s to print) and tab completion has been slow everywhere (also tens of seconds).  What might the problem be?  Edit: As suggested in the comments, the output of the      find ~/ -maxdepth 1 | wc   is 67 and the output of df -h is  /dev/sda2        74G  8.4G   62G  12% /  none            4.0K     0  4.0K   0% /sys/fs/cgroup  udev            3.9G   12K  3.9G   1% /dev  tmpfs           795M  1.1M  794M   1% /run  none            5.0M     0  5.0M   0% /run/lock  none            3.9G  4.9M  3.9G   1% /run/shm  none            100M   52K  100M   1% /run/user /dev/sda1       825G  408G  376G  53% /home AFS             8.6G     0  8.6G   0% /afs /dev/sdb2       1.9T  584G  1.3T  32% /media/sj1/ResearchData1  /dev/sdc1       932G  409G  524G  44% /media/sj1/ResearchData2


Kubuntu 15.10 does not recognize my graphics card

Today I switched my Toshiba Satellite C55D-A from Windows 8.1 to Kubuntu 15.10. When it finished installing, everything seemed fine until I noticed that my desktop effects were acting very glichty.  Knowing that this was graphics issues, I checked the KDE Info Center to see if my graphics was recognized. But unfortunately, it was identifying my AMD Radeon™ HD 8210 Graphics card as "Gallium 0.4 on AMD KABINI (DRM 2.43.0, LLVM 3.6.2)".  It looks like that Kubuntu cannot find the driver for the graphics card, but I have no idea how to install the driver on Linux. Any help is very much appreciated.


Wrong working directory, if bash script is opened via double-click

I wrote a bash script in order to directly start eclipse from different workplace locations. Each workplace contains the script, after running it, eclipse is started with the respective workspace set.  #!/bin/bash  # relative path #ECLIPSE_DIR='../../' ECLIPSE_DIR='/Users/mike/Development/java/' ECLIPSE="${ECLIPSE_DIR}eclipse/eclipse.app"  AUTHOR='mike'  # current directory is workspace WORKSPACE=`pwd` echo "WORKSPACE = $WORKSPACE"  # start eclipse from current directory #open -n $ECLIPSE --args -data $WORKSPACE -vmargs -Duser.name='$AUTHOR'   The script is working, when I run it from the terminal. But when I double-click it, it uses the home directory as working directory and thus starts eclipse not from the directory that contains the script.  Apparently scripts are executed from ~/., which is the cause for my trouble. What can I do to fix this? Or how can I change my script to get the desired behavior?


Inkscape: Organically filling an odd shape with set objects

I have been searching for this answer for a while, but haven't understood how to master exactly what I want.   Currently, I am working on a project on Inkscape where I have created an odd shape by connecting the top nodes of two circles together and repeating the process to the bottom nodes (to form a container shape.) I have also created an arrangement of objects that I would like to organically scatter throughout the shape, without overlapping, creating a grid look and filling the curved ends as well.  I have read that using the "randomizing centres..." button in the "Align and Distribute" tab, will sprinkle my objects, and finishing it off with the "Unclump" button will prevent the overlapping. However, I cannot seem to spread it within my chosen shape.  Is there a way to perform this task so the assortment of objects will actually fill the shape itself?


Find files that are installed by a package

I have Ubuntu 16.04. Recently I downloaded a Nintendo DS emulator (DesmuME) with sudo apt install desmume. It seemed like I installed it successfully, but if try to search for the file desmume it doesn't show it anywhere. What should I do?


On Linux 3.11.0-13-generic running on top of a dual socket Xeon X5650 hexa core board, htop shows different kworker threads. Sorted by names (I tweaked the result I am showing here a little bit to have the threads on core 2 before the ones on core 10), here is the result:  kworker/0:0H kworker/0:1 kworker/0:2 kworker/1:0 kworker/1:0H kworker/1:1 kworker/2:0 kworker/2:0H kworker/2:1 ..... kworker/11:0 kworker/11:0H kworker/11:1 kworker/u48:0 kworker/u49:4 kworker/u49:5 kworker/u50:1 kworker/u50:2 .......   The threads whose names start with a number are pinned to the core with the same number. So the first number is the core running the thread and I am wondering what the symbol after : (0 or 0H or 1) is for these threads?  I am also wondering what is the meaning of the uXX:Y symbols?  I have only a vague knowledge of what kworker threads do: they handle asynchronous events caused by system calls performing I/O. Are they documented somewhere?


How to not freeze the main thread in Unity?

I have a level generation algorithm that is computationally heavy. As such, calling it always results in the game screen freezing. How can I place the function on a second thread while the game still continues to render a loading screen to indicate the game is not frozen?


Let $$ f(z) = \sum_n z^{n!} $$ I am trying to show that $f(z)$ is analytic on the open unit disk ${|z| <1}$. My thought is to find its radius of convergence $R$, but this series does not have a form of a power series (which I learned how to find $R$ from the various tests) so I am not sure if I am doing it correctly.


I need to connect the rectangles by labeled arrows (rights) in this case:        \documentclass[tikz,border=2mm]{standalone}      \usetikzlibrary{arrows, chains}       \begin{document}          \begin{tikzpicture}[        node distance = 0mm,          start chain = going right,           box/.style = {draw, semithick, minimum size=1cm,                 outer sep = 3mm, on chain,}                     ]      \foreach \i  in {{\Huge S_0}, S_1, S_2, S_3, S_4, S_5, S_6, S_7, S_8}         \node[box,label=below:] {$\i$};       \end{tikzpicture}      \end{document}   I need also label arrows with \lambda_n where n is number from 0 to 7. Labels should be placed above the arrows.


Disposing of a WCF client instantiated via an interface

I would like some clarity around the following  (apologies in advance if this is a stupid question)  Am working on some existing code which calls a WCF service.  This code instantiates a WCF service client via an interface and performs the operations it needs i.e.:      IWCFService proxyClient = new WCFServiceClient()   However what am trying to do here is ensure the connection is closed gracefully i.e.: proxyClient.Close()  etc but I cant access these seeing as its created via an interface (which just houses the operations i.e.: DoSomething())  If i instantiate as a WCF service client (and not via interface) i will be able to access the Close() & Abort calls which i can use in try{}catch{} blocks. i.e.:  WCFServiceClient proxyClient = new WCFServiceClient()  //do some stuff.. proxyClient.Close()   Is it a simple case of adding Close() & Abort() to the interface definition and then calling these in the code which should in turn implement the WCF implementations of these?


Is it possible to apply careful spell on a magic surge for a example a cast 3rd level fireball centred on yourself, can you utilize careful spell in this case to save yourself and your allies?


Solve this Diophantine Equation: $a^3-b^3 = ab+61$

"solve this diophantine equation: $a^3-b^3 = ab+61$"  For Diophantine Equations I have always had the question in the form $ax+by = c$ and solved it via Extended Euclidean Algorithm. However, this question is not formatted in such a way.   What I am thinking is that we move $ab$ to the LHS so that we can have a single constant on the RHS. Maybe then we could expand? I'm not sure. Hints/Advice is what I am looking for.   Maybe we can substitute $a$ and $b$ with something else of a form I am more comfortable with? I'm not really sure.


I would like to know why scientists try to use deuterium and tritium for  and not just the ordinary  ${}^1H$?


Blender 2.77 - how to have my default workspace always with top, left, right, perspective like 3D studio max?

I am new in Blender 2.77, when i open it, i always get one view point "User Persp" how can i see at once left, top, right and perspective views? (like in 3d Studio max there is 4 view point in one GUI)


php function for collating external variables into a single object regardless of GET or POST

I recall reviewing someone else's PHP code once and he had a function or class method that rolled all GET and POST variables into a single plain old object that could then be passed around. If the same name-value pair appeared in both GET and POST, POST would win.  Is there a well-coded PHP add-on out there of any sort that does exactly this?


Using the below JS method for the custom sorting to work on a lightning data table. The same works perfectly in aura frame work. I suspect key() doesn't work in lwc. Documentation didn't help much. Can someone suggest what's going wrong with below piece.  updateColumnSorting(event) {     var fieldName = event.detail.fieldName;     var sortDirection = event.detail.sortDirection;     this.sortedBy = fieldName;     this.sortedDirection = sortDirection;     var reverse = sortDirection !== 'asc';     var dataToSort = this.data;     dataToSort.sort(this.sortBy(fieldName, reverse));     this.data = dataToSort; }  sortBy(field, reverse, primer) {     var key = primer ?             function(x) {return primer(x.hasOwnProperty(field) ? (typeof x[field] === 'text' ? x[field].toLowerCase() : x[field]) : 'aaa')} :             function(x) {return x.hasOwnProperty(field) ? (typeof x[field] === 'text' ? x[field].toLowerCase() : x[field]) : 'aaa'};         reverse = !reverse ? 1 : -1;         return function (a, b) {                         return a = key(a), b = key(b), reverse * ((a > b) - (b > a));         }  }   Error LOG     [NoErrorObjectAvailable] Script error.   newHandler()@   {anonymous}()@   vo.dispatchEvent()@   vo.fireSortedColumnChange()@ vo.handleUpdateColumnSort()@


Documents required by Indian citizens wishing to travel to Nepal

I'm a citizen of India and I'm travelling to Nepal by air. Is an Aadhaar Card a valid document used for travelling to Nepal by air?


Why is the linespacing larger inside an empty environment?

I found myself perplex at the fact that the same command works a different line spacing when written inside an empty environment.  Could somebody explain why, or at least give me a method to make the line spacing inside the environment as tiny as it is outside?  This is the code:  \documentclass{article}  \newenvironment{footnotepar}{}{}%Empty environment  \begin{document}  \begin{footnotepar} %The line spacing here is too large \fontsize{8pt}{8pt}\selectfont This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text.  \end{footnotepar}  \fontsize{8pt}{8pt}\selectfont This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text. This is a blind text.  \end{document}   It outputs:    LaTeX Version: This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex 2019.8.29)


What is the probability of winning the game "one,two,three"?

There is a game going around my school that plays with the following rules:   The game is played by a single player -The game is played using a deck of italian gaming card ( $40$ cards, $4$ suit, every suit has cards going from the value of $1$ to the value of $10$ ) The player has to draw cards continuously. Every time the player draws a card he has to say a value starting from $1$ and increasing the value every draw. After saying $3$ the value becomes $1$ again. If the player draws a card with the same value as the value said before drawing (ex:  the player says "one" and draws an ace) the game stops and the player loses. If the player can't draw anymore cards the game stops and the player wins.     What I want to calculate is the probability of the player winning. Unfortunately it seems I can' t get to answer.  So, what is the probability for a player A to win?


What is a good way to create blank space (preferably, underlined -- it is to be filled in by hand when document is printed) that takes up all the remaining space on a line. The blank space may appear at the beginning, in the middle or at the end of the line; it may also occupy the whole line.  I would appreciate a solution that survives changing the font and font size of surrounding text, as well as the size of page and page margins.  UPDATE: I am looking for a solution with Knuth's TeX and plain TeX.  UPDATE 2: I find egreg's  a good one. However, in this case it would be very convenient if blanks can be broken across lines (automatically, of course) in cases where the blank is too long to fit on current line and has to be broken up either because it is longer than the line or because text on that line is too short and would result in an underfull box if left alone.  UPDATE 3:  Types of fill-in blanks I need:  1) unbreakable blanks of a specified fixed length; (egreg already provided an elegant solution to this case )  2) breakable blanks of a specified fixed length;  3) breakable blanks no shorter than a specified minimum length. These are the same as type 2 blanks except that the last part of a broken blank (or the whole blank when it is not broken) should expand and take up all the available space on its line (like \hrulefill).


Find the directory relative to the current bash file in Linux

I have a simple Linux bash file: /home/jack/lib/env.bash It is supposed to register the directory relative to the bash file (/home/jack/lib/opt in this case) as environment variable. #!/bin/bash export MYFOLDER=$PWD/opt  However, if I run it from a different folder like: *****:/home/jack/a/b/c$ source /home/jack/lib/env.bash  It registers /home/jack/a/b/c/opt to MYFOLDER in the env list instead. How to fix?


Will the screw on the quick release plate attach to my camera?

Recently I ordered the tripod Digitek DTR-550 LW on Amazon for my Nikon B700 camera. But I'm not sure that my camera will attach with the screw on quick release mount of the tripod. Please throw some light upon this confusion.


Fatal Exception: java.lang.NullPointerException com.google.android.gms.dynamite_dynamitemodulesc

Does anyone know why this error will be? I have been looking for but I did not find anything that could help me, any one could guide me please :  Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase(java.util.Locale)' on a null object reference at blm.run(:com.google.android.gms.dynamite_dynamitemodulesc@16078052@16.0.78 (040700-233153861):66) at java.lang.Thread.run(Thread.java:818)


What is the best way to use map of sobjects in Lightning?

In Classic/Visualforce I can iterate through Map using apex:repeat. What is the best way to do that in lightning? I want to display key and some fields from sObject.


Negative questions: “No, I don’t” or "Yes, I don't"?

I’m an English teacher in Japan. Recently I ran into quite a conundrum, which I’m sure many others have struggled with. I was talking to one of my students in the presence of my boss and something my student said gave me the impression he hadn’t seen a particular movie. I then asked him, “So you haven’t seen the movie?” He responded, “No, I haven’t.” At this, I corrected him, saying he should say, “Yes, I haven’t.” My boss took issue with and said this is the number one thing that Japanese students learning English apparently trip up on, and traditionally they would be upset if I teach this kind of thing, because what they learned in school is that they should say, “No, I haven’t” in all cases. He has been riding me to find the answer for myself as to whether this is true or not, and while I’ve looked around online and found opinions, I can’t find anything “official”. And what bothers me is responding to a question such as “Have you not seen it” with “No, I haven’t” seems illogical to me, because then it sounds like it would be a double-negative; I’m asking if he has NOT seen the movie, so shouldn’t his answer be “YES, I haven’t seen it?”  By saying “no“, to me it sounds like he would be saying, “No, I haven’t not seen it”, which would mean he has.  Also, the other night, my boss posed the example question on the board for me, “Do you not like it?”. Again, I would naturally think it should be, “Yes, I don’t” or “No, I do”, because I’d be affirming that question one way or the other.  He also showed me a place in a textbook we use with a question like “Don’t you like it” and the answer was “No, I don’t” or “Yes, I do”.  This makes sense to me because the question is essentially saying, “I think you like it, right”, but I’d using a negative. Although when I think about it, why does this seem normal to me but it seems strange to me to say “Yes, I do” or “No, I don’t” to something like “Do you NOT like it”.  This thread seems to suggest I’m right:  My mom, who is really good with Grammar, also agreed with the responses in that thread. But I feel like I need something more official and concrete.  So could anyone tell me for sure what the right way is and if possible give me an official source, like a dictionary of sorts or something? Thanks a lot.


Create Live ISO from installed Ubuntu with data for future install like SUPER OS

is there any way to backup as ISO of my current Ubuntu OS with all installed data like SUPER OS. Or, anyway to make like live ISO from my installed Ubuntu with apps, that i will installed it later with installed data,apps etc in my PC or someone else.  If there any solution please reply. Thanks


Is there anything more to the way others mistreat Spock?

I have only watched up to Season 1, Episode 23 "A Taste of Armageddon", so my knowledge on the show is limited. Let me begin by sourcing this article, entitled :  Racism and Improving Race Relations Star Trek does have a strong vein of racism running through it, but this racism is not directed towards the minority regulars (that would have caused major problems), Instead, this racism was directed towards Mr. Spock (portrayed by Leonard Nimoy), the half-Human half-Vulcan first officer and science officer of the Enterprise. Spock is the only one of his people aboard the Enterprise. His pointed ears, green blood, and devotion to pure logic set him apart from the rest of the crew. As a Vulcan, a fictional race of beings, scathing comments regarding his ethniticity (and especially his pointed ears) could have been made with virtual impunity while similar comments directed toward recognized minority groups would have been greatly frowned upon. The relationship between Mr. Spock and Dr. McCoy makes this point clear. During practically every episode, McCoy badgers Spock about everything from his pointed ears to his green blood.  There are quite a number of instances in which Kirk and McCoy comment on Spock's logical nature, ethnicity (pointed ears, blood) and lack of emotion. While it is understandable that the men have ideological differences (McCoy seems to be at odd with both Kirk and Spock at times), McCoy makes it a point to make the insults personal. Similarly, Kirk makes mean-spirited remarks towards Spock frequently, although it is ambiguous whether or not these playful remarks are meant to be derisive. I can't tell what the purpose of it is other than to repeatedly allude the audience to Spock's character, yet they seem to exaggerate the offensive nature just a tad to the point where it seems racist. The show does acknowledge it a couple of times. i.e., Kirk's clever "half-breed" memory, one of the crew members not liking Spock after they discover what the Romanulans look like, and Spock saying "I do not see why you find it necessary to insult me". On one hand:  Spock does not react to these comments with outrage. He's an emotionless being driven by logic. This could also be the show's cue that the remark is not to be taken seriously.  The crew members are close friends. Friends tease each other.  Kirk is just being playful and it is his way of "humanizing" Spock. McCoy simply has ideological differences and likes to show it.   The other hand:  Spock's lack of response to the insults make it rather one-sided. The audience doesn't feel any "closure", just uncomfortableness, as the insults are not confronted with an equal response.  McCoy seems to badger Spock like the article says. Maybe this is just a part of his character, but as I said before, McCoy seems to like to make it a point to make it a personal insult.   Is there anything more to it or am I just a sensitive viewer?


Remote job asking me for holder name bank name email address and phone number associated with bank account

This is the email that was sent to me i'm wondering if this is a scam  can funds in your account be accessed with your holder name bank name email address associated with your account and phone number     During the work you use bitcoins for working with customers.   It is necessary for customers. Use the services of our partners at a lower price, you can only for business purposes.   Services and goods which you will buy for customers through bitcoins for low price:         Web Design;   MySQL Database;   Set up VoIP number;   Database Servers;   Stock exchange services;   Hosting;   Virtual private servers.         To  start  working  with  Bitcoin, you need to fill up your wallet. We   will provide you money via Zelle system.      To do this, we need to know:      Your Holder name:   Your Bank name:   Your Email address associated with account:   Your phone number:        There is no fee to receive bitcoins, and many wallets let you control how large a fee to pay when spending.   Most wallets have reasonable default fees, and higher fees can encourage faster confirmation of your transactions.   After receiving electronic transfer, you will have to fill up your Bitcoin wallet.      We will send you 2-3 transactions through Zelle.   Have you ever used electronic transfer (Zelle)?   Do you have online banking active?   Do you have business bank account?


How to create a script that merges two files to get a specific output in the korn shell?

I'm currently working on trying to merge two files together on unix  first file:  Tom 313.455.6786 Deena 313.899.7400 Will 313.845.5633 Nancy 313.676.9445 Kelly 313.611.4242 John 313.908.3858   second file:  Deena Tuesday Will Monday Kelly Sunday John Wednesday Tom Thursday Nancy Saturday   I'm writing the script in the korn shell and I need to include for loops and arrays and all that jazz.   This is what I have so far:  #!/bin/ksh file1=/home/file1 file2=/home/file2 set -A name set -A phone set -A day  for input in `cat file1| cut -d " " -f1`         do         name=$input done  for input2 in `cat file1|cut -d " " -f2`         do         phone=$input2 done      for input3 in `cat file2|cut -d " " -f2`             do day=$input3             week= "Monday Tuesday Wednesday Thursday Friday Saturday Sunday"             for day in $week             do             echo $day\n             day=$i             done     done     printf "%s\t%-12s\t%s\n" "Name" "On-Call" "Phone"; join < (sort file1) <     (sort file2) | tr ' ' '\t'   This scipt is giving me the following output:  Name    On-Call        Phone Deena   313.899.7400   Tuesday John    313.908.3858   Wednesday Kelly   313.611.4242   Sunday Nancy   313.676.9445   Saturday Tom     313.455.6786   Thursday Will    313.845.56334  Monday   That code sorted the files by alphabetizing the names, rather than by the weekdays, which is what I need. Also it's reversing the On-call output with the Phone output.   I need the final file to look exactly like this  Name    On-Call    Phone Will    Monday     313.845.5633 Deena   Tuesday    313.899.7400 John    Wednesday  313.908.3858  Tom     Thursday   313.455.6786   Nobody  Friday     313.555.3454    Nancy   Saturday   313.676.9445  Kelly   Sunday     313.611.4242


Steps to be done before selling your iPhone

I was curious about the things that we need to do before selling your iPhone or even before giving it back to Apple (Apple has a program where they will refund you some money if you want to get a new iPhone).   Quick googling show: .  I'm interested in all aspects. What to do in the iPhone itself, the associated Mac/iTunes and your account at Apple/iCloud.


Why didn't the blaster bolt fall to the ground when kylo ren released it?

Why didn't it fall? It lost it's inertia when he froze it in place.


in my latex document I have two bibliographies. First is for theoretical part of thesis and second is my articles. I don't want to reference or cite from the second bibliography. Is there a way how to create (render) a fake bibliography without bibliography command ? I mean I want only render this without numbering :  \bibitem{blabla} Jon Doe \newblock {Article title}. \newblock {\em SpringerPlus}, 2015.  Thank you for your responses in advance.


I'm using JSON to format a hyperlink column in SharePoint online. If the column @currentfield isn't filled in, there shouldn't be a link. Can anyone help me?  {   "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",   "elmType": "a",   "txtContent": "@currentField",   "attributes": {     "target": "_blank",     "href": "='https://contoso.sharepoint.com/w' + @currentField"    }


I am very new to java. I was trying to take input from a file, and set the arguments from the file as hashmap key and value. But it returns null pointer exception on the line where i am splitting the arguments from line. This is my code :  public class hashtable{     public static void main(String[] args) throws Exception{         HashMap nodes = new HashMap<String,String>();         String filename = args[0];         FileReader file = null;         BufferedReader reader = null;         try{           file = new FileReader(filename);           reader = new BufferedReader(file);           String line;           line = reader.readLine();             while(line != null){              line = reader.readLine();              String []arguments = line.split("\\s+");              nodes.put(arguments[2],arguments[1]);             }         }         catch(IOException e){}         finally{           reader.close();         }           for(int i = 0 ; i < 5;i++){             System.out.println(nodes.get(i));         }     } }   where am i going wrong ?  Any help would be appreciated.


SharePoint 2013 Search Results Trim Duplicates

I have added a search results webpart which returns only a subset of documents. I have around 15 documents but search is only returning 7. I noticed the missing document have similar content with few modifications.  I came across this article which mentions about the Trim Duplicates attribute. Does anyone know if this issue is fixed in the Latest service packs. I have April 2015 CU.


Inline referencing chapters, sections, subsections, etc

I am currently in the process of writing my Master's thesis using the LaTeX class supplied by my university. This class uses a document structure similar to report: Starting with chapters, then sections, then subsections and so on. Citation style is IEEE, if that's important. What is the correct way to reference all these text-divisions within my flow-text, especially when reaching \subsection{} level and below? Example A  As shown in chapter "Foo" and section "Bar", [...]. [...], for further details see subsection "Baz" and subsubsubsection "Qux".  or Example B  As shown in section "Foo" and section "Bar", [...]. [...], for further details see section "Baz" and section "Qux".  or something completely different?


My code:  import java.io.*; public class compute_volume {    public static void main(String args[])throws IOException{        InputStreamReader reader = new InputStreamReader(System.in);        BufferedReader input = new BufferedReader(reader);        boolean answer;        double radius,height;        final double pi = 3.14159;        do{System.out.println("Enter the radius,press enter and then enter the height");        String t = input.readLine();        radius = Integer.parseInt(t);        t = input.readLine();        height = Integer.parseInt(t);        System.out.println("The volume of a cylinder with radius " + radius + " and height " + height + " is " + (pi*pi*height) + "\n Thanks for using my cylinder volume calculator.Enter \"yes\" to use again or \"no\" to stop.");        t = input.readLine();        System.out.println(t);        if ( t == "yes"){            answer = true;         }else{              answer= false;         }     }while(answer);     } }   Problem:  The user inputs yes but the calculator doesn't restart.  Solution:  That's what I don't know ,and hope to know by posting this here.


Where can I ask a question about coding platforms?

I want to write a small application to help me write modifications for a game I enjoy. I'm thinking of asking the community for recommendations of a good language to use, or which of a few options I'm toying with would be good. Benefits/disadvantages for packages from those who know a bit more.  My instinct would be to ask on Stack Overflow, but it's a question fishing for information about the benefits and disadvantages of different coding platforms rather than a question about solving a specific coding problem. I don't want to fall foul of site rules. Which Stack Exchange site is it best placed on?


I'm using Windows 7 64-bit (x64)   Infection date and initial symptoms: Last week, I noticed when I right click on a red flag in "Window Security Alert" icon, it pop out a message "Security Center Service is turned off", So, I tried to click turn on now but the error message keep showing"Security Center service can't be started".  I think that the reason is my browser is infected with some malicious software. My antivirus scanned for two malicious software and I had deleted it. So I open the window defender and click on full scan but nothing was found. Then, I type on services.msc to check for security center of its status type and I found it was disabled. So, I click on properties and select automatic delayed start. However the problem haven't solved after I reboot my computer.    Here is the result after I type the command for System File Checker (SFC)    Can you please help?


Integrating surface area of a sphere with a cylinder “drilled” out

Given a sphere with radius 30cm and there is a hole of radius 3cm.  How can I complete the question in a cylindrical coordinate?  My attempt:  $Surface Area=\int{\int_D{\sqrt{f_x^2+f_y^2+1}}} dA$  I don't know how to find out the area.


I need to check if the series is convergent:   $$\sum_{l=2}^\infty{\frac{1}{l^m}}, m  \ge 3$$  On the one hand I think that it has to be divergent because each iteration there will be added something more like the harmonic series.   On the other hand I think it has to be convergent because to some extend the sum value will be so small that it does not matter anymore.


Can the solutions for $\log_1(1)$ be $0$ and $1$?


anybody know how to handle an anchor like this? i redirect from another page to the page with these anchor items    i want to set   1 - 9009bac1153753cf6741eda10bc03121  2 - ZJJNkHQ2  3 - 95.26336735469833  4 - 1661  and get these values on the page to set them automatically in input boxes.


I have this code:  from datetime import * surname = "" first_name = "" birth_date = "" nickname = "" class Person(object):     def __init__(self, surname, first_name, birth_date, nickname=None):         self.surname = surname         self.first_name = first_name         self.birth_date = datetime.strptime(birth_date, "%Y-%m-%d").date()         self.nickname = nickname         if self.nickname is None :             self.nickname = self.surname      def get_age(self):         today = date.today()         age = today.year - self.birth_date.year         if today.month < self.birth_date.month:             age -= 1         elif today.month == self.birth_date.month and today.day < self.birth_date.day:             age -= 1         return str(age)     def get_fullname(self):         return self.surname + " " + self.first_name  petroff = Person("Petrov", "Petro", "1952-01-02") print petroff.surname print petroff.first_name print petroff.nickname print petroff.birth_date print petroff.get_fullname() print petroff.get_age()   print petroff.birth_date give me string "1952-01-02" How I can change my code, to get the value of petroff.birth_date => datetime.date(1952, 1, 2)


Problem about number of trials until first success

The problem is like this:  A standard deck contains $52$ cards, $4$ each of $2,3,4,5,6,7,8,9,J,Q,K,A$. Now start the following process. Pick a random card from the deck, show it, and then return it to the deck. Continue repeating this process, stopping when each type of card, $2,3,4,5,6,7,8,9,J,Q,K,A$ has been seen at least once. What is the expected number of cards that you will have drawn?  My idea is that as each type of card have the same number of cards ($4$), the problem can be converted into a deck wich contains $13$ cards only with $1-13$. However, I have no idea about the next step.


Let $A \in {M_n}$ and $\left\| {\left| . \right|} \right\|$ be a matrix norm on ${M_n}$.Why does ${\left\| {\left| A \right|} \right\|_2} \le \left\| {\left| A \right|} \right\|_1^{\frac{1}{2}}\left\| {\left| A \right|} \right\|_\infty ^{\frac{1}{2}}$?


How to create store in commerce_store programmatically?

I would like to create a store in drupal commerce_store programmatically, while I am searching for a couple of hours I realize that commerce_store is a entity type. It has bundle named store. Please see image below.....I want to add new store name My Store2 programmatically under Commerce_Store entity type.    Thanks


Can I launch Graphical applications inside Ubuntu server or any Linux server?

Consider this scenario, I have installed Ubuntu server in my computer. Can I launch any graphical application like Android-studio or Mozilla firefox from the OS?  To be more specific if I navigate to the folder which has the application, and type chmod +x myapp.sh and then type sh ./ myapp.sh . .. what is going to happen?  I am just Curious to know


Animating an Object to Appear / Disappear

I need to animate an object's visibility from opaque to fully transparent in a scene, and this object has many materials that are shared by other objects in the scene.  As I understand it, my only option is to create a single user copy of each of the materials for the object I need to 'disappear', then add a transparency shader to each of these materials and then keyframe that shader's strength (for each material) in order to achieve this.  This seems very complex for such a simple objective.  Anyone know of a better way?


Ubuntu 14.? does not start up properly after update

I fired up my old Ubuntu system and it asked if I wanted to update. I did. When booting up it gave me the red screen and then just the below screen. The computer is a Dell Inspiron 530 that also has Windows Vista as an alternative boot.  mount: mounting /dev/loop0 on /root failed: Invalid argument mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg.  Busybox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell(ash)   Enter 'help' for a list of built-in commands.     (initramfs) _


Does the Earth actually rotate around the sun?

Why does one say that the Earth rotates around the sun? There should be no preferred reference frame and from an observer on the sun, the sun will rotate around the Earth.


If $C$ has measure zero and is in $[0,1]$ is $[0,1]\backslash$ $C$ dense in $[0,1]$

Is it true that if $C$ has measure zero and is in $[0,1]$, then $[0,1]\backslash$ $C$ dense in $[0,1]$ for any general $C\subset [0,1]$?  If not, what are some counterexamples?


Stop windows resuming from hibernation to install automatic updates

I always hibernate my work (Windows 7, x64) laptop when leaving for the night. Sometimes when I come in again in the morning, the laptop is powered up and there's a message telling me that new updates have been installed. (I've changed the registry so automatic updates don't force a reboot.)  I'm happy to have Windows apply updates automatically, but I don't want it to resume from hibernation to do so. How can I stop this behaviour so I'm not wasting electricity?


Can't get Intel HD 5500 graphics to work with Debian

I'm using Debian 8, but my integrated graphics card does not seem to be used.   This is on an Asus Zenbook UX303 which uses HD 5500 integrated graphics:  $ sudo lspci -vnn | grep VGA -A 12 00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09) (prog-if 00 [VGA controller])     Subsystem: ASUSTeK Computer Inc. Device [1043:183d]     Flags: bus master, fast devsel, latency 0, IRQ 64     Memory at f6000000 (64-bit, non-prefetchable) [size=16M]     Memory at e0000000 (64-bit, prefetchable) [size=256M]     I/O ports at f000 [size=64]     Expansion ROM at <unassigned> [disabled]     Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-     Capabilities: [d0] Power Management version 2     Capabilities: [a4] PCI Advanced Features     Kernel driver in use: i915   It seems to say there is a driver in use, however, it doesn't seem the machine is actually using that graphics card:  $ glxinfo | grep OpenGL OpenGL vendor string: VMware, Inc. OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits) OpenGL version string: 3.0 Mesa 10.3.2 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions:   How do I get debian to actually use the integrated graphics card?  $ uname -a Linux zenbook 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux   I've also tried the 4.0.2 kernel from unstable, which doesn't change anything; uname:  $ uname -a Linux zenbook 4.0.0-1-amd64 #1 SMP Debian 4.0.2-1 (2015-05-11) x86_64 GNU/Linux


Suppose that $m$ and $n$ are integers with greatest common divisor $1$. For convenience assume that both are greater than $1$. Prove that the set { $0 · n, 1 · n, 2 · n, . . . ,(m − 1) · n$ } is a complete residue system modulo $m$.   I am blank on how to solve this problem. Help would be much appreciated. Thanks!


Two parabolas, perpendicular axes: Can we prove the intersection points are concyclic?

In  it is shown that when a pair of parabolas have perpendicular axes and intersect at four points, the four points are concyclic (belong to the same circle).  It's easy to show that this is true in general, if we have coordinate equations in the form   $ax^2+bxy+cy^2+dx+ey+f=0, a'x^2+b'xy+c'y^2+d'x+e'y+f'=0$  for each parabola, by taking a linear combination of the two equations you can make the quadratic component a multiple of $x^2+y^2$ (from the hypothesis you can render $a'=c, b'=-b, c'=a$).  But is there a way to prove the claim by purely geometric techniques?  It smells like something that would have a purely geometric proof, but I can't see exactly how.


How much preparation do I need to run the D&D Starter Set?

I've got a group of three, maybe four people and we're completely new. What's the best and quickest way to start with the starter set without finding other people? Is playing through The Lost Mines Of Phandelver and looking things up in the rules while doing so an option? Because I think that'll ruin the experience. It offers a lot if information at once. I've read through most of it now and will do so again but what's the most efficient way of starting with the set?


Is there a way to force Windows 10 to recognize more than 3.5 GB Ram on a 64 bit system?

I've got a machine that is 64-bit, running 32-bit windows 7, which has 8GB ram. I did the official upgrade to windows 10 that Microsoft was offering a few weeks ago, but I'm having a difficult time setting up the /pae boot option, which I have been lead to believe will allow me to use more than 3.5 GB of ram. Is it possible to set up the /pae option to address more than 3.5GB ram on a windows 10 system?


How important is to have matching speed of RAM?

I have a 4GB DDR3 800Mhz recently I installed another 4GB. It turns out it's  DDR3 667MHz. Does it really matter I should own both rams 800MHz?    Slot1 shows recent RAM installation. ALSO I don't know if this is 1600MHz (it shows 800x2 and 667x2 for other) or just 800MHz ram.


Script using data/input which contains variable names

So I have a file "Directories.dat" that contains a list of directories for a script to read that runs on multiple machines. Due to this, the list of directories in the file is often defined with variables such as #Directories.Dat /home/$USER $WORKDIR $APPDIR ...etc   However, when the script runs through the file Directories.dat , $line ends up being set to /home/$USER rather than /home/myuser #!/bin/bash #myscript.sh for line in $(cat Directories.dat)  do  SomeCommand $line done  Should I not use cat? Is eval the only suitable function for doing this? example SomeCommand $(eval echo $line) #DangerZone or are there other methods to read the lines within the Directories.dat file and show the variables as their stored values?


is there any way that i can remove this [I@7cc355be from my output?

//import java.util.Arrays; import java.util.*;  public class Solution {     public static void main(String args[]) {         Scanner sc = new Scanner(System.in);         int size = sc.nextInt();         int arr[] = new int[size];         int u=0;         for (int i = 0; i < size; i++) {            u=sc.nextInt();             arr[i] = u;         }         System.out.println(arr);         int pos = 0, neg = 0, zero = 0;         for (int i:arr) {             if (i > 0) {                 pos += 1;             } else if (i == 0) {                 zero += 1;             } else {                 neg += 1;             }         }         System.out.println(pos / size);         System.out.println(neg / size);         System.out.println(zero / size);     } }  this was my code to print the ratio of positive negative and zero's present in my array but in the print statement where i am printing the array, it is showing this [I@7cc355be


Can I Copy Code Directly From This Site?

I'm working on an iOS Game and I found a piece of code on this site that I really want to use, and don't want to waste time studying and writing my own similar one that follows the same basic idea. Am I allowed to directly copy the code for my game?  Thanks in advance.


I have two partitions, one of them has a file system and the other is unallocated.  How to merge two partitions?


Why does the safety of the cast in makeArray bank on whether user gets access to the array created?  @SuppressWarnings("unchecked") private E[] makeArray(int s) {     return (E[]) new Object[s]; }   I'm guessing that the user might be able to use the wrong data type if they get a hold of the array. For example, instead of using s type elements, the user instead uses T type elements.


How to count the no. of distinct ways in which $1,2,...,6$ can be assigned to $6$ faces of a cube?

How to find the number of ways in which six digits $1,2,..,6$ can be assigned to six faces of a cube (without repetition of digits) so that one arrangement cannot be obtained from another by a rotation of the cube?  I tried to find the number of unique $4-$adjacencies of the faces of the cube. I drew a simple undirected graph $A,B,...,F$ having $6$ vertices with each of them having degrees equal to $4$. There were $12$ edges. Considering the choice between the top and the bottom of the cube, I found the result to be $12 \times 2=24.$  Am I correct? Please suggest better approach approach or bijections(if there are any).


Can someone explain Planck's constant simply?

Can someone explain  simply?  I know the math, however I don't understand the relevance.   To explain what I'm asking, what is the significance of it when doing quantum mechanical calculations such as getting Planck length or other such equations.


How to see texture on the mesh in viewport

I can´t see the test texture placed according to the UV unwrap I made for the mesh. I preview mesh in Texture shading mode. These are screenshots in Edit mode showing unwrapped mesh:


Where to put bash configuration for newly created users?

I have an assignment and I'm confused which bash configuration file to edit.  I'm supposed to edit a bash configuration file and change the PS1 prompt and add an environment variable that searches ~/scripts whenever a root user enters a command. I am then supposed to copy it to the appropriate directory so all new created users will also have the variables.  I can do the first part fine, but am not sure which configuration file I am supposed to be editing. Based on the second requirement, I'm editing ~/.bashrc, but then I'm stuck on the second part of which directory to copy to.  NDG says that all files in that directory with a .sh extension are automatically executed in /etc/profile.d/, so I went ahead and copy/renamed ~/.bashrc to something like bashrc.sh there. But when I test it with a new user profile, there is an empty prompt in terminal.  Hopefully someone here can help me, thanks.    The exact wording of the assignment   In the appropriate bash shell configuration file, configure the primary command line prompt so that it displays your surname, followed by @, the host name, and the working directory. Create a directory named ~/scripts In the appropriate bash shell configuration file, change the appropriate environment variable so that the system also searches the newly created ~/scripts directory when the root user enters a command. Copy the bash shell configuration file that you modified the steps above, to the appropriate directory so that whenever a new user is created, that user will also have these environment variable values.


Solving a Paradox Involving Complex Numbers

So I encountered an exercise in my algebra textbook and it is somewhat paradoxical. Here is the exercise:  $1 = \sqrt{1}$ = $\sqrt {(-1)(-1)}$ = $\sqrt{(-1)}$ $\sqrt{(-1)}$ = $i*i = i^2 = -1$  I think it has to do with the first step of the problem. The number $\sqrt{1}$ shouldn't simplify to just 1. Is it possible that $\sqrt{1}$ can also be $± 1$?  Edit: I wasn't aware that someone else had already asked a similar question to what I just asked.


Will the capacitance of a parallel plate capacitor be different if the overall charge on it is not neutral?

If we have two metal plates of surface area A placed at a small distance d from each other such that one plate has a +Q charge while the other plate is overall neutral, then will the capacitance of this system differ from the general situation where both plates are overall neutral?


I have a problem in calling a template class I have. I declared a new type name Array, which is a template;  In the .hpp file:  template <typename T> class Array { public:    Array(); };   In the .cpp file:  template <typename T> Array<T>::Array() { //Do something }   In main:  Array<int> arr;   I get Linkage error: unresolved external symbol to the ctor.  Any Idea?


Density of the sum of $n$ uniform(0,1) distributed random variables


Prove that $ \dim(\ker(g \circ f)) = \dim(\ker(f)) + \dim(\ker(g) \cap \operatorname{im}(f)). $ What is the error in this approach?

Let $f : U \to V$ and $g : V \to W$ be linear transformations on the vector spaces $U$, $V$, and $W$ respectively. Then Prove that :   $$ \dim(\ker(g \circ f)) = \dim(\ker(f)) + \dim(\ker(g) \cap \operatorname{im}(f)). $$  Attempt:  It's clear that $$\ker(g \circ f))= \ker f +\{\operatorname{im} f \cap \ker(g)\}$$  Then $$\dim \ker(g \circ f))= \dim \big (\ker f +\{\operatorname{im} f \cap \ker(g)\} \big ) \tag{1} $$     If $\ker f \bigcap \operatorname{im}f=\emptyset$, then , $(1)$ becomes an external direct product and the dimension adds up. Otherwise, $\dim \ker(g \circ f)) \le \dim \big (\ker f)+\dim \big(\{\operatorname{im} f \cap\ker(g)\} \big )$   Could someone please pin point the error. Thanks a lot for the help.


How do I add numbers in a different order?

This is a simple question don't look for difficulties. I have such a cycle int arr[]{ 111, 222, 333 };      for (size_t i = 0; i < 3; i++) {    test = 1000 * test + arr[i];     } std::cout << test;  it returns the result 111222333 the question is how to make it output the result 333222111 in short add numbers from the other side you need to change this line to something else to add values in a different way test = 1000 * test + arr[i];      I will update the question a little bit, that would be interesting, what if there is no array and you get the data in this form. test = 1000 * test + X;  X is an unknown number and not an array


I was wondering what kind of restrictions there are, if any, for code posted on StackOverflow?  In other words, I'm hoping StackOverflow has a clause that makes any posted code completely free of restrictions for reuse? (Both questions and answers).


Does a non-magical character have any options to fight a swarm without fire?

In a session with a witch, a wizard and me, a rogue with a knife and crossbow, I found my character to be astonishingly useless against swarms. There was a swarm of Hellwasps and I quite literally just hid behind the magic users. The mages were rather absurdly effective (my contribution to the session was nil), and after looking up the general mechanics for swarms, it appears you have three options:   Area affect magic (I don't even have Minor Magic and don't plan on acquiring it) A torch/fire swung as an improvised weapon  A lantern/fire source as an improvised thrown weapon   My character is a halfling who of course travels light, and I try not to carry anything that emits visible auras or significant magic auras, so I really do just have my crossbow, knife and armor for the most part. I have 4 pathfinder pouches to hide small magic items though so I'm not opposed to carrying anything that can fit in those pouches; I just don't want to be caught with a giant glowing quarterstaff; my character often has to pass as an  innocent little (human) girl.  Is there any option for dealing with swarms like that? Are there items I could use or preferably tactics I could use to actually damage a swarm (or cause damage to them)? Or is running my only option when faced with a swarm when alone?


how do i get into the data folders of minecraft windows 10 edition

I have seen questions like this, but all relate to either the operating system itself or the java version of minecraft. I tried looking for the files myself, but I never figured it out.


I'm having trouble remembering PEMDAS (in regards to precedence in mathematical equations), ie:   Parentheses Exponentiation Multiplication & Division Addition & Subtraction   I understand what all of the above mean, but I am having trouble keeping this in my head. Can you recommend any tricks or tips you use to remember this.  Thanks


What should be the index type when iterating over the elements of a vector?

I usually iterate over a vector that way:  for (int i = 0; i < myVector.size(); i++) {     Element* e = myVector[i]; }   But then the compiler usually gives me this warning:  warning: C4018: '<' : signed/unsigned mismatch   So if an int is not right, which type should the index be? vector::size() seems to be of a "size_type" type, but I'd rather use a more meaningful type. Any suggestion?


Group tables for a group of four elements.

I should consider group tables obtained by renaming elements as essentially the same and then show that there are only two essentially different groups of order 4.  There seems to be so many different possible group tables for all the different binary operations - which is why I'm confused. I was thinking about using Cayley's table to show their commutativity but I'm really not too sure. Any help please!   Edit: After all of your help, I completely understand how to show that there are only two different groups of order four. Thank you. The only thing which I am still unclear of is how to note down the 'other tables' before stating that they are essentially the same as one of the other tables - meaning that there are just two different ones. It's pointless work but I think it's what the question requires.  Answer: After a bit of playing around - I've realised that there are four different tables, however, 3 tables are the same as each other, just with different values (the Klein 4 Group with 3 different generators). Hence there are two tables.


Is QuarkXpress still relevant for manuscripts and books please?

I used QuarkXpress years ago when freelancing on a temporary basis with a local printer/publisher, when I edited manuscripts for local authors and developed the layouts. The version with which I am familiar is Quark 4.1. (A long time ago!) But I am now considering returning to editing and publishing manuscripts, so which is preferable please: QuarkXpress or InDesign? I have a 64-bit PC running Windows 10. I have little to no experience of Adobe as I have never used PhotoShop, as I used the software provided by marketing departments at the time, such as PaintShop Pro. Thank you


After transferring website - PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes)

I am transferring website from one host to another. A very strange error occurred that I haven't seen before.     PHP Fatal error:  Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes)   I thought that this was a wp memory limit issue so I added this to my wp-config.php file   define( 'WP_MEMORY_LIMIT', '8096M' ); define( 'WP_MAX_MEMORY_LIMIT', '8096M' );   But the website keeps returning error 500, and this error in my error log.  Anyone any ideas?


Sci-fi novel about robots which stopped humans from doing risky things

I need help in identifying an old-ish sci-fi book which I read in my college library a long time ago.  The story started building as follows -  There were robots which came from nowhere and started helping humans. They did everything considered risky for humans.  Because of this humans ran out all ways of feeling any kind of thrill and became very frustrated.  I don't remember the mid of the story.  There was a scientist who was explained to be of weak health and balding.   Later in the book due to extreme circumstances he was able to create physical things (a room which he remembered) simply by imagining them.  By the end it was mentioned that the scientist (sort of) didn't succeed in his mission of disabling the aforementioned robots and was nursed back to health by the same robots. He was surprised by how well he was nursed back to health and even his hairline was restored.


Problem: Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a differentiable function with $f(0) = 0$ and $f'(x) = [f(x)]^2$.Prove that $f(x) = 0$ for all $x \in \mathbb{R}$.   My incomplete attempt: Consider an interval $[0, x]$ . Thus, by the mean value theorem,  $$ \frac{f(x) - f(0)}{x - 0} = f'(c_x) = (f(c_x))^2 $$ thus,  $$ f(x) = (f(c_x))^2 x .  $$  So, if there is any $ x_0 $ such that $ f (x_0) \neq  0 $ can this argument be applied to arrive at a contradiction?


Xamarin.Android - No values returned when reading from xml file

I know this is a very simple question-reading and parsing an xml file and has tons of solutions here already.Could you kindly assist me before shutting down this question?I'm new to C# and Xamarin as well,and have tried tons of solutions already but the result is always the same- nothing gets printed out to the console.Regardless of my implementation.The values are always null.Could you kindly check my code out,i have no idea why i'm not getting any data.  public List<SamplePoint> ReadFromFile()     {         pointList = new List<SamplePoint> ();               xmldoc = new XmlDocument ();             xmldoc.Load (fileLocation); //this is read from the sdcard of the device  XmlNodeList nodeList = xmldoc.DocumentElement.SelectNodes ("/SamplePoints/SamplePoint");          foreach(XmlNode node in nodeList){               endDate = node.SelectSingleNode ("EndDate").InnerText;              startDate = node.SelectSingleNode ("startDate").InnerText;   return pointsList;         }


How do I change keyboards from the command line?

How I change keyboard layouts from the command-line?  For example, I want to switch from English to Hebrew.  I'm able to do it from lightdm with the little icon in the corner of my screen.


Why does a candle blow out when we blow on it? Our breath is 16% oxygen and only 4% CO2

Don't say that a layer of carbon dioxide covers the flame, because our breath has more oxygen than carbon dioxide. Also, our breath does not extinguish the flame by cooling it as it is itself warmer than the coolness required to extinguish it. So what is happening here?


I'm slightly confused if an independent variable (also called predictor or feature) in a statistical model, for example the $X$ in linear regression $Y=\beta_0+\beta_1 X$, is a random variable ?


Difference between centralizer and center groups?

This is probably stupid question, but I can't see the difference between the two subgroups:  $$C_G(A)=\{g\in G| gag^{-1}=a,\forall a\in A\}$$ $$Z(G)=\{g\in G| ga=ag,\forall a\in G\}$$  Is the difference that the centralizer takes a subset $A\in G$ and the center always uses the entire group $G$?


I've been racking my brain trying to think of a grammatically correct sentence that uses same without the earlier in the same (see!) phrase.  It is the same It is the very same I have 10 things all the same I have 10 of the same things The same boy as last time did it again The boy did the same thing as last time  I am discounting same-day dry cleaning and any similar phrases that might crop up because using a hyphen is acceptable which suggests it's an atomic phrase and it sounds awkward if inverted:  They have a same-day dry cleaning service. Their dry cleaning service is same-day. - Sounds odd but might be acceptable in some situations Their dry cleaning service is done on the same day. - Sounds better  So I don't think it's possible when same is used by itself. Can someone either explain why same must always have the before it or provide a grammatically correct counter-example?


Cannot get value from always null bundle

After trying many different way to express the following program, I wasn't able to get pass a value from an activity to another. It seems that the bundle keeps being null for some reason. I don't think it could be a permission problem.  MainActivity :  public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);     }      public void ButtonRAWclick(View view)     {         Intent intent = new Intent(MainActivity.this                 , RestClient.class);         intent.putExtra("type", "RAW_TYPE");         startActivity(intent);     }      public void ButtonHTTPclick(View view)     {         Intent intent = new Intent(MainActivity.this                 , RestClient.class);         intent.putExtra("type", "HTTP_TYPE");         startActivity(intent);     }      public void ButtonJSONclick(View view)     {         Intent intent = new Intent(MainActivity.this                 , RestClient.class);         intent.putExtra("type", "JSON_TYPE");         startActivity(intent);     }  }   RestClient :  public class RestClient extends AppCompatActivity implements SensorListener {     RawHttpSensor rhs1;     TextSensor rhs2;     TextView temperature;     String output;     String type;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_rest_client);          Bundle bundle = getIntent().getExtras();         if (bundle != null) {             type = bundle.getString("type");         }          if (type == "RAW_TYPE") {             rhs1 = new RawHttpSensor();             temperature = (TextView) findViewById(R.id.temperature);             rhs1.registerListener(this);             rhs1.getTemperature();         }          if (type == "HTTP_TYPE")         {             rhs2 = new TextSensor();             temperature = (TextView) findViewById(R.id.temperature);             rhs2.registerListener(this);             rhs2.getTemperature();         }          if (type == "JSON_TYPE")         {            ...         }        ...     }   Can someone help me spot the bug ?


Why didn't Bond call for reinforcements?

I do not get one major plot point in James Bond, Skyfall. Why did Bond take M to the home where he grew up? Why did they ("they" as in Bond, M and the gamekeeper) want to take on Silva and his 10+ thugs alone? Why didn't they call for backup when his helicopter arrived? They weren't operating outside of the law so why didn't they involve MI6?


Collision Between Two Particles: Writing the Mass As A Function of The Angle

Suppose we have two masses, $m_1$ and $m_2$, where $m_2$ is at rest, and $m_1$ is headed directly towards $m_2$. I would like to write the ratio of the masses as a function of the angle.    Using Conservation of Energy, Conservation of Momentum, and applying the Law of Cosines to the the triangle that the initial momentum vector and final momenta vectors form, I obtain these three equations:  (1) $ m_1^2 v_1^2 = m_1^2 v_1^2~' + m_2^2 v_2^2~' - (m_1 v_1)(m_2 v_2) \cos \theta$ (Law of Cosines)  (2) $m_1 v_1^2 = m_1 v_1^2~' + m_2 v_2^2~'$ (Cons. of Energy)  (3) $m_1 \mathbf{v}_1 = m_1 \mathbf{v}_1~' + m_2 \mathbf{v}_2~' $ (Cons. of Mom.)  Taking the magnitude of the Conservation of Momentum equation, and squaring the result, yields  (4) $m_1^2 v_1^2 = m_1^2 v_1^2~' + m^2 v_2^2~' + (m_1 m_2)(v_1~' v_2~') \cos \theta$   I would like to try to eliminate the variables $v_1~'$ and $v_2~'$, seeing as in a experimental setting they might be a little more difficult to measure; however, I would like to keep the variable $v_1$, because it is a little more easy to determine--suppose the moving particle is an electron, then $m_1$ is known, and $v_1$ can be easily determine by knowing the accelerating voltage.  I was hoping that someone might guide me towards the correct path, I certainly would appreciate it.


How to find out if a model is overfitted?

I have built 2 models: 1) precision: 0.80 - AUC ROC: 0.69 2) precision: 0.90 - AUC ROC: 0.94    I  have posted both them to Kaggle as Titanic competition, the first model scored 0.7 and the second one scored 0.4. So I know the second model has been over-fitted. How can I find it out before sending results to Kaggle using plots or python codes?  Does CAP curve do that? Can I find it out using ROC curve?  I have used train_test split for the Kaggle training dataset.


What's the difference between one-dash and two-dashes for command prompt parameters?

I was wondering why is it that some programs requires their command prompt parameters to have two dashes in front whereas some (most) only require one dash in front?  For example most programs look like this: relaxer -dtd toc.xml toc_gr.xml toc_jp.xml  Whereas some programs look like this: xmllint --valid toc.xml --noout  What's the reason that some requires two dashes instead of one? Doesn't it make sense for everyone to stick to one standard (i.e. a single dash will do).


When I try to render an animation, the render result of the model looks like this...   And then when I render the animation for a bit, the process makes it glitchy, looking like this:   What do I do to match the animation up with the model render??


I can't copy the array. var Mycollection = new Array("James", "John", "Mary"); var Mycollection2 = Mycollection;  Any change made in the first array is also taken in the second. Mycollection.pop(); console.log(Mycollection.toString()) // ["James", "John"] console.log(Mycollection2.toString())// ["James", "John"]  However, this does not occur when I use variables of text type.


What is the difference between $Q=\Delta U+W$ and $\Delta U=Q+W$?

Is $Q=\Delta U+W$ for when the the work is done from the system while $\Delta U=Q+W$ is for when the work is done by the system?  Will anybody explain this to me, please?   When do we use $Q=\Delta U+W$ and when do we use $\Delta U=Q+W$?


Memory usage on debian webserver keeps going up

my webserver is running apache 1.3.x for a PHP application, along with mysql on the same machine. Most of the time it runs fine, CPU usage still with nice margin, but somehow memory usage keeps growing throughout uptime.  While it looks like it is chunked from time to time, I've had moments my server going down because it's out of memory. Restarting apache or mysql only reduced memusage by 100M.  Attached is an overview of monthly memory usage. The 2 massive drops are server restarts after out-of-memory situations.   Any explanations for his behaviour or how I could solve this?  Thanks! Steven


Alter how often WordPress Auto-Updates Plugins

From my understanding of how WordPress updates core and plugins is that every 12 hours it goes out and looks for updates. When does that time get set? 12 hours from initial installation? I ask this because using the plugin auto-update filter  you could theoretically only allow plugins to update between certain times but if that certain time does not fall into that 12 hour window then plugins will never be updated.   Thus leaving the question in my title which is How would one go about altering how often WordPress looks for updates or how to specify a specific time when to auto-update?  For those interested, here's the filter I've been messing with, checks to see IF it's Monday - Friday 8am - 5pm:  function maybe_update_plugins(){     date_default_timezone_set('Your Timezone Here');     $localAssoc = localtime(time(), true);     $update = false;      /***     /* tm_wday[0] = Sunday     /* tm_wday[6] = Saturday     ***/     if(       $localAssoc['tm_wday'] > 0 && $localAssoc['tm_wday'] < 6 &&       $localAssoc['tm_hour'] > 7 && $localAssoc['tm_hour'] < 17     ){         $update = true;     }      return $update; } add_filter( 'auto_update_plugin', 'maybe_update_plugins' );   Edit As a neat sidenote, it does look like this filter is run each time a plugin updates, multiple plugin updates, multiple runs of the filter


response.text contains the html source of google.com. How come the html source is not wrapping inside my <pre>? Current solution creates a huge side scrolling area, I'd like any text that goes beyond the window width to wrap. I want to avoid use of innerHTML in this solution.  var pre = document.createElement('pre'); pre.appendChild(document.createTextNode(response.text)); document.getElementById("body").appendChild(pre);   css for <pre> ..  pre {     outline: 1px solid #ccc;      padding: 5px;      margin: 5px;      white-space: -moz-pre-wrap;  }


Why is this giving me NullPointerException?

I am creating a word-by-word palindrome ("yes I can, can I yes?") as follows:  ''' public class Palindrome {  LinkedQueue<String> queue; LinkStack<String> stack;  public Palindrome() {     LinkedQueue<String> queue = new LinkedQueue<>();     LinkStack<String> stack = new LinkStack<>(); }  public boolean isPalindrome(String sentence) {      String[] sentenceSplit = sentence.split(" ");      for(String word : sentenceSplit) {         queue.enqueue(word.toLowerCase());         stack.push(word.toLowerCase());     }      while (stack.top() == queue.front()){             stack.pop();             queue.dequeue();     }      if(stack.size() == 0) {         return true;     }     return false; }  public static void main(String[] args) {     Palindrome test = new Palindrome();     test.isPalindrome("can you you can"); }   } ''' In here, it says I receive a nullpointerexception during my for each loop where I enqueue and push each string in the string array, I have tested the strings in the string array and they do exist, so why am I receiving this error? Thanks.


Removing text block between two tags in file regex

I'm creating a digital signage application in c# and having trouble removing a block of text between 2 sections. The text I would like to remove is between [Video] and [Video_END]  I've been trying to use regex to achieve this after viewing other examples however I get a compiler error:  CS1502: The best overloaded method match for 'System.Text.RegularExpressions.Regex.Replace(string, string, string, System.Text.RegularExpressions.RegexOptions)' has some invalid arguments  Here is my code:   StringBuilder newFile = new StringBuilder();      string[] file = File.ReadAllLines(@"C:\Intranet\Net\ProjectApollo\Screens\"+location);  var output = Regex.Replace(text, @"(?<=\[VIDEO\]).*(?=\[VIDEO_END\])", "", RegexOptions.Multiline);   I am working from an example and changed the 2 tags to [VIDEO] and [VIDEO_END]  I managed to get past the compiler error by doing this:     var output = Regex.Replace(file.ToString(), @"(?<=[VIDEO]).*(?=[VIDEO_END])", "", RegexOptions.Multiline);       File.WriteAllText(@"C:\Intranet\Net\ProjectApollo\Screens\" + location, output);   However when I look at the file, its deleted all the contents of the file.  I have tried this:     string text = text.ReadAllText(@"C:\Intranet\Net\ProjectApollo\Screens\"+location);   and then     var output = Regex.Replace(text, @"(?s)(?<=[VIDEO]).*(?=[VIDEO_END])", "");      text.WriteAllText(@"C:\Intranet\Net\ProjectApollo\Screens\" + location, output);   the file says it has changed but looking at it, the content between VIDEO and VIDEO_END is still there.  Any other suggestions?


How to change font size for clock in top bar (GTK)

I am on 19.04. If it is not possible to change the font only for the clock, I would like to change the font size for the entire top bar. I have tried changing "stage" in gnome-shell.css and also the TOP BAR section, but the font size remains the same in my bar. I have found other answers here that answer this question but those answers refer to older versions and do not refer to GTK, and so don't work.  I do not want to change the font of everything else as would happen by setting "large text" in accessibility, or using the scaling slider in tweak tool. I am curious if there is another way to do this besides creating a custom CSS override for the shell theme. I only want to enlarge the time (as I cannot see it), and if that is not possible, only the top bar.


"Hot" tab in is badly skewed and misleading - time to replace it with actual hot questions?

Each site got a "hot" tab, where its contents are calculated based on . However take a look on the screenshots below and see for yourself that "hot" got nothing to do with many of the questions listed there. :    :    As you can see, there are questions with negative score, no answers, and even closed. I won't be surprised to see spam in there as well. This can't be any worse. What I suggest, instead of fixing the formula or patching it, simply have the hot tab show the same questions as the Hot Network Questions sidebar. (from the specific site only, of course.) Since the hot questions "pool" (as seen ) is limited to 100 for the whole network, either expand it or have the per-site list show questions with less hotness points - it would still be better than what we have now.


Some of my friends and I are interested in starting a new Linux distro. How do we do that? What do we need to plan? Backstory I represent a community of Linux sysadmins/implementors whose special needs include, among others:  A specific 'lean' kernel config Package management that fits our 'field needs' Binary packages optimized for our 'use cases' X-less system  To the point: We have need of a specially-configured production-quality Linux distribution to be run exclusively as Para-Virtualized Production Servers. Rather than jumping through all the hoops and loops every time we need a VM-ized Server, we would very much like a semi-prepared system, optimized for its environment. Since these VMs would be Production Servers, stability is a must, and honestly the available package management systems we're currently aware of just do not provide assurance. Zypp and Conary are the closest ones to our needs, but again still miss on some points.


How does a physical knock initiate freezing of supercooled water?

I just stumbled across this YouTube video:    What's the mechanism behind it? With a knock, I added some energy. So what?  With a knock, I also increased pressure, but water behaves opposite of most substances (having freezing point raised by pressure) meaning it'd stay in liquid state with that logic.


How to install Ubuntu using a smart phone as the installation media?

A virus has corrupted my desktop's hard drive. How can I remove the remnants of Windows and install Ubuntu on it?  I have only a working mobile phone and one 4GB USB drive. The 4GB drive has vacation photos on it. I have no friends to borrow things from. What to do? Step by step please, any terminal commands should be familiar to a Ubuntu user.  This question is loosely based on  which was deemed off topic by the DPP.


How to artificially open many tcp connection on a host (testing)?

I'm trying to build a test setup which test my server's performance under high load. In order to do that I want to open thousands of tcp connection. The problem is that I only have two hosts, one is for the server and the other is for the load generator.  Is there a way to do that?


Is it possible to enter Russia by train 1-1.5 hours before the visa validity period starts?

A friend of mine is taking the Train from Finland to Russia. She has now paid and sent the Tourist visa application, with the requested validity being from 3 to 16 August.  Now she's considering entering the evening before, so I would like to ask the following:  The Train she wants to take arrives at Vyborg (first Russian station) on 2 August at 22:22, then St Petersburg at 23:27. The Russian border guards board the train at Vyborg and do the checks while the Train is travelling between the stations, so sometime between 22:30-23:00  If the visa validity starts on 3 August, and she is checked at 22:30-23:00 the evening before, what would happen? Are they very strict about the starting date if it's within 1-1.5 hours, and how bad would the consequences be?  Although they do the check while travelling between Vyborg and St Petersburg, could they simply wait until arrival in St Petersburg, then hold her in custody for 30 minutes and then stamp her in?


Prove the alternating group is generated by the set of 3-cycles.

I understand that the alternating group is a group of all even permutations of a finite set. I'm not sure how to show that this can be generated by the set of 3-cycles though. The hint says to write it out as a composition of an even number of 2-cycles. Also in general I am a bit confused what is meant by generated does this just mean that any member of the alternating group can be written as some composition of 3-cycles.  Any help would be appreciated.


PHP var_dump in C# to dump array or objects?

I need to dump the content of arrays or objects and I am interested to know if in C# we have something like PHP instruction var_dump.  The objective is to not build a loop to use every property or content of array or object and print with Console.WriteLine.


Hello I have a dual boot system with Win10 and Ubuntu 20.04 and I want to open Windows notepad files(text document) in Ubuntu so how to open it?


Find gradient of $\operatorname{tr} \left( B^{T}X^{T}A^{T}CXD \right)$

I need to find the derivative wrt ${X}$ of:  $$ f({X}) = \operatorname{tr}( B^{T}X^{T}A^{T}CXD )$$  To make this simpler, I let $E = A^{T}C$, then I have:  $$ f({X}) = \operatorname{tr}( B^{T}X^{T}EXD ) = \operatorname{tr}( DB^{T}X^{T}EX )$$  We can rewrite this using the Frobenius inner product:  $$ f({X}) = XBD^{T}:EX$$  So we can calculate the differential easily now:  $$ df = (dX)BD^{T}:EdX$$  Unfortunately this is where I am stuck.    Perhaps we can rewrite this as:  $$ df = BD^{T}:(dX)^{T} E dX$$  But how do we isolate the dX value?    Edits:  I tried: $(dX)^{T} E dX = \operatorname{tr}( dXdX^{T}E) = \operatorname{tr}( EdXdX^{T}) $ but that isn't getting me anywhere either...


What is this two color photo effect called and how to make it?

I like the effect on the images used on this  page, and out of curiosity I'm trying to replicate it in Illustrator. It's not a simple multiply mask, and seems a more involved than the kind of duotone I can do in inDesign.


What percentage of the mass/energy of the universe is in the form of electromagnetic waves?

Is there any theoretical framework or model that would lead to a prediction, either precise or approximate, about how much or what proportion of the universe's total mass is in the form of photons, or electromagnetic waves? In lieu, is there any way to guesstimate or place a boundary on that proportion?  Could that proportion vary over time, universally?  An answer to this question  gives a calculated estimate of the photon density $$ \rho_\nu = 3.21334\times 10^{-31}\;\text{kg}\,\text{m}^{-3}, $$  but neither the question nor the answers explicitly show the total energy density, or express the photon density as a proportion of the total energy density.  In addition, I am interested as much in the theoretical framework that would predict the photon to total energy density as I am in the current measurements that lead to the estimate.


Using Dictionary with nested Generics from Generic Method

i'm trying to create following structure. Intellisense & Compiler are giving me  Error CS1503 Argument 2: cannot convert from 'Test.IFactory<T>' to 'Test.IFactory<Test.AbstractClass>'. I am quite sure that the object I try to add to the dictionary has the correct type. Am i missing something?  public abstract class AbstractClass { }  public interface IFactory<T> where T : AbstractClass {     T Create(); }  public class Manager {     private readonly Dictionary<Type, IFactory<AbstractClass>> _factories = new Dictionary<Type, IFactory<AbstractClass>>();      void RegisterFactory<T>(IFactory<T> factory) where T : AbstractClass     {         _factories.Add(typeof(T), factory); // <-- Error in here     } }   Thanks for the help!


Why is it not possible to follow someone?

I'm sorry if this is not the right place to be asking this. Please move my question, if necessary.  I've been wondering: why is it not possible to follow people? I sometimes find certain people who answer questions of a particular type (usually tag that I follow) to be quite knowledgeable in that field. So... I go and check their answers to other questions they've replied to so I can sometimes learn cool new things. This often helps narrowing the learning curve when learning a new technology you're still a newbie in. So... wouldn't it be way cooler, if, (just like in GitHub), you could simply follow a person (both their questions and answers)...?


Can we access the "Feed" as per the mobile app on Desktop?

The mobile app has a "Feed" screen (pictured). I really like this "at a glance" screen. Is there a way we can see this on the desktop of any SE site (like Stack Overflow)? If there already is somewhere like this.. I apologise.


Javascript pass by reference to be overwritten in another file at a later date

Here is a dummy example:    const obj = {foo: '123'};  function logObj(obj) {     setInterval(function() {         console.log(obj);     }, 100) }  function overWrite(obj) {     setTimeout(function(){         console.log('overwriting')         obj = {foo: 'bar'}     }, 1000); }  logObj(obj) overWrite(obj)     I'm expecting to see { foo: '123' } every 100ms until overwriting is called and then to see { foo: 'bar' }. However the object is never over-written and I always see 123.   EDIT  I do not want to change just one of the keys; I do in fact want to replace the entire object, so doing obj.foo = 'bar' is not a solution


How can you say “rule by gods” without a church involved?

Somebody I know online has been writing a story where he’d like to name the system where gods rule, but a church isn’t involved. He used “deiocracy,” but we both agreed that’s one, made up, and two, a hircocervus monstrosity of Latin and Greek together. Are there any words that can be used for rule by gods, but not by their church?


I use many different browsers for different purposes - private, work, development and so on. And when I click on a link in some app I would like it to be opened in the specific browser depending on some rules.  Literally it should be an app which is registered in system as a default browser and reopens the link in a one of the real browsers.  Is there any app like this? Does API allow detecting installed browsers and opening appropriate browser?


How can I tell the year my bike was made


$8^(a - b)$ produces only a superscripted (; the rest of the power is not superscripted.  How can I superscript the whole (a-b) portion?


Why does $\frac{1 }{ 99989999}$ generate the Fibonacci sequence?

$\frac{1}{99989999} = 1.00010002000300050008001300210034005500890144... \times 10^{-8}$    (), which includes the Fibonacci sequence $(1\ 1\ 2\ 3\ 5\ 8\ 13\ 21\ 55\ 89\ 144\ldots )$.  This is fascinating to me but I can't figure out how this works, and a Google search doesn't seem to reveal anything.


Retain or append 0 at the end of decimal c#

I have a decimal field. I want it to be appened with .00 when it having no decimal point. Like:  decimal d;  when d = 123    output should be 123.00  when d = 123.5  output should be 123.50  when d = 123.51 output should be 123.51   Note: Want the output in decimal only.


The issue is how can user sort questions for a particular search query?   For example, I would want to search questions for  and want to see newest questions first.  Right now If we write any query in Search Questions... input box then users are not able to select sorting options as search questions input box takes whole width of the screen and sorting options box gets hidden.  I have also tried to select sorting options first and then search for  but still its showing questions without considering sorting option I have selected.


example of not surjective isometry on a bounded not closed set.

Is there an example of a bounded not closed set $A\subset \mathbb R^n$ for some $n\in \mathbb N$ and an isometry $f:A\rightarrow A$ ($\forall x,y\in A\space;\space d(x,y)=d(f(x),f(y))$ where $d$ is the euclidean metric) such that $f$ isn't surjective?


How can a (with very simple instruction) make a .deb file continent some .desktop files and shell bash files


How to start a Zookeeper daemon after booting under specific user in Ubuntu server 16.04

I want to start Zookeeper daemon after Ubuntu server 16.04 booting (not after logging) under user named zookeeper. So I changed the file /etc/rc.local like the following:  #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing.  echo 'never'; defrag_file_pathname  su -c '$ZOOKEEPER_HOME/bin/zkServer.sh start' zookeeper &  exit 0   , adding the line su -c '$ZOOKEEPER_HOME/bin/zkServer.sh start' zookeeper & before exit 0. But the process is not started after restarting!  What's wrong here?  details: The zookeeper user is in sudo group and has password.  details: When I run command su -c '$ZOOKEEPER_HOME/bin/zkServer.sh start' zookeeper & in terminal, it needs password to run.


Are there linear operators and vector spaces in classical physics?

Linear operators and vector spaces form the backbone of the operator formulation of quantum mechanics. I want to ask are there operators in classical physics too? Are these operators defined on some vector space? Examples can also be helpful.


How to exclude files (not folders) from dropbox sync?

I am trying to sync my Firefox profile folder using Dropbox, but there are several files that Firefox changes quite frequently   Folders: Cache, OfflineCache can be excluded Files: urlclassifier3.sqlite, places.sqlite - these files are big and are changed anytime   OS: Windows 7  Does anyone know how to exclude files listed in #2 from Dropbox sync?


Why "inspector general", and not "general inspector", like German "Generalinspektor"?

I would expect the term "inspector general" to be "general inspector" instead.    In part, that may be because I know the German variant as "Generalinspekteur" of "Generalinspektor".  But I'm pretty sure it would be like this without knowing the German word, just from general language intuition.  So, why does the order of words make sense?    It would be interesting how it came to be like that - but that would not answer it alone. (An answer to  indicates it may be a method distinguish titles from general desrciptions.)


I know perfectly well the Peano axioms, but if they were sufficient for defining $\mathbb N$, there would be no controversy whether $0$ is a member of $\mathbb N$ or not because $\mathbb N$ is isomorphic to a host of sub- and supersets of $\mathbb Z$.  So it seems that mathematicians, when specifying $\mathbb N$, rarely mean the set of natural numbers according to its definition but rather some particular embedding into sets defined by different axiomatic systems.  Doesn't this sort of misstate then the role of the Peano axioms as the defining characteristics of $\mathbb N$?  It seems like most of the time the Peano axioms are not more than a retrofit to a subset of $\mathbb Z$ or other sets defined by a different axiomatic system with one or several axioms incompatible with the Peano axioms.


how can I find a function that satisfies cauchy functional equation?

Can any one help please? I tried to find some linear functions that satisfying $$f(x+y) = f(x) + f(y)$$ but the condition of scalar that says: $$f(ax)=a\cdot f(x)$$ does not hold in cauchy functional equation $$f(x+y)=f(x)+f(y)$$


What should i do ,i'm trying to add some picture but i have this error.


How i can make glass material with increasing amount of sampling

Hi guys i m having problem with blender. In cycles render when i increase amount of sampling glass material getting black and its glass property disappearing can someone help for this problem thanks


Two-column figures and tables disappear when changebar is used

I want to insert a bar in the margin in IEEEtran, but when I use changebar package, two-column figures and tables disappear. It is my code:  \documentclass[journal]{IEEEtran} \usepackage{lipsum} \usepackage{graphicx}  \usepackage[color]{changebar} \usepackage{soul} \usepackage{xspace} \cbcolor{black} \sethlcolor{yellow} \newcommand{\edit}[1]{\cbstart\hl{#1}\cbend\xspace}  \begin{document} \lipsum[1] \lipsum[1]  \begin{figure*}   \centering   \includegraphics[width=15cm]{example-image}\\ \end{figure*}  \lipsum[1] \lipsum[1] \end{document}   I would really appreciate if you can provide any help.


How to do data augmentation and train-validate split?

I am doing image classification using machine learning.  Suppose I have some training data (images) and will split the data into training and validation sets. And I also want to augment the data (produce new images from the original ones) by random rotations and noise injection. The augmentaion is done offline.  Which is the correct way to do data augmentation?   First split the data into training and validation sets, then do data augmentation on both training and validation sets. First split the data into training and validation sets, then do data augmentation only on the training set. First do data augmentation on the data, then split the data into training and validation set.


Given: $a = qb + r$. Then it holds that $\gcd(a,b)=\gcd(b,r)$. That doesn't sound logical to me. Why is this so?    Addendum by LePressentiment on 11/29/2013: (in the interest of  and averting a duplicate)  What's the intuition behind this result? I only recognise the proof and examples solely due to algebraic properties and formal definitions; I'd like to apprehend the result naturally.


PROVE if $x \ge-1 $then $ (1+x)^n \ge 1+nx $ , Every $n \ge 1$

Use mathematical induction to prove this. Here is my answer but I stuck at certain point.   Base Case:           n=1  $$(1+x)^1 \ge 1+x $$ True ,   Induction Case:           n=k assume    $$(1+x)^k \ge 1+kx $$           n=k+1           $$ (1+x)^k+1 \ge 1+(k+1)x $$           $$(1+x)^k *(1+x) \ge 1+ kx+ x $$        Stuck!!!


Trying to identify a story which has trade missions to alien planets

I am not certain but I believe this story was in an anthology with other stories about humans trading with alien civilizations.  The specific story I am looking for starts with an alien king waking up and his "god" reminds him its time to dredge the harbor. There's another scene where a tradesman consults with his "god" on a fair price for his goods.  Then there's a scene where the humans are sitting around talking and one of them says that the aliens are not actually sentient, that the "gods" they hear are actually some kind of highly advanced instinct.


$0\lt a_1\lt 1$, $a_{n+1}=a_n+\dfrac{a_n^2}{n^2}$,  Find $\lim\limits_{n\to\infty} a_n$    Well,  $a_{n+1}\gt a_n$, But how to show that there is  an upper bound of $\{a_n\}$ ? What is the limit ? Thanks a lot


Multiclassing: How do Ability Score Improvements work?

Given that every class gets a minimum of 5 ability score improvements each at levels 4, 8, 12, 16, and 19 (Rogue and Fighter get more at other levels), do these ability score improvements occur by character level or by class level?  For example, is it possible to create a character who never once gains a single ability score improvement by reaching level 3 in a class and then switching to a different class repeatedly?  I had originally thought the 5 that every class gets would occur by character level, so for example a sorcerer1/bard3 would earn an ability score improvement for reaching character level 4. But there are others who have expressed the opinion that this is wrong.