In Harry Potter And The Order of the Phoneix, Dumbledore tells Harry that two boys satisfied the prophecy - Harry himself and Neville Longbottom. However, the events of the book happen only because Voldemort chose Harry. What would have happened if Voldemort had chosen Neville? Could James and Lily be alive then? Or they would have suffered the fate of the Longbottoms i.e driven into madness?

If Voldemort had marked Neville Longbottom as his equal, instead of Harry Potter, would Neville have survived the Killing Curse as Harry did? Neville and Harry are both inherently brave; however, their personalities are quite opposite. What would have happened if Voldemort had marked the Longbottoms for death instead of the Potters? How would history have been different? Here are a couple relevant passages from Order of the Phoenix: Sybill Trelawney's prophecy:  "The one with the power to vanquish the Dark Lord approaches. Born to those who have thrice defied him, born as the seventh month dies. And the Dark Lord will mark him as his equal, but he will have power the Dark Lord knows not. And either must die at the hand of the other, for neither can live while the other survives. The one with the power to vanquish the Dark Lord will be born as the seventh month dies . . ." Order of the Phoenix - Page 841 - US Hardcover  After relating the prophecy to Harry, Dumbledore says:  "You are forgetting the next part of the prophecy, the final identifying feature of the boy who could vanquish Voldemort. . . . Voldemort himself would 'mark him as his equal.' And so he did, Harry. He chose you, not Neville. He gave you the scar that has proved both blessing and curse." Order of the Phoenix - Page 842 - US Hardcover


so I'm new to blender. I was following this tutorial and found out I might have done something wrong. In object mode -> solid, I can see my lamp and the effect it has. In object mode -> rendered it's just dark and no sign of a lamp nor light.The strenght of the lamp is high enough.  Can someone help me out and tell me what I might have done wrong?

I'm trying to follow along with a blender beginner tutorial, and I'm having trouble with spot lights. All other lights seem to work fine but I can't get spot lights to work.    Light isn't really doing anything to the scene, I can delete it and it'll look the same.  You can find the blend file here -


I've been working in python for a while now but just now I've encountered an error that I can't explain.   def b():     return -6 a = b() if a is -6:     print("Hi")   Whenever I run this I don't get into the if function and nothing gets printed. but if I make the number bigger than -6 meaning -5, -4 and etc this works properly.  def b():     return -5 a = b() if a is -5:     print("Hi")   can someone explain to me why is this happening? the == operator work as it should but if is it not.

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


Some months before ordered VPS at Ramnode  According to tutorial (ZPanelCP on CentOS 6.4)  Installed CentOS and ZPanel)  Today received email  We are requesting that you secure and investigate the phishing website identified below. This URL has been identified as a phishing site and is currently involved in identity theft activities. URL: hxxp://111.11.111.111/www.connet-itunes.fr/iTunesConnect.woasp/ //IP is modified (not real) This site is being used to display false or spoofed content in an apparent effort to steal personal and financial information. This matter is URGENT. We believe that individuals are being falsely directed to this page and may be persuaded into divulging personal information to a criminal, if the content is not immediately disabled.   Trying to understand. Some hacker hacked VPS, placed some file (?) with content that redirects to www.connet-itunes.fr/iTunesConnect.woasp?  Then questions  1) how can I find the file? Where it may be located? url is URL: hxxp://111.11.111.111/ IP address, not domain name  2) What to do to protect VPS (with CentOS)? Any tutorial? Where may be security problem?  I mean may be someone faced something similar....  Just want to note, that directory /folder www.connet-itunes.fr was placed in etc\zpanel\panel and not in directory of my websites.

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


Prove that $\mathbb{Z}_m\times\mathbb{Z}_n$ is isomorphic to  $\mathbb{Z}_{mn}$ whenever $m$ and $n$ are coprime.   $\mathbb{Z}_m$ represents a cyclic group of order $m$.  I have no knowledge of rings and fields. I only know group theory.  In general, I would like to know how to prove that $2$ groups are isomorphic to each other? Is the only way to solve it is to show a bijective homomorphism?

Let $m,n$ be positive integers bigger than $1$. Show that $\mathbb{Z}_m \times \mathbb Z_n$ is cyclic if and only if $\gcd(m,n)=1$.    I have no idea on how to start. Anyone hints are much helpful.


I unlocked several of the (evidently optional) secrets, and I was definitely expecting to be able to go back and continue working toward completing the game.   However, when I finished the game,       I get flown back into the starting chamber   And all of my progress appears to be completely be wiped out and I would have to re-play hundreds of puzzles just to even get back to all of the areas in the game again.   This strikes me as being so completely wrong that I'm wondering if it is a bug or not. Maybe there's a menu option or something that I missed.   At any rate, I'm hoping that somewhere in my Steam cloud progress data there is a way for me to go back so that I can actually continue my game without actually re-playing it.

I'm feeling like i'm very close to an ending of , even though there are a lot of puzzles are left unsolved. And I heard that it is possible to beat the game without solving all the puzzles.    Can someone formulate a recognizable description of the action, which forbid me to go back and solve rest of the puzzles? With minimum amount of spoilers, please.


I would like to set up a Linux system to use one primary storage device, but copy all writes to that device to another secondary device without blocking for every write - e.g. an NVMe SSD as primary and spinning rust as secondary.  The only way I can think of doing this currently would be to either run a frequent rsync in the background, or something like a btrfs-send of the live stream of disk writes.

I have 2 storage devices; classical slow HDD (750GB, /dev/sda) and faster SSD (128GB, /dev/sdb). Currently I have installed Ubuntu & Mint on same btrfs partition on SSD (/dev/sdb5). My btrfs pool consists of /dev/sdb5.  What I want to achieve is data replication on HDD while keeping SSD performance: Something like this:  For read case it would be ideal for procedure to go like this:   read from SSD check checksum if it verifies.. awesome, give me the data if not, fetch data from HDD and perform error correction through duplicate data   I'd manually run (some tool I'm not sure which one... btrfs check --repair perhaps?) every month or so to check HDD checksums and correct them via SSD data against bitrot.  For write case:   write to SSD sync to HDD when write requirements are low, thus not slowing down the system.   Is this possible and how would I do it?  Bottom line is, I like btrfs and would like it to duplicate data across HDD & SSD drive automatically while keeping SSD excellent performance.   Using SSD as write cache is not an option since it's missing data duplication and security.


Is there any way to copy current command (line typed in bash prompt) in terminal to X-clipboard without involving a mouse?

In  the top answer shows how to copy text that has been previously selected with the mouse on a gnome-terminal, to the clipboard in X11.  My question is: Say I copy a piece of text from the terminal using bash set-mark and copy keyboard shortcuts (i.e. set-mark + M-w). Is it possible to share this clipboard with X11?   EDIT: In the original question, I talked about sharing the clipboard with GNOME, but as Gilles points out below, GNOME doesn't specifically have a clipboard (it's general to X), so I have updated the question.


I'm plannning to travel with the family of 3 persons from JFK to Hyderabad with 1.5 Hours of the layover in Dubai, all are Emirates. I'm wondering can I make my connection to Hyderabad. Any possible delays please suggest.

I plan to fly from Bangalore (India) to Dubai and then to San Francisco, all on the Emirates Airline. I have an option of a 1.5 hour layover in Dubai.   I'm wondering if this is sufficient time to make my connection. Are transiting passengers required to clear customs/security in Dubai ? Any information on potential causes of delay is appreciated.


I have the Drive Genius 3 demo and it does not have a menu or an Uninstall. How do I delete the demo version of Drive Genius 3?

I had installed a trial version of . Now I want to delete it.  I go to Applications list, it is not there. I search its name in SpotLight, it is not there either. But it keeps attaching its self to the menu bar at the top.  How can I deinstall Drive Genius?


I am trying to create an alias for this docker command: docker ps -a --format="table {{ .Names }} \t {{ .Image }} \t {{ .Status }} \t {{ .Ports }}" I'm using zsh so I added this to my .zshrc file: alias dockerps = 'docker ps -a --format="table {{ .Names }} \\t {{ .Image }} \\t {{ .Status }} \\t {{ .Ports }}"' I' ve also tried escaping the double quotes \", but every time I try to finish with the compile . ~/.zshrc  it results in /home/USER/.zshrc:129: bad assignment  EDIT: removing the spaces around alias : alias dockerps = xx... --> alias dockerps=xx... fixed it

In my .zshrc I tried to make a few aliases .I looked into a lot of places, but I couldn't find out a way that worked. I used this code below:    # Set personal aliases, overriding those provided by oh-my-zsh libs,  # plugins, and themes. Aliases can be placed here, though oh-my-zsh  # users are encouraged to define aliases within the ZSH_CUSTOM folder.  # For a full list of active aliases, run alias. # # Example aliases alias zshconfig="mate ~/.zshrc" alias ohmyzsh="mate ~/.oh-my-zsh" alias n= "nano"   alias m= "mkdir" alias w= "cd ~/Documents/UoMWorkspace/Semester2"   alias j= "cd ~/Documents/UoMWorkspace/Semester2/COMP17412"   Then I wrote a command source ~/.zshrc. Still it didn't resolve the issue. I get error messages like zsh: command not found: j  Could anyone help me with any suggestions and let me know what am I doing wrong?


What is the meaning of the phrase "a little too + adjective" ?  For example:     This is a little too hard for me.   Does it mean same as:      This is slightly hard for me.   ?  How are the following sentences different from the above sentence ?        This is a little hard for me .   This is little hard for me.

Please tell me what is the difference between the following sentences   He celebrated a little early. He celebrated a little too early.   And    It is a little late to do that thing. It is a little too late to do that thing.


In journalistic writing, if I need to attach some necessary background information within a quote, what's the proper way to do it? I want to indicate that the information is something that I've produced, and not the person that I'm quoting. Here's an illustration:     Israel has strong companies that plan to go public in 2015, and   that’s one of the reasons I came to Israel. Furthermore, the biomed   and hi-tech sectors are still strong. We feel that the Fintech   (financial-technological) sector is on the move. We recently witnessed   a merger if Fintech companies (Fundtech, an Israeli company, was sold   to D+H ), so we feel optimistic in this regard.   The author of the text is a journalist (his name is Nir Zalik), and the quoted individual is Bruce Aust. The added information (Fundtech, an Israeli company, was sold to D+H) is background information added by the journalist. How would I indicate that? In Hebrew a journalist often adds his initials to a background note within a text.   Thanks!

I sometimes see square brackets used while quoting.  My assumption is that they are replacing a pronoun with what the object of the pronoun, but I never know for sure because I don't usually get to see what the original quote looks like before the modification.  What are these called and what are the rules of use?


I would like to align these two side by side systems of equations horizontally. I tried to do this like this  \documentclass[12pt,letterpaper]{article} \usepackage{amsmath} \begin{document} \begin{center} \begin{tabular}{p{4cm}p{4cm}} {\begin{align} &\alpha =\alpha_{1}=\sqrt[3]{19}\nonumber \\ &\alpha_{2} =\varepsilon\sqrt[3]{19}\nonumber \\ &\alpha_{3} =\varepsilon^2\sqrt[3]{19}\nonumber \end{align}} & {\begin{align} &\beta =\beta_{1}=\frac{1+\sqrt[3]{19}+\sqrt[3]{19^2}}{3}\nonumber \\ &\beta_{2}=\frac{1+\varepsilon\sqrt[3]{19}+\varepsilon^2\sqrt[3]{19^2}}{3}\nonumber \\ &\beta_{3}=\frac{1+\varepsilon^2\sqrt[3]{19}+\varepsilon\sqrt[3]{19^2}}{3}\nonumber  \end{align}} \end{tabular} \end{center} \end{document}   and I get this    How can I align all beta's horizontally with alpha's?

Having different horizontally  distributed equations inside an align environment, only lines are numbered, but not individual equations.    How can the left equations be numbered using subequations? See also the question   \documentclass{article} \usepackage{amsmath} \begin{document}   \begin{subequations}     \begin{align}        %\label{a}         a &= a ,&       \label{b}         b &= b ,\\       %\label{c}         c &= c ,&       \label{d}       d &= d .     \end{align}   \end{subequations} \end{document}     The solution should be able to either:    attach a label to the left equations, or modify the labels on the right to read (1a,b) and (1c,d)    I couldn't find anything in the documentation of amsmath or other packages.


I installed ubuntu 12.04 using crouton on my chromebook. I'd like to update the distribution, because I can't always install the packages I'd like too. I followed various instructions online, and in chat, but I kept running into dead ends - for instance, I can't seem to find an update manager anywhere on the linux side of my system (I'm using xfce as my desktop, if that's relevant) which seems to be required for a lot of methods I found. I also tried the command sudo apt-get update && sudo apt-get full-upgrade, which went for about 30 seconds and outputted:  Reading package lists...Done Building dependency tree Reading state information...Done 0 upgraded, 0 newly installed, 0 to remove, and 0 not upgraded. E: Invalid operation full.   Before I decided that I wanted to update my distribution for sure, I tried to install the package nethack, and it gave the error E: package 'nethack' has no installation candidate.  If there's any more information anyone needs, I'd be glad to figure it out and get it for them; I didn't know what all information was needed. I am fairly new to Linux.  Any help would be appreciated. Thanks!  EDIT:  I read through (and tried) the various commands given at the page that this is supposed to be a duplicate of. The only one that seemed like it might help, the last one, gave an error of "command not found". This question is not solved by that answer.   Extra piece of information: as noted in the comments, I believe I have an ARM CPU.

I want to know about different update and upgrade commands as follows:   update upgrade dist-upgrade do-release-upgrade etc.   For new users of Ubuntu and using the command-line, which of these is used and when? In brief, help me to understand the use of the above commands.


I have looked at "What is a NullPointerException and how do I fix it?", although that question and its answers simply don't help. I understand my problem; the "NameTest" program is attempting to reference the "Name" object while it's null, but I'm not sure how to rework it to fix this, as I want the lastName, firstName, and fullName to be accessible by all "Name" methods. In the "Name" program, I'm attempting to create a "Name" class, with which a blank name object can be created, and then later assign a String/Stringbuffer value (depending which would work better) with setName() method. Here is the "Name" code:  public class Name { private StringBuffer lastName; private StringBuffer firstName; private StringBuffer fullName;  public Name() {     lastName.replace( 0, 0, "" );     firstName.replace( 0, 0, "" );     fullName.replace( 0, 0, "" ); }  public Name( String lN, String fiN ) {      lastName.replace( 0, lN.length() - 1, lN );       firstName.replace( 0, fiN.length() - 1, fiN );            fullName.replace( 0, (lastName.length() + firstName.length()) + 2, lastName + ", " + firstName); }  public Name( String fuN ) {     String[] fuNTemp = fuN.split( ", " );     lastName.replace( 0, fuNTemp[0].length() - 1, fuNTemp[0] );     firstName.replace( 0, fuNTemp[1].length() - 1, fuNTemp[1] );      fullName.replace( 0, (lastName.length() + firstName.length()) + 2, lastName + ", " + firstName); }  public void setName( String n ) {     String[] nTemp = n.split( ", " );     lastName.replace( 0, nTemp[0].length() - 1, nTemp[0] );     firstName.replace( 0, nTemp[1].length() - 1, nTemp[1] );      fullName.replace( 0, (lastName.length() + firstName.length()) + 2, lastName + ", " + firstName); }  public void setName( String lN, String fiN ) {     lastName.equals( lN );     firstName.equals( fiN );      fullName.equals( lastName + ", " + firstName ); }   public StringBuffer getName() {     return fullName; } }   Here is the program "NameTest", which I created simply to help figure out "Name":  public class NameTest { public static void main( String [] args ) {     Name test = new Name();      System.out.println( test.getName() );     System.out.println();      String Doe = new String( "Doe" );     String John = new String( "John" );      test.setName( Doe, John );      System.out.println( test.getName() ); } }   Here is the error message from "NameTest":  Exception in thread "main" java.lang.NullPointerException     at Name.<init>(Name.java:9)     at NameTest.main(NameTest.java:5)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Let $\Bbb R_n[X]$ be the metric space of $n$-th degree polynomials with real coefficients and polynomial height (supremum norm) as norm. Then, let $E_n$ be the subset of all monic polynomials in $\Bbb R_n[X]$ that split over $\Bbb R$. Show that $E_n$ is closed in $\Bbb R_n[X]$. I have no idea how to progress. Just giving a hint on how to solve to me would be fine.

A very beautiful (but maybe classic) exercise:   Consider the set $\Omega_n$ of polynomials of degree $n$ with real coefficients and $n$ distinct real roots.   What is the closure of $\Omega_n$ in $R_n[x]$?  ($R_n[x]$ denotes the set of polynomials with real coefficients of degree at most $n$)    The answer is the set of polynomials in $R_n[x]$ all of whose roots are real, plus the constant polynomials. Showing that this set is contained in the closure is not too hard, however the reverse implication is more difficult and I'm wondering what is the most elementary method to prove it (without talking about holomorphic functions for example).


I searched in this site there were lots of answers but none of them are working for me. I am trying to parse the below XML using PHP simplexml_load_string.  My XML is:  <?xml version="1.0" encoding="utf-8"?> <address> <name>Peter</name> <country>Großbritannien</country> </address>   When I print it using print_r the result is showing as below:  SimpleXMLElement Object (     [name] => Peter     [country] => GroÃŸbritannien  )   and when I use ini_set('default_charset', 'UTF-8') or header('Content-Type: text/html; charset=utf-8') the result is:   SimpleXMLElement Object (     [name] => Peter     [country] => Großbritannien )   But When I try to insert the country value using PHP (with the header set as utf8) in the database (MySQL) then its inserting as GroÃŸbritannien. My tables character-set is UTF8 and collation of the column is utf8_unicode_ci. However when I directly insert the country value into the table(using phpMyAdmin or terminal) then its inserting properly.  I would like to know why the country value is not inserting properly from my PHP parsing page.  My PHP sample code is below:  $notificationXml  = simplexml_load_string($xml);  $con = $notificationXml->country; mysql_query("INSERT INTO test_1 (con) values ('$con')");   Please help me out. Thanking you all in advance.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


$F$ is a subfield of a larger field $G$.  Let $ v_1, v_2,\ldots,v_m $ be vectors in $F^n $. Show that $ v_1, v_2,\ldots,v_m $ are linearly independent in $ F^n $ $iff$ they are linearly independent in $G^n$.  Edit:  I know that if I extend this set of vectors to a basis of $F^n$ and form a square matrix, this matrix is invertible over $F$, hence it's also invertible over $G$ since $F^n \subset G^n$,   however I'm failing to work the way the question is asking me to.

I was just wondering whether anyone knows an answer to the following:  Suppose that ${\mathbb F}$ is a subfield of a field ${\mathbb G}$ and that $v_1,\ldots ,v_k$ are linearly independent vectors in ${\mathbb F}^n$ (over $\mathbb F$). Is it necessarily true that $v_1,\ldots ,v_k$ are also linearly independent when considered as vectors in ${\mathbb G}^n$ (over $\mathbb G$})?  Any help would be much appreciated. Thanks!


Is the direction of the ticket important? Do cities have to be connected in the order shown on the ticket?  For example, if I am attempting to claim the Rostov-Erzurum ticket, can I connect Erzurum to Rostov instead of connecting Rostov to Erzurum?

When completing a destination card, does the train have to be started from the beginning city on the card or can it be started from the destination city and worked backwards?


$$\lim_{x\to 0}\frac{\sin x}{x}$$  Can't we say this:  $$\lim_{x\to 0}\left[\frac{1}{x}\right]\cdot\lim_{x\to 0}[\sin x]$$  So it would be infinity times 0, which would be 0.  Why is this method wrong?

I did a bit of math at school and it seems like an easy one - what am I missing?  $$n\times m = \underbrace{n+n+\cdots +n}_{m\text{ times}}$$  $$\quad n\times 0 = \underbrace{0 + 0 + \cdots+ 0}_{n\text{ times}} = 0$$  (i.e add $0$ to $0$ as many times as you like, result is $0$)  So I thought an infinite number of $0$'s cannot be anything but $0$? But someone claims different but couldn't offer a reasonable explanation why. Google results seemed a bit iffy on the subject - hopefully this question will change that.


Ok so In blender, I'm making a city, but in the 3d view, it disappears when going to a certain distance:  I'm not using a camera or anything, this is user perspective Help?

Zooming in to inspect texture details in 3D view clips some closer faces like shown in the image. It's not the camera view so changing camera settings doesn't help.   Where can the distance to the clipping plane be adjusted?


Hello I want to run  an InterstitialAd  Every time the method called play(RadioListElement rle) execute in my app but it gives me this error  Class MusicPlayer   public class MusicPlayer extends Context { private static MediaPlayer mediaPlayer; private InterstitialAd InterstitialAd; private AdRequest adsRequest;  public void play(RadioListElement rle) {     radioListElement = rle;     playMusic(radioListElement.getUrl());     adsRequest = new AdRequest.Builder().build();     /*Prepare the Interstitial Ad*/     InterstitialAd = new InterstitialAd(this);     /* Insert the Ad Unit ID */     InterstitialAd.setAdUnitId("ca-app-pub-3940256099942544/1033173712");     InterstitialAd.loadAd(adsRequest);     /* Prepare an Interstitial Ad Listener*/     InterstitialAd.setAdListener(new AdListener() { public void onAdLoaded () {                   displayInterstitial();         }        });    }  private void displayInterstitial() { if (InterstitialAd.isLoaded()) { InterstitialAd.show();     }    }   LOG      26421-26421/com.radio.stations E/GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageInfo android.content.pm.PackageManager.getPackageInfo(java.lang.String, int)' on a null object reference   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.ads.internal.util.client.zza.zzar(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.ads.internal.client.zzl.zza(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.ads.internal.client.zzl.zzb(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.ads.internal.client.zzaf.zzam(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.ads.internal.client.zzaf.zza(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.google.android.gms.ads.InterstitialAd.loadAd(Unknown Source)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.Radio.Stations.MusicPlayer.play(MusicPlayer.java:125)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.Radio.Stations.RadioList.nextOrPreviousRadioStation(RadioList.java:82)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at com.Radio.Stations.MusicPlayerControl$2.onTouch(MusicPlayerControl.java:94)   07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:     at android.view.View.dispatchTouchEvent(View.java:8802)   build.gradle project com.radio.stations  apply plugin: 'com.android.application'  android { compileSdkVersion 23 buildToolsVersion "23.0.3"  defaultConfig {     applicationId "com.Switzerland.radio.stations"     multiDexEnabled true     minSdkVersion 14     targetSdkVersion 23  }  buildTypes {     release {         minifyEnabled false         proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'        }    }} dependencies { compile project(':initActivity') compile 'com.android.support:support-v4:24.0.0' compile 'com.google.android.gms:play-services:9.2.0'}


In an academic thesis, what is a good word to use for "common people" that is not condescending?  I am using the term in opposition to "pundits" and "experts."  I need a formal term appropriate for an academic thesis.

Is there a term for a person who by local standards is normal in his/her behaviour?  I mean a person who tends to like the same sports, same teams, same music, and same hobbies. Because in  people are like that, and I call them (in my mind) very generic, trivial, and boring.


I created a .NET DLL MyCustomLib in Visual Studio 2015, consisting of a class  Imports System.Runtime.InteropServices <ClassInterface(ClassInterfaceType.AutoDual)> <Guid("D42A39C8-01EC-4467-9AE3-DC22DCA895A4")> Public Class MyClass    Public Sub New()        Dim frm As New MyForm        frm.Show()    End Sub End Class   and second class  Imports System.Runtime.InteropServices <ClassInterface(ClassInterfaceType.AutoDual)> <Guid("D42A39C8-01EC-4467-9AE3-DC22DCA895A5")> Public Class MyForm   Sub New()      ' This call is required by the designer.       InitializeComponent()      ' Add any initialization after the InitializeComponent() call.    End Sub End Class   So, both have a parameterless constructor, the classes are public. I build it and register it using regasm.exe (the x64 one). Regasm tells me, that registration was successful.  Then I create a VBScript file to call the DLL:  'TestCall.vbs Dim oObject Set oObject = CreateObject("MyCustomLib.MyClass")   When I execute the vbs, I get an error 80070002: The system cannot find the file specified. Why do I get this error?

I wrote a DLL in .NET and I want to access it in VBScript. I don't want to add it to the assembly directory.   Is there a way to point too the DLL and create an instance of it?


What is the exact difference in meaning of following sentences:        I understand his quitting.   I understand him quitting.

The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule  that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund.


Let $A \subset \mathbb{R}^{n}$ be an open and convex set. Prove that $A = \text{int}\overline{A}$. Give an example of a non-convex open set $A$ such that $A \subsetneq \text{int}\overline{A}$.   The inclusion $A \subset \text{int}\overline{A}$ is easy, since $A = \text{int}A$ by hypothesis. For the converse, I know that take $x \in \text{int}\overline{A}$, there is a $\delta>0$ such that $B(x,\delta) \subset \overline {A}$. Intuitively, since $x$ is interior to ball, seems right to say that $x \in A$, but I don't know how to show this. Maybe, since $A$ is convex, the way is to get $a, b \in B(x,\delta)$ such that $a,b \in A$ and show that $x \in [a,b]$. Any hint?

Let $C$ be a convex subset of $\mathbb{R}^n$. I've been trying for hours to prove that $\dot{\overline{C}}=\dot{C}$. Somehow my intuition completely fails me. I found a proof in a textbook, but just got stuck on another statement the author considered obvious. Could someone please give a proof that uses little more than elementary linear algebra, topology, and the definition of a convex set?  Edit:  The proof mentioned above is from : Let $y\in\dot{\overline{C}}$ and $T$ be a ball around $y$ contained in $\overline{C}$. Then $C\cap T$ has an inner point, as otherwise $C\cap T$ would be contained in a hyperplane and $\overline{C\cap T}=\overline{T}$ would be contained in the same hyperplane. The problematic statement is "as otherwise $C\cap T$ would be contained in a hyperplane".  Another thing: I would be interested in a proof that doesn't use the theorem about separating a convex set from a point by a hyperplane, as I came across this problem in a proof of that very theorem (in the appendix of . To be more precise, it occurs in the case of the point in question being in the boundary of $C$, when it is tacitly assumed, that it is also in the boundary of $\overline{C}$. I know this isn't strictly necessary, as I could use another proof, e.g. the one referred to by Mike, but now I'm curious.


I am applying for the tier 5 Youth Mobility Visa from Canada. I traveled to the Czech Republic in 2012 and was denied a freelance working visa shortly thereafter in 2013. I appealed the decision, only to be refused again. I therefore ended up overstaying my 90 day tourist visa in the course of this. I had no troubles upon leaving the country in December 2013.   The Tier 5 application asks if you have been refused a visa in any other country. It is very obvious on my passport that I was denied-as the visa appointment is stamped in it. Would it be wise to "lose my passport" or just be honest and hope for the best? Will the fact I was denied and overstayed be detrimental to my tier 5 application?   I also traveled throughout the Schengen zone whilst waiting for the appeal to come through-I was under the impression I was still legal whilst waiting for the appeal answer (I'm still unsure if that is true or not). The tier 5 application also requires you to list all the countries you have traveled to in the past 10 years. Since I traveled to many countries (perhaps illegally) will that be further detrimental to my application? I also don't have stamps in my passport for the above travels since I traveled by ground and did not receive stamps. I know that the UK and the Schengen zone do not share information, so how necessary is it to list these travels?

When certain nationalities of people want to travel in the Schengen zone, they are required to apply for a Schengen visa. This is a straight-forward process for most, but when an applicant has had problems with removals or refusals they may be reluctant to apply because they want to avoid the complexities of serial visa refusals. This reluctance may lead some into wondering how their history can be expunged, and this line of thought inevitably leads to the idea of getting their passport replaced with a new one.  This sounds like a great formula for people who have had prior refusals or removals.  In essence they can become 'reincarnated' as a first-time traveller and hence avoid the unpleasantness of revealing their prior interactions with the Schengen authorities.  The relevant parts of the application form are shown here...    Nothing asks about a prior removal or refusal, and the applicant is left with simple denials for 3 questions in order to present themselves as a first-time traveller.  Assuming the person is happy to set aside the moral issues associated with denying their history, are there any holes to this strategy?  This question is scoped to Schengen visa applications so that it will not be unmanageably broad, but answers from other regimes (particularly the affluent Commonwealth and the USA) are acceptable as long as the main points are relatively consistent with Schengen.


I'd like to be able to keep groupings expanded without needing to expand them each time.  That is, I want the expanded groupings to be the default when a user opens the page.  Can this be done?

Could you guys please let me know about the options:    Collapsed and Expanded   under Create view > Group By heading.


I have data that looks like this:    Is there a standard test that I can use to evaluate the correlation between the rank and Boolean attribute?

I would like to find the correlation between a continuous (dependent variable) and a categorical (nominal: gender, independent variable) variable. Continuous data is not normally distributed. Before, I had computed it using the Spearman's $\rho$. However, I have been told that it is not right.  While searching on the internet, I found that the boxplot can provide an idea about how much they are associated; however, I was looking for a quantified value such as Pearson's product moment coefficient or Spearman's $\rho$. Can you please help me on how to do this? Or, inform on which method would be appropriate?  Would Point Biserial Coefficient be the right option?


Consider the following class  public final class Constant {   public static final String USER_NAME="user1";   //more constant here }   This class in the package B.  Now I am going to use this in package A. Consider following two ways which can use.  Method 1- use import B.Constant   import B.Constant;  public class ValidateUser { public static void main(String[] args) {    if(Constant.USER_NAME.equals("user1")){     }   }  }   Method 2- use import static B.Constant.USER_NAME;  import static B.Constant.USER_NAME;  public class ValidateUser { public static void main(String[] args) {    if(USER_NAME.equals("user1")){     }  } }   My question is is there any difference or advantage normal import over static import in this case?

Just got a review comment that my static import of the method was not a good idea. The static import was of a method from a DA class, which has mostly static methods. So in middle of the business logic I had a da activity that apparently seemed to belong to the current class:  import static some.package.DA.*; class BusinessObject {   void someMethod() {     ....     save(this);   } }    The reviewer was not keen that I change the code and I didn't but I do kind of agree with him. One reason given for not static-importing was it was confusing where the method was defined, it wasn't in the current class and not in any superclass so it too some time to identify its definition (the web based review system does not have clickable links like IDE :-) I don't really think this matters, static-imports are still quite new and soon we will all get used to locating them.  But the other reason, the one I agree with, is that an unqualified method call seems to belong to current object and should not jump contexts. But if it really did belong, it would make sense to extend that super class.  So, when does it make sense to static import methods? When have you done it? Did/do you like the way the unqualified calls look?  EDIT: The popular opinion seems to be that static-import methods if nobody is going to confuse them as methods of the current class. For example methods from java.lang.Math and java.awt.Color. But if abs and getAlpha are not ambiguous I don't see why readEmployee is. As in lot of programming choices, I think this too is a personal preference thing.   Thanks for your response guys, I am closing the question.


The code below return this:  Person A have friends ['B', 'A'] Person B have friends ['B', 'A']   But it is intended to return:  Person A have friends ['B'] Person B have friends ['A']   "A" must reference "B" and vice-versa. But "A" is referencing "B" and "A", why?  CODE:  class person:     name = ""     friends = set()      def __init__(self, name):         self.name = name      def add(self, new):         self.friends |= {new}         new.friends |= {self} #--------------------------------------------------------------------------- pa = person("A") pb = person("B")  pa.add(pb)  print( "Person", pa.name, "have friends", [f.name for f in pa.friends] ) print( "Person", pb.name, "have friends", [f.name for f in pb.friends] )

Is there any meaningful distinction between:  class A(object):     foo = 5   # some default value   vs.  class B(object):     def __init__(self, foo=5):         self.foo = foo   If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different?


I am having a problem with this piece of code:  for(Node n : start.getChildren()) {                     singlewidth = ((CustomController) n).getWidth();                     totalwidth += singlewidth;                 if(swidth < totalwidth) {                     //start.getChildren().remove(b);                     start.getChildren().add(mb);                     start.getChildren().remove(n);                 }                 if(swidth > totalwidth){                     start.getChildren().add(n);                     start.getChildren().remove(mb);                 }             }   The trick here is that I want to go through all the elements in the HBox, and try to adapt them by width. But on the line, where I re-add the Node n, NetBeans throws the ConcurrentModificationException. Can somebody help me please?

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


Sometimes I need from one controller to use operations from another controller. What I do now is instantiate it and use its operation, but it gives me the feeling that it is not correct what I do, so I have been taught that there can not be several instances of the same controller.  What is the best practice? Thank you very much.

I have some controller methods I'd like to share. What is the best practice for doing this in ruby on rails? Should I create an abstract class that my controllers extend, or should I create module and add it in to each controller? Below are the controller methods I want to share:  def driving_directions   @address_to = params[:address_to]   @address_from = params[:address_from]   @map_center = params[:map_center_start]    # if we were not given a center point to start our map on   # let's create one.   if !@map_center && @address_to     @map_center = GeoKit::Geocoders::MultiGeocoder.geocode(@address_to).ll   elsif !@map_center && @address_from     @map_center = GeoKit::Geocoders::MultiGeocoder.geocode(@address_from).ll   end end  def printer_friendly   starting_point = params[:starting_point].split(',').collect{|e|e.to_f}   ne = params[:ne].split(',').collect{|e|e.to_f}   sw = params[:sw].split(',').collect{|e|e.to_f}   size = params[:size].split(',').collect{|e|e.to_f}   address = params[:address]    @markers = retrieve_points(ne,sw,size,false)   @map = initialize_map([[sw[0],sw[1]],[ne[0],ne[1]]],[starting_point[0],starting_point[1]],false,@markers,true)   @address_string = address end


I've been watching "Warcraft 3", and suddenly realized that I have no idea how to draw a circle on a surface.   Here is an example:    I guess this is projection? I also have very little idea of how to draw a shadow. I only somewhat know OpenGL.  It is also interesting how this circle seems to not perfectly repeat the shape of that cliff. My guess is that it's drawn using a height map, which is stored somewhere separately, and not as the cliff, itself. It looks like it actually goes underwater, but it may be just a compression artifact.

I don't mean putting a circle under a unit like done in an RTS, that's fairly simply done with a scenegraph(-like structure). What I'm referring to is selection circles for things like Area of Effects that are painted on the terrain.  It seems relatively simple until I think about it.   Here are some images for reference:     The first image gets the idea across, but not the full scope. Basically, the floor is painted with a decal detailing the region that will be affected by the spell.   The second image gets it across much better, it's not just a flat painted circle, it wraps along the mesh.  At first I figured to use some sort of object selection, and then in the vertex shader draw the texture on the correct vertices based on... some criteria that I'm still working out. Most likely based on distance and angle from the intersection point. The difficulty seems to come in that the methods wrap onto objects that seem to be completely different meshes.  I can't find an image that shows it (and don't play WoW anymore so I can't take a screenshot), but say you have a terrain mesh and a house on top of it and I select a point very close to the house's wall. Instead of continuing on the terrain mesh, the selection circle will go as far along the terrain mesh as it can, and then wrap up onto the wall of the house. It also ignores certain objects (players, etc), but that's pretty easy to ignore with correct collision tags/callbacks.  It's not so much that I can't think of a way to do this, but all the ways I can think of would probably lag your game out or turn your processor into slag. Somehow I have to:   Draw a texture With no breaks Wrapping on multiple objects according to the terrain Centered at a given point Completely dynamically (so no pre-baking it into a bunch of dummy textures) Quickly enough to be computed every frame   Is there a standard method for this? Am I just overthinking it?  My best guess is rather than do one ray cast and selecting that point as the "center" I do a bunch of casts and in each case select the nearest vertex and bind the appropriate UV coord to that vertex, but it seems messy and potentially performance heavy to select that many vertices that way at the CPU frame-by-frame level. Especially since ray casts in general are expensive, even with a good physics engine.  It also doesn't seem particularly portable to anything other than a selection circle. A similar case would be like drawing the movement arrow over the terrain in Total War games, a thick arrow is drawn between the unit and its destination (see here:  ), this would seem to be a very similar technique to the AOE selection circle, but the ray cast method I mentioned wouldn't really work for it. There are, of course, numerous other examples too (such as trajectory markers).


I would like to be able to transform tikz's predefined patterns. To make things concrete, how should I modify the following code to get the checkerboard pattern to be slanted along with the rectangle?  \draw[pattern=checkerboard light gray,yslant=-.5] (0,0) rectangle (1,1);   This question arose in the following context: In a 3D-picture, I would like to fill paths in the coordinate planes with the checkerboard pattern slanted in the way the coordinate plane is through the perspective defined by my coordinate redefinitions, e.g.,  z={(-.7,-.3)},x={(.9,-.1)}

One of the problems with patterns is that you never know how individual tiles are going to be laid over the area.  E.g. if you use star pattern, sometimes stars on the left side of the area shall be broken in half, and sometimes they shall be whole.  Is there any way to control how tiles are laid over the area?


Suppose that $r$ is a real number such that $r + \frac{1}{r}$ is an integer.  Prove that  $r^{2017} + \frac{1}{r^{2017}}$ is an integer.  I thought of using prove by induction, but I don't think it really suits in this case. I've also thought of using modulos in some kind of way but not sure how. Also, can we assume that both $r^{2017}$ and $\frac{1}{r^{2017}}$ are both integers, since adding them make up an integer?

I need to show if $a$ is in $\mathbb{R}$ but not equal to $0$, and $a+\dfrac{1}{a}$ is integer, $a^t+\dfrac{1}{a^t}$ is also an integer for all $t\in\mathbb N$. Can you provide me some hints please?


I submitted a paper for an Elsevier journal in which the acceptance deadline appears as the 5 of may. The problem is that when I enter into the author´s menu it appears that my paper is with the status Required Reviews Completed and it has been like that for more that one month. Does it mean my paper has already got rejected? what should I do in this case?

I had submitted my paper in an Elsevier journal one year back. Now, status update on the submission tracking says "Required reviews completed." However, for the last two weeks still there is no change in the status.  Should I ask the editor what is going on with my submission?


Why did Harry play in the fatal game? He could have just participated in the game for the namesake and lost willfully. That would have amused other schools and would have saved some lives indeed.  Participation was a binding contract, not winning. All they needed was a good lawyer to interpret words for them.

It seems different enchantments trigger different consequences - for example, Lily's protective enchantment over Harry disappears the moment Harry turns seventeen, and the Unbreakable Vow results in death if broken. What constitutes the 'binding magical contract' in Goblet of Fire regarding the Triwizard Tournament? What are the repercussions of breaking the Triwizard contract? Both Dumbledore and Mad-Eye Moody stress the fact that Triwizard champions cannot withdraw from the tournament. However, I cannot find any canon reference to what would happen if a Triwizard champion outright refused to participate. Is there any canon source that addresses this? Please no Wikipedia/Wikia answers - I'm looking from information from the books or J.K. Rowling. An appropriate speculative answer based within the spirit of canon if a canon reference cannot be found is fine. For reference:     ‘Once a champion has been selected by the Goblet of Fire, he or she is obliged to see the Tournament through to the end. The placing of your name in the Goblet constitutes a binding,   magical contract. There can be no change of heart once you have become champion.’ - Dumbledore -   Goblet of Fire - page 226 - Bloomsbury - chapter 16, The Goblet of Fire   and     ‘He’s got to compete. They’ve all got to compete. Binding magical contract, like Dumbledore said. Convenient, eh?’ - Mad-Eye Moody -   Goblet of Fire - page 244 - Bloomsbury - chapter 17, The Four Champions


Below code is from Postman which works exactly how I want, curl --location --request POST 'https://api.twitter.com/1.1/direct_messages/events/new.json' \ --header 'Authorization: OAuth oauth_consumer_key="#################",oauth_token="#############-################",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1603808358",oauth_nonce="#######",oauth_version="1.0",oauth_signature="##############%3D"' \ --header 'Content-Type: application/json' \ --header 'Cookie: personalization_id="v1_U#########OCY3e24A=="; guest_id=v1%3A160302#######; lang=en' \ --data-raw '{ "event": {   "type": "message_create",   "message_create": {     "target": {       "recipient_id": "#######"     },     "message_data": {       "text": "Hello World!"     }   } } }'  However while generating the signature from Salesforce I am getting the error "401: Unable to authenticate the user" Please find below code in Salesforce: String oathNonce = TwitterDirect_Message.generateOathNonce();             Long timestamp = TwitterDirect_Message.generateTimeStamp();             //oauth_signature parameter contains a value which is generated by running all of the other request              //parameters and two secret values through a signing algorithm             String signature = '';            //Encodes a string into the application              String othSecret = Encodingutil.urlEncode(Accesstokensecret, 'UTF-8');             String consumSecret = Encodingutil.urlEncode(APIsecret, 'UTF-8');             String othToken = Encodingutil.urlEncode(Accesstoken, 'UTF-8');             String othNonce = Encodingutil.urlEncode(oathNonce, 'UTF-8');             String consumKey = Encodingutil.urlEncode(APIkey, 'UTF-8');             String paramString = 'include_entities=true&'+                                  'oauth_consumer_key='+consumKey+'&'+                                  'oauth_nonce='+othNonce+'&'+                                  'oauth_signature_method=HMAC-SHA1&'+                                  'oauth_timestamp='+timestamp+'&'+                                  'oauth_token='+othToken+'&'+                                  'oauth_version=1.0';             string baseString = 'POST&'+EncodingUtil.urlEncode('https://api.twitter.com/1.1/direct_messages/events/new.json', 'UTF-8')+'&'+                    EncodingUtil.urlEncode(paramString, 'UTF-8');             string signString = consumSecret+'&'+othSecret;             blob blobBaseString = Blob.ValueOf(baseString);             blob blobSignString = Blob.ValueOf(signString);             blob signBlob = crypto.generateMac('hmacSHA1',blobBaseString ,blobSignString );                     signature =  EncodingUtil.base64Encode(signBlob);             System.debug('signature: '+signature);

i am trying to implement twitter authorization in my salesforce app.in first step i am trying to get request token from twitter.here is my code :      public String getTwitterReqToken(){          String base_string = 'POST&';                                   String state = getRandomNonce();           base_string += EncodingUtil.urlEncode(twitterReqToken,'UTF-8');             String callback = EncodingUtil.urlEncode(returnUrl,'UTF-8');                 String timestamp = String.valueOf(DateTime.now().getTime()/1000);                            String param_string = 'oauth_callback='+callback+'&oauth_consumer_key='+twitterConsumerKey                               +'&oauth_nonce='+state+'&oauth_signature_method=HMAC-SHA1&oauth_timestamp='+timestamp                               +'&oauth_version=1.0';          param_string = EncodingUtil.urlEncode(param_string,'UTF-8');          base_string += '&' + param_string ;                              System.debug('base string is '+base_string);         Blob sig = Crypto.generateMac('HmacSHA1', Blob.valueOf(base_string),          Blob.valueOf(twitterConsumerSecret));                           String signature = EncodingUtil.urlEncode(EncodingUtil.base64encode(sig), 'UTF-8');         System.debug('signature is'+ signature);             String header ='OAuth oauth_callback="'+callback+'",'                   +'oauth_consumer_key="'+twitterConsumerKey+'",'                   +'oauth_nonce="'+state+'",'                   +'oauth_signature="'+signature+'",'                   +'oauth_signature_method="HMAC-SHA1",'                   +'oauth_timestamp="'+timestamp+'",'                   +'oauth_version="1.0"';                   Map<String,String> map1 =new Map<String,String>();                   map1.put('Authorization',header);                   map1.put('Content-Type','application/x-www-form-urlencoded');         String bb = basicAuthCallout(twitterReqToken,map1,'','POST');         System.debug(bb+'');         return bb;      }  public String basicAuthCallout(String endPoint,Map<String,String> header, String body,String method){      HttpRequest req = new HttpRequest();     //endPoint = EncodingUtil.urlEncode(endPoint,'UTF-8');     if(body != null && body.length() > 0)     endpoint=endpoint+'?'+body;     req.setEndpoint(endPoint);     req.setMethod(method);     for( String x : header.keySet())     req.setHeader(x,header.get(x));      Http http = new Http();     System.debug('=========== REQ BODY:'+endPoint);     HTTPResponse res = http.send(req);     return res.getBody();  }   when i call method getTwitterReqToken .its giving me error "Failed to validate oauth signature and token" .i think i called this callout properly .can any one please point out why i am facing this issue ??


I just finished watching Fullmetal Alchemist 2003 series. I would like to read/watch the manga/Brotherhood anime now. Does anyone know at what chapter the story of FMA2003 and the story of the manga/Brotherhood anime go their separate ways?

Some of the Puella Magi seem to have magical powers related to the wishes that they made. Sayaka has regeneration abilities, and she wished to heal someone. Homura has time manipulation abilities, and she wished to go back in time.  But other magical girls, like Mami and Kyouko, don't appear to have powers related to their respective wishes.  So, is there a connection, or is it only a coincidence for Sayaka and Homura? If it's the former, how do Mami and Kouko's wishes relate to their powers?


I just bought a brand new Windows 8 PC.  How do I make a CD or DVD which will restore it to the exact conditions of when the CD was created (even if the hard drive was reformatted after the disk was created)? Thank you  EDIT  It is a HP Pavilion.  Don't know if that makes any difference, but I want an exact restoration with all the HP software.

I have upgraded to Windows 8 from Win 7. I want to create a recovery disk for Windows 8, just in case something goes wrong. I didn't find the option of creating it from the control panel.  How do I create a Recovery CD/DVD?


I have an HP Laptop with Ubuntu 16.04 installed (dual boot with Windows 10). The system takes over 1m to boot, as you can see from the following:  $ systemd-analyze time && systemd-analyze blame Startup finished in 3.504s (kernel) + 1min 7.512s (userspace) = 1min 11.016s          24.675s apt-daily.service          16.924s apt-daily-upgrade.service          15.427s dev-sda4.device          11.694s systemd-journald.service          11.549s systemd-tmpfiles-setup-dev.service           8.627s systemd-sysctl.service           6.496s NetworkManager-wait-online.service           5.204s snapd.service           3.586s gpu-manager.service           3.033s systemd-modules-load.service           2.285s NetworkManager.service           2.067s udisks2.service           1.856s thermald.service           1.633s ModemManager.service           1.595s accounts-daemon.service           1.468s apparmor.service           1.368s lightdm.service           1.181s iio-sensor-proxy.service           1.035s systemd-rfkill.service            986ms grub-common.service            915ms keyboard-setup.service            778ms upower.service            734ms plymouth-start.service   CPU: sudo lscpu (see also inxi -C)  Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                8 On-line CPU(s) list:   0-7 Thread(s) per core:    2 Core(s) per socket:    4 Socket(s):             1 NUMA node(s):          1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 42 Model name:            Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz Stepping:              7 CPU MHz:               1995.596 CPU max MHz:           2900,0000 CPU min MHz:           800,0000 BogoMIPS:              3991.19 Virtualization:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              256K L3 cache:              6144K NUMA node0 CPU(s):     0-7 Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts   Graphics HW: lspci | grep VGA (see also inxi -G)  00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M XT] (rev ff)`   So, what can I do to make boot faster (if it’s possible in my case)?

My boot is horribly slow, and I don't know why.  $ systemd-analyze  Startup finished in 10.975s (kernel) + 49.732s (userspace) = 1min 708ms $ systemd-analyze blame           34.971s apt-daily.service          20.590s snapd.refresh.service          17.113s grub-common.service          16.033s apport.service          16.027s networking.service          15.894s ondemand.service          15.860s irqbalance.service          15.655s speech-dispatcher.service          11.695s ModemManager.service           9.772s accounts-daemon.service           8.626s NetworkManager-wait-online.service           8.058s systemd-logind.service           8.053s bluetooth.service           7.944s gpu-manager.service           7.896s alsa-restore.service           7.892s pppd-dns.service           7.882s rsyslog.service           7.860s avahi-daemon.service           7.844s dev-sda1.device           7.842s systemd-user-sessions.service           7.648s lightdm.service           7.610s teamviewerd.service           6.445s apparmor.service   Also, during boot-up, I see a message that says something like:  device descriptor read/all, error -62 ata1 softreset failed (device not ready) #most of the times error loading journal #(sometimes) Test WP failed, assume Write Enabled Asking for cache data failed     #most of the times Assuming drive cache: write through   apt-daily.service slows the boot the most. Any idea on how to tackle that?  I have Ubuntu MATE 16.04.


The question of the "continuous" or "discrete" nature of the universe is the subject of diatribe among the greatest physicists in the world. I would like to discuss the same topic, but asking a question about the aspect of continuum in classical mechanics.  The use of mathematical functions (continuous) to describe the evolution over time of quantities such as position, velocity, acceleration, energy, has been introduced since Newton's time. However, when using a calculator, the mathematical functions of physical use are subjected to a necessary discretization which involves a certain error. My question is: is the reality in which the mentioned physical quantities are discrete? Could we conceive the environment in which a body moves, with a certain trajectory, like a three-dimensional screen composed of Pixels? In this case, the use of the integral calculation would result in a mathematical error, in exactly the opposite way to the discretization process that is conducted in a computer.  My physics professor said that reality is continuous, but I do not think that this concept can be assimilated by the human mind. I do not want to come to the treatment of space-time, but I believe that the paradoxes of Zeno are sufficient to agree that the physical greatness with which we deal every day is of a discrete nature.  Quantum mechanics confirms that entities such as energy and speed should be understood as discrete (just think of the "quantum" of energy), therefore it is possible that my question can be answered already in this. However, since the school years the use of continuous mathematics is taught but not justified. Is it possible that the universe is discrete, but composed of such a high number of stencils that any error is insignificant for classical mechanics, which deals with the macroscopic world?

Is the spacetime continuous or discrete? Or better, is the 4-dimensional spacetime of general-relativity discrete or continuous? What if we consider additional dimensions like string theory hypothesizes? Are those compact additional dimensions discrete or continuous?   Are there experimental evidences of continuity/discreteness?  When particles move inside space do they occupy spacetime by little chunks? What would imply if spacetime is discrete on continuous theories?  I've found little information on the web and books.  Probably my question is ill-posed and I apologize for this.


I've been sifting through google search results and can't find the answer.  It seems F8 is not an option anymore.. however everything else shows how to boot into safe mode - when you're already in windows.. argh... that makes no sense, why do I need safe mode if windows is already working properly?  What I need is a way to boot straight into safe mode in window 10.. how can I do this? My screen is not working and i need to uninstall the graphics drivers - the regular "Type blindly your password" solution to this "Black Screen of Nothingness except a mouse cursor after windows 10 upgrade" problem is not working for me.. so I need to boot into safe mode and uninstall the nvidia drivers.  I don't have a windows CD since I upgraded from the internet. So I can't boot from that either.  So what's the official (or any) way to boot straight into safe mode ? thanks

I've been through the Windows 10 upgrade, and am experiencing a recurring "INTERNAL_POWER_ERROR", which is stopping me from logging in.  I'd like to be able to try to boot to safe mode, but it appears that pressing F8 during boot is no longer enough, so how can I boot in safe mode (or any of the other recovery options) on a Windows 10 PC that doesn't let me log on?


I want to use the package biblatex and cite with supercite but my problem is that if i use supercite the citations are not in square brackets anymore. Is it possible to get something like number-comp supercite and in square brackets?  In addition, i don't have much notion of that package and i am using LyX.  Thanks for helping.

Same requirements as . But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):    MWE (comment the 3rd line in to reproduce the error):  \documentclass{article} \usepackage{filecontents} %\usepackage[style=chem-angew]{biblatex} % fails \usepackage[]{biblatex}  \DeclareCiteCommand{\supercite}[\mkbibsuperscript]   {\iffieldundef{prenote}     {}     {\BibliographyWarning{Ignoring prenote argument}}%     \iffieldundef{postnote}     {}     {\BibliographyWarning{Ignoring postnote argument}}%     \bibopenbracket}%   {\usebibmacro{citeindex}%     \usebibmacro{cite}}   {\supercitedelim}   {\bibclosebracket}  \begin{filecontents}{test.bib} @book{A01,   author = {Author, A.},   year = {2001},   title = {Alpha}, } @book{A02,     author = {Author, A.},     year = {2001},     title = {Alpha}, } \end{filecontents} \addbibresource{test.bib} \let\cite=\supercite \begin{document} Citing \supercite{A01, A02}. \printbibliography \end{document}   Output without style option:


Maybe my question will be so much silly for 2016 because there exist many similar questions but it is very hard to me to understand when should i use final variable inside a method instead of local variable. Which  one will be more efficiency and when should i use it.    public void setmethod(int var)  {        final int variable = var;        System.out.println(variable);  }      public void setmethod(int var)  {        int variable = var;        System.out.println(variable);  }   I know that The result in the Output will be the same and also that Final fields - is making that same fields reference immutable but which one option is more efficiency under certain circumstances and Why?? I am a bit confused

I've found a couple of references () that suggest using final as much as possible and I'm wondering how important that is. This is mainly in the the context of method parameters and local variables, not final methods or classes. For constants, it makes obvious sense.  On one hand, the compiler can make some optimizations and it makes the programmer's intent clearer. On the other hand, it adds verbosity and the optimizations may be trivial.  Is it something I should make an effort to remember?


I use QGIS 2.2 on Windows 8, and the same QGIS 2.2 has been installed on a computer with Windows Vista.  On the Windows 8 everything works just fine, but something is wrong on the Windows Vista. All the projections that I can choose from on the Windows 8 isn't accessable from the Vista computer?  The national projection that all our data are in, can not be chosen on the Vista? No problem on the Windows 8.   What may we have done wrong? We tried to reinstall QGIS on the Windows Vista, but it didn't help.   Something else we can try?    EDIT: I tried installing QGIS in a folder without blanks, as suggested in a comment below. But the problem is still there. I still can't use the right projection on the Vista. The answer in the other question is too complicated for me.    From the postinstall.log (partly in Swedish):  "C:\QGIS_Valmiera\QGIS" „r inte ett internt kommando, externt kommando, program eller kommandofil. OSGEO4W home is C:\QGIS_Valmiera\QGIS Valmiera Synchronizing CRS database with GDAL/PROJ definitions. Load srs db from: C:/QGIS_Valmiera/QGIS Valmiera/apps/qgis/./resources/srs.db QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified Loading epsg.wkt 0 WKTs loaded CRS update (inserted:0 updated:0 deleted:3631 errors:0) No CRS updates were necessary.

in QGis 1.8 were lots of predefined coordinate systems (national projections). Where have they all gone in qgis 2.0? I specifically need the Gauß-Krüger-Projections Zone 1 to 5.  Is there any plugin to load those coordinate systems?


I am not very much into the Harry Potter books but have watched every part of the movies like a hundred times and couldn't find how Snape ended up becoming the servant of the Dark Lord for the very first time.

Severus Snape seemed like a complete lone nerd type from whatever details about him are in the books.  Why would he bother hanging out with future Death Eaters (Nott etc...) in Hogwarts when the downside was basically extra bad for him (Lily drifting away and not liking him) and the upside was slight (for Snape's personality type, hanging out with a clique isn't a great deal of an upside). He seemed too logical and analytical for such a poor decision.


I am trying to use a jLabel as a background but is not working. The code works as soon as I delete the label. I have the image within a package in the project separate to the form. I cannot tell if the issue is to do with the storage of the image or if there is an issue with the code. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:217) at com.mycompany.dungeoncrawler.UI2.initComponents(UI2.java:74) at com.mycompany.dungeoncrawler.UI2.<init>(UI2.java:30) at com.mycompany.dungeoncrawler.UI2$3.run(UI2.java:136) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)  Here is my code for the Form. The code where the image is initialized is pointed to in the output error at line 64.     Backround.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/Purple hell.png"))); // NOI18N     getContentPane().add(Backround);     Backround.setBounds(2, 1, 1210, 700);      pack(); }// </editor-fold>                          private void txtInputKeyPressed(java.awt.event.KeyEvent evt) {                                        if(evt.getKeyCode()==KeyEvent.VK_ENTER){        Input = txtInput.getText();             try {                 Out = Player.Action(Input);             } catch (IOException ex) {                 Logger.getLogger(UI2.class.getName()).log(Level.SEVERE, null, ex);             }      if ("Invalid".equals(Out)){          JOptionPane.showMessageDialog(null, "Invalid Input");      }else txtOutput.setText(Out);            txtInput.setText("");      txtInput.requestFocus();    } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a string:  res = 'qwer!@ 234234 4234gdf36/\////// // \ \\\$%^$% dsfg'   and I want to remove ALL slashes and backslashes. I tried this:  import string import re  symbolsToRemove = string.punctuation res = 'qwer!@ 234234 4234gdf36/\////// // \ \\\$%^$% dsfg' res = re.sub(r'['+symbolsToRemove+']', ' ', res) print(res)   But get the next result:     qwer   234234 4234gdf36 \          \ \      dsfg   What am I doing wrong?

I want to use input from a user as a regex pattern for a search over some text.  It works, but how I can handle cases where user puts characters that have meaning in regex? For example, the user wants to search for Word (s): regex engine will take the (s) as a group.  I want it to treat it like a string "(s)" .  I can run replace on user input and replace the ( with \( and the ) with \) but the problem is I will need to do replace for every possible regex symbol. Do you know some better way ?


I tried to change the tags on   When I tried to save my change, I was chastised that the question contained a jsfiddle with no code. Since validation failed, I couldn't save my change.  I shouldn't be held responsible for someone else's problematic question if all I'm doing is changing a tag.

I can't edit a question that has a jsfiddle link because it has a lack of code. Can we get privileged users able to bypass restriction? The question had some really poor formatting and linking and I couldn't fix it. :  Html is not taking the css code Some of my html tags are not reacting by the css which i gaved them for example is offerbox not reaction to the html part. all html parts down from offerbox are not taking the styles that i gaved the enter code here http://jsfiddle.net/8Bw7M/  pic from the html and css  I feel that as a privileged user, I should be able to make the changes needed. This is related, but I'm not adding any new links.


Recently, my friend bemused me with a question related to the momentum of an electron. The confusing logic is stated below:  Since an electron is a particle and according to classical physics, we know that it's momentum equals to: $p_e=mv$  However, by looking from a different perspective, we found that, From de Broglie's hypothesis: $p=\frac{h}{\lambda} $ And since de Broglie proposed that particles also obey the Einstein relation: $E=hf$ Then, $p_e=\frac{hf}{c}=\frac{E_e}{v}$ Since the only energy of the electron is Kinetic energy, then $E_e=\frac{1}{2}mv^2$ and $p_e=\frac{1}{2}mv$  We thus arrive at a contradiction: $mv \neq \frac{1}{2}mv $  What is the flaw in this logic?

I am studying quantum physics and there is something I don't understand:   I know that for any particle $E=hf$ (Einstein relation) and  $v=\lambda f$ ($v$ is the speed of the particle). I also know that the kinetic energy is $E_k=\frac{mv^2}{2}$.    Solving those 3 equations for $\lambda$:  $$h\frac{v}{\lambda}=\frac{mv^2}{2},$$ I finally find $$\lambda=\frac{2h}{mv}=\frac{2h}{p},$$ which is not consistent with the De Broglie relation $$\lambda=\frac{h}{p}.$$ Where am I wrong in my development?


Should I say I suggest you not go there or I suggest you to not go there? Or are they wrong and I need to say "going" instead of "go"?

Could anyone clarify once and for all the usage of suggest? All the grammars I have consulted allow for only four possibilities:  Suggest + ing form Suggest that + direct object + should + bare infinitive Suggest that + direct object + bare infinitive Suggest that + direct object + simple past  They all say that suggest must never be followed by an indirect object. However, I keep finding sentences that seem to contradict these rules:  "We suggested to the committee that they review the case again." (Merriam-Webster online dictionary." "Can you suggest to them that Company Name develop the Italian version of the website?" (this website's thread of some months ago)  to mention only a few. Could anybody please help?


I am applying for a PhD in engineering and some universities require a diversity statements which is considered an optional part of the application.   How important is this to the admission ? They don't say how they are going to use this in their admissions process and I believe the department makes the decisions.  Should I spend the time to do this or just forget about it since it is optional ?

I'm sitting here with my friend, who is in the process of applying to graduate school. She's come across a prompt that looks like this:     If you are a member of a community that has historically been underrepresented in higher education and would like to tell us how this particular perspective adds to the value you will contribute to the diverse learning community we strive to create, please do so here.   My friend is a female, Latin American, previously financially-burdened immigrant, so there is certainly some diversity to speak of, but she's having trouble coming up with how this can answer the prompt. To her, she's never really considered it a struggle, but more of a challenge. She's never let it get her down, so she sees no reason to complain about it in an essay. She believes you should be judged based on your past and present performance, not your national origin, ethnicity, financial status, etc.  How do you even respond to a prompt like that? Also, why do universities ask you to speak about your diversity in the first place? What are they looking for?


I have downloaded ubuntu-14.04.2 desktop-amd64.iso.  Is it possible that we copy the iso file into our pendrive and then boot it from Pendrive after restarting?  If yes, could you please provide me with the steps for that.  To be frank, I am not good with the computers  My laptop is Lenevo G580

How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?


I was trying to install Ubuntu on an older laptop which doesn't have a DVD ROM or a USB boot capabilities.  Is there an option to burn the image files to a Cd ROM? I am pretty sure that the size of the image file may be slightly larger to fit on a CD ROM. Is there a way to split the image files and use two CD Roms instead?

I have an old computer that can't handle a boot stick install, so i have to create an actual, old fashioned boot CD.  However, the image size for Ubuntu 12.04 is 732MB, which is too large for a CD, which can hold only 700MB.  The maintainers of Ubuntu 12.04 say the image size will never go over 700MB, and indeed, the download size seemed to be 689MB.  Brasero says it won't burn the CD because the file is too big, what's going on?


Some online strategy games have real time events. For example when you send troops to attack somewhere, the attack happens at the right time in the future. Checking the database again and again to get the list of attacks happening each second would cause heavy load. Is there any technique to achieve this goal?  Another example: You want to attack a village 3 hours away, you send troops and the attack occurs 3 hours later. Should there be an script to check the database at each second to run the query at the specified time?

In many free-to-play games, play will be rate limited in some manner by a resource that you naturally earn on a timed interval, but can opt to increase artificially through buy-ins.  A current example of this is the popular game Candy Crush, which refills 1 life (retry) on some set interval.  Key requirements:   The client should be able to accurately predict the time to the next resource, such that it might display a countdown, etc. Resource gain is not regular.  It can be offset by, at least, resource buy-ins, or perhaps varying intervals between users. Resource gain is capped, and thus not continual.  E.g. maximum "lives" might be 5. The server is the resource authority, obviously.  The client might predict resource generation without actual notification as to such, but the resource count is determined server side.   Naively, one might simply implement this as a database update across the collection on the interval (if the interval is constant), but this would surely not scale.  It would become more and more out of sync with the client timers as the dataset scales and the operation takes more time.  Not to mention, it would be wasteful, as it's likely that only the percentage of your membership currently online needs to see realtime updates.  It seems like it would be possible to calculate the resource as a function of time since creation, time spent uncapped, resources earned, and resources spent.  Would this be a viable option?  The question is, what is the best way to implement this mechanism to scale?


It would be cool to show the most common edit summary comments like a tags, to be able to fill this field it by clicking, not by typewriting.  E.g., like this:

I wonder if you could include in the Edit Post page some “Edit Summary” standard options (like Tags) For example:  “Grammatical errors fixed” “Spelling errors fixed” “Code block added”  And so… With those standard options we can make some statistics about common error in the moment to create new post, add answers etc. For example:  30% of new posts have Spelling Mistakes. 20% of new answers have Grammatical Errors.  Today we can write in “Edit summary” whatever we want: “Grammatical errors fixed and Code block added”, other user can put: “Code block added and grammatical errors fixed”. This information is very difficult to analyze. We this, I think we could:  Analyze information about common errors Write summary faster Standard inputs usually improve quality.


I am beginning to learn Django and get this data related "slug":  A short label for something, containing only letters, numbers, underscores or hyphens. They’re generally used in URLs. For example, in a typical blog entry URL:  the last bit (spring) is the slug.  Why do we need this and how to use?

When I read Django code I often see in models what is called a "slug". I am not quite sure what this is, but I do know it has something to do with URLs. How and when is this slug-thing supposed to be used?   (I have read its definition in .)


Let $A,B,C$ be sets such that $\mathcal{P}(A) \cup \mathcal{P}(B) = \mathcal{P}(C)$. Then either $A=C$ or $B=C$.   I just need a little direction with this. I know that since $\mathcal{P}(A) \cup \mathcal{P}(B)$, then $(x\in \mathcal{P}(A)) \lor (x\in \mathcal{P}(B))$ and also $[\mathcal{P}(A) \cup \mathcal{P}(B) = \mathcal{P}(C)] \Rightarrow [(\mathcal{P}(A) \cup \mathcal{P}(B))\subseteq \mathcal{P}(C)] \land[\mathcal{P}(C)\subseteq (\mathcal{P}(A) \cup \mathcal{P}(B))]$, but I honestly have no idea what to do with this information. Should I break the union down into truth statements like so: $\mathcal{P}(A) \cup \mathcal{P}(B)\Rightarrow (x\in \mathcal{P}(A)) \lor (x\in \mathcal{P}(B))$?  Any direction would be greatly appreciated!

I came to point where I suppose for case 1 that $A\subseteq B$ and conclusion is trivial. For case 2 I suppose that $A\not\subseteq B$ and try to prove $B\subseteq A$, but that gets me nowhere. Any pointers here are most welcome.


I know if you move your time moves slower than someone who is stationary, by Lorentz's transformation. However, I don't get how this happens.  What does it mean when time moves slower? How does it affect my watch for example when I move close to the speed of light?   Does an electron for example feel time-dilation?

What are the mechanics of time dilation and length contraction? Going beyond the mathematical equations involving light and the "speed limit of the universe", what is observed is merely a phenomenon and not a true explanation of why time dilates or length contracts.  It has been proven to work out, but do we know why?  Is it something that happens at a subatomic level?


Let $V_1, V_2, V_3$ be linear subspaces of $\mathbb R^n$. One says   they have 'normal intersection' if $V_i\pitchfork(V_j\cap V_k)$   whenever $i\ne j$ and $i\ne k$. Prove that this holds iff   $$\operatorname{codim}(V_1\cap V_2\cap V_3)=\operatorname{codim} V_1+\operatorname{codim} V_2+\operatorname{codim} V_3.$$   I guess I proved one direction. If the spaces intersect normally, then in particular  we have $V_1 \pitchfork (V_2\cap V_3)$ and $V_2 \pitchfork V_3$ (if $j=k=3$). Now $$\operatorname{codim}(V_1\cap V_2\cap V_3)=\operatorname{codim}(V_1\cap (V_2\cap V_3))=\operatorname{codim}V_1+\operatorname{codim}(V_2\cap V_3)=\operatorname{codim}  V_1+\operatorname{codim} V_2+\operatorname{codim} V_3,$$ where I have used that if two submanifolds $X, Z$ of $Y$ intersect transversally then $$\operatorname{codim}(X\cap Z)=\operatorname{codim} X + \operatorname{codim} Z$$ (Theorem on p.30 of the book).  Is this direction correct? How do I prove the other direction?

We say that two vector subspaces $U,W\subset V$ intersect transversally (written $U\pitchfork W$) if $U+W=V$.  Let $V_1,V_2,V_3$ be vector subspaces of $V$ where $\dim V=n$. We say they intersect normally if $V_i\pitchfork(V_k\cap V_l)$  for $i\ne k,l$. Prove that $V_1,V_2,V_3$ intersect normally if  the following condition holds:  $\operatorname{codim}(V_1\cap V_2\cap V_3)=\operatorname{codim} V_1+\operatorname{codim} V_2+\operatorname{codim} V_3,$   where $\operatorname{codim} V_i=n-\dim V_i$.  How to approach this problem? I tried to order dimensions of $V_i$ but I got that the LHS is $\ge n-\min (\dim V_i,i=1,2,3)$ and the RHS is $\le 3( n-\min (\dim V_i,i=1,2,3))$ which does not lead anywhere. What is the right way to do this?


I am currently developing an app that will require that the user enters their password to access the game. I have the following if statement but it will not work, as you can see from the if statements I have tried three different ways to get the match to equal true.       EditText passInput = (EditText) findViewById(R.id.passwordBox);     CharSequence Password = passInput.getText();     RelativeLayout loggedIn = (RelativeLayout) findViewById(R.id.LoggedInLayout);     RelativeLayout CreateUser = (RelativeLayout) findViewById(R.id.createUserLayout);     Button loginBtt = (Button) findViewById(R.id.createUser);     String actualPass = password[x];      System.out.println(Password + actualPass + passInput);      if(Password.equals(actualPass)){          System.out.println("They Matched!");         loggedIn.setVisibility(View.VISIBLE);         CreateUser.setVisibility(View.GONE);         loginBtt.setText("Create User");      }else if(Password.toString() == actualPass.toString()){          System.out.println("Second Match");      }else if(Password == actualPass){          System.out.println("Third Match");      }else if(Password.equals(actualPass) == false){      System.out.println("Wrong");     incorrectPassword();     System.out.println(Password);     System.out.println(actualPass);      }   When the user registers they are required to set a password. For testing I tried the password 'trst' but when inserted to the login page it comes back as being not correct. This is what my LogCat displays:  11-07 11:46:16.357: I/System.out(1998): Wrong 11-07 11:46:16.547: I/System.out(1998): trst 11-07 11:46:16.547: I/System.out(1998): trst   As you can see from the LogCat the inserted password and the actual password are identical but the program says they are not!

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


As I calculated the sum of the serie above doesn't exist(sum doesn't converge). How can I prove it using the double computing(combinatorical method)?

What is a "simpler" formula for  $$\sum_{3}^{n} \frac{(k-1)(k-2)(k-3)}{6}$$


Soo I need a fast way to import a XML file into the task scheduler and i need a batch script I tryed this: schtasks.exe /Create /XML F:\scedule.xml /tn scedule  But it does not work. Help pls

I have a schedule task in my test machine. Test machine is win 7. I export the task in xml and I am trying to create a new similar schedule task as i will have to create same schedule task on more than 500 machine.  I am planning to create a batch file for schedule task. As most machines are in same domain. So, i am planning to use service account for authentication.  Below is the xml file. This is working fine at the moment from task scheduler.  <?xml version="1.0" encoding="UTF-16"?> <Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">   <RegistrationInfo>     <Date>2016-01-26T19:26:36.6011086</Date>     <Author>test\404</Author>     <Description>Testing Tasks</Description>   </RegistrationInfo>   <Triggers>     <CalendarTrigger>       <Repetition>         <Interval>PT1H</Interval>         <Duration>P1D</Duration>         <StopAtDurationEnd>false</StopAtDurationEnd>       </Repetition>       <StartBoundary>2016-01-26T19:25:42.7621086</StartBoundary>       <EndBoundary>2017-01-26T19:25:43.0101086</EndBoundary>       <Enabled>true</Enabled>       <ScheduleByDay>         <DaysInterval>1</DaysInterval>       </ScheduleByDay>     </CalendarTrigger>   </Triggers>   <Principals>     <Principal id="Author">       <UserId>test\404</UserId>       <LogonType>Password</LogonType>       <RunLevel>LeastPrivilege</RunLevel>     </Principal>   </Principals>   <Settings>     <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>     <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>     <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>     <AllowHardTerminate>true</AllowHardTerminate>     <StartWhenAvailable>false</StartWhenAvailable>     <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>     <IdleSettings>       <StopOnIdleEnd>true</StopOnIdleEnd>       <RestartOnIdle>false</RestartOnIdle>     </IdleSettings>     <AllowStartOnDemand>true</AllowStartOnDemand>     <Enabled>true</Enabled>     <Hidden>false</Hidden>     <RunOnlyIfIdle>false</RunOnlyIfIdle>     <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>     <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>     <WakeToRun>false</WakeToRun>     <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>     <Priority>7</Priority>   </Settings>   <Actions Context="Author">     <Exec>       <Command>copier.bat</Command>       <WorkingDirectory>D:\test\</WorkingDirectory>     </Exec>   </Actions> </Task>   When i try to create similar schedule task using below command.   schtasks /create /tn "alarm3" /xml "Test Task.xml"   I am getting error ERROR: Logon failure: unknown user name or bad password.  I want to know how can i create schedule task by using batch file. Schedule task need to be compatible for Win 2003 to Win 2012 server.  Thanks for your time.


When rendering 3d scenes, I use the default view transform Filmic, because it is said this gives the most photorealistic results. But when I composit 3d elements over a background video, the Filmic view transform also affects the video footage. I don't want this, because it makes the colors in the video look less saturated. What would be the easiest way to keep the original colors of the background video, while applying the Filmic view transform on the 3d elements? Do I need to save the rendered 3d scene to a file before doing the compositing, or is there a way to do rendering and compositing in one go?

I want to compose 3D-model over image, and I use filmic to get more suitable result. But I want the background image to remain in the original colors. So I try to use this setting:    but it haven't setting "look" ("high contrast", "low contrast", ets..) here, so color changes..  How to solve this?  Of course, I can save my render and compose it with jpg-image in different place - no problem here, but my question is about how to make it in place. It will give ability to control colors in filmic color space and see the results immediately.   UPD: image is from image node:    UPD2:     you can't really convert a display referred image to the scene   referred domain; the information has been permanently lost   Ok, but how to make the colors at the output looks close to the original?  UPD3:  This filmic version is from daily build.


Alright, so my teacher gave me the question here:  The speed of sound depends on the material the sound is passing through. Below is the approximate speed of sound (in feet per second) for air, water and steel:  air: 1,100 feet per second water: 4,900 feet per second steel: 16,400 feet per second   Write a program  that asks the user to enter “air”, “water”, or “steel”, and the distance that a sound wave will travel in the medium. The program  should then display the amount of time it will take.  Prompts And Output . The program  prompts for the medium with: "Enter one of the following: air, water, or steel: " and reads the medium. If the medium is not air, water or steel the program  prints the message : "Sorry, you must enter air, water, or steel." an nothing else. Otherwise the program  prompts for the distance with ("Enter the distance the sound wave will travel: " and reads it in and then prints "It will take x seconds." where x is the time calculated by your program .   and this is what I have so far.  import java.util.Scanner; //Scanner for input //Class name public class TheSpeedOfSound {  public static void main(String[] args)//main section  {   //varibles   String speed;   double distance;         double time;   //set scanner   Scanner keyboard = new Scanner(System.in);   //ask for the type of speed input   System.out.println("Enter one of the following: air, water, or steel: ");   speed = keyboard.nextString();   //determine if it is a correct variable       if (speed = "air" || speed = "water" || speed = "steel")          //ask for the distance input          System.out.println("Enter the distance the sound wave will travel: ");        distance = keyboard.nextDouble();          //set switch          switch (speed)          {          //determine which speed used             case "air":                time = distance/1100;                System.out.print("It will take" + time + "seconds.");                break;             case "water":                time = distance/4900;                System.out.print("It will take" + time + "seconds.");                break;             case "steel":                time = distance/16400;                System.out.print("It will take" + time + "seconds.");                break;          }       else          System.out.print("Sorry, you must enter air, water, or steel.");     } }    My problem is that apparently the nested switch statement messes up the if-else statement and the program recognizes the else near the end of the program as part of a separate if-else statement. I've tried switching the if and else statements contents and that only succeeded in the program not recognizing the (period) in:       speed = keyboard.nextString    So, how might I get around this conundrum? straight up answers are not requested, but hints or similar examples would be appreciated.