unfortunately my app has stopped. --here is my logcat

01-02 05:30:50.220 8776-8776/com.wordpress.alhazn.puhaba E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.wordpress.alhazn.puhaba/com.wordpress.alhazn.puhaba.MainActivity}: java.lang.NullPointerException     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2045)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2146)     at android.app.ActivityThread.access$700(ActivityThread.java:140)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)     at android.os.Handler.dispatchMessage(Handler.java:99)     at android.os.Looper.loop(Looper.java:177)     at android.app.ActivityThread.main(ActivityThread.java:4944)     at java.lang.reflect.Method.invokeNative(Native Method)     at java.lang.reflect.Method.invoke(Method.java:511)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)     at dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.NullPointerException     at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:117)     at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:149)     at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:29)     at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:54)     at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:202)     at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:183)     at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:519)     at android.support.v7.app.AppCompatActivity.findViewById(AppCompatActivity.java:190)     at com.wordpress.alhazn.puhaba.MainActivity.<init>(MainActivity.java:44)     at java.lang.Class.newInstanceImpl(Native Method)     at java.lang.Class.newInstance(Class.java:1319)     at android.app.Instrumentation.newActivity(Instrumentation.java:1068)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2036)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2146)      at android.app.ActivityThread.access$700(ActivityThread.java:140)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)      at android.os.Handler.dispatchMessage(Handler.java:99)      at android.os.Looper.loop(Looper.java:177)      at android.app.ActivityThread.main(ActivityThread.java:4944)      at java.lang.reflect.Method.invokeNative(Native Method)      at java.lang.reflect.Method.invoke(Method.java:511)      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)      at dalvik.system.NativeStart.main(Native Method)


how to add names and scores in `/Tellraw`

I've looked through basically every post about this, and each of them is like 2-3 years old and do not work with Bedrock edition. Here's the code I have, It displayed Test x= y= z= but does not give any actual values. The Minecraft documentation and wiki didn't have examples for these parts either. execute @a ~ ~ ~ tellraw @a {"rawtext":[{"text": "Test", "extra":[{"selector":"@s"}]},{"text":" §ax="},{"score":{"name":"@s","objective":"Coords-X"}},{"text":" §ey="},{"score":{"name":"@s","objective":"Coords-Y"}},{"text":" §cz="},{"score":{"name":"@s","objective":"Coords-Z"}}]}  I am fairly certain that the selector is messing up in both the scores and as a selector, but I am unsure on how I would get it to work. Any ideas on how to fix this, or do it differently?


Does Nondetection block all Divination magic or only scrying?

In 5e, the wording of the spell is "The target can't be targeted by any divination magic or perceived through magical scrying sensors." Does this mean that Divination spells such as Guidance don't have any affect on the target? Can the target still cast Divination spells and receive their benefits, such as Comprehend Languages?


Help with joining parts of a model using boolean modifier

I'm trying to merge together two parts (the ones in the images) of a model using a boolean (union) modifier, but I get an error saying "Unable to execute boolean modifier". I browsed around a little but couldn't really find an answer which worked in my case, so I'm wondering how I can get the boolean modifier to work ~


What will be the size of this structure ? Online Compiler showing different

What will be the output of this ? struct abc{ char i[5]; char b[8]; int j ; };  struct abc s1; According to me it should be 1 * 5 + 1 * 8 + 4 bytes  = 17 bytes When I do sizeof(s1) it shows 20 ! Why?


Tag containing a typo - should it be deleted?

I just stumbled on the  on SO. I think it is just a typo and thus it should be deleted.


How to access to Scipy.special functions within the script window

I would like to access the  in Scipy in the scripting window. I have looked at  and  and @polosson's answer in the first one suggests three possible ways to install a module in order to use it.   EDIT: My question is - HOW to install scipy.special into either the Blender Python path (which I should be able to find) or how to instal into a separate folder (which I would point to with the menu indicated in the third option of that answer).    Could someone take a moment to help me find a step-by-step way for me to start using scipy.special in the script window?  Thank You!  fyi I'm using Blender 2.70a on OSX 10.8.  Currently I run Python 2.7.6 using IDLE elsewhere in the computer, using  method (indicative of my current installation experience  == clicking and dragging).


Not sure if this question belongs here, but why doesn't the year for the June dates show up on this page?


What is Divination, as practiced by Wizards, really like?

What is Divination really like when it is not just a school subject, but is practically applied by a competent Wizard?  Is there a definition of what counts as Divination in the Harry Potter universe?  Most of what we know about Divination in the Harry Potter universe is through the school courses of Professor Trelawney and Firenze, plus a few remarks by Professor Dumbledore and Professor McGonagall.  I don't believe these give a fair representation of Divination in the real world, just like how the school curriculum of the first three years of Harry's Defense Against the Dark Arts class wouldn't tell much about how Defense Against the Dark Arts is used by adults.  To give some specifics, which of the following (if any) are Divination?   Professor Snape's task of finding out about the Dark Lord's plan. Professor Dumbledore finding out lots of details about the past of the Dark Lord. Professor Dumbledore coercing Kreacher to tell him what's happened to Sirius.   Professor Dumbledore detecting magic in the cave. The visions Harry had, showing what the Dark Lord or his Snake were doing. The spell used to reveal the last spell cast by a wand, as seen in Goblet of Fire. The Sorting Hat determining the personality traits of a young wizard. The Specialis Revelio spell cast by Hermione on the Riddle diary. The examination the Ministry of Magic has done on the objects Professor Dumbledore has left in his will to the trio. The tests done on the Firebolt that Harry got as a gift, ensuring that it is not jinxed. The Homenium Revelio spell cast by Hermione to find humans in the Black manor. What the Marauder's Map does. The two real prophecies of Professor Trelawney.   I have guesses about how some of the above are Divination and some aren't, but they are all based on what I've heared of divination outside the Harry Potter universe.  There is, however, probably some material in the books, interviews, Pottermore, or other resources that I don't know about.  To address a particular argument you might give about the prophecies of Professor Trelawney, recall that Professor Dumbledore wanted to keep Trelawney in Hogwarts to protect her, after the first prophecy and the immediately following events.  The way he insisted that she stay after she was sacked from her teaching position (in the Order of the Phoenix) clearly shows this, together with what he says about the matter in Half-Blood Prince chapter 20:     I cannot ask Firenze to return to the forest, where he is now an outcast, nor can I ask Sybill Trelawney to leave. Between ourselves, she has no idea of the danger she would be in outside the castle. She does not know – and I think it would be unwise to enlighten her — that she made the prophecy about you and Voldemort, you see.   This means that Professor Dumbledore may have applied Trelawney regardless of how good Divination teacher he thought she was, and regardless of whether the prophecy is Divination or not.  Can you give other examples of Divination used by Wizards, other than the ones related to school courses?  This is a speciesist question, I'm specifically asking only about human Wizards, not about divination practiced by Centaurs or House Elves or Goblins or other creatures.  Remark.  The original reason why this question came up is a disagreement in the thread


The Nimbus 2000 was the fastest broom at the time of the Harry's first year at Hogwarts.  Professor McGonagall wanted to win the Quidditch Cup so she spoke with Dumbledore and got an exception from the rule that no first-years could have a broom for Harry.  My question is who paid for the broom?  It couldn't have been a cheap broom.  They wouldn't have taken gold out of Harry's Gringotts account without permission.  It wouldn't be right for the school to pay for it and I doubt McGonagall paid for it out of her own pocket.  So who paid for the broom?


Fastest way to remove non-numeric characters from a VARCHAR in SQL Server

I'm writing an import utility that is using phone numbers as a unique key within the import.  I need to check that the phone number does not already exist in my DB. The problem is that   phone numbers in the DB could have things like dashes and parenthesis and possibly other things. I wrote a function to remove these things, the problem is that it is slow and with thousands of records in my DB and thousands of records to import at once, this process can be unacceptably slow. I've already made the phone number column an index.  I tried using the script from this post:   But that didn't speed it up any.  Is there a faster way to remove non-numeric characters? Something that can perform well when 10,000 to 100,000 records have to be compared.  Whatever is done needs to perform fast.  Update Given what people responded with, I think I'm going to have to clean the fields before I run the import utility.   To answer the question of what I'm writing the import utility in, it is a C# app. I'm comparing BIGINT to BIGINT now, with no need to alter DB data and I'm still taking a performance hit with a very small set of data (about 2000 records).   Could comparing BIGINT to BIGINT be slowing things down?  I've optimized the code side of my app as much as I can (removed regexes, removed unneccessary DB calls). Although I can't isolate SQL as the source of the problem anymore, I still feel like it is.


Is there a way to reliably install Netflix desktop and the full version of Wine? I want to be able to use Netflix, but also have a full-functioning wine install.   How would be the best way to do this? Thanks!  edit: It seems that they are actually fully compatible now. I posted an answer with more details.


Get all inputs with type text in console? Page in iFrame

How do you get all of the inputs of form on a page into an array while matching by input type(text|checkbox|radio)?   JavaScript:  Just plain js like this will give me ALL of the inputs  var inputs = document.getElementsByTagName( 'input' );   Now with jQuery:  I have jQuery loaded and I tried: as per docs ()  $( "<input>" ).is( ":text" );  $( "<input>" ).is( "[type=text]" );    Console Error message:  TypeError: undefined is not a function message: "undefined is not a function" stack: (...) get stack: function () { [native code] } set stack: function () { [native code] } __proto__: Error   Additional information:  The page I am trying to get text inputs on is in an iFrame and this whole interaction is running within a webkit.   My main page has jQuery loaded. The iFrame page does not.   Need to get inputs on iFrame page with jQuery from my main page.


Why \\[2\baselineskip] has no effect inside tabular

Consider this MWE  \documentclass{article}  \def\sample{text text text text text} \def\Sample{\sample\sample}  \parindent=0pt \begin{document}  \Sample\\ \Sample\\[2\baselineskip] \Sample  \bigskip  \begin{tabular}{c} \Sample\\ \Sample\\[2\baselineskip] \Sample \end{tabular}  \end{document}    Which produce     As you can see \\[2\baselineskip] add vertical space of 2\baselineskip after line break outside tabular environment.    If we add \\[2\baselineskip] inside tabular there is no effect as though the length \baselineskip became 0pt, why is this happening and how to fix it ( add vertical space of 2\baselineskip inside tabular), thanks.


Is uniform continuous send bouded sequence to a bounded sequence?

Let  $f\colon\mathbb R\to \mathbb R$ be a differentiable function such that $\displaystyle \sup_{x\in \mathbb R}|f'(x)|<\infty$. Then which are correct?  (A) $f$ maps bounded sequence to a bounded sequence.  (B) $f$ maps Cauchy sequence to a Cauchy sequence.  (C) $f$ maps convergent sequence to a convergent sequence.  (D) $f$ is uniformly continuous.  Attempt :  Since $\displaystyle \sup_{x\in \mathbb R}|f'(x)|<\infty$ so $f$ is uniformly continuous. (D),(B).  As $\mathbb R$ is complete and (B) is TRUE so (C) is also TRUE.  But I am unable to prove or disprove the option (A).


Why can't I use a button which is not in the same activity as the java.file?

I want a Button to invoke a function if it is pressed, but this button is not in the same activity as the one the java.file is related to.  There's no problem with the code, but when I emulate the app, something fails. The button called cambaiarmenu is in another activity, not in Comida2, but I need it there, but working here. So that when it is pressed, the pickEntidad method takes place in this activity.  Here there is the java code of the activity without the button:  public class Comida2 extends AppCompatActivity implements Adaptador2.OnRecipeListener {     private RecyclerView recyclerView1;     List<Entidad2> listItems;     Adaptador2 adaptor;     private Entidad2 entidad1,entidad2,entidad3;     Button cambiarmenu;       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);          requestWindowFeature(Window.FEATURE_NO_TITLE);         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,                 WindowManager.LayoutParams.FLAG_FULLSCREEN);         setContentView(R.layout.activity_comida);          cambiarmenu=(Button) findViewById(R.id.boton_cambiarmenu);          recyclerView1 = findViewById(R.id.lv_1);         LinearLayoutManager layoutManager = new LinearLayoutManager(this);         layoutManager.setOrientation(LinearLayoutManager.VERTICAL);          recyclerView1.setLayoutManager(layoutManager);          listItems = new ArrayList<>();         entidad1 = new Entidad2(R.drawable.calabacines_3, "Solomillo a la plancha", " 10 min.", 4, 20);         entidad2 = new Entidad2(R.drawable.patatas_deluxe_especiadas_70523_300_150, "Entrecot", " 15 min.", 2, 50);         entidad3 = new Entidad2(R.drawable.tomate, "Hamburguesa", " 2 min.", 5, 100);           listItems.add(entidad1);         listItems.add(entidad2);         listItems.add(entidad3);          adaptor = new Adaptador2(listItems, this);         recyclerView1.setAdapter(adaptor);         adaptor.notifyDataSetChanged();         Clicado();     }      @Override     public void OnRecipe(int priority) {          if (priority == 20) {             Intent in = new Intent(this, Solomillo.class);             startActivity(in);         }         if (priority == 50) {             Intent in = new Intent(this, Entrecot.class);             startActivity(in);         }         if (priority == 100) {             Intent in = new Intent(this, Hamburguesa.class);             startActivity(in);         }     }      private void Clicado(){          cambiarmenu.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 pickEntidad();             }         });     }      private void pickEntidad(){         final int random = new Random().nextInt(101);          int priority1 = entidad1.getPriority();         int priority2 = entidad2.getPriority();         int priority3 = entidad3.getPriority();           listItems.clear();         if(random < priority1){              listItems.add(entidad1);          }else if(random < priority2){              listItems.add(entidad2);          }else if (random <= priority3){              listItems.add(entidad3);          }         adaptor.notifyDataSetChanged();     } }   And the part with the button is the void clicado.  This is the error message I get when the app crashes:   Please if anyone knows what is failing, tell me please. Any help will be good, and thanks.


Should I make sub-domain for different kind of content?

At this time I am running technology related blog and I'm tired of it because of writing only tech related articles, because of this reason I want to make a blog on sub-domain of root domain where I'll share stuff that I like and mostly stuff that make me feel good. Its content is totally going to be different from root domain's. Is it secure to make another blog on sub-domain of my main blog or should I buy new domain name. Thing is, I want to stick with my old domain name.  I am going to make a sub-domain like this fun.domain.com  I read somewhere that Google treat sub-domains as spam. Because it could be used to takeover search results by making too much subdomains e.g. About.com have different sub-domains for different categories but Google don't take it as spam.  Update: Thanks for letting me know about another question about this topic. . It answered my question but I want to know little more if anyone can help.


What is this story about 20 y.o. inexperienced "kids" fighting against a stronger foe in space?

Years ago (mid 90's) I saw a show on network TV, and I'm trying to figure out what the name of it was. The parts of the plot I remember are:   The crew consisted of 20-year-olds (half were women). They were on some mission when they lose their commander. They must then try to get back home, while being tracked down by a foe in a faster, more powerful ship. One of the main characters turns traitor. He's locked up in the brig pending a decision on his fate. He hangs himself, and his body is incinerated by the crew. One of the main characters plays a video game that basically looks like a visor over his face. While playing the game, he's given an idea on how to outwit their foe by using the laser cannon on their ship to create a holographic projection of a larger ship. In the end, they are about to be destroyed by a torpedo launched from the enemy ship.  The torpedo is destroyed by a laser beam from a friendly capital ship that arrives at the last moment.  I remember there being some sort of romance sub-plot to the show as well between two crew members.    Other non-plot details:   This was live action, not animated. I remember the special effects being quite high-end.   The guns on the ships were manipulated by a person sitting in a gunnery chair. This chair projected a holographic view of the fight in front of him/her. From there the gunner used a joystick and a keypad to control the weapons on the ship.  All the crew wore simple Star-Trek style uniforms throughout the entire program, so no jumpsuits or helmets.    I don't know if this was a movie or a TV show, because I never actually saw the beginning of it. I think I saw at least 45 minutes worth, so it could be either as far as I know.   That's all I remember, other than I think the name of the show was fairly generic (something like "Star Command"). I loved the show as a kid even though I only saw it once. I would like to watch it again and see how lame it really was.


Prove that $\mathbb F_8=\mathbb F_2[X]/(X^3+X+1)$

I'm new to field extensions and I can neither see why or how to prove this statement.  If I'm not mistaken, to construct a splitting field, you construct rupture fields one after the other, using that the $8$ element field is the splitting field of $X^8-X$ over $\mathbb F_2$, since $2$ is the only prime divisor of 8.  Over $\mathbb F_2$ $X^8-X$ has two roots : $0$ and $1$. Therefore $X^8-X=X(X-1)(1+X+...+X^6)$. The last factor, call it $P$, has no roots. So let $\alpha$ be a root in some extension $\mathbb F_2(\alpha)$ of $\mathbb F_2$.  We now have $P=(X-\alpha)(X^5+\alpha X^4+...+\alpha^4X+\alpha^5)$.  I suspect $\alpha$ might not be the way to go and if so, my second plan would be to reduce $P$. I don't know how to do this but assuming it to be done, hence having $P=P_1...P_n$, I could start using $P_1$'s rupture field, and then my best guess is that if $\mathbb F_2[X]/(P_1)$ is not sufficient, I re-reduce $P$ over this new field and consider the rupture field of one of the factors, and so on.  Now assuming I wasn't given the statement itself, is it elementary to construct the $8$ element field using $\mathbb F_2$ ?


I need to find my doorbell transformer in order to change it for a more powerfull one (ring pro doorbell). I have opened the chime and i can see the transformer wire going in my basement, i did follow it using a tone device and it goes inside of a finished room... I have no idea after if it goes back up or in the attic. Attic is hardly accessible, in summer it's worse. It is hard to follow after that even with the tone because all cables related to that breaker will ring too. I have check inside the light fixtures, can it be in the light switch? Also, my chime says : "use with transformer 16V 10VA", i must change the chime too since my new one is 16V 30VA?   Update :  I have looked inside and outside of the electrical panel. I have also a utility room with the ceiling not finished and i cannot see anywhere my cable so it is getting transformed somewhere before. I have seen a transformer and some of them can be attached to the outside of a switch box/electrical box. The basement got a suspended ceiling so i can just cut the wire near a electrical box and wire the new transformer there but it would trigger me to know there is a dead cable with electricity somewhere. Also, does the chime can handle the new transformer? Even if the VA is higher?  Update :  I ended up cutting the cable near an outlet in the basement drop-ceiling. I wired the new transformer and it is working. My quest following the cables always ended up going into a finished ceiling so i could not find the old transformer. I don't like that but one day i will find the old one and remove it, i will use an endoscope camera with a led light to help me. Thanks everyone.


Dictionary lookup wider and taller (pop-up dictionary lookup styling) in OS X

It's possible to change the font and the font-size for 3-finger lookup popup. You just need to edit css file for dictionaries you use, e.g.:  sudo vim /Library/Dictionaries/New\ Oxford\ American\ Dictionary.dictionary/Contents/Resources/DefaultStyle.css    find html.apple_client-panel body { and edit properties   Now I actually want to go further and make the entire popup area bigger - little wider and little taller. How can I do that?


I've tried every suggestion I could find on Apple forums. Deleted .plist files, removed message caches, reset passwords, coordinated sign on/offs between my iPhone and my Macs, reset iPhone and reinstalled Mavericks on my Macbook Air. All pointless exercises.   I suspect it all started because I jailbroke my iPhone using Pangu. It may or may not have been the culprit, but my problems started a couple of days after I did it. All my phone conversations went green and stopped synchronizing with Messages apps on my Macs. Trying to send a new message from Macs would result in either "Your message could not be sent" error with a warning icon next to it, or:     XXX is not registered with iMessage.   So I restored my iPhone to factory defaults using iTunes. That didn't help immediately, but in a day or two, my conversations with other iPhone users went blue. So I am happy that works.  So now I sacrificed my Macbook Air to try and make messages work on it. I reinstalled Mavericks several times, each time trying different approaches: not immediately signing into iCloud, not associating an iCloud profile with login profile, etc. Nothing helps. I launch Messages app, it asks me to sign in (and I do, successfully), and then nothing goes through.   Sending messages to myself also works inconsistently. Yesterday, whatever I sent to myself (using phone number) would appear delivered to the same window, but not on my phone. Today I get "... not registered with iMessage" error.


After 2 years of amateur photo, buy a new body or a great lens?

Two years ago I bought my first DSLR. Since then I have bought and inherited some lenses. What should I buy next, a better body or more lenses? I enjoy photography but I do it fewer than I'd like (not enough time). I am not planning on selling photos nor services, just doin' it for fun.  This is all my equipment:   Nikon D60 Kit lens 18-55mm f/3.5-5.6 VR      Filters: Circular Polarizer and ND-400 Very crappy tripod, before any body or lens I will buy a better tripod.   As you may have noticed I've inherited some pretty old lenses from my father (also a great old film camera, but I don't use it). I use them on full manual mode as  implies on a similar case.  So my question is, should I invest in a new body or still add some more lenses? Which body? Does it make sense for me to go for a full-frame body (I guess that no)? Which lenses would you recommend to add to my equipment? and the more important question: Should I buy first a new body or a new lens?


Risograph Printing: Separation for Duotone Print

I am preparing my first print project to be realised with a Risograph. In the process, I have come across multiple recommendations to consider a duotone print as an effective way to print images/photos. There is an example to be found here:   The website suggests a separation of the image into two layers and the subsequent printing of each layer with a different color. I am not sure how this separation of colors is done and would like to know. I know of the Duotone Mode in Photoshop but this is yielding a different result for me.   Do I have to select the areas which are supposed to be printed in a certain color by hand? That does not seem to be the case to me, as the images in the example look more like individual channels (like when separating an image into the separate Red, Green or Blue channel of RGB), each having been converted to a separate greyscale-image.  Can someone help me out and explain this separation process to me?  Here are the images which go along this explanation:    Printed Duotone Image:    Orange Layer:    Green Layer:    Here's one of the images I would like to print in duotone with the Risograph (all other images are somewhat similar) :


In PSTricks, we can toggle the grids easily by showgrid=[false/true]. How to do it in TikZ? Doing as follows is tedious.    \documentclass{minimal} \usepackage{tikz}  \begin{document}   \tikzpicture  \draw[gray,very thin] (-4,-2) grid (4,2); \foreach \x in {-4,...,4}   \draw[red] (\x,-1.9) -- (\x,-2.1) node [below] {\x};   \foreach \y in {-2,...,2}   \draw[red] (-3.9,\y) -- (-4.1,\y) node [right] {\y};  \draw (0,0) circle (2);   \endtikzpicture    \end{document}   Is there the easiest way to toggle (show/hide) navigational grids in TikZ?  Edit  The navigation needs not only the grids but also the labeling numbers.


This is really bothering me for a long time, because the math is easy to do, but it's still unintuitive for me.  I understand the "law of the lever" and I can do the math and use the torques, or conservation of energy. or whatever... And I can see that a lever can amplify a force you apply to it  if you apply a force on the longer side of the beam.  If I were to look at the molecular lever and see what actually happens when I push on the lever, and I give acceleration to the molecules, how does it actually happen that more force is transmitted to the other side?  Thank you all  p.s I'm looking just for an explanation in terms of forces and acceleration, it's clear to me how to do this in terms of energy or torques


Looking for a story I read back in the late 60s, it starts on a troop ship returning to the US post-1945. The two characters are discussing the war and one shares a secret, he cannot die. He was born in the middle ages and was injured on a medieval battle field where a monk healed him and since then he has not died.


I have a VB background and I'm converting to C# for my new job.  I'm also trying to get better at .NET in general.  I've seen the keyword "T" used a lot in samples people post.  What does the "T" mean in C#?  For example:  public class SomeBase<T> where T : SomeBase<T>, new()   What does T do? Why would I want to use it?


How do you free up Disk Space on a Windows 7 OS?

I've downloaded the sqlexprwt_x64_enu.exe file which was around 700mb and I'm trying to open up the file, but I keep getting the error message of "Unable to find a volume with enough disk space for file extraction".  I've been able to use the disk Cleanup Property to help gain extra hard disk space, but I only have 1.35GB left on my windows 7 partition. I'm unsure which files I can delete to gain more room.  Any tips or suggestions are appreciated.


Select records using PDO with where clause in PHP

dbaccess.php file have below code.  <?php    Class Connection {    private  $server = "mysql:host=localhost;dbname=cloudways";    private  $user = "root";    private  $pass = "";    private $options  = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,PDO::ATTR_DEFAULT_FETCH_MODE     => PDO::FETCH_ASSOC,);    protected $con;          public function openConnection()          {            try              {               $this->con = new PDO($this->server, $this->user,$this->pass,$this->options);               return $this->con;               }            catch (PDOException $e)              {                  echo "There is some problem in connection: " . $e->getMessage();              }          }     public function closeConnection() {     $this->con = null;    }  } ?>   I have been trying to select records from my table with LIKE operator using below code.  <?php    include_once 'dbaccess.php';  $vaddr   = $_POST['addr'];  $database = new Connection(); $db = $database->openConnection();  $statement = $db->prepare("SELECT  address,                                    studentno,                                     deptno                          FROM       student                         WHERE      address  like :vaddr");  $statement->execute(array(':vaddr' => $vaddr));             while ($row = $statement->fetch(PDO::FETCH_ASSOC))      {         $vaddr = $row['address'];         $type = $row['type'];         echo "$vaddr has the type $type<br>";     }  ?>;   If anyone can let me know how this works with PDO prepare statement. Connection is proper and it gets connected successfully. The issue is with the way I wrote this code.


I'm using Drupal 8.  What I'm trying to do is:   Access the active node From the node get the value of field_test and assign it to a variable Pass the variable to the drupalSettings function and subsequently to a custom module 'mycustommodule' that triggers an alert   In my content type, I created a field_test field, which is the field I reference in my code. The block is placed on a page of this content type.  This is the code I am using.  mycustomblock.libraries.yml  custom:   version: 1.x   js:     js/custom.js: {}   dependencies:     - core/jquery     - core/drupalSettings   MyCustomBlock.php  <?php /**  * @file  *  */  namespace Drupal\mycustomblock\Plugin\Block; use Drupal\Core\Block\BlockBase;  /**  * Creates a 'Foobar' Block  *  * @Block(  * id = "block_mycustomblock",  * admin_label = @Translation("MyCustomBlock"),  * category = @Translation("Blocks")  * )  */ class MyCustomBlock extends BlockBase {   /**    * {@inheritdoc}    */    public function build() {    // get the variable from field_test   if ($node = \Drupal::routeMatch()->getParameter('node')) {       $test = $node->field_test->value;       $variables['#attached']['library'][] = 'mycustomblock/custom';        $build['#attached']['drupalSettings']['mycustomblock']['test'] = $test;     } }   custom.js  (function ($, Drupal, drupalSettings) {   var testMe = Drupal.settings.mycustomblock.test;   alert(testMe); )(jQuery, drupalSettings);   How can I tell if the JavaScript file is being loaded from the block? I checked in the inspector, and do not see it being loaded when the page with the block on it loads.  Furthermore, how can I properly access the field value and pass it to JavaScript?


Does putting a key in a capsule mean you can hack more?

If I put a portal key inside a capsule, can I keyfarm without dropping it, or does having it in there still count as inventory and prevent me from getting more?


Evaluating the log gamma integral $\int_{0}^{z} \log \Gamma (x) \, \mathrm dx$ in terms of the Hurwitz zeta function

One way to evaluate $ \displaystyle\int_{0}^{z} \log \Gamma(x)  \,  \mathrm  dx $ is in terms of the .  $$ \int_{0}^{z} \log \Gamma(x)  \,  \mathrm  dx = \frac{z}{2}  \log (2 \pi) + \frac{z(1-z)}{2} +  z \log \Gamma(z) - \log G(z+1)$$  Another way is in terms of the .  $$ \int_{0}^{z} \log \Gamma(x)  \,  \mathrm dx = \frac{z}{2} \log(2 \pi) + \frac{z(1-z)}{2} - \zeta^{'}(-1) + \zeta^{'}(-1,z)$$  I've been trying to prove the latter so that I can prove $$\log G(z+1) - z \log \Gamma(z) = \zeta'(-1) - \zeta'(-1,z) .$$  My starting point is the  $$ \sum_{k=2}^{\infty} \zeta(k,a) x^{k-1} = \psi(a) - \psi(a-x) .$$  Integrating both sides, I get $$ \sum_{k=2}^{\infty} \frac{\zeta(k,a)}{k} x^{k} = \psi(a) x + \log \Gamma(a-x) - \log \Gamma(a),$$  which implies   $$ \sum_{k=2}^{\infty} (-1)^{k} \frac{\zeta(k,1)}{k} x^{k} = \gamma x + \log \Gamma(x+1) . $$   Then rearranging and integrating both sides from $0$ to $z$, I get  $$ \int_{0}^{z} \log \Gamma(x+1) \,  \mathrm dx = \int_{0}^{z} \log x \  \mathrm dx + \int_{0}^{z} \log \Gamma(x) \,  \mathrm dx   = - \frac{\gamma z^{2}}{2} + \sum_{k=2}^{\infty} (-1)^{k} \frac{\zeta(k,1)}{k(k+1)} z^{k+1} .$$  And then using the integral representation $$ \zeta(s,a) = \frac{1}{\Gamma(s)} \int_{0}^{\infty} \frac{t^{s-1} e^{-at}}{1-e^{-t}} \, \mathrm dt, $$ I get  $$ \int_{0}^{z} \log \Gamma(x) \,  \mathrm dx = z- z \log z  - \frac{\gamma z^{2}}{2} + \sum_{k=2}^{\infty} (-1)^{k} \frac{z^{k+1}}{k(k+1)} \frac{1}{\Gamma(k)} \int_{0}^{\infty} \frac{t^{k-1} e^{-t}}{1-e^{-t}} \, \mathrm dt $$  $$ = z - \log z - \frac{\gamma z^{2}}{2} + z \int_{0}^{\infty} \frac{e^{-t}}{1-e^{-t}} \frac{1}{t} \sum_{k=2}^{\infty} \frac{(-1)^{k}}{k+1} \frac{(zt)^{k}}{k!} \, \mathrm dt $$   $$ = z - z \log z - \frac{\gamma z^{2}}{2}  + z \int_{0}^{\infty} \frac{e^{-t}}{1-e^{-t}}\frac{1}{t} \left( -\frac{e^{-zt}}{zt} - 1 + \frac{zt}{2} + \frac{1}{zt} \right) \, \mathrm dt$$   $$ = z - z \log z - \frac{\gamma z^{2}}{2} + \lim_{s \to 0^{+}} \Big[ - \int_{0}^{\infty} \frac{t^{s -2} e^{-(z+1)t}}{1-e^{-t}} \, \mathrm dt - z \int_{0}^{\infty} \frac{t^{s-1} e^{-t}}{1-e^{-t}} \, \mathrm dt $$ $$ + \frac{z^{2}}{2} \int_{0}^{\infty} \frac{t^{s} e^{-t}}{1-e^{-t}} \, \mathrm dt  + \int_{0}^{\infty} \frac{t^{s -2} e^{-t}}{1-e^{-t}} \, \mathrm dt \Big]$$  $$ = z - z \log z - \frac{\gamma z^{2}}{2} + \lim_{s \to 0^{+}} \Big[ - \Gamma(s-1) \zeta(s-1,z+1) -z \Gamma(s) \zeta(s) + \frac{z^{2}}{2} \Gamma(s+1) \zeta(s+1)$$ $$ + \Gamma(s-1) \zeta(s-1) \Big] .$$  Assuming I haven't made any mistakes up to this point, how do I evaluate that limit?


Create texture atlas from loaded textures - OpenGL LWJGL Java

In my program I have objects with different textures, that are in the same vbo. I cant have an array of samplers in my shaderprogram, so i have to use a texture atlas. I have seen some ways to make a texture atlas out of PNGs, but that would mean that I'll have to load those textures twice. Is there a way to put two textures together in one atlas? For example i have:  id = 1; width = 32; height = 32;   and   id = 2; width = 32 height = 32   I want something like this  int atlas = createTexture(t1.width + t2.width, t1.height + t2.height); glBindTexture(GL_TEXTURE_2D, atlas) //add(offset x, y, id) glAdd(0,0,t1.id); glAdd(t1.width, t1.height, t2.id);   I am not ooking for a texture packing algorithm! I need a way to create an atlas out of textures loaded to the GPU (OpenGL)


Random number using nextInt inclusive 5-15 [Java]

Im wondering how to generate a random number in Java inclusive between 5-15  I have   Random random = new Random(); int count = random.nextInt(10) + 5;


When I open my laptop today, wireless option had gone, everything was smooth till today. I don't have any idea what's happening. Ubuntu version: Distributor ID: Ubuntu Description:    Ubuntu 20.04.1 LTS Release:    20.04 Codename:   focal  Here is sudo lshw -C network output: *-network UNCLAIMED               description: Network controller        product: BCM43142 802.11b/g/n        vendor: Broadcom Inc. and subsidiaries        physical id: 0        bus info: pci@0000:02:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: memory:f0c00000-f0c07fff   *-network        description: Ethernet interface        product: RTL810xE PCI Express Fast Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 07        serial: 70:5a:0f:b3:23:0d        size: 100Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.8.0-34-generic duplex=full firmware=rtl8106e-1_0.0.1 06/29/12 ip=192.168.0.43 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:29 ioport:2000(size=256) memory:f0b00000-f0b00fff memory:f0800000-f0803fff   *-network        description: Ethernet interface        physical id: 2        logical name: docker0        serial: 02:42:75:48:40:ef        capabilities: ethernet physical        configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes


Check which statistics were used in query optimization

Is it possible to tell when statistics were last accessed by a query using T-SQL? I'm trying to ascertain what statistics are involved in a query, I know I can check the visual query plan but I wondered whether there was a table (or tables) with this information.


Can I visit other countries if I get deported from the US?

So, let's say I get deported from the US for doing something illegal (could be a crime, could be anything) and the deportation document says I cannot enter for the next 10 years. Now, in these 10 years, can I visit other countries? Of course the logical answer is, "Yes, if the country you want to go to will admit you".  But, here's the tricky part, how hard does it become to get visas to other countries when you've been deported from the US? Will other countries' visa application ask me about my deportation or travel history (A question like "Have you ever been deported from any country, if yes, please list them" is highly probable")  Also, how will it impact my travel to the UK, Canada, Australia and New Zealand? I ask because US along with these countries is collectively called the "Five Eyes", a term that US Govt uses to list major English speaking nations of the world., not to forget they have strong ties and diplomatic relations with each other.


Password regex with OWASP special characters

I need password that includes special characters that are with OWASP standard   pattern="^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$"   Currently my password conditions are:   Length of at least 8 characters long Contain at least 1 lowercase letter [az] Contain at least 1 capital letter [AZ],  Contain at least 1 number [0-9] Contain at least 1 special character (currently only #?! @ $% ^ & * -)   When I try to add more special characters (all 33 according to OWASP) I always get some problems (bad verification or not working)


Not able to search a particular string using regular expression in mongodb

I am using node with mongodb and trying to search a particular string.In db there is a string named "xyz limited (xy)" . if i am using the below regular expression- .*+xyz limited (xy)+.* i am unable to find any match but if i use  .*+xyz limited+.* I got one result. Even if i am searching like .*+(xy)+.* I got one result but for entire string "xyz limited (xy)" no match found.


How to add class to image tag in Twig template?

How can I add a CSS class to an <img> tag by using a template file if output looks like this:  <!-- BEGIN OUTPUT from 'themes/contrib/bootstrap/templates/system/image.html.twig' --> <img class="media__image media__element b-lazy b-responsive img-responsive b-loaded" src="/sites/default/files/styles/media_image/public/2018-03/Trainer-Norbert-Sauer-auf-der-Rennbahn-Wambel-Am-Donnerstag-249903.jpg?h=c913b3c6&amp;itok=sENPOWtc" alt="Trainer Norbert Sauer auf der Rennbahn Wambel"> <!-- END OUTPUT from 'themes/contrib/bootstrap/templates/system/image.html.twig' -->


I'd like to use this connector in my design but couldn't find what it's called. Anyone know?


"More StackExchange communities" list, "Русский язык"

If you click the Stack Exchange site drop-down menu:        and look closely at the  menu item for "Русский язык", you'll see the following:      .   At the moment it is read as     "For лингвистов, этимологов, и энтузиастов русского языка"   Just two notes:   It is better to put "Для" instead of "For". According to rules, the comma before "и" is an error.   So, the whole line should be written as:      "Для лингвистов, этимологов и энтузиастов русского языка"


"... that had stopped half an hour ago" VS " ... that had stopped half an hour before/earlier"

This is a sentence I read:       The engines that had stopped half an hour ago were in action again.   In my opinion, ago in the above sentence is used incorrectly. It should be replaced by before or earlier:     The engines that had stopped half an hour before were in action again.   The engines that had stopped half an hour earlier were in action again.   I think ago can only used in the past tense rather than past perfect tense.  Here is a correct sentence, making the correct use of ago as follows:     The engines that stopped half an hour ago are in action again.   Is this thinking correct?


I want to travel USA on B2 for vacation but I have f1 visa

I want to visit USA on tourist visa but I have a f1 visa which was stamped in dec 2015.Due to some problems I didn't travel for masters.Is it still valid,Can I go on other visa even having F1 visa..!!Should I go for B2 visa interview.How can I proceed to get Tourist visa...  Please help me out..!!!


I have two versions of a black and white image and would like to remove the background in both. I used Trace Bitmap in Inkscape with the settings below - the white background was no problem, but in the black image it keeps removing the white part that I want to keep. Any ideas how I can switch this, or another way to remove the black background and keep the white logo? Thanks!


How to use /dev/fb0 as a console from userspace, or output text to it

So I have a Palm Pre (original P100EWW) model that I enabled developer mode on, and installed a Debian Squeeze chroot.  Works great.  I have plans to use this for ANYTHING (bittorrent peer, web server) but a phone.  I noticed if I do a cat /dev/urandom > /dev/fb0 it actually writes random pixels to the screen until a No space left on device error is generated.  Awesome, now I can use the display.  So what kind of utilites are there that will either A) let me use /dev/fb0 as a console I can output text to or B) render text on /dev/fb0 from the command line.  I don't know about recompiling the kernel for this yet (I'd love to eventually strip WebOS off entirely and turn this into a minimal ARM server) so userspace tools if they exist is what I'm asking about.  Also would prefer to render directly to /dev/fb0 and not use X.


Is it now possible to visit the UK for tourism on an exsiting multiple entry business visa?

I am a British citizen residing in South Africa. In June I will be visiting family in the UK accompanied by my South African wife who holds a valid C Business visa (expiring in 2018). Under the new regulations, can my wife use her existing visa to enter the UK or must she apply for a new visitor visa?


Can a creature attack another creature's shield or weapon?

Can a creature (a PC or an NPC) attack another creature's shield or weapon?


Can I pickle a python dictionary into a sqlite3 text field?

Any gotchas I should be aware of?  Can I store it in a text field, or do I need to use a blob? (I'm not overly familiar with either pickle or sqlite, so I wanted to make sure I'm barking up the right tree with some of my high-level design ideas.)


Adobe Flash Player.app file alone, without being embedded into a .dmg package

where can I download the Adobe Flash Player.app file NOT as a .dmg Installer package to put into the Applications folder. I have done so with other files, but cannot seem to find the executable Flash Player file to put into the Applications folder. I just want the .app file.


How to check if .NET Framework is installed?

My mission is to check if .NET is installed (and terminate the application if not).  I have to check for the following (we have some application variants)   FW 3.5 FW 3.5 SP1 FW 4.0 FW 4.5   I guess I have to check if some folder exists - how do I know its name?


What is a hostname versus a computer name versus a subdomain versus www?

I was searching for understanding what is the “www” at the beginning of so many web addresses in the Internet. I read in somewhere that “www” is called “hostname”.  The world “hostname” made me go a step further in searching, I read so many threads and articles but I am still confused about that.  So I decided to ask some related questions here to make it clear and I need solid and comprehensive answers please.   “hostname” vs. computer name: Is the “hostname” the same as the computer name, if its true, suppose that my computer is a web server and my computer name is “Robin” so is it correct to conclude that a hypothetical web site would be something like: Robin.websitename.com? “hostname” vs. subdomain: If “mail” in mail.google.com and “developers” in developers.google.com are called subdomains why is en in en.wikipedia.org called ? What is the difference between host name and subdomain? What is the relation between host name and fully qualified domain name (FQDN)? What is the “www” in URL of some web sites? As you know Google’s web address is www.google.com but we have many web sites without “www” for example: superuser.com and en.wikipedia.org. I read in this  that “www” is just a declarative thing not more and is not related to the concept of hostname. Do you verify that?


I co-signed a car but I am listed as the primary account holder for the loan

I co-signed a car and want to be removed. My first thing is that I am listed as the primary account holder for the loan, but I signed the papers as the co-signer/co-buyer. If to fix the situation as being the primary account holder means refinancing needs to be done, what can the primary buyer do to be refinanced if she needed my credit score in able to get the car.  Also, what can I do if she is not able to be refinanced?


Prove that the map $f:A\rightarrow B$ is injective if and only if $f$ has a left inverse.

The map $f:A\rightarrow B$ is injective if and only if $f$ has a left inverse. Proof (only the first implication). If $f$ is injective, then $f(a_1) = f(a_2) \implies a_1=a_2$. Assume that $f$ does not have a left inverse, then there exists no function $g:B\rightarrow A$ such that $g\circ f:A\rightarrow A$ gives the identity map on $A$ ($g\circ f(a_n)=a_n$). Now assume there is an $f(a_1)\in B = f(a_2) \in B$. Because there is no function such that $g\circ f(a_n)=a_n$, there is no mapping back to $a_1$ or $a_2$, but there must be one because $f$ is injective. QED Now, I don't think my proof is correct because it makes the assumption that there is no mapping back to $a_1$ or $a_2$.


Is there a tool to find all nonstop flights to one destination?

Assume that you want to go to Oslo. You want to aggregate all airports that are 100 kilometres from Oslo. This includes at least Gardemoen, Rygge and some others probably.  Is there any service that tracks all flights that go there?  Similarly for any other city.


I just ran a python script in blender.  However it gave me an errror:  Python script failed, check the message in the system console.     I've searched online but i can't find the system console. I have two terminals open to the blender file already but it did not show any error message.     I am using Ubuntu 19, with Blender 2,80


How exactly does the Dispel Magic spell work with multiple effects?

The description of the  spell states (emphasis mine):  Choose one creature, object, or magical effect within range. Any spell of 3rd level or lower on the target ends. For each spell of 4th level or higher on the target, make an ability check using your spellcasting ability. The DC equals 10 + the spell’s level. On a successful check, the spell ends.  There has been a lot of debate in my D&D group about the specific wording of Dispel Magic, and it has not  been not resolved by the D&D . Can Dispel Magic remove multiple magical effects on a single target? The primary issue revolves around the interpretation of the word "any" here. In English, the word "any" could mean "any one" or "any of your choice". I have seen a couple of forum posts suggesting that if three mages each cast Haste on a single target, and you use Dispel Magic on that target, then it will only remove one instance of Haste. This seems to run counter to the next sentence:  For each spell of 4th level or higher on the target, [...]  The word "each" is not ambiguous in English; however, there is an alternate interpretation of this sentence which I included in another question:


Difference between INNER JOIN and , COMMA

I get the same result in both queries below and same execution plan, any difference? or it is just how I prefer to write my query?  SELECT PS.StepID,PR.ProgramID FROM ProgramSteps PS, Programs PR WHERE PS.ProgramID = PR.ProgramID  SELECT PS.StepID,PR.ProgramID FROM ProgramSteps PS INNER JOIN Programs PR ON PS.ProgramID = PR.ProgramID


How implement method logout from another class?

I read a lot about this problem but i can not find answer for my case.  I have class with Selenium method   public class PrzesylkiPrzygotowane implements Tools{ private WebDriver driver; private StringBuffer verificationErrors = new StringBuffer();  //Override public Narzedzia getNarzedzia() {     return new Narzedzia();     }  public void setUp() throws Exception {   StartEN start = new StartEN(GetParams.getUser(),             GetParams.getPassword());     this.driver = start.getDriver(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); }  @Test public void testPrzesylkiPrzygotowane() throws Exception { setUp(); driver.findElement(By.cssSelector("a[href*='?action=GetZbior&arg1=220170'")).click(); driver.findElement(By.cssSelector("button.widgetButton")).click(); driver.findElement(By.id("nazwa")).clear(); Thread.sleep(1000); driver.findElement(By.id("nazwa")).sendKeys("Mar"); driver.findElement(By.xpath("//body[@id='Body']/div[4]/ul/li/strong[3]")).click(); driver.findElement(By.id("submit_button")).click(); Thread.sleep(1000); //NPE throw here     getNarzedzia().logout(); }   ... rest code.  I made interface for this class  public interface Tools { public Narzedzia getNarzedzia(); }   "Narzedzia" is a class with group of methods which i use like tools for aplication.   public class Narzedzia{  public WebDriver driver; boolean acceptNextAlert = true;  public void logout() throws InterruptedException{       //Ustawienia driv = new Ustawienia();       driver.findElement(By.linkText("Wyloguj")).click();       Thread.sleep(1000);       assertTrue(closeAlertAndGetItsText(driver).matches("^Czy na pewno chcesz wyjść z Elektronicznego Nadawcy[\\s\\S] Sprawdź czy wszystkie dane zostały przekazane do placówki\\.$"));       driver.close();   }   public String closeAlertAndGetItsText(WebDriver driv) {         try {           Alert alert = driv.switchTo().alert();           String alertText = alert.getText();           if (acceptNextAlert) {             alert.accept();           } else {             alert.dismiss();           }           return alertText;         } finally {           acceptNextAlert = true;         }       }   ...rest code  When i run test rest od method in "Narzedzia" works fine but logout throw error: java.lang.NullPointerException


I've been trying to run a jar file - let's call it test.jar - that uses the Sybase jconn3.jar on a Unix system.  I have created a MANIFEST.MF file that has the following:  Class-Path: $SYBASE/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar   This gives a ClassNotFoundError. $SYBASE is the system variable that points to /opt/sybase13; I've also tried the following:  Class-Path: /opt/sybase13/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar   and  Class-Path: opt/sybase13/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar   However, if I copy the jconn3.jar file from the $SYBASE/jConnect-6_0/classes to the same directory as test.jar, and update my MANIFEST.MF to read as follows:  Class-Path: jconn3.jar commons-net-1.3.0.jar   The application runs as expected.  Now, I've been able to verify the jconn3.jar file works by copying it locally; my MANIFEST.MF file includes the path to my Main-Class, so that's not at issue here.  What do you think could be the problem? I've been looking at this thing for too long now. Thanks!


In the Silmarillion, an elf named Glorfindel is killed in a duel with a Balrog at the battle for Gondolin.  (He kills the Balrog as well.)  Then in The Fellowship of the Ring, an elf named Glorfindel meets Frodo, Sam, Merry, Pippin and Aragorn and helps them get a wounded Frodo to Rivendell. This would be the only time that Tolkien uses the same name for two different elves.  Is there any connection between these two elves?


Run Time Error is causing program to terminate

When I build below code in Microsoft Visual Studio, it build successfully, but the execution is failed.The command console window tells the error is exist and the program is stopped.  #include <stdlib.h> #include <stdio.h> #include <string.h>  int is_palindrome(char *str) {     int len;     int halflen;     len = strlen(str);      if (len% 2 == 0)         halflen = len / 2;     else halflen = (len - 1)/2;     for (int i=0; i < len; i++)     {         if ((str[i] <= 90) && (str[i] >= 65))         {             str[i] = str[i] + 32;         }     }      for (int j=0; j < halflen; j++)     {         printf("str[j] = %c and str[len-1-j] = %c \n", str[j], str[len - 1 - j]);         if (str[j] != str[len-1-j])         {             return 0;         }            }     printf("str is: %s\n", str);     return 1; }  #ifndef RunTests int main() {     char *str = "deleveled";     printf("%d", is_palindrome(str)); } #endif   I find the problem is caused by below part. Can you tell why this part of code cause the execution error?      for (int i=0; i < len; i++)     {         if ((str[i] <= 90) && (str[i] >= 65))         {             str[i] = str[i] + 32;         }     }


How can I search for a file with fixed name length using ls?

In a directory, I have files like  lazer_100506 lazer_100707 lazer_091211 lazer_110103 lazer_100406_temp lazer_100622#delete   etc  How can I get a listing of only the first four files?  $ ls lazer_...... ls: lazer_......: No such file or directory $


Volume bounded by a sphere of radius $1$ in 4 dimensions

I want to express the volume enclosed by a hypersphere of radius $1$ with a quadruple integral, in four dimensions. I know that the equation of the sphere is $x^2 + y^2 + w^2 + v^2 \le 1$. However, I don't know how to proceed and I'm having trouble with the limits.  Note: I don't want to find the volume; I just need the starting point.


I would like to cite numerous references in beamer. Everything is Ok except the way beamer orders the references. It shows the references by the first names not by numbers which makes it harder to refer to the actual reference. References look like the following picture    however in the presentation, they are numbered such as [2], [4]. With many references, it is difficult to count a certain reference. My question is Is there a way to show the number beside each reference?  \begin{frame}{Bibliography} \bibliographystyle{IEEEtran} \bibliography{references} \end{frame}


What is spin as it relates to subatomic particles?

I often hear about subatomic particles having a property called "spin" but also that it doesn't actually relate to spinning about an axis like you would think. Which particles have spin? What does spin mean if not an actual spinning motion?


Asking a question that was already asked but answered?

I want to ask exactly  question but it since it's already there I can't ask it again. I know commenting on it doesn't bump it, but I want to make it visible again, how can this be done?


I need to find all the solutions to the equation $$\sin x=ax$$ where $a \in \mathbb{R}$.   If $\vert a \vert \geq 1$, I know that the only solution is $x=0$. My problem is when $\vert a \vert \leq 1$ because the graph of $ax$ intersects the graph of $\sin x$ in more points than the origin. I tried with Lagrange multipliers but I don't think that is the correct way. Any suggestions?


Vertical space around subequations environment

("" refers to spacing between equation environments within a subequations environment. This question refers to spacing between two different subequations environments.)  I am using fleqn so that a number of sets of subequations are all aligned on the left side. The space that exists above and below each set of subequations is bigger than I need it to be. And when two sets appear back to back (picture below), this results in a very large vertical space in between.  Is there any (simple) solution to reduce this vertical space before/after every subequations (+align) environment?  \documentclass[11pt]{book} \usepackage[fleqn]{amsmath} \usepackage[utf8]{inputenc} \begin{document}  \begin{subequations}\begin{align} x = & r_M\cos\beta\cos\alpha        \\ y = & r_M\cos\beta\sin\alpha    \\ z = & r_M\sin\beta \end{align}\end{subequations} \begin{subequations}\begin{align} v_{p_x} = & -v_M\sin\gamma\sin\beta\cos\alpha - v_M\cos\gamma\sin\alpha \\ v_{p_y} = & -v_M\sin\gamma\sin\beta\sin\alpha + v_M\cos\gamma\cos\alpha \\ v_{p_z} = & v_M\cos\beta\sin\gamma \end{align}\end{subequations}  \end{document}


Why is it that sometimes Chrome displays something other than 'Secure' on https websites?

Check out these 2 links and look at what is in the search bar on the very left.       The first link says "DigiCert, Inc [US]" whereas the second link just says "Secure"  Is there a reason for this? I had a look at the certificates sent by each and the only difference I could see was that the DigiCert certificate had a more detailed Subject than wordfence. Does anyone know why this is happening and whether one is more secure than the other?


Is it possible to modify a code at runtime in c#?

I want to create a smart calculator....other than user defined routines to solve  maths equations ...like  private int  add(int num1,int num2) {    return x+y; }   //in this case the user should enter two numbers and press the add key(if using GUI)  but i want to tell my calculator how to handle the calculation at run-time. rather than having a fixed  number of routines ,, i would like  to add user defined functions...or routines at runtime any help would be appreciated ...


The command sudo apt-get update returns    E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)   as output. Please help me to solve this issue.  Here are lines 53 and 54 in the source list:  deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse deb http://archive.canonical.com/lucid partner


Proving that $k[x,y,z]/(xz - (y^2 + 1))$ is a normal ring.

Let $k$ be a field and $k[x,y,z]$ be the polynomial ring in indeterminates $x,y,z$. Define the quotient ring $$R = k[x,y,z]/(xz - (y^2 + 1)).$$ I want to prove that $R$ is a normal ring. My definition of a normal ring is: A ring $R$ is a normal ring if $R$ is an integral domain that is integrally closed in $\operatorname{frac}(R).$ I think I should show that $R = k(x)[y] \cap k(z)[y]$ in $\operatorname{frac}(R)$, but how can I do this? Also,I know how to show that a polynomial ring say $k[x],$ in one determinant (where $k$ is a field) is a normal ring, but I do not know how to prove that this quotient ring $R$ is a normal ring. Also, it is not very clear to me what will be the correct field of fraction of this ring. Any help will be greatly appreciated!


SSH welcome message on 17.04 shows notice about 12.04

I just did a do-release-upgrade going from Ubuntu 16.04 to 17.04. However, now when I login via SSH I have the following message   Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-20-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server  0 packages can be updated. 0 updates are security updates.   My question is, how can I remove the   Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server   it wasn't there prior the release-upgrade  I checked and I am on Zesty  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 17.04 Release:    17.04 Codename:   zesty   My question is not, how can I remove this message, this I found. My question is more, is there a reason why this appears after a release-upgrade? Is this message something generic not taking into consideration the current version of Ubuntu? Or maybe my system is not updated properly?


Statement of the first law of motion and definition of force

Newton's first law of motion states,"Every body continues in its state of rest, or of uniform motion in a right line, unless it is compelled to change that state by forces impressed upon it."  Again definition IV of Principia Mathematica (before stating the laws of motion) states that," An impressed force is an action exerted upon a body, in order to change its state, either of rest, or of uniform motion in a right line."  Is there any difference between these two statements?. Because if there is no external force, the state of motion will not change.   And I also don't understand why the statement of first law implies the assumption of existence of inertial frames.


Is there an equivalent of computation of physical processes in nature?

I was watching a waterfall in the Austrian Alps. There were thousands of water droplets falling down, splattering on the stones below. I thought - how does nature find out so quickly where each droplet of water should go? To find out what happens to a falling droplet of water, one can use the laws of motion and calculate the trajectory. To calculate, one needs some amount of time, some machine (the brain, computer) and some energy to feed the machine. Does it make sense to ask what is the equivalent of this computation in nature? How does nature find out so quickly how things should move? More generally, to find out how anything should happen? Where is the "calculation" in nature? There's no room or energy for a machine in the particles that make up things.


Let $A,B \in M_2(\mathbb{R})$ be two matrices such that $(A-B)^2=O_2$.      Prove $\det(A^2 - B^2)=(\det(A) - \det(B))^2$.   OBS. $O_2$ is the zero matrix    Let $D=A-B$ then $D^2=O_2$ therefore, using Cayley Hamilton theorem, we get $tr(D)=\det(D)=0$. It follows $tr(A)=tr(B)=t$ and, from here, $A^2 -B^2=t(A-B) + (\det(A) - \det(B))I_2$  This is all I could get.  UPDATE  The matrices are from $M_2(\mathbb{R})$. Sorry for misleading you.


Express this sum of radicals as an integer?

I have read somewhere that the radical $\sqrt[3]{2+\sqrt{5}}+\sqrt[3]{2-\sqrt{5}}=1$ and I don't understand it. How do you solve this(when the RHS is unknown)?


Why is there nothing in the Materials tab?

Where'd everything go? I'm just starting with Blender and I thought I was doing everything as in tutorial i watched yesterday, i mean there are like three steps, but clearly something's wrong.


I was using Windows 10 . Yesterday I have tried installing Ubuntu 14.04 LTS and the Installation was successful. I have installed Ubuntu in Seperate Partition. I can boot in to Ubuntu, but there is no option for booting in to Windows.


"Stay home" or "stay at home" – which is correct and why?

Stay home. Stay at home.  When "home" functions as an adverb, it can modify the verb "stay". There are other examples, such as "go home",but there is no expression:  Go to home.  So I wonder which one is correct.


How can I delete files older then 30 days

forfiles -p "C:\what\ever" -s -m *.* /D -<number of days> /C "cmd /c del @path"   I am using the above set to 90 days.  It does not want to delete files previous unless set to 30 days.  Not sure what I am missing.


I'm new to Blender and I am making that famous doughnut. I seem to have accidentally made the icing layer transparent, meaning that it doesn't show up in Edit Mode and I cannot sculpt in Sculpt Mode. Instead, it ends up altering the doughnut underneath. How do I get my icing back?


Why doesn't Stdev take absolute value of x- xbar?

Newbie here. Curious why standard deviation subtracts x from xbar and then ^2's them instead of skipping hte squaring/square-rooting and instead takes the ABS value of each x-xbar Thanks mods


Problem connecting laptop (Ubuntu 14.04) to WiFi network

Okay, so I recently downloaded Ubuntu and installed it to run alongside Windows 7. When I started Ubuntu, I could not find my WiFi network in the network list. My ISP (Internet Service Provider) is Iburst (now Vox Telecom). It's been maybe two months now and I still can't find my WiFi network. My PC is rather new, and I later installed the exact same Ubuntu onto another, older laptop. It works just fine and it can find my WiFi network... What could be wrong?  My output when I run: lspci -nnk | grep 0280 -A2  05:00:0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01) Subsystem: Broadcom Corporation Device [14e4:0510] Kernel driver in use: bcma-pci-bridge   I tried the answers in , that @chili555 suggested but none of them worked. I tried everything, installed both the package in the list, and the one for after September 2016... I still can't find my WiFi network in the list...


What is the use of hats in Stack Exchange?

I want to know what the use of hats in Stack Exchange is.


I'd like to be able to show a keyboard button press in Google Docs, but it doesn't appear to have a way to use <kbd>, like so: Ctrl+x.   Is there any way to accomplish this in Docs?   If not, what would you suggest I do instead?


Definition of "definition": use iff or if?

There are topics with the same name but my question is not as abstract as in those.  My question is as follows: taken a generic definition like $x\;\mathbf{ is\; something}$ if $y$ it could be written like $x\;\mathbf{ is\; something}\Leftarrow y$ so everytime you have $y$ then you can deduce $x\;\mathbf{ is\; something}$. But if you start with $x\;\mathbf{ is\; something}$ as an axiom you could not deduce $y$ which should be deducible. Like if you have $x\;\mathbf{ is\; even}\Leftarrow x \equiv 0 \pmod{2}$ you SHOULD have $x \equiv 0 \pmod{2}$ starting by $x\;\mathbf{is\;even}$. That should be resolved if you say by saying $x\;\mathbf{is\;even}$ iff $x\equiv0\pmod{2}$ instead of if (so you would have $\Leftrightarrow$ instead of $\Leftarrow$) but I definitely feel that I'm missing something...  Can you help me? :D  Sorry for my bad English and if my question was stupid.


Show that $\frac{x(x-1) \dots (x-n+1)}{n!} \in \mathbb{Z}$ with $x \in \mathbb{Z}$

Problem: Let polynomial $Q_n (x) = \frac{x(x-1) \dots (x-n+1)}{n!} \in R[x]$ for some ring $R$. Show that $\forall t \in \mathbb{Z}, Q_n (t) \in \mathbb{Z}$.   My solution: For each $t \in \mathbb{Z}$, we have $t-1, t-2, \dots, t-n+1 \in \mathbb{Z}$, so $\frac{t(t-1) \dots (t-n+1)}{n!} \in \mathbb{Z}$ and $Q_n (t) \in \mathbb{Z}$.  Please check my solution. Thank all!


what MS options are available for a student interested in computer vision and image processing?

I have my bachelors in electronics and instrumentation and a research experience in the field of image processing and computer vision and some publications in the same.Can i go for a MS in computer science, robotics or signal processing. Also tell me some other Ms options available for me.Thanks in advance.


Unexpected output for this following code

#include <stdio.h> #include <stdlib.h> #include <string.h>   static int a1(int *a) {     int middleItem;     int midIndex;     if (a == NULL || sizeof(a) % 2 == 0)         return 0;     midIndex = sizeof(a) / 2 ;     middleItem = a[midIndex];     for (int i=0; i<sizeof(a); i++)         {             if (i != midIndex && middleItem >= a[i])             return 0;         }         return 1;  }  int main() {     int a[] = {9};     for (int i=0; i<sizeof(a); i++)     {         a1(a[i]);     }     return 0; }  An array with an odd number of elements is said to be centered if all elements (except the middle one) are strictly greater than the value of the middle element. Note that only arrays with an odd number of elements have a middle element. output: returns 1 if it is a centered array, otherwise, it returns 0.


I want to check if my text file contains data or not. If the file contains a data I want to read it. My problem is I don't know the right condition to write in the if statement. Hint: I tried to use the functions of fseek & ftell, but without any benefit. I want to know why this condition in the if statement doesn't work properly?      FILE *fptr;   if(ftell(fptr)!=0){   //check if the file is not empty.     if ( !( fptr = fopen( "saving.txt", "r" ))){         printf( "File could not be opened to retrieve your data from it.\n" );     }     else{         while ( !feof( fptr ) ){             fscanf( fptr, "%f\n", &p.burst_time );             AddProcess(&l,p.burst_time);         }         fclose( fptr );     }    }


How to check whether Data::Dumper is installed?

I am new to Perl. I have a Perl script which uses the  module. But on some systems the module isn't installed. So I need to check whether Data::Dumper is installed or not. How can I do that?


I know this has been dealt with extensively but I have an issue I can not find an answer for. I am trying to install the netflix desktop app and in the terminal after entering the last step "sudo apt-get install netflix-desktop" I get an error that says "unable to locate package netflix-desktop"  I would really appreciate some help, thanks,  John


How do I extract a double value from a string using regex.  import re  pattr = re.compile(???)     x = pattr.match("4.5")


Moves in serps after changing title and description - how long does it take?

I have a question. Some time ago I have changed my title and description of my site. The changes were visible in google after a short while - day or two (new titles visible). But now, after about two weeks my ranks dropped suddenly for most of my terms. And now I am wondering if it can be caused because of changes I made (titles/description) or it is rather something else?  My site has several years and it had stable ranks since 1 year+. It has good metrics and rather "good, quality" backlink profile. What is your opinion? Thank you in advance for any advices.


Dielectric liquid sucked up between two cylinders with a voltage difference

Consider problem 4.13 from Jackson's Electrodynamics book:     Two long, coaxial cylindrical conducting surfaces of radii $a$ and $b$ are lowered vertically into a liquid dielectric. If the liquid rises a distance $h$ between the electrodes when a potential difference $V$ is established between them, show that the susceptibility of the liquid is   $$\chi_e = \frac{(b^2 - a^2)\rho g h \ln(b/a)}{V^2}$$   where $\rho$ is the density of the liquid, $g$ is the acceleration due to gravity, and the susceptibility of air is neglected.   The implication is that gravity balances out the "pull" of the electric field. If the liquid rises, clearly the gravitational potential energy goes up. However, if a dielectric is placed in an electric field caused by constant voltages, the energy also goes up$^{[a]}$. Jackson explicitly states that the energy goes up.   Thus, they cannot balance each other and will not come to a stable equilibrium.  that I have seen equates the two potential energies. This does not make sense physically as the sum should be zero for equilibrium.  equates the forces, ignoring the fact that they are in the same direction. A  does the equilibrium part properly, but gets the negative of what Jackson has.  Am I missing something or is the principle that Jackson is trying to use in this question wrong?  $[a]$: Jackson writes $$\delta W_V = -\delta W_Q$$ where $\delta W_V$ is the energy change caused by introducing a dielectric in the presence of constant voltage, $\delta W_Q$ is the energy change caused by introducing a dielectric in the presence of constant charge. $\delta W_Q < 0$, as shown previously in the chapter. Jackson also explicitly states that the energy goes up when introducing a dielectric in the presence of constant voltage.


Why are there rings for Dwarves and Elves and Men, but not Hobbits or Orcs?

Simple: every other race in Middle Earth has rings, why do Hobbits and Orcs not?


Under what circomstances the sample standard error is likely to equal population standard deviation?

Does it make a difference if we assume that sample standard error for a very large sample-size equals population standatd deviation for a target population ?


I can log into my Pokemon Trainer Club account from my computer, but when I try the same credentials on my phone, it tells me it cannot authenticate. What can I do to get logged in?


Why are Canon DSLRs relatively more expensive than Nikon DSLRs?

When I  the Nikon D5500 and the Canon 760D, the Nikon is far better spec-wise, but the 760D is more expensive. Are there any specs that are unknown to me that are better in the Canon which makes the Canon more expensive?


Is it possible to add property columns to the display in a UIList?

For an add-on I'm working on, I followed  to create a simple UIList. It looks like this:  This works rather nicely, except that I'd like the PropertyGroup properties OpenRoof and Furnished (in red squares, above) to display their values in columns next to each object's name in the list (e.g., in the empty squared locations in my JPEG). Currently, I can only see/edit these properties' values by specifically selecting an object. I've looked through the Python API documentation for UIList but it was not clear to me if there is a way to do this.  Can the UIList display be altered to behave like I've described?


Yesterday, I was browsing the mobile Stack Overflow site. I noticed one thing: the textareas where you write your comments/answers are very buggy. I'm using a Samsung Galaxy S2, with the standard Android browser (Android version 4.1.2). There are a number of things that aren't working when typing your comment/answer.   Automatic spacing with Swype is disabled (however this might be because of Swype, not the site). Text navigation buttons (step left, step right, select text, copy text etc.) doesn't work with the on-screen keyboard, and selecting text by holding your finger over text is extremely difficult. When you paste something it always seems to be pasted at the top of your text, no matter where you try to paste it. Replying to another comment ("@Example User") does not show suggested people to reply to, like the full site does.   Is there anything I can do to solve these issues/bugs, or is it in the hands of Stack Overflow itself, and if so, should it be looked into?  Edit: I was using the mobile version of the site when noticing these bugs.


DNS: Is it valid to have an "MX" record and no "A" record?

Say you own a abcd.com and you only want to use it to send and receive email via bob@abcd.com. You don't want to provide any kind of website.  Can you set up the DNS records to include an "MX" record and no "A" record?   Is this enough for sending and receiving email to work? Is this valid in terms of whatever standard defines these things?     Edit: To clarify, the mail server (terminology?) would not be hosted on abcd.com or *.abcd.com


Solution for the integral expression that is equivalent to pi.

I am trying to evaluate the following integral:  $$ \int_{-2}^2 \left(x^3 \cos \left(\frac{x}{2}\right)+\frac{1}{2}\right) \sqrt{4-x^2} \, dx. $$  The answer is pi based on online calculations. But I want to share this to my students that we can express this as pi. I found out that integrating the 2nd term from the left, based on its boundaries, is equivalent to pi. Meaning, I need to show that the integration of the first term from the left is zero based on its boundaries. I need to know how to manually solve the intragral solution to show that the whole expression is equivalent to pi:


I want to be clarified about the logic of MySQL Join. Is it true in the code, that the first two (Order and Customers) operate Join first, and then the result and the last(Shippers) operate Join?  SELECT Orders.OrderID, Customers.CustomerName, Shippers.ShipperName FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID INNER JOIN Shippers ON Orders.ShipperID = Shippers.ShipperID


How do I transfer my Pokemon Go account to another device (Android to Android)?

I was having trouble playing the game on my android so I downloaded it to my wife's phone (Galaxy S6). I read some posts on how to get it running on my android and it worked but, my level 7 account is on my wife's phone.  How do I get it back to my android? When I sign out and back in it doesn't ask for any sign in info. I've tried deleting the app's data and even uninstalling and re-installing, but it still doesn't ask for sign-in info.


How can I install a new class in my existing LaTeX?

Currently I have a very old version (2nd edition 1994) IEEE standard LaTeX but now I need to run the Royal Society open science standard LaTeX on Windows7. They supplied 3 files in their template named   rsos.cls, Author_tex.tex, and Instruction.tex  Where do I put them so that they can be used in my documents?


I am completely fascinated by the Euler/Ramanujan result  $$ \sum_{n=0}^{\infty} n = -\frac{1}{12}$$  It is amazing to me that there are so many seemingly bogus ways to evaluate this, and they all give the same ridiculous answer.  It's magical.  I want to understand what's going on here more deeply.  I have been reading up on the , , and the , but wikipedia does not go into much depth.   Where can I find what I need to understand and prove these results?  I have an undergrad degree in math, but still get quickly lost in most research-level papers.


Rotate touchscreen and disable the touchpad on Yoga 2 Pro in rotated mode

On my Lenovo Yoga 2 pro I installed Ubuntu 14.04 32bit and kept the installed Windows 8 on another partition.  In Windows, When you turn it into tablet mode, the keyboard and touchpad turns off so you don't accidently click on it at the back of the "tablet".  In ubuntu 14.04 only the keyboard turns off, but the touchpad stays active. Not even the Fn+F6 combination doesn't turn it off.  So far I can only disable it with  synclient TouchpadOff=1   (and re-enable with 0)  I tried xev to get the keycode for Fn+F6 but pressing this combo generates no output. Turning the monitor to the back neither.  How can I disable the touchpad automatically when I rotate or turn the monitor on the back, and re-enable the Fn+F6 Hotkey?      UPDATE: After some weeks sudo apt-get upgrade Fn+F6 is working now, so there is only the question how to rotate the screen and how to disable the touchpad automatically when rotating the screen.


I installed 12.04 on an ancient Toshiba laptop several years ago, and it worked quite well.  One of my acquaintances recommended that I upgrade to 14.04.  This I did, but only with great difficulty, and this installation has been very buggy the entire time I've used it. Recently it failed entirely and eventually I gave up on trying to fix it and reinstalled 12.04, which works just fine.  I realize that this is an obsolete installation and will reach its end of life in April,  but since it works for me, is there any compelling reason that I should try upgrading again?  Jim


A word to describe an individual who takes the blame for a team's collective failure

Example: The soccer team lost the match because the strikers failed to score on a regular basis. However, the coach took the blame for the failure.  In the above example what word can be used to describe the coach who takes the blame for the team's failure?  I searched for the correct word but couldn't find an appropriate one. A word that I found was Fall Guy. But it seems, a fall guy would be one who is falsely accused  for something that has gone wrong.


Question is about KOPP +1 Edition, not KOPP.    -- this one didn't help. I bought KOPP+1 for my Android 2.3 device. Played it for a bit, made 3 save files. I just upgraded to an Android 4.2.2 device. I moved KOPP+1 over to the SD card and put the SD card in the new phone. When I open KOPP it can't find the save games. I've searched for files using the file browser named "knights" and not found any files. But searching for "seesmic" did find files, so I know that's working.   How can I find my old save file and get it working on my new phone?


Is it considered plagiarism for a professor to use uncited sources in teaching materials?

I have a professor at my university who uses content from an un-cited textbook that he has never referenced anywhere, including his green sheet (syllabus), as an additional resource. At least some slides he has used include parts of content that have been re-worded and others that are 100% the same. I noticed this by Googling for textbooks on the material we're studying in class and found that examples given in one that I found were exactly the same as what he has provided.  Would this technically be plagiarism? Should he be given the benefit of the doubt in this situation?


How to disable in render just one object and not the entire collection in blender 2.8?

Earlier in outliner 3 options were available for each object one of which was disable render. Now only one option is available for each object. Basically how to disable render for single object inside of collection


How to post to a form which has type="file"

I can't seem to figure this out.  Using HttpWebRequest, how do you post a form which was one of the inputs as type="file"?  Usually when posting regular fields, I do something like this:  "username={0}&password={1}", username, password"   But I don't know what to put in the type="file" field.


When is meta description still relevant?

I received this bit of advice about the meta description tag recently:     Meta descriptions are used by Google probably 80% of the time for the snippet. They don’t help with rankings but you should probably use them. You could just auto generate them from the first part of the question.   The description tag exists in the header, like so:  <meta name="Description" content="A brief summary of the content on the page.">  I'm not sure why we would need this field, as Google seems perfectly capable of showing the relevant search terms in context in the search result pages, like so (I searched for c# list performance):    In other words, where would a meta description summary improve these results? We want the page to show context around the actual search hits, not a random summary we inserted!   Google Webmaster Central :     For some sites, like news media sources, generating an accurate and unique description for each page is easy: since each article is hand-written, it takes minimal effort to also add a one-sentence description. For larger database-driven sites, like product aggregators, hand-written descriptions are more difficult. In the latter case, though, programmatic generation of the descriptions can be appropriate and is encouraged -- just make sure that your descriptions are not "spammy." Good descriptions are human-readable and diverse, as we talked about in the first point above. The page-specific data we mentioned in the second point is a good candidate for programmatic generation.   I'm struggling to think of any scenario when I would want the Google-generated summary, that is, actual context from the page for the search terms, to be replaced by a hard-coded meta description summary of the question itself.


Isomorphisms Between a Finite-Dimensional Vector Space and its Dual

So, we know that there is no "natural" isomorphism between a finite dimensional vector space $X$ and its dual $X^{\vee}$. However, given a basis for $X$ $(e_1, \dots, e_n)$ we can always construct a (dual) basis $(e^1, \dots, e^n)$ for $X^{\vee}$ that satisfies $e^i(e_j) = \delta^i_j$. It follows that $V \approx V^{\vee}$ simply because they have the same finite dimension $n$. Now, it seems to me that we can construct an isomorphism by assigning $$ e_i \mapsto e^i $$ and extending by linearity. That is, for an arbitrary vector $v \in X$ given by $v = \sum v^ie_i$ we can specify a linear map   $$\phi:V \rightarrow V^{\vee}$$  by  $$ \phi(\sum v^ie_i) := \sum v^ie^i $$ It is a quick exercise to check that $\phi$ is an isomorphism. Now, although this construction seems correct, there is something that doesn't quite sit right with me about it. For one thing, there is no way to really make sense of the summation convention as the right side of the function will always contain two superscripts thus requiring an explicit summation sign. The other thing that feels rather off is actually taking a lower index and moving it to an upper index, i.e., $e_i \mapsto e^i$ (which, of course, is the reason that the summation convention doesn't work).  So, with this background my questions are   Is there any sense in which the above isomorphism is "favored" or "canonical"? Is there another way to construct an isomorphism between a vector space and its dual, that would "conserve indexes", for lack of a better way to state it. My guess here is that the answer is no but becomes possible if one assumes $V$ has an inner product.


I have a similar problem like posted  but instead of obtain the parent id, how Can I get a reference to the script parent without having to code an id for the script tag?   For example, I have the following code injected to a website:  <div>      some other html tags      <script src="http://path_to_my_script.js"></script> </div>   What I need is that in my path_to_my_script.js file I can get a reference to the outer div.  There is a catch and is that the code will be copied&pasted in several places in the same webpage, which makes an identifier useless.   There is any chance to do that without to code an id in the entire code?  If the solution is with jQuery the better :D  Thanks in advance.


Find a second degree polynomial that goes through 3 points

I am having trouble calculating the quadratic curve $f(x)$ that goes through 3 points; for example a curve that goes through $A(1,3), B(-1,-5), and C(-2,12)$. I can only guess that the curve is upwards and that I may create the system: $$ y_1 = ax^2_1 + bx_1 + c\\ y_2 = ax^2_2 + bx_2 + c\\ y_3 = ax^2_3 + bx_3 + c $$ assuming that the points are in the format $A(x,y)$ and from this point what do I do? Do I build a matrix and use the Gaussian eliminations?  EDIT: I also know that $f(4) = 120$


Is there an option to keep the reputation blurred out when you're on stackoverflow? I mean, it stays blurred or hidden with an overlay until you hover on it or click it. Because I often have to pair-program or show some stackoverflow answers to my peers and since the header is sticky on top, I have often heard remarks about my reputation. Would be nice to have a feature to have the reputation revealed only when you interact with it.


Collectible card game, cards and effects

Based on   I am building a card-game where cards can have side-effects be triggered under different circumstances.  I was given a good idea on how to handle different phases by having hooks (events) that different cards can be triggered to do something, like when a card is played, draw an additional card, etc.  I am not sure how I should compose all these things to work together, I have a GameState object which handles the state of the game (who's turn, player objects, timers) checking if a move is legal etc.  I am having a Card class that currently just has a type and a name getter/setters and properties. I believe the best way to store cards would be to use .JSON files, because that would let you simply write a new card.  To achieve side-effects I am thinking of having "components" that is configured through a cards JSON-file.  {     "name": "Ocean Humans",     "type": "Creature",     "components": {     } }   However, I am not sure how I should compose these JSON-files to some actually working object. How do I call these components when I invoke a hook_event (draw a card, phase begin). And make sure right components are run?


Group of even order must contain $a:a=a^{-1}$ $ (a\not = e)$

Let $G$ be a finite group. If the order of $G$ is even, prove that there is at least one element $a$ in $G$ such that $a\not= e$ and $a=a^{-1}$.   Here's my idea:  Suppose $\{x_1,\cdots,x_n\}$ is all of the elements in $G$ [edit: I meant to add "such that $x\not =x^{-1}$"]  (but without their inverses or the identity $e$). This set has $n$ elements. Now consider the set of the inverses that correspond to each element: $\{x^{-1}_1,\cdots,x^{-1}_n\}$. Since $G$ is a group, there is a one-to-one correspondence between these two subsets. The total order of these groups is $2n$. Consider the identity $e$, which adds 1 to $\left| G \right|$ to give $G=\{e,x_1,\cdots,x_n,x^{-1}_1,\cdots,x^{-1}_n\}$, which yields: $$|G|=2n+1,$$ which is an odd value. But there may be elements that satisfy $y\in G:y=y^{-1}$. In this case, these elements are redundant and so they each add 1 to the order of $G$. Therefore,  $$|G|=[2n_x+1]+n_y$$  The term in brackets is odd, so $|G|$ is even if and only if the number of elements $y$, or $n_y$, is odd. If $n_y$ is odd, it is clear that $\exists y\in G:y\not = e \wedge y= y^{-1}$. Q.E.D.  My questions are:   Is this proof valid? Any recommendations on how I can make this proof shorter and more elegant? (I struggle with wordiness)   Thank you.


Adding a passenger to a flight booking made with Wizzair Discount

I have booked a ticket with my Wizzair Discount Club membership, and I want to buy another ticket for a companion on the same flight. How can I do it?  Thank you in advance for your help.


What is wrong with the linear regression variance estimator when p+1>n?

According to linear regression formula, assuming the predictors are nonrandom, $${\rm var}[\hat{\beta}]=MSE *(X'X)^{-1}$$ where MSE is an unbiased estimator of the population variance.  Intuitively, when the number of predictors (p + 1) is greater than the number of data, the regression model is overfitting the data, variance of $\hat{\beta}$ should be big.  However, according to the formula, MSE = 0 and we have $${\rm var}[\hat{\beta}]=MSE *(X'X)^{-1} = 0$$  What goes wrong? There must be some implicit assumption with this formula that failed in this scenario.


How to change next default value for PostgreSQL sequence?

I have a table where the ID sequence goes like 01,02 and so on (I have a few pre-inserted values). When I try to insert a new row there (not specifying the ID explicitly, but rather values for other columns) it tells me that the default value is "1" which is the same as "01" and can't be inserted. How to fix it, thank you!


How do you output a String, integer, and double from an array?

I am trying to print out names with their associated information. I want their age, salary, insurance, etc. I am trying to use a for loop to accomplish this, but I'm obviously missing something. I also don't want it to total the ages, I want it individually. I just can't find a way to print all of my information.  public static double printArray(int[] noclue, String[] name, double[] age, double[] salary, double[] insurance, double[] expense, double[] savings)  {     int total = 0;     String names = "";          for (int i = 0; i < noclue.length; i++)     {              total = total + noclue[i]           names = name[i];              } return total; return names; }    }   In the main:  System.out.println(array.printArray(noclue, name, age, salary,insurance, expenses, savings));


problem in loading outputs from processing tool (sextante)

hopefully some of you have got an answer to what happens to me when i run (so far) all the processing tools for carrying out raster analyses.  This is the type of message i receive from QGIS (2.0.1 Dufour).  Notice that i am running qgis on windows 7 and i have checked SAGA, it is activated and all items are ticked "on".  Suggestions are welcome :)  Many thanks!


Open Ball in a Metric Space vs. Open Set in a Topological Space

I'm having trouble understanding the notion of an open set when applied to a space without a metric defined on it. I have read that all metric spaces are naturally a topological space, but the converse is not true. Topological spaces definitions I have read use the idea of open sets, and I can't understand this abstract idea of openness or closedness of a set without having a notion of distance.  I can understand the notion of open and closed sets in a metric space from the definitions I have read using the idea of distance and open balls. So for example given a metric space $M$ with the metric $d$, we can say a set $U \subset M$ is open if $\forall x \in U, \exists B(x,r) \subset U$, which says that we can choose any point within the set $U$ and there will always be some sufficiently small distance $r$ that we can move in any direction to another point $y$ that is also contained within $U$. This has an intuitive conceptual meaning in my head regardless of space $M$ or metric $d$.  Now take the example of a space $F$, a fruit bowl with $3$ apples, $3$ oranges and $2$ bananas. There is no metric defined on the space $F$ to determine a distance between its elements, the fruit. Can we define an open set on this space? In order to be a topological space we need to be able to define open sets right?


How to change bibliography title to Literature in article

I need to change the heading of bibliography in article document class from References to Literature.   I have tried using :   \renewcommand{\bibname}{Literature}   (from this question  ) but this won't help.  My code :   \documentclass[a4paper]{article}  \usepackage[margin=2cm]{geometry} \usepackage{polski} \usepackage[polish, english]{babel}   \usepackage[utf8]{inputenc}  \usepackage{color, colortbl} \usepackage[dvipsnames]{xcolor} \usepackage[section]{placeins} \usepackage{listings} \usepackage{graphicx} \usepackage{cite} \usepackage{setspace}  \usepackage{amsmath} \usepackage{float} \selectlanguage{english}  \usepackage{tabularx}  \begin{document} ... ... \newpage \bibliographystyle{plain} \bibliography{bibliography} \end{document}


Is voting to balance in the spirit of the site?

The other day I saw an answer which was ok. Not great but not bad. So no reason to upvote or downvote. However the answer already had a single downvote. I felt this was unfair so upvoted the answer to keep it at what I felt was a fair score. It wasn't until afterward that it occurred to me that I should have perhaps solely voted on the content of the answer.  Is this a reasonable reason for an upvote or should I have left the answer alone?


Any benefit to using .equals() instead of == syntax?

Is there any benefit to using val1.equals(val2) instead of val1 == val2 syntax?  I'm very conditioned to using ==, but was wondering if there was any specific benefit to using the .equals() syntax for any reason...


varchar not recognized as a valid datatype

This is my code:    As you can see varchar is not recognized as a Data-Type and it gives an error when executed.  Does anyone know why?


Using pre-defined arguments for TikZ paths leads to an error

While writing a small library to automate some path-drawing functions, I noticed that using defined arguments to replace hard-coded TikZ path options returns an error. Since I'm using the \def command to share common, user-given arguments between functions, this is hindering me quite a bit.  Here is a small MWE:  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}         \node[circle,draw] (example1) at (0,0) {1};         \node[circle,draw] (example2) at (1,0) {2};          % this works as expected         \draw (example1) to [out=20,in=160] (example2);         % this doesn't work         \def\pathArguments{out=340,in=200}         \typeout{\pathArguments} % returns 'out=340,in=200', as expected         \draw (example1) to [\pathArguments] (example2); \end{tikzpicture} \end{document}   Expected output:    Actual output:    Error: line 12: Package pgfkeys Error: I do not know the key '/tikz/out=340,in=200' and I am going to ignore it. Perhaps you misspelled it. ... (example1) to [\pathArguments] (example2)  I've even added a typeout to check if maybe the \pathArguments get modified in any way, but if one were to simply copy the result of the typeout in the square brackets instead of \pathArguments, the output is as expected.