While doing some work, I came across this  $ echo [Login]   g $ echo [kilo]   k $ echo [gauke]   e g k $ echo [quasi-star]   k m q   What is going on in the background that results in this output ? Output of echo [quasi-star] just lost it's mind giving letters that are not even in there.  Note: Yes I know I can get my output with echo "[Login]"


I am writing a report with a number of chapters. I would like each chapter to have a figure above the name of it, which differs depending on a chapter. I got a figure to display above the chapter name, but the problem is that the figure will be applied to every page of this specific chapter. I would like the figure to appear only above the chapter name.   I have slightly modified an example from the Overleaf website:  \documentclass[11pt,a4paper]{report}  \usepackage{lipsum} \usepackage{graphicx}  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \setlength\headheight{80.0pt} \addtolength{\textheight}{-80.0pt} \chead{\includegraphics[width=\textwidth]{figure1.png}}  \begin{document} \title{Title here}  \date{September 2013} \author{Jesper Jensen} \maketitle  \chapter{First Chapter Title} \thispagestyle{fancy} \lipsum[1-12]  \chapter{Second Chapter Title} \fancyhead{} \chead{\includegraphics[width=\textwidth]{figure2.png}} \thispagestyle{fancy} \lipsum[1-12]  \end{document}


apologies if this question is answered. I need to make a bevel plate (of 10 degrees) to support wooden I-joists on a single slope (shed) roof assembly. I'm working with 2x6s, and I'd really like to cut the ten degree bevel across the 5.5'' dimension of the board, but I am really struggling to figure out how to do it. Just to be clear, I need to rip these 2x6 long ways, with a 10 degree bevel going the width of the board to support a wooden I-joist at 10 degree angle. I thought I could cut the boards on both sides with a circular saw, but unless I have a monster (8'' + inches) circular saw they blade is too short for the cut to meet in the middle. Any ideas?


Regex: matching up to the first occurrence of a word

What is wrong with :  /(?<={).+(?=public)/s   full text  class WeightConvertor {  private:     double gram;     double Kilogram;     double Tonnes;     void SetGram(double);     void SetKiloGram(double);     void SetTonnes(double); matching end  public:     WeightConvertor();     WeightConvertor(double, double, double);     ~WeightConvertor();     void SetWeight(double, double, double);     void GetWeight(double&, double& ,double&);     void PrintWeight();     double TotalWeightInGram();  public:  };   how can i match only this text :  private:     double gram;     double Kilogram;     double Tonnes;     void SetGram(double);     void SetKiloGram(double);     void SetTonnes(double); matching end


How can I get my players to do extra “homework”?

I've noticed a problem with my PC's lacking rich backgrounds, or players lacking knowledge of the mechanics of their own characters. This has lead to me giving the players "homework", which I have even set aside time every other week to do. The type of "homework" includes, fill out this "", read this short section on "Willpower", convert this small subset of your character sheet to a digital version so I can review it at my leisure, wherever (Things like PC Name, Aspirations, Virtue and Vice).  I am a reluctant GM, who is GM-ing because no one else wanted the job.  I am basically asking the players to take note of the rules, provide interesting backgrounds, and help me out with data entry (that's specific to them). Part of the interesting background problem has turned into snarkily answering the questionnaire as "My family is dead", "I have no friends". I don't feel that most of what I'm asking is exceptional, and most of it is suggested in the storytelling section of the God Machine Chronicle.  It might be worth saying that the chronicle has had some missteps that are my fault. We're basically on our third iteration now playing Hunter: The Vigil. We started as mortals that were going to become templated characters, which happened briefly. Then the group decided to play Werewolf, due to their perceived durability when I threw a challenge at them that was too hard (resulting in PC death). I recently realized that I couldn't get into the mood of Werewolf, so asked for a change, provided there were WoD 2e rules as a limitation. We landed in Hunter, which is satisfying to me. I'm pretty sure there's some resentment for this. It's also worth noting though, that this has been a pervasive problem throughout. I also made the mistake of not asking for these kinds of things in the beginning because I didn't realize I needed them.  Currently I spend anywhere from 10-20 hours on the chronicle a week, making it sort of a part time job. Of course I accepted that as being a GM, and I know This will go down once I've got more world created and more books reread. However, it's making me frustrated and resentful when I ask them to do tasks that should take at most 1 hour, and time is allotted for it every other week where we have off night (where no story is ran).  on a brighter side, I did get them through a Location creation thing last week.  How can I convince my Players it is in their best interest to help me out?


Upgrade WUBI installed Ubuntu 12.04 LTS to 14.04 LTS

I installed Ubuntu 12.04 LTS into Windows XP using Wubi.exe.  Update Manager tells me an upgrade to 14.04 is available, and the Manager has an "Upgrade" button.  If I click that, will it upgrade my wubi-installed Ubuntu in Windows and leave Windows intact, or will it install the upgrade on top of Windows, thereby, eliminating Windows?  I want to keep things just as they are except have Ubuntu 14.04 LTS instead of 12.04 LTS.  Would it be better for me to uninstall 12.04 and do a fresh install using Wubi.exe (14.04)?


I don't know what I've done wrong, but it's the first time that this is happening to me. I made an animation with different color falling solids and when I render it, everything is white. Here is my file so you can look it up maybe. PS: I know it may have something t do with texture/material but I am too much of a noob to solve my problem.


How to bake multiple materials on a single texture

I can not bake my character's materials to a single texture for export into Unity. When I have the "selected to active" I get an error message "no valid objects". See bottom right.  When I remove "Selected to Active", I can bake the image however the texture ends up looking like this.  So thinking this is a UV unwrap error, and using the tutorials from others. I created a new UV unwrap image. Did a smart unwrap and I get a perfect unwrap, but no baked textured image :-(....  So I short 3 tutorials later, I can't bake multiple textures from a single object onto a single textured image. I realise I must be doing something wrong ...


Solve the equation and Find the General Solution.

$$\sin 2x + \sin x = 0$$  This equation is getting on my nerves, partly because I think I have found the right answer and partly, my answer doesn't match in any one of the options given.


My 1 month old baby only seems to quiet down when I vigorously rock her (while I carefully hold her head). Can I cause her some (brain?) damage if I rock her too hard?


, upon which I'm trying to use importxml() but it just won't work properly.  Until moments ago, not a single one of the formulas on this sheet would load at all, they just hung on "Loading...", but just as I began this question, some of the cells began populating with data.  This is the follow-on  that turned out to be an issue with the XPath and how importxml() handles it.  But that led me to this issue.  Can anyone see what is wrong with  and why the function won't behave properly?


How do you generate tileable Perlin noise?

Related:       I'd like to generate tileable Perlin noise.  I'm working from  PerlinNoise*() functions, which are like this:  // alpha is the "division factor" (how much to damp subsequent octaves with (usually 2)) // beta is the factor that multiplies your "jump" into the noise (usually 2) // n is the number of "octaves" to add in double PerlinNoise2D(double x,double y,double alpha,double beta,int n) {    int i;    double val,sum = 0;    double p[2],scale = 1;     p[0] = x;    p[1] = y;    for (i=0;i<n;i++) {       val = noise2(p);       sum += val / scale;       scale *= alpha;       p[0] *= beta;       p[1] *= beta;    }    return(sum); }   Using code like:  real val = PerlinNoise2D( x,y, 2, 2, 12 ) ; // test  return val*val*skyColor + 2*val*(1-val)*gray + (1-val)*(1-val)*cloudColor ;   Gives sky like    Which isn't tileable.  The pixel values are 0->256 (width and height), and pixel (0,0) uses (x,y)=(0,0) and pixel (256,256) uses (x,y)=(1,1)  How can I make it tileable?


Correct use of 'with' or 'at' when talking about percentages?

I'm writing the following sentence:     Women lead uptake at XX%.   But a friend is saying that it should be written:     Women lead uptake with XX%.   Which one is correct?


I am interested in the effect of an ordinal variable (likert type) that had 4 answer options on participants preferences of six statements (as participants ranked these, I assume this too would be ordinal data).  In the case of my data, would kendall's tau or spearmans rho be more appropriate. I know Kendall's tau can be used with tied ranks, but I am unsure as to what that means in relation to my data. I know there is a similar thread, but it doesn't have any data examples, so it is hard for me to compare it to my own.  Any advice would be much appreciated


How to point to network interface from other inteface configuration in /etc/network/interface

I'm trying to configure a virtual network in VirtualBox with a central node as gateway & DHCP & DNS server (I'm using the dnsmasq).  Central node has two interfaces:    enp03 which faces the host network. It configured by host network DHCP and has a dynamic IP address. enp08 which faces the virtual network. dnsmasq is listening this interfase.   Now I want to set some static configuration for enp08.  Is it possible to do something like that in /etc/network/interfaces:  auto enp03 iface enp03 inet dhcp  auto enp08 iface enp08 inet static  address 10.0.5.1  netmask 255.255.255.0  gateway enp03


I have a string "str1+str2-str3*str4".    I want to split it so I get an array   ['str1','+','str2','-','str3','*','str4'].    Could someone help provide a solution?


Daily tag email has a link to a google drive document

The daily email I receive regarding new Python questions on SO arrived today and had a link to a google drive document called "banana_features.csv". I've never seen this email come with a link/attachment before and it just seems odd...   Not sure if this is a bug SE side or some artefact of the content of the digest doing it... any clues?  Screen shot of the first 20 rows if it's of any use:


Why is wireless down/strange after switching to battery or closing/opening the lid?

I noticed that, when I unplugged my laptop, or closed/opened the lid, my wireless connection dropped, every time.  I tracked it down to pm-powersave, and made it stop, see below.  This could also cause repeated requests for network passwords.


Let $x,y,z$ be positive real numbers. We have to prove that:   $$3(x^2+xy+y^2)(y^2+yz+z^2)(z^2+zx+x^2)\geq (x+y+z)^2(xy+yz+zx)^2.$$  Thanks :)


How to keep application running after closing the terminal?

I am new to Ubuntu. I have used Sublime Text. I have realized that after I open Sublime Text from the Terminal, if I close the terminal the application  keeps running. The same isn't true for other applications like geany.   After I open the application from terminal, when I close the terminal the application also closes. I have tried &exit like geany &exit. But this isn't what I am looking for.   How can I keep geany running even after I close it?


How do you prevent a user from posting data multiple times on a website

I am working on a web application (J2EE) and I would like to know the options that are available for handling a double post from the browser.  The solutions that I have seen and used in the past are all client-side:   Disable the submit button as soon as the user clicks it. Follow a POST-Redirect-GET pattern to prevent POSTs when the user clicks the back button. Handle the onSubmit event of the form and keep track of the submission status with JavaScript.   I would prefer to implement a server side solution if possible. Are there any better approaches than the ones I have mentioned above, or are client-side solutions best?


GeoServer vector tiles (.pbf) wont display due to CORS issue

I am using Mapbox Gl JS to get mapbox vector tiles (pbf) from GeoServer 2.15, which I am running with Tomcat 8.5 on a Windows Server. The Mapbox GL JS javascript is in a folder in the Tomcat webapps directory. Tomcat has been configured for CORS by editing the web.xml to include:    <filter>   <filter-name>CorsFilter</filter-name>   <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>   <init-param>     <param-name>cors.allowed.origins</param-name>     <param-value>*</param-value>   </init-param>   <init-param>     <param-name>cors.allowed.methods</param-name>     <param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>   </init-param>   <init-param>     <param-name>cors.allowed.headers</param-name>     <param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,Authorization</param-value>   </init-param>   <init-param>     <param-name>cors.exposed.headers</param-name>     <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>   </init-param> </filter> <filter-mapping>   <filter-name>CorsFilter</filter-name>   <url-pattern>/*</url-pattern> </filter-mapping>   I have also added URL rewrite within IIS which links port 80 to Tomcat/GeoServer on port 8080. When opening the map in browser on another machine everything but the vector tiles from GeoServer displays. This is the error message I get:     Cross-Origin Request Blocked: The Same Origin Policy disallows reading   the remote resource at   .   (Reason: CORS request did not succeed).   I have also noticed that X-Frame is set to SAME ORIGIN for the vector tiles.  Is there anything else missing or wrong with my setup? I would like to be able to open the web map through the URL and for the layers to be displaying? Is the CORS issue coming from IIS or Tomcat?    Edit: Just wanted to clarify that GeoServer itself is working as I can access it from another machine, through the URL. It is just the vector tiles which are generating the CORS error when viewing the map.


I have an Indian Passport and also hold a US green card. I will be returning from India to US, via UK and changing terminals in London. I will be arriving at Terminal 5 from India and boarding my connecting US flight from terminal 2. Two questions: 1. Do i need a UK transit visa?  2. What about bags? Since i will be arriving by British Airways in Terminal 5 and boarding United Airlines from terminal 2


Why is the chat hidden from the front page of every SE site?

As above.  Maybe just a silly question from me, but I think the chat link should be outside on the front page, so if you want some guidance you can ask there instead of posting an unwanted question. It will be awesome to put the link of the chat above of the Hot Network questions.  If you guys think this will create problems, which problems or situations may this cause if this happens?


why use sum of product and not product of sum in programmable logic array and programmable array logic

I am confused why only SOP(sum of product) are used in PLA and PAL and not POS(product of sum)


Can I delete user directory after deleting user?

The reason I ask is because I recently made the mistake of installing Oracle 12c on my sub-performance laptop. Noticing the excessive amount of resources this added up to on startup, I decided to uninstall it.  What I failed to see through, however, was the fact that it created a new Windows user account in order for the initial installation to work out. In my case, it was mandatory because I only had an administrator account and I didn't see the need to use the built-in account. So, after failing to successfully install 12c twice, I wound up creating not just one, but two Windows user accounts. This had to do with something in regards to how Oracle sets up the Oracle Home business and whatnot, but I have no idea what any of that detailed, so I just went ahead and did it.  After uninstalling what I could in regards to Oracle and the database, I decided the next thing to do would be to remove the created users.  Having Windows 10 Home installed, I couldn't use the local users & groups view/tool to delete these from the GUI. SO, I did the next best thing and Googled a solution. In my case, I used the following command:  net user username /DELETE   When I executed the command, the console gave the response of having successfully deleted the account for both accounts specified.  To verify that this had worked, I went to the users directory located in %SYSTEMROOT%/Users/ and came to find that the user directories were still there.  What does this mean and if I should delete them, will anything bad happen?  Can I even delete these directories?  Regards,  --T.R.G


What word describes: "a person who always follows the rules"?

I'm looking for a word that describes a person who strictly follows a set of rules without exception. Something close to obeyer or fanatic, but with an emphasis on 'Strictly following the rules'.  Usage example:      The website was taken over by [users who obey the rules strictly].


How did the Wampa freeze Luke's feet into the ceiling of the cave?

In Star Wars: Episode V: The Empire Strikes Back, Luke's attacked by a Wampa and knocked out.  When he awakens, he's dangling upside down, with his feet frozen into the ice on the ceiling.  How'd the Wampa manage this?  There's no indication that the Wampa is particularly intelligent, so how did an animal accomplish this feat of melting some of the ceiling, sticking Luke's feet in there, and letting it refreeze around his feet?


In a C program, suppose I have a char array and a char pointer.  1.  char word[6] = "HELLO"; word[1] = 'A';   2.  char * word = "HELLO"; word[1] = 'A';   Why cant't we update the word using the 2nd method but can with 1st?  Note: Using 2nd method, though the program compiles there is a      Segmentation fault   error.


When I go to Settings > Applications > Manage Applications > Downloaded I see an application list. If I select some applications I see button "Force stop" active, but some applications have this button dimmed.  What does it mean? What happens if I press this button?  This button can't mean application running, since the applications with this button are not listed in Running section.  Can I list just applications which have the Force stop button active and uninstall them?    Android version: 3.2


Find the maximum value of the expression ${\frac {x}{1+x^2}} + {\frac {y}{1+y^2}}+{\frac {z}{1+z^2}}$.

Find the maximum value of the expression :   $${\frac {x}{1+x^2}} + {\frac {y}{1+y^2}}+{\frac {z}{1+z^2}}$$   where $x,y,z$ are real numbers satisfying the condition that $x+y+z=1$.   Taking $x=y=z=\frac {1}{3}$, I get the expression as $\frac {3x}{1+x^2}$, which is equal to $\frac {1}{1+{\frac{1}{9}}}$ or $\frac {9}{10}$.  How can I actually solve the problem without making unnecessary assumptions ?


Is it possible to install from a mounted ubuntu-11.10-desktop-i386.iso already downloaded to the desktop?

I have a machine that seems to have some issues, and I would like to install directly from the iso image already on the HDD. I cannot for some reason boot from a LiveCD nor from a USB stick. I attached the HDD to another machine and dumped the iso to the desktop and reinstalled to the machine with issues.


Will I have copyright issues making a mobile game based on an anime?

I have been wanting to create a mobile game based on some of my favorite anime.  I want to know if using character images and names from those anime (even after giving full copyright credits and disclaimer) infringes any copyrights?  Would this come under "fair use" in the DMCA (I mean there are already so many not-so-legal sites using this "fair use" to continue running).  What are the possible things I can do for making this game? I have seen many online browser games based on anime which use images and elements from that anime, while I have also seen many games advertise themselves based on a anime but just use diffrent names for characters of that anime (sometimes modifying the character images, too).


how to delete all directories in a folder

I want to delete all directories in the download folder. /content/download/documents/ /content/download/music/ /content/download/videos/ /content/download/pictures/  I have tried removing them using rm but it's not working. rm -rf '/content/download/*/'


How can I get the details and transpose it to horizontal form? Every record ends after Couse. Couse will never be blank or null. Note: These four headers will be there for the below data: Name, City, Age, Couse If you see the second record, there isn't any "Name": "" -> missing so it should be null in place of that and the remaining will be appended after that with a pipe separated like this:     null                | Ors  | 11 | MB I have data like below in the demo.txt file "Name":"asxadadad  ,aaf dsf" "City":"Mum" "Age":"23" "Couse":"BBS" "City":"Ors" "Age":"11" "Couse":"MB" "Name":"adad sf" "City":"Kol" "Age":"21" "Couse":"BB" "Name":"pqr" "Age":"21" "Couse":"NN"  Expected Output: asxadadad  ,aaf dsf | Mum  | 23 | BBS null                | Ors  | 11 | MB adad sf             | Kol  | 21 | BB pqr                 | null | 21 | NN  I tried the below code: but not working my logic counter=0 var_0='Couse'   while read -r line     echo "$line"     counter=$(( counter + 1 ))     var_1=`echo "$line" | grep -oh "Couse"`     if [ $var_0 == $var_1 ]    then         head -$counter demo.txt > temp.txt         sed -i '1,$counter' demo.txt         counter = 0    else         echo "No thing to do"    fi   done < demo.txt


How to pass multiple operator properties via UI layout?

Basically, I want to have a single operator which can do multiple things, based on some attributes values.  class MyPanel(bpy.types.Panel):     # (...)     layout = self.layout     row = layout.row()     row.operator("my.button", text="Button text")  class MY_BUTTON_OT_Button(bpy.types.Operator):     bl_idname = "my.button"     bl_description = "Button description"     bl_label = "Button"     foo = bpy.props.IntProperty()     bar = bpy.props.BoolProperty()      if bar:         # Do something with foo     else:         # Do something else :P   I know how to set one attribute, like so:      row.operator("my.button", text="Button text").foo=5   But what about multiple arguments? I tried several things that didn't worked, like (e.g.):   With setattr(): row.operator("my.button", text="Button text").setattr(foo=5,bar=True)   With a custom method setVal() in the operator class: row.operator("my.button", text="Button text").setVal(foo=5,bar=True)   Maybe I must use a single EnumProperty? I hope to avoid this, so my question is: Is it possible to pass multiple custom arguments to set attributes in an operator class? And if yes, how ?  Thanks for your help.


I have an EEE PC 701 and want to record video using the built-in webcam. I have installed Lubuntu 14.10. I already have installed avconv and I want to use avconv.


Simplicial sets which are not Kan complexes

A  is a simplicial set satisfying the horn-filler condition. What examples are there of simplicial sets which do not satisfy the horn-filler condition? In particular, what simplicial sets are not Kan complexes?


Do the parentheses after the type name make a difference with new?

If 'Test' is an ordinary class, is there any difference between:  Test* test = new Test;   and  Test* test = new Test();


What should one look for when buying a used film camera?

I'm planning to buy a used Nikon F5.   I have no experience with a film camera and I want to know what all should one be careful of before buying a used film camera and more specifically a Nikon F5.


When we ride a bicycle then we can balance it but when we apply brakes then we need to put our legs down else we may fall, why?

I got this idea while sitting and studying physics in school but not getting answer please try to answer it.


How does initiative work if the PCs and NPCs are negotiating, and then a PC wants to take a hostile action?

Consider the following situation. The PCs are going along a road when they meet some NPC bandits. At first there is just tense negotiations, but no actual combat, until at one point in the negotiations Bob, the party's ranger, says he wants to shoot his bow at one of the bandits. What happens?   Do you have everyone roll initiative, and Bob doesn't get to resolve his attack until his turn comes up in the initiative order? If so, and the bandits roll highest on initiative, then what do the bandits know on their first turn? Do they know that Bob is about to shoot, or that some PC is about to do something? Or as far as they're concerned, nothing unusual has happened yet, so they will probably just keep talking? Or do you resolve Bob's shot first, pre-initiative, and then roll initiative and go in order? (So Bob could potentially get two shots in a row if he also rolls highest on initiative - both his "pre-initiative" shot and his regular shot? If Bob can act "pre-initiative" in this way, does he get a whole round's worth of actions "pre-initiative", or just one action?   The surprise rules in the PHB don't seem to cover this type of situation. The surprise rules seem to cover e.g. ambush situations where one side doesn't see the other; in this case, both sides clearly see each other and are aware that a fight could potentially break out. (Would the result be different if both sides saw each other but one of them wasn't aware that a fight could be imminent? For instance, rather than tense negotiations with bandits, let's say that the PC and NPC were sitting next to each other in a tavern, and all of a sudden the PC just decides to take a swing at the NPC.)


How is ANOVA related to general linear models?

I am new to stats and this is a silly question, but I just cannot see how ANOVA is related to general linear models.  I am learning about GLM and all the materials I found are saying that ANOVA is a kind of general linear model. for example:   I can see how GLM is extended from multiple linear regression, but ANOVA is just the ratio: "variance between" over "variance within". How is it GLM?


What is the reasoning behind restricting the number of migration paths?

On the religion and culture stackexchange sites, many, many users will initially ask a question in a place that's kind of off-topic there, but are fully on-board elsewhere.    Christianity.SE, for example, gets a lot of general philopsophical questions that would be better on Philosophy, historical questions that might be better on History.SE, and hermenutical questions that are better on BH.SE.  It is, however, unreasonable in my mind for a user with a question to be required to have domain expertise on which sub-site each has. Indeed, even amongst users with a high amount of knowledge, there can be disagreement.  Likewise, , but as just about every one of those is in beta, the user would have to be very saavy (or would have to find that post) in order to nail it every time.  That said, recommending that a question be moved is much harder than it needs to be.  I have seen business rule logic that says, for example,    migration paths only exist to graduated sites (ergo politics, money, history, and quantitative finance wouldn't qualify) migration paths seem to be limited to 5.   Anything not on a migration path requires a moderator (and not just a high rep user) to get involved.  So, what is the reasoning behind this?  Note, I'm not asking for a solution (although the obvious solution would be to allow migration paths to any established site, beta or not, i.e. a VTC as off topic b/c it belongs on another site should allow you to pick any other site) - I just want to understand the business purpose in restricting migration paths to a small, predefined number for everyone other than a mod.


How can we fix the emtpy form action error reported by HTML5 validators for default ASP.NET 4 pages, and will this affect SEO?

We are in the process of upgrading our ASP.NET 4 website from XHTML 1.0 to HTML 5. The <form> tag is generated automatically as it is ASP.NET, and it looks like:  <form method="post" action="" id="MainForm">   Almost on all pages of our website we do not have any special button that should lead to an action, so it's OK to have the action attribute empty (action=""). However, every HTML 5 validator tells us that the action attribute should not be empty.  How can we overcome this problem without changing the existing website functionality? Or, maybe, we can live with that and this will never affect such serious things as Google SERP positions, etc...?


Why Chrome has Mozilla in its user agent?

I'm new to headers and user-agent stuff. I'm using a request lib with python to make  a POST operation to a website. I have noticed that the user agent for Chrome is like "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" as can be checked .  It doesn't only contain "Mozilla" but also "Safari". Why is that and what does it mean?


How can 2 variables each be strongly correlated with a 3rd variable, but uncorrelated with each other?

Using Excel's correlation function I get a correlation of -7% between data sets A & B.  Data set C has a 92% correlation to A and an 84% correlation to B.  How can C be strongly correlated to A and B, but A and B are slightly negatively correlated to one another?  What other tests can I perform to help me better understand the relationships between A, B & C?


How can I disable blender from restarting a scene when dropping a blender model onto it? I'm looking for a way to merge models into existing scenes without using the awkward append option.


The way a 2D list is initialized changes its behavior

square = [[0 for i in range(3)] for j in range(3)] square >> [[0, 0, 0], [0, 0, 0], [0, 0, 0]] square[0][0] = 1 >> [[1, 0, 0], [0, 0, 0], [0, 0, 0]]   This is the expected behavior.  But then:  square = [[0] * 3] * 3 square >> [[0, 0, 0], [0, 0, 0], [0, 0, 0]] square[0][0] = 1 >> [[1, 0, 0], [1, 0, 0], [1, 0, 0]]   It seems like each list within the list is passed by reference to a list stored in memory.  I found this to be weird behaviour since I didn't explicitly create the sublist as an independent variable, and I wondered if anybody had thoughts to share on this...


Minimum connection time in Muscat for an Oman Air flight to Paris

I am travelling from Hyderabad (India) to Paris (France) via Muscat and the transit time there is only 2 hours.    Is this sufficient to make the connection?


Topological space - Infinite intersection of members

The definition of Topological Space via open sets is :  A topological space is an ordered pair (X, τ), where X is a set and τ is a                    collection of subsets of X, satisfying the following axioms:  -The empty set and X itself belong to τ. -Any (finite or infinite) union of members of τ still belongs to τ. -The intersection of any finite number of members of τ still belongs to τ.   Why the intersection of any infinite number of members of τ is neglected by the definition ?


use \partial sign from other packages, for example mathpazo

I would like to include another \partial sign, for example the one from mathpazo. i found a way to do it but i'm not sure wether it will change other things as well, so is this the right approach?  \documentclass{article} \DeclareSymbolFont{operator}{OML}{zplm}{m}{it} \DeclareMathSymbol{\p}{0}{operator}{"40}  \usepackage{commath}  \newcommand*{\pfrac}[2]{\dfrac{\p #1}{\p #2}} \begin{document} $\pfrac{^2 F}{x^2} =\dfrac{\partial^2 F}{\partial x^2}$ \end{document}   Best regards


I have been looking around to turn off "CMD + , (comma)" opening password manager in Safari but there appears to be no option to do so (maybe I missed it). The same shortcut is used as subscript shortcut in Google Docs and it is really annoying during essays. Does anyone knows how to do such thing? Thank you beforehand! PS: The same question is marked as duplicate but the answer is not relevant.


Obtaining consistent one-hot encoding of train / production data

I'm building an app that will require user input. Currently, on the training set, I run the following code, in which data is a pandas dataframe with a combination of categorical and numerical columns.  dummified_data = data.get_dummies() train_data = dummified_data[:10000] test_data = dummified_data[10000:12000]   Currently, I have a hand-written function that takes user-inputted data and transforms it into a format like dummy data. This doesn't seem sustainable as the number of columns/the size of my categorical variables grows.  Is there a way to dummify training data and production data consistently?


Creasing of a material at the molecular level

What exactly happens when a material (particularly paper or even cloth or a metal) is folded to form a crease? Why is it that a creased material tends to retain form, while a lightly folded one, 'might' just happen to revert to an original configuration? Are bonds being broken here, then to what extent? Are they along a single molecular line or break on a  bulk basis? Also, why does a rolled sheet retain shape through a variety of radii? Is there a critical radius to this sheet regaining its flatness? Thanks.


Prove $\lim_{x\to a }{ f(x)\over g(x)}={ L\over M}$

Suppose lim x→a f(x) = L and lim x→a g(x) = M, prove that  lim x→a [f(x)/g(x)]= L/M provided M ≠ 0 and g(x) ≠ 0, for x suﬃciently close to a (but not equal to a).  What does mean by for x suﬃciently close to a (but not equal to a) and how can I prove that?  thanks


How to serialize a JObject without the formatting?

I have a JObject (I'm using Json.Net) that I constructed with LINQ to JSON (also provided by the same library).  When I call the ToString() method on the JObject, it outputs the results as formatted JSON.  How do I set the formatting to "none" for this?


On desktop SE, I can type @ and the usernames that I can ping will be suggested. It's known that pinging the OP as the only commenter, or pinging the author of an answer as the only commenter, will strip the @ping.  On mobile SE, it is not really possible to ping a user in comments, which is very annoying to me since I way prefer the mobile site over the mobile app.  However, a few times in the past few days I have tried to ping a commenter from the mobile site, just by typing their name. For instance, if the user's name is RikerW, I typed @rikerw blah blah.  Those pings didn't get replies from active users. We also know that @pings are just text, not special entities like on Facebook, which is why they are not updated with usernames. (see )  What causes a ping?  says "reasonable match", but what is that?   Must I type the @ and select one of the options with TAB, or  can I just type the user's name?  Does case matter?  Is it possible to ping from the mobile site?


Does Arithmetic Need Non-Computable Real Numbers?

I get that the natural numbers, integers, rational numbers, algebraic numbers, and computable numbers are all countable. The reals are uncountable. If I wanted to understand arithmetic restricting all my discourse to only countable sets, what do I lose? To my knowledge, numbers like Chaitin's Omega are not relevant to arithmetic. Are there any arithmetical truths which are dependent on the existence of non-computable, or uncomputable numbers?  Edit: To clarify, I am asking whether we need non-computable numbers for arithmetic (a.k.a. number theory). I know that non-computable numbers are needed in real analysis and other fields.  To further clarify: Are there solutions to number theory problems, such as the distribution and properties of primes, which require uncomputable numbers? We definitely need irrational and imaginary numbers, since an answer to the Riemann Hypothesis will depend on them. I haven't seen a solution yet to a number theory problem which requires uncomputable numbers, nor am I entirely sure it is even possible for there to be one.


Unable to restore database backup because it is accessed by other connection

--first command  use master  Go -- second command ALTER DATABASE MyDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE   Go  -- Third command RESTORE DATABASE [MyDB] FROM  DISK = N'D:\Restore_Backup\Restore_05042015\AcctDB.bak'  WITH  FILE = 1,   MOVE N' AcctDB '  TO N'D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\WFStageAcct.mdf',   MOVE N' AcctDB _log'  TO N'D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\WFStageAcct_log.ldf',   NOUNLOAD,   REPLACE,   STATS = 10  GO  --forth command  ALTER DATABASE MyDB SET MULTI_USER   Go   I run the above commands, one by one to restore database in different server. But sometime I cannot restore the database after changed to single user mode, because it is accessed by other connection. If I run the whole script except the last part together would that block other connection so I will be the only user?


Finding research papers for undergraduate research

I am seeking some help to find research papers (preferably in the area of Markov chains) for my undergraduate research for reference. Any guidance on how to find research papers in general for undergraduate level research will be much appreciated. Thanks in advance


How can I find the nth derivative of the function $f(x)=e^{-1/x^2} \text{, if } x \neq 0 \text{ and } 0 \text{, if } x=0$.

There is a function       $f(x):= \begin{cases} e^{-1/x^2}, & \text{if $x \neq 0$} \\ 0, & \text{if $x=0$} \end{cases} $.     That function's $n$-th derivative is $0$ : $f^{(n)}(0) = 0$. How to derive that?


I am working on a honours thesis and have developed a Fortran library that I would like to cite in it.  In some places they suggest to quote the documentation of the project but this is something I plan to do in the future and isn't done yet. The only documentation I have right now is the README file and the code itself.   What would be an acceptable way of directing a reader to my work on Github?  (bonus) Is there a BibTeX way to do it?


From python :     A scope defines the visibility of a name within a block. If a local   variable is defined in a block, its scope includes that block.   and     When a name is used in a code block, it is resolved using the nearest   enclosing scope.   So it is not obviously from this quotes what scope does mean. Is it true that scope is a collection of bindings name-->value? And what does mean enclosing scope? Does it mean that every scope must contain a reference to the enclosing scope?


Proof that a periodic function is bounded and uniformly continuous.

I need to show that if $f:\mathbb{R}\to \mathbb{R}$ is continuous and $\forall x \in \mathbb R, f(x+1)=f(x)$, then:   $f$ is bounded, $f$ is uniformly continuous, there exists $c\in \mathbb{R}$ such that $f(c)=f(c+\pi)$.


What is the area of a regular polygon inscribed in a circle?

For a circle of radius $r$, if I draw a regular polygon with $n \geq 3$ sides (equilateral triangle, square, pentagon, etc.) contained inside the circle, such that each vertex intersects the circle... What is the area of the polygon? (both in terms of $r$, and as a ratio of the circle's area $\pi r^2$) I assume that ratio $\to 1$ as $n \to \infty$


Windows Explorer is crashing whenever I open Control Panel

This is the link to my zipped dump file, any help would be greatly appreciated.


What happens if 2 wizards cast Secret Chest on the same chest?

In my game, in which I play a wizard, I have met an NPC wizard who is willing to let me learn  from her spellbook. This got me wondering what would happen if I learned the spell and cast it on the same large chest that she had already cast it on (using my own separate tiny replica). Would this enable us to effectively teleport objects back and forth by alternately summoning the chest and placing things in it, then letting the other person summon it and remove the items? Or would something else happen? How would the chest work if 2 different wizards cast Secret Chest on it?


How GRE score affect your acceptance rate

Suppose you are very bad at undergraduate but did well on your GRE test. How would that affect you application?


Inbox, Reputation and Site Dropdown time inconsistency

Why is it only the Achievements drop down that has the time?  They both use exact dates, but only one has the UTC time.


Today I came across  that was, basically, asking for a library.  It was closed and OP wanted to know why, so I posted in the comments explaining that questions asking for Libraries aren't really the best type for StackOverflow, hence being close-voted.  However, follow-up comments from OP seem to suggest that he couldn't find anything in the FAQ regarding questions about libraries. Searching the FAQ for "library" or "libraries" yields 0 results.  Basically, can we have clearer information in the  regarding questions for libraries? I feel a little sorry for people like OP who feel (legitimately) that their question could be useful for future visitors but have had it closed because of the voting system options.  I'd like to be able to point to somewhere specifically (and officially) in the FAQ that says the following:     Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.


Let $T_n=\{x_i\ge0:x_1+\cdots+x_n\le1\}$. I know $T_n$ is tetrahedron.  My question: How can I compute the volume of $T_n$ for every $n$?


Why is the number $e$ so important in mathematics?

I've heard a lot about this number $e$. Why is it so important? How does it fit into the 'bigger picture' of mathematics? How is it calculated and used?


My milk chocolate is grainy - how to fix it?

Below is the milk chocolate recipe I used. It's good enough, but grainy, not as smooth as I'd like. Any thoughts on how to make it smoother? Most recipes I find online have milk chocolate as an ingredient, and don't have milk chocolate as the final product.  Ingredients    50 g coconut oil  30 g cocoa powder  50 g powdered sugar  30 g dried milk powder (whole milk, Nido brand)  ⅛  teaspoon salt  Directions    Melt coconut oil in double boiler  Add cocoa powder, powdered sugar  Mix  Add dried milk powder and salt  Mix  Pour into mold


After replacing all tables in an old website with divs, what other steps should I take?

I have designed a website a few years back, and it ranks pretty well, customer is happy, no problems there. I took one of the pages and replaced manually all the tables with <div>, used structured data and got the website to look exactly the same.  I would like to know what other steps should I take to improve or at least not hurt this page's rank, or if perhaps I should just not bother altogether.  What are best practices here?  By the way, the page is not live yet.


I am trying to change the CRS of one shapefile that is originally in NAD27 to WGS84.  When I proceed to make the change, I still continue to see the file in UTM coordinates...  I've tried to save the file as a new one with the and change it at the "set layer CRS" option... Do you know another alternative?


I saw this in a bash script, and trying to make sense of it:  exec {STDIN}>&0 exec {STDOUT}>&1 exec {STDERR}>&2   Are the {STDIN}, {STDOUT} etc "magic strings" recognized by exec directive in bash scripts?  Isn't STDOUT already set to &1 (and STDERR set to &2, ...) anyway?   What do these lines do?


Getting a NullPointerException when reading from a file

I' getting NullPointerException when I'm trying to read a file and fill an array with the file's data.  I'm calling the method straight from the constructor, after creating a new object in a main function. i tried, moving the br.close() line after reading some comments of similar problem people had, but had no success in that.  public void readFile (String fileName){     // try read from the file     try {         FileReader fr = new FileReader(fileName);         BufferedReader br = new BufferedReader(fr);         String str;         str = br.readLine();         String[] s = str.split(" ");         int col = Integer.parseInt(s[1]);         int row = Integer.parseInt(s[2]);         this.a = new int[col][row];         for(int i = 0; i < a.length; i++) {             str = br.readLine();             String[] s1 = str.split(" ");              if (str != null){                 for(int j = 0; j < a[0].length; j++){                     a[j][i] = Integer.parseInt(s1[j]);                                       }             }          }         if(br != null){             br.close();             fr.close();         }     }     catch(IOException ex) {         System.out.print("Error reading file\n" + ex);         System.exit(2);     } }


I have a shell script using some sudo command. When I run this script from terminal - it asks me for password and runs with any problem. But when I try to run executable shell script form GUI (double click) it does not ask me for password - so does not work.   Example of my shell script:  c1=$(dmidecode -t 4 | grep ID | sed 's/.*ID://;s/ //g' | sha1sum | awk '{print $1}')   How to run script from GUI and pass all sudo commands with no problem?


Why there isn't reputation points for successful flagging?

By helping the site by flagging successfully (and therefore gaining higher flag weight), you typically inform that you are able to understand the system and be helpful.  Similarly, when you are helpful by editing posts (not necessarily even understanding anything, just making it better), you gain 2 points for each edit. Good flagging may require even more understanding; while editing just fixing spelling and/or formatting gives reputation points. You don't have to understand whether question (or answer) is on-topic, or even meaningful.  So, why there isn't for example 2 points for each flag that was acted on, in the same way flag weight increase is determined?


F*** all these b**** F*** all of these b****  Which one is correct? And why ?


Deleting a file that has been loaded as a shared library by some process

What happens if you delete a file that has been loaded as a shared library by some process? Can it be deleted? Any crash?


I want to know the meaning of a sentence

So I read a novel and found a sentence "Jane waited on her boss's instructions". Does the sententence mean that Jane was waiting for her boss's instructions?


How can I change the alt+middle-mouse-button resize to alt+right-mouse-button?

I love how you can resize windows by pressing alt+middle-mouse-button and drag.  Though now I got a mouse which doesn't support pressing the middle mouse button..   How do I do to change the combination from alt+middle-mouse-button to alt+right-mouse-button?  (On Ubuntu 11.04 with unity)


Regex to match a valid integer or decimal number (may be positive or negative)

I want my ExtJS textfield to allow only numbers and decimals (Both positve and negative) .I need a regex to allow an integer or decimal number which can be positive or negative .  Should match -   1)  123  2)  123.23  3)  -123  4)  -123.23  Should not match for    1)  --123    2)  -2323-    3)   23.23.23    4)   34..34


Imagine a list of lists, like this: x=[['foo','bar'],['baz'],['xyz']] Except longer. I need a script to generate permutations for a list of arbitrary length containing small sets of words, also of arbitrary length. So, in this case: [['foo','bar'],['baz'],['xyz']] [['foo','bar'],['xyz'],['baz']] [['xyz'],['baz'],['foo','bar']] [['baz'],['xyz'],['foo','bar']] [['xyz'],['foo','bar'],['baz']] [['baz'],['foo','bar'],['xyz']]  I've not been able to manage this with itertools. Any suggestions?


limit : $\lim_{n\to \infty} (1+\frac{\sqrt[n]{a}-1}{b})^n=?$

fine the limit :  $$\lim_{n\to \infty} (1+\frac{\sqrt[n]{a}-1}{b})^n=?$$  $a,b\in \mathbb{R}$  My Try :  $$\lim_{n\to \infty} (1)+\lim_{n\to \infty}(\frac{\sqrt[n]{a}-1}{b})^n=1+0=1$$  Because:  $$\lim_{n\to \infty} \sqrt[n]{a}=1 $$  is it right ?


Regex to escape special character and match word in a string

I have a paragraph which contains i++ and ++i:  para = "This is what i++ is do ++i and in i I dim ++ +"   and I want to find all occurrences of i++ and ++i. As I am a total beginner at this so this is what I write at    [i+]   This works fine but as you can see it also gives me all the I i + ++ everywhere in the string so I added this \b[i+]\b but it doesn't select the + sign attached with i++ . Also, it selects the single i in the string. Which means it is not treating i++ or ++i as a single string.  How can I change my regex to select i++ or ++i in the string


Why is apt dist-upgrade downloading 2 versions of linux kernel? How to prevent it?

In on 18.04, I've updated to linux kernel 5 using sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04  Now, when do a apt-get dist-upgrade It downloads both kernel 4.15.0-X & 5.0.0-X but ends up using 5.0.0-X. Now how do I prevent dist-upgrade to download 4.15.0-x? is it even required?


Undocumented incompatibility between changes and siunitx?

I am currently using the changes package to track some modifications in a document, along with the siunitx package for number formatting.   Whenever I try to have a \SI{}{} call iside a \replaced{}{} or \deleted{} call, pdflatex throws me an error though the ouput file seems fine.  This issue does not seem to be documented, either in the user manual or on the git repo.  Here is a MWE to illustrate the issue  \documentclass[]{article} \usepackage{changes} \usepackage{siunitx} \begin{document} This is a new length of \SI{8}{\meter}; This is a new length of \deleted{\SI{8}{\meter}}. This is a new length of \replaced{\SI{8}{\meter}}{\SI{3}{\meter}}. \end{document}   Any idea how to remove this error, as it does not seem to impact the result ?  EDIT :


The pronunciation rules of words which begin 'Com-, Col-, Cor-' or 'Con-'

What is the standard rule, if there is one, for pronouncing words beginning with the prefixes com-, col-, cor-, con-?   Very often these words have an /ɒ/ vowel, like in the word hot - in Gen American, I think it's the vowel /ɑː/. Other times they may have a schwa, /ə/, like the first vowel in amazing. Sometimes they seem to have a syllabic consonant, /m, l, r, n/.   Sometimes there even seem to be two words which are spelled the same but have a different pronunciation. For example content meaning "happy" and content as in "the content of the lecture", for which Cambridge Dictionaries gives the transcriptions  /kənˈtent/ and /ˈkɒntent/ [US:/ˈkɑːntent/] respectively.  Here are some examples with transcriptions from Cambridge Dictionaries Online:   common /ˈkɒm.ən/  commercial  /kəˈmɜː.ʃəl/   colleague /ˈkɒl.iːɡ/  collection /kəˈlek.ʃən/ correlate /ˈkɒr.ə.leɪt/   correct /kəˈrekt/   So my question is:   Is there any rule for whether a schwa or full /ɒ/ or /ɑː/ is used? Are there generalisations that can be made which will help me have a good guess at which to use. Are there any rules that will enable me to tell in certain restricted situations. If I'm unsure about a particular example, would I be better to go with a schwa or a full vowel. Why?


Are there alternatives to software center?

Are there any GUI alternatives to the Ubuntu Software Center with   Fast application loading/Low startup time Fast search Low weight/size Application purchase facility


Is there an expression to describe a situation where someone could have helped you but they didn't?

I would like to know if there is an expression that describes a situation where someone, perhaps your friend, was capable of helping you but they didn't or they chose not to?  Eg: He was was free. He could have come over and consoled me. But he __________________ [didn't help despite the fact that he could].  An expression or a proverb applicable in this situation will do.


On the space $l_2$ we define an operator $T$ by $Tx=(x_1, {x_2\over2}, {x_3\over3}, . . . )$. Show that $T$ is bounded, and find its adjoint.

On the space $l_2$ we define an operator $T$ by $Tx=(x_1, {x_2\over2}, {x_3\over3}, . . . )$. Show that $T$ is bounded  I know that $||T||\leq 1$, but I don't know how to show this. Any solutions or hints are appreciated.


I have a PDF file with extension .pdf. If I remove .pdf - the file is still recognized as PDF file ($ file sample - output sample: PDF document, version 1.4.)   What is the mechanism of filetype detection in Linux? Windows uses file suffix. I know that there are mime types. Does all popular file formats  contain their mimetype in HEX code?


how can I calculate this: $$\sum_{i=1}^\infty \frac{2}{(2i +1)(2i+3)}$$ I don't have seen analysis yet, this is a olympic problem of my country.


In the below scenario  i am Accepting the ID of object in the string form : What will be the best way to avoid the SQL injection for ASId.  public static List<AB__c>ABC(string ASId)         records = [select id, name,abc__c,der__f, from AB__c WHERE der__f = :ASId WITH SECURITY ENFORCED ORDER BY AB__c ASC NULLS LAST];


After T-2, why not send back another T-800?

So you've failed once, so you send back your shiniest poly-mimetic alloy terminator, but it fails because the resistance sent back a reprogrammed T-800! You know, or could reason that the T-800 would have to have encountered the targets of the T-1000, and they would have become familiar with each other as they evaded your near perfect killing machine.  Why not send back another with real infiltration programming (the T-800 is supposedly an infiltration unit, no?) so that it spends some time getting Connor to grow familiar with him, fooling him into thinking they are chased and then when he least expects it, the unit turns on him.  Is Skynet not capable of thinking in this out of the box manner? Did it not have enough T-800s to send back? Was it just designed by a physicist, and thus brute-forced every problem?


Can I add new methods to the String class in Java?

I'd like to add a method AddDefaultNamespace() to the String class in Java so that I can type "myString".AddDefaultNamespace() instead of DEFAULTNAMESPACE + "myString", to obtain something like "MyDefaultNameSpace.myString". I don't want to add another derived class either (PrefixedString for example).  Maybe the approach is not good for you but I personally hate using +. But, anyway, is it possible to add new methods to the String class in Java?  Thanks and regards.


Can't we compute $\lim_{n \to \infty}\frac{1+ \cdots +n}{n^2}=\lim_{n\to\infty}\frac{1}{n^2}+\cdots +\lim_{n\to\infty}\frac{n}{n^2}=0$?

I just learned the definition of limits, and I learned that if $\{a_n\}, \{b_n\} $ converges, then $$\lim_{n\to \infty} (a_n+b_n)=\lim_{n \to \infty} a_n+\lim_{n \to \infty}b_n$$ holds.  And my teacher said that $\lim_{n \to \infty}\frac{1+2+3+ \cdots +n}{n^2}=\lim_{n\to \infty}\frac{\frac{n(n+1)}{2}}{n^2}=\frac{1}{2}$.  But can't we compute like  $$\lim_{n \to \infty}\frac{1+2+3+ \cdots +n}{n^2}=\lim_{n\to\infty}\frac{1}{n^2}+\lim_{n\to\infty}\frac{2}{n^2}+\lim_{n\to\infty}\frac{3}{n^2}+\cdots +\lim_{n\to\infty}\frac{n}{n^2}=0+0+\cdots+0=0$$?


What is the difference between the Streaming API PushTopic, Generic Streaming and Platform Events

Salesforce offers two variants of the  -  and .  In Summer '17 (v40.0)  are now also Generally Available (GA).  How do they differ and why would you use one over the other?


How many squares can form an arithmetic progression?

Related to this question :   I am looking for a sequence $$a_1,a_2,\cdots a_n$$ forming an arithmetic progression such that all the $a_j$ are perfect squares, an example with $3$ entries is $$49,169,289$$ However, the next term would be $409$ , not being a perfect square.     Can the index $n$ be aqrbitary large ? In other words, can the sequence be arbitary long ? If not, what is the maximum possible value for $n$ ?


My husband writes for an outdoor magazine and we go backpacking/canoeing/kayaking/etc a lot for his stories. I would love to learn real photography (and maybe one day take pictures to go along with his articles). I had a few photography classes in college so I have a rough grasp of the basics. I would love a recommendation of what type of camera would help me to really learn about all the art that goes into photography, take good pictures and is semi-professional (but I imagine I will upgrade when I get better) and will not cost my entire life savings. The pictures I would take are of wildlife at a distance and landscapes.


After I start up synaptic this error message shows up. How can I fix this?  E: Encountered a section with no Package: header
 E: Problem with MergeList /var/lib/apt/lists/repo.steampowered.com_steam_dists_precise_steam_i18n_Translation-en E: The package lists or status file could not be parsed or opened.
 E: _cache->open() failed, please report.


While compiling my code, I keep getting the following linker error (the code compiles fine) foo.cc:15: undefined reference to `void foo<int, int (*)(int)>(int*, unsigned long, int (*)(int))' I'm fairly new to C++, and I'm pretty certain that my issue is coming from using template arguments, but I'm not sure where I am going wrong. The header for function foo and how it is being called is shown below template<typename T, typename F> void foo(T* a, size_t b, F c); ... // neither of these work foo(ptr,val,func); foo<int, int (*)(int)>(ptr,val,func);  and my implementation of foo is compiling fine. I'm not sure where the issue is coming from.


The roots of a polynomial in one complex variable lie in the upper-half plane [CSIR 2015]

Let $p$ be a polynomial in 1-complex variable.Suppose all zeroes of $p$ are in the upper half plane $H=\{z \in \mathbb{C} :Im(z)> 0 \}$.  Then which of the following are true?   $Im  \frac {p'(z)}{ p(z)} \gt 0$ for $z \in \mathbb{R}$. $Re \ i\frac {p'(z)}{ p(z)} \lt 0$ for $z \in \mathbb{R}$. $Im  \frac {p'(z)}{ p(z)} \gt 0$ for $z \in \mathbb{C}$, with $Im \ z\lt0$. $Im  \frac {p'(z)}{ p(z)} \gt 0$ for $z \in \mathbb{C}$, with $Im \ z\gt0$.   I am not able to approach this question.1 thing i can observe is that in options 1,2 and 3 $p(z)$ will be non-zero hence well defined but in option 4 if z happens to be a root,it is not well defined.


I want to display different column header text and regarding this header different values as well in my table. The header text and the value depends on one Parameter value. This parameter is defined in the "Parameters" section of the report as String, I also see it on the "Preview" view and I also give it a value there.  My problem is, that it's not working (this column is always empty: no header text, no value in detail) :) How can I use properly any IF statement here? This is my code for the table header:  ($P{first_column} == "first_column") ? "First Column" : ($P{first_column} == "second_column" ? "Second Column" : ($P{first_column} == "third_column" ? "Third Column" : ""))   What am I doing wrong? Thank you!  EDIT.:  this is the TextField expresion copied from the "source" view:  <textField>                 <reportElement mode="Opaque" x="0" y="0" width="58" height="30" backcolor="#CFCFCF" uuid="96edf250-4a1c-4448-8995-3753c76f4a1e"/>                 <textElement verticalAlignment="Middle">                     <font size="9"/>                 </textElement>                 <textFieldExpression><![CDATA[($P{first_column}.equals("first_column") ? "First Column" : ($P{first_column}.equals("second_column") ? "Second Column" : ""))]]></textFieldExpression>             </textField>


How to create a gradient texture from one material to another (opaque to clear)?

I am trying to render an object that has opaque base and gradually becomes clear/translucent at the top in Blender cycles.  Please see the attached image (which was not made with blender).


How can I make the color white look as white as possible?

In designing websites and applications, I have noticed that when mixing colors with white, certain colors make white look more "greenish" or "purple-ish". This happens to a much greater degree when using tints of white.  As a designer, how can we understand how white is influenced by the colours it is contrasted with?


appending an element to the end of a list in Java

I'm working an assignment to create a list with no maximum number of elements with generics. Before I add a generic  to my code, I wanted to try it with a basic int first. However, I keep getting a NullPointerException whenever I make a call to my append() method. Here's the code: public class PythonList {     class Node {         int data;         Node next;                  public Node(int data) {             this.data = data;             next = null;         }     }     Node head;     public void append(int x) {         Node currentNode = head;         Node tempNode = new Node(x);          while(currentNode.next != null) {             currentNode = currentNode.next;         }         currentNode.next = tempNode;     }     public static void main(String[] args) {         PythonList list = new PythonList();         list.append(1);         list.append(2);         list.append(3);         list.append(4);     }  I know the logic behind this is sort of in the style of Python, but I've never studied Python before, and I need help understanding why the while loop causes a NullPointerException that crashes my program every time?


Sum of series $\sin \theta+\sin 2 \theta+\sin 3\theta+\dots$

I need to prove sum of series: $$\sin \theta+\sin 2 \theta+\sin 3\theta+\dots=\sum_{n=1}^\infty \sin n\theta$$  by using in the first place the complex numbers.


I want to list all the tables of a sqlite3 database, but it doesn’t work. Let’s imagine that in ma database I have the following tables : foo1, foo2, foo3, … Then, with this code :  cur.execute("SELECT name FROM sqlite_master") for table in cur:      print("The table is", table[0])   I have this output : The table is foo1, whereas I’d like have this one :  The table is foo1 The table is foo2 The table is foo3 …   But if I modify the code to have :  cur.execute("SELECT name FROM sqlite_master") print(cur.fetchone()) for table in cur:      print("The table is", table[0]   Then the output is :  (foo1,) The table is foo2   So what’s wrong in my code ?


The "Teacher" badge seems to be applied inappropriately on occasion

I noticed that someone had the  badge, which states to be for answering a question with a score of 1 or more. I suppose that's really for "first (successful) answer".  Because the answer indicated had a score of −3, and in fact no answers with non-negative scores.  So shouldn't this badge be cancelled?  (I know, it doesn't work that way now.) It is a one-shot determination, so if the answer happens to rise momentarily positive (the first vote was up, followed by two downs, for example, with the eventual average being 2 downs for each up) it is awarded, when that would seem to be "mistaken".  For many people, it might get re-awarded to a different answer. In general, I think you shouldn't be too quick to award it, but should wait for the average voting to show. Otherwise, why bother at all? Just say it's for answering, period.


unable to open ubuntu after installation

i was using windows 7 and installed Ubuntu 16.04 by creating a partition on the disk , the installation went well but when i restarted the system it directly jumped to windows and i'm not able to accesses Ubuntu its not shown on the booting option also


Trigger error from external functionality to Jquery Validation

I want to invalidate my password field if password strength is weak.  I am using "pstrength" method to calculate password strength.  Bar below password input box changes color as password strength increases.  I am using jQuery Validation plugin to validate rest of my form fields which is working fine.  I need to trigger error messages if password is weak , say if strength is less than 30 count(e.g. in fiddle) and strength bar color is yellow or green.  I have added fiddle for the same   addMethod will add new validation method but actually i need to trigger error from external functionality "pStrength" when passwordStrength is lower than expected  I tried to call it as for e.g.  if(passwordStrength < 30){              var $validator = jQuery("#registerForm").validate();             $validator.showErrors("password strength is low");          }   But no luck


marginfigure: meaning of parameters 'pc'

Please, what is the meaning of parameters 'pc' in the following line:   \begin{marginfigure}[-15pc]   thanks a lot, valerio


Basic physics question from a starting physics student

When regarding Newton's 3rd law, I have a question. It seems like while I study, there is no reaction, the actions act at the same time. Is this correct? And also, I really don't understand why something would "push" back at you. I understand that it happens because of real life examples, I just need clarification on how something can push back. I know this is really basic, I would just like some help. Thanks!


Steward badge can now be awarded multiple times -- backfill details

As we announced in our post on  to the Review Queues, the Steward badge can now be earned more than once per queue. The purpose of this post is not to debate the merits of this decision ( already exists), but to explain the nuts and bolts of how it will be backfilled. This is how it will appear on your profile if you have earned it multiple times:  Once we push the visual design changes live across the network, this is how badge attainment will look on /review/close/stats:  For those of you who have already completed enough reviews to earn multiple Steward badges, we will be retroactively awarding them to you, starting today. The backfill script will run about twice an hour, and your achievements trophy will light up as each one is awarded. For those of you who have done thousands and thousands of reviews, things may be a bit noisy, so we thank you in advance for your patience. It may take up to two days for all of your badges to show up.


I have created function which uses one object list and using that list it created two HashMap values:  public HashMap<HashMap<Integer, List<String>>, HashMap<Integer, List<Long>>> getIONameAndId(         List<LineItemVO> lineItemVOs) {     HashMap<Integer, List<String>> ioNameMap = new HashMap<>();     HashMap<Integer, List<Long>> ioIdMap = new HashMap<>();     HashMap<HashMap<Integer, List<String>>, HashMap<Integer, List<Long>>> ioData =         new HashMap<>();     List<Long> ioIds = new ArrayList<Long>();     List<String> ioNames = new ArrayList<String>();     for (LineItemVO lineItemVO : lineItemVOs) {         ioIds.add(lineItemVO.getInsertionOrderId());         ioNames.add(lineItemVO.getInsertionOrderName());     }     ioNameMap.put(1, ioNames);     ioIdMap.put(1, ioIds);     ioData.put(ioNameMap, ioIdMap);     return ioData; }   I want to simplify this function so it gives exact idea what it returns or should I use Map instead of HashMap?


Can I backup a running virtualbox Virtual machine?

I am currently running a time consuming python script on a virtual machine(It has been running for ~95 hours at the moment). I have no idea how long it will take to complete and am running it on a VM because of the possibility to save the state and reboot my laptop (In case of mandatory updates). However, I just received an e-mail that I have to turn my laptop in to get an upgrade from windows 8 to windows 10 tomorrow.   Because the script has been running for quite some time now I don't want to start all over again the day after tomorrow. Is it possible to back-up the VM including the current state and get it up and running again when my machine has been updated? And if so what is the best way to do this?  Some extra information: -I am running windows 8 on the host system -The VM is running Xubuntu 16.04  Thanks in advance!  Edit: I'm not upgrading from windows 8 to 10 with the free upgrade, i will receive a clean windows 10 installation because of company policy.


I was told to switch to nginx or at least to mpm_worker. But really, how can I estimate if my server is not really overloaded even with mpm_prefork?  My system is:   GCP 1 CPU + 3,75GB Debian 8 Apache 2.4 with mpm_prefork Varnish cache, Memcache   Some php.ini settings  max_execution_time = 30 max_input_time = 60 memory_limit = 1536M   Some other various standard apache modules, without fastcgi and without php-fpm.  <IfModule mpm_prefork_module>     StartServers             5     MinSpareServers       5     MaxSpareServers      10     MaxRequestWorkers     250     MaxConnectionsPerChild   0 </IfModule>  KeepAlive Off   And I have about 20 small wordpress blogs on it.  So how many concurrent users can I take all together on all sites? I don't need exact numbers. I want to understand if it's 10s 100s or 1000s? Probably not 10000s. But if it's something like 250 same time online - I think It's still good for now.  Also, should I set the memory limit to 3GB? OR let the left 2GB to be used by varnish is a good idea?  Completed 1000 requests Finished 1000 requests Server Software:        Apache/2.4.10 Server Hostname:        sochi.asp.sale Server Port:            443 SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256 Document Path:          / Document Length:        199165 bytes Concurrency Level:      100 Time taken for tests:   12.041 seconds Complete requests:      1000 Failed requests:        0 Total transferred:      199546499 bytes HTML transferred:       199165000 bytes Requests per second:    83.05 [#/sec] (mean) Time per request:       1204.067 [ms] (mean) Time per request:       12.041 [ms] (mean, across all concurrent requests) Transfer rate:          16184.28 [Kbytes/sec] received Connection Times (ms)               min  mean[+/-sd] median   max Connect:       12  711 1471.9    307    6868 Processing:    23  492 960.2    253    7588 Waiting:        2  302 957.0     76    7043 Total:         35 1203 2005.6    524    7629 Percentage of the requests served within a certain time (ms)   50%    524   66%    534   75%    608   80%    644   90%   7164   95%   7186   98%   7188   99%   7189  100%   7629 (longest request)


So I was introduced to Tokyo Ghoul by watching the anime. I recently started reading the manga and was surprised when I saw this on the character profile on the back-lid of the front cover of Tokyo Ghoul volume 14 (the final volume before :re):         I know it is implied that Eto is Takatsuki Sen in the anime and manga, but I don't recall anywhere in the anime where it is revealed that Eto/Takatsuki Sen is the One-Eyed Owl. I also don't think I recall reading in the manga that this was the case (until I saw this image).  Did I miss something? Is Eto/Takatsuki Sen the One-Eyed Owl?


Wacom tablet (CTH-480) supported on Ubuntu 14.04?

I am currently using a Wacom tablet (CTH-480) on Ubuntu 13.10. This is possible because of the solution suggested here:    I would now like to upgrade to Ubuntu 14.04. But before I want to be sure that my tablet will still be supported. Can anyone tell me whether my tablet will still work?


How to run a shell script upon user authentication (e.g. screen unlock)?

I would like to specify a shell script (say one to send me an email) whenever a given user is authenticated, for example if prompted after sleep, fresh login or fast user switching.  PS: I found answers for running a script when the computer wakes from sleep and another for when a user logs into a fresh session, but that is not exactly what I'm looking for.


Is `$(< file)` completely bash, or does `$(< file)` really depend on `cat`?

From Bash Manual:     The command substitution   $(cat file) can be replaced by the equivalent but faster $(< file).   cat is from coreutils, instead of a bash builtin command. So I am surprised that the bash manual would mention something outside bash, such as cat.  Is $(< file) really a shorthand of $(cat file)?  Is $(< file) completely bash, or does $(< file) really depend on cat?   If $(< file) is completely bash, and doesn't depend on cat,    is < file a redirection or a command or both (a command with a redirection and an empty command name)? how can < file (a command with a redirection and an empty command name) output to stdout?   Thanks.


Copying and pasting specific file types in folders and subfolders

I have a top level folder which contains many subfolders. I am trying to copy the mp4 files from inside those subfolders to a single directory. From the small amount of knowledge I have from codecademy, this command is the closest I could come to the desire function.  cp /masterDir/*.mp4 /outputFolder   but this would only copy any mp4 files found in the top directory.  In short, is there any concise way to tell the command line I want it to go through all the subfolders and copy any that meet the file type? Is this a case for a python "for each" script?


Cycles. Why is the background on my layer not transparent?

I am new to blender and cannot get the compositor to work. I have a model plane and a background video:  In videos I have seen it work but it doesnt work for me.  Any help is greatly appreciated, thanks.


Has anyone been like this? 2021-06-24 15:40:05.259 28697-32228/com.telkom.wifiidgo E/OneSignal: Unknown error getting FCM Token java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.messaging.FirebaseMessaging.getToken()' on a null object reference


I'm trying to find the roots of $x^4+1$. I've already found in this site solutions for polynomials like this $x^n+a$, where $a$ is a negative term. I don't remember how to solve an equation when $a$ is a positive term as the equation above.  Thanks


I have a dualboot setup,but I cannot see how to change some color. I keep getting the black and grey stuff. If I change some line in the grub.cfg file and when I do update-grub it reverts back to black. The only thing that the graphical GRUB customizer was able to do is change the default boot order and sound a beep. It can do nothing about the colors! I can not really read Ruby if that is what it is. Where can I comment something out or put a line in that let's me see some effect?


Someone who is a combo of a liar, an exaggerater, and have a tendency to construct stories

Is there a term for such a person?  Background:  Someone who is a pathological liar, an overt exaggerator. He would want to take center-stage, makes up stories to capture interest, and applies his stated qualities in positive as well as negative interactions.  Such a person, I believe borderlines personality disorder.  But can we summarize him in a word?  Some words that  appear to have different connotations:   Exaggerator braggart


I have an awk expression !a[$0]++ and I want to know the exact evaluation order. From the document of awk, ++ is at higher precedence than !. However, in this example, ++ is in its postfix form (not !++a[$0], which as I understand is basically tells awk, "evaluate other parts first, after that evaluate me". In this case, what's the evaluation order?


Is it possible to know anything with certainty?

I have been thinking about objectivism vs relativism recently.  It is easy to prove by contradiction that there exist objective truths. However, is it possible to know anything?  If you assume a human makes errors in logical deduction 5% of the time, then it seems to follow that it is impossible for a human to know anything (eg how to know 1+1=2). In which case it seems that the answer to my question is unknown. This is confusing to me, any thoughts?


I can get a list of drives plugged into a computer with File.listRoots(), but I only get the drive letter.  How can I get the actual name of the drive (e.x. "Local Disk", "DVD RW Drive", etc.) as it's shown in Windows Explorer?


If $f$ is twice differentiable, $\big(f(y) - f(x)\big)/(y-x)$ is differentiable

Suppose $f: \mathbb{R} \to \mathbb{R}$ is a $C^{1}$ function. Then, define a new function $F: \mathbb{R}^{2} \to \mathbb{R}$ by: $$ F(x,y) = \begin{cases}   \displaystyle \frac{f(y) - f(x)}{y - x} &\text{ if } x \neq y \\   \displaystyle f'(x) &\text{ otherwise.} \end{cases} $$ Then, if $f''(x)$ exists, $F$ is differentiable. I can prove that $F$ is differentiable if $x \neq y$, since under these conditions $F_{x}$ and $F_{y}$ are $C^{1}$. So it's left to prove $F$ is also differentiable if $x = y$.   At first, I conjectured that, for example, $F_{x} (a,a)$ would be $f''(a)/2$, but I'm having a hard time proving it. I started using the definition $\lim_{h \to 0} (F(a+h, a) - F(a,a)) / h$ and applying the MVT found $\bar{a}$ between $a$ and $a + h$ s.t. this difference quotient is: $$ \frac{1}{h}(f'(\bar{a}) - f'(a)) $$ so I tried dividing and multiplying by $\bar{a} - a$, thinking it would be possible to prove that $\lim_{h \to 0} (\bar{a} - a)/h = 1$, but so far I've only been able to bound it above by $1$.  Is it true? Does this conjecture even makes sense? I'm lost in thinking about any other candidates for the differential in these points. Any help would be appreciated!


This question is quite similar to , but I can't understand the solution. I also know , but still I am unable to understand what I am doing wrong.  I am trying to autocomplete the list of directories that are placed in /something/:  $ ls /something/  One    Other    Three   in a way that this will happen:  $ hi [TAB]  One Other Three $ hi O[TAB]  One Other   Only when the first word is hi and not only inside /something/.  This is what I am doing in .profile:  _codeComplete() {     local cur=${COMP_WORDS[COMP_CWORD]}     COMPREPLY=( $(compgen `ls /something/` -- $cur) )  } complete -F _codeComplete "hi "


can we go to nepal form India without any passport . but only having an adhaar card

i am an Indian. i want to go to nepal , Kathmandu within 2 weeks .but i don't have passport. so can i go to nepal from varanasi just having adhaar card as my identity proof  and how much will it cost to reach nepal exculding travelling fare.


For what positive integer values of $n$ where $n^{34}-9$ is a prime.  I am not getting how to approach this one.  Any help will be truly appreciated.


script with gsetting command for setting background not functional with cron

APOD_DIR=/home/apod/  if [[ "{$filename}" == *"${date}"* ]]  then     echo "file exist" # Do not update the wallpaper  else     # wallpaper does not exist. Fetch it and set as wallpaper     file="${APOD_DIR}${date}.jpg"     wget -O $file $url     gsettings set org.gnome.desktop.background picture-uri file:///$file  fi    This is a block of the script that i intend to use to fetch the image from url and set it as the desktop background. It works fine while executed from the terminal but while testing it as a cron job, the program is able to fetch the image just fine but the command with gsetting tool does not seem to be effective in changing the desktop background.  Cron  50 12 * * * /home/shellScripts/background.sh


Are there $a,b>1$ with $a^4\equiv 1 \pmod{b^2}$ and $b^4\equiv1 \pmod{a^2}$?

Are there solutions in integers $a,b>1$ to the following simultaneous congruences? $$ a^4\equiv 1 \pmod{b^2} \quad \mathrm{and} \quad b^4\equiv1 \pmod{a^2} $$  A brute-force search didn't turn up any small ones, but I also don't see how to rule them out.


Why did Dumbledore say that it was "essential" that Voldemort kills Harry if Harry was bound to life by his blood inside Voldemort?

This is for me the biggest unresolved question of the Books. Dumbledore planned from the beginning that Harry should first destroy all Horcruxes and then should die by the hand of Voldemort (which leads to Piton telling to Harry that he must die) and that Harry should kill Voldemort as last thing. The point is: why? Harry since The Goblet of Fire was "immortal", namely since Voldemort took Harry's blood in his vein. Quoting the 7th book, chapter 35:  ‘Precisely!’ said Dumbledore. ‘He took your blood and rebuilt his living body with it! Your blood in his veins, Harry, Lily’s protection inside both of you! He tethered you to life while he lives!’ ‘I live ... while he lives? But I thought ... I thought it was the other way round! I thought we both had to die? Or is it the same thing? [...] ‘He took your blood believing it would strenghten him. he took into his body a tiny part of the enchantment your mother laid upon ypu when she died for you. His body keeps her sacrifice alive, and while that enchantment survives, so do you’. And this all make sense with the prophecy.  So, it is clear that Harry would (or better COULD, if he chose to return back every time he died) live, even if he jumped from a cliff or someone killed him, till Voldemort was alive. Then, why not kill himself alone (or with the help of his friends) to destroy the part of Voldemort which is in him and then do the other things? Why is it so essential" that it is Voldemort to kill Harry? The only reason I could find is the fact that Dumbledore wanted Harry to accept death so that he could fully handle all the Deathly Hallows in order to have the power to kill Voldemort (and yes, the Deathly Hallows in the books have only the function of making Harry strong enough to kill Voldemort, which in the end happened and was the reason Harry won, because Voldemort died by the Elder Wand as Harry was the master of it, since Harry took it from Draco's manor. Deathly Hallows have nothing to do with Harry returning to life or anything special, they are only power). To support this, in book 7, chapter 35 Dumbledore says:  ‘If you laid hands on them, I wanted you to possess them safely. You are the true master of death, because the true master does not seek to run away from Death. He accepts that he must die’.  Still, Harry could have processed and accepted death even from other Death Eaters or other people, so I think that this is not the answer.


Recommended way to install Kdenlive on Ubuntu 18.04

If you go to the kdenlive download page:   Under      Ubuntu | LinuxMint | Elementary   It reads:     It is recommended to download the AppImage version until the release   of Ubuntu 18.04.   Ubuntu 18.04 has been released. What is the best way to get it installed?


Allow highlighting certain bits of a code fragment or quote

It would be nice to be able to put emphasis on specific bits of a fragment or of a quote (bold can help for a quote but I find that it makes things less readable sometimes). What do you think? Update: On , you can highlight particular lines by prefixing each line with @@. See also:


Are there multiple non-isomorphic principal $G$-bundles on Euclidean space?

I'm pretty sure the answer is out there, see , but that is unfortunately way over my head :).    I'm interested in the case that $G$ is a Lie group (e.g. $U(1)$), but I don't need to know the answer for general manifolds -- just for boring old Euclidean space.    For example, I sort of feel like there is only one $U(1)$-bundle over $\mathbb{R}^n$ for any $n$ (up to isomorphism), and possibly only one $SU(2) \times U(1) \times SU(3)$-bundle, too. But I have no idea how to prove/disprove that.  Do I need to go ahead and try to understand these classifying spaces referenced in the link above?  Or is there a more elementary argument?    If there can be multiple different $G$-bundles over $\mathbb{R}^n$, what is the simplest Lie group $G$ and the lowest value of $n$ for which this occurs?  Is there a simple explicit construction?


Ubuntu 16.04 does not boot from live cd. It's a dual boot machine. Boot sequence is ok. Some never ending commands keep running. What would  be the  cause.


How to recognize binaries installed in `~/bin`?

I am trying to execute some binaries manually installed in a bin directory in my $HOME (normal user).   Files are present in /home/user/bin and have exec permission:  $ ls -la ~/bin/ total 120 drwxr-xr-x  2 my_user my_user  4096 déc.   8 12:04 . drwxr-xr-x 94 my_user my_user  4096 déc.   8 12:23 .. -rwxr-xr-x  1 my_user my_user  4843 déc.   8 12:04 dplx -rwxr-xr-x  1 my_user my_user  6515 déc.   8 12:04 dprint -rwxr-xr-x  1 my_user my_user  2123 déc.   8 12:04 dprintm -rwxr-xr-x  1 my_user my_user 15494 déc.   8 12:04 duplex -rwxr-xr-x  1 my_user my_user  6501 déc.   8 12:04 kmprb -rwxr-xr-x  1 my_user my_user 11069 déc.   8 12:04 kmprb_one -rwxr-xr-x  1 my_user my_user  5543 déc.   8 12:04 krmpq -rwxr-xr-x  1 my_user my_user  8267 déc.   8 12:04 mpr -rwxr-xr-x  1 my_user my_user 25452 déc.   8 12:04 mprb -rwxr-xr-x  1 my_user my_user  2953 déc.   8 12:04 pqnext -rwxr-xr-x  1 my_user my_user   896 déc.   8 12:04 rmpq   And ~/.profile contains the call for ~/bin (it's the default on debian).  # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then     PATH="$HOME/bin:$PATH" fi   However, binaries are not recognized after a reboot:  $ duplex bash: duplex : commande introuvable   I also tried source .bashrc and source .profile. The second one works but just for the terminal (if I close it and reopen a new one, the command isn't recognize anymore).  How could I permanently install these binaries?


I can prove other inequalities like $\|x\|_{1}\leq \sqrt{n}\|x\|_{2}$ and $\|x\|_{1}\leq {n}\|x\|_{\infty}$ using cauchy-schwarz and holder's inequality, but I don't know how to prove this one $\left\|x\right\|_2\leq\sqrt{n}\left\|x\right\|_\infty$. Can anybody tell me how to prove this one?  Also, how do I prove inequalities like these ones: $\|x\|_2\leq\|x\|_1$,$\|x\|_\infty\leq\|x\|_2$, $\|x\|_\infty\leq\|x\|_1$?


What is causing this ClassLoader- and File-related NullPointerException?

I'm creating a method that is supposed to find the path to a text file and return it as a String to be used for a configuration file. Here's the block of code that is being affected:  public String getConfigLocation() {         String fileName = "locateconfig.txt";         ClassLoader classLoader = ClassLoader.getSystemClassLoader();         File file = new File(classLoader.getResource(fileName).getFile());         locationFile = file.getAbsolutePath();         return locationFile;     }   The line that's causing this exception to be thrown is File file = new File(classLoader.getResource(fileName).getFile());.  Here's the first few lines of the stack trace - just the first few, because all the methods being affected here interact with the one I'm having a problem with.  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at epicorexpert.EpicoreJFrame.getConfigLocation(EpicoreJFrame.java:1068)     at epicorexpert.EpicoreJFrame.checkConfig(EpicoreJFrame.java:1076)     at epicorexpert.EpicoreJFrame.<init>(EpicoreJFrame.java:94)   What probably-obvious issue am I overlooking? Thanks.  Edit: Why is this being marked as a duplicate question and suggesting a redirect for the thread on what NullPointerExceptions are? I understand what they are and how they're typically resolved. That's not what I'm asking here; this is specifically about the ClassLoader and File objects and why I'm getting NPEs from them.


How can I block a malicious port scanner currently running on my server?

I'm currently attempting to clean and secure a server that has pnscan running on it. This instance of pnscan was installed by an outside party most likely to use our server as part of a port scanning botnet. It seems to be able to write it's binaries to /dev/shm and /tmp.  Here's the output of "lsof | grep pnscan":  root@xxx.xxxx.xxx:/home/bitnami# lsof | grep pnscan pnscan     9588     daemon  cwd       DIR    8,1      4096      647169 /tmp pnscan     9588     daemon  rtd       DIR    8,1      4096      2      / pnscan     9588     daemon  txt       REG    8,1      18468     647185 /tmp/pnscan pnscan     9588     daemon  mem       REG    8,1      42572     418331 /lib/tls/i686/nosegneg/libnss_files-2.11.1.so pnscan     9588     daemon  mem       REG    8,1    1421892     418349 /lib/tls/i686/nosegneg/libc-2.11.1.so pnscan     9588     daemon  mem       REG    8,1      79676     418329 /lib/tls/i686/nosegneg/libnsl-2.11.1.so pnscan     9588     daemon  mem       REG    8,1     117086     418343 /lib/tls/i686/nosegneg/libpthread-2.11.1.so pnscan     9588     daemon  mem       REG    8,1     113964     402913 /lib/ld-2.11.1.so pnscan     9588     daemon    0r      CHR    1,3        0t0     705    /dev/null pnscan     9588     daemon    1w      CHR    1,3        0t0     705    /dev/null pnscan     9588     daemon    2w     FIFO    0,8        0t0     37499  pipe pnscan     9588     daemon    3r      REG    8,1        203     516243 /opt/bitnami/apache2/cgi-bin/php-cgi pnscan     9588     daemon    4u      REG    0,15         0      37558 /dev/shm/.x pnscan     9588     daemon    5u     IPv4    37559      0t0     TCP  domU-12-31-39-14-41-41.compute-1.internal:52617->lab1.producao.uff.br:www (ESTABLISHED) pnscan     9588     daemon    6u     IPv4    3688467    0t0     TCP  domU-12-31-39-14-41-41.compute-1.internal:55926->200.25.69.27:www (SYN_SENT)   And here's the output of "ps aux | grep pnscan":  daemon    9588  2.3  0.1 3116204 3272 ?        Sl   21:42   1:55  /tmp/pnscan -rApache -wHEAD / HTTP/1.0\r\n\r\n 200.0.0.0/8 80   Any advice on how we can find the source of this would be greatly appreciated.  Thanks!


Brightness change freezes Ubuntu with Noveau and Nvidia drivers

Both Nvidia and Noveau were working fine before my bios update and now they both crash when I change the brightness. Integrated still works fine with brightness and I've tried several Nvidia drivers with no change. Any help would be greatly appreciated, I am not sure where to start.


I can't install lighttpd on my Ubuntu 18.04.  I did an update & upgrade and then:  fmf@kodi:~$ sudo apt install lighttpd Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  lighttpd : Depends: libssl1.1 (>= 1.1.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages. fmf@kodi:~$   My sources.list:  fmf@kodi:~$ cat /etc/apt/sources.list # Ubuntu 18.04 Bionic Beaver deb http://it.archive.ubuntu.com/ubuntu/ bionic main universe restricted multiverse #deb-src http://it.archive.ubuntu.com/ubuntu/ bionic main universe restricted multiverse  deb http://security.ubuntu.com/ubuntu bionic-security main universe restricted multiverse #deb-src http://security.ubuntu.com/ubuntu bionic-security main universe restricted multiverse  deb http://it.archive.ubuntu.com/ubuntu/ bionic-updates main universe restricted multiverse #deb-src http://it.archive.ubuntu.com/ubuntu/ bionic-updates main universe restricted multiverse   # Backports: deb http://it.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse #deb-src http://it.archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse   # Canonical partner: deb http://archive.canonical.com/ubuntu bionic partner #deb-src http://archive.canonical.com/ubuntu bionic partner fmf@kodi:~$   My system:  fmf@kodi:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.1 LTS Release:        18.04 Codename:       bionic fmf@kodi:~$ uname -a  Linux kodi 4.15.0-44-generic #47-Ubuntu SMP Mon Jan 14 11:26:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux fmf@kodi:~$  How can I fix this?


Lock element to bottom of containing div

#Container {     width: 500px;     height: 600px; }  #TheElement {     width: 500px;     height: 100px;     background-color: #000000; }   How do i get #TheElement to be locked to the very bottom of #Container, regardless of the other content inside container, without a bunch of margin trickery?


How to install Crunch Wordlist on 12.10 32-bit?    I used  tar -zxvf crunch-3.4.tgz cd crunch-3.4 sudo make sudo makeinstall   A directory /pentest/passwords/crunch was created but I cannot seem to know how to run Crunch.


How do I get an one liner for this condition?  if [ -f ~/.ssh/config ] then     echo -e "\xE2\x9C\x94 Config file existing" fi   My attempt:  if [ ! -f ~/.ssh/config ] || echo -e "\xE2\x9C\x94 Config file existing"


Is the following incorrect?     Return it to he who gave it to you.   Presuming it is, how would I correct it?  (without resorting to saying "to the person who gave it to you," which is somewhat cheating in my mind because the person takes the same form as a subject and object, as opposed to he and him)


(G, *) is certainly an acceptable notation for a group. However, I prefer the notation . As you can see, the distance between the letters and brackets are uncomfortably long. Is there a way to shorten the distance?


I am new user on Linux (Ubuntu) and i want to know best partitioning for 128GB SSD and 8GB RAM


What is the qualitative difference between quantum superpostion and mixed states?

As I understand it, if one has a complete knowledge of the state of a quantum system (insofar as one knows the statistical distributions of all the observables associated with the state) then one can represent it as a state vector (or ket) in an associated Hilbert space, and we say that the system is in a pure state. Furthermore, given an (orthonormal) basis for the Hilbert space, one can express this state vector as a linear combination of the basis vectors. This is usual carried out through the use of an eigenbasis induced by an operator acting on the Hilbert space, representing some observable. We say then that the state is in a quantum superposition.   What confuses me is how this differs from a mixed state? I understand that the situation is at least somewhat different since a mixed state arises when we have a lack of knowledge about the state (i.e. we lack all the possible information we could, in principle, have about it, that is, the statistical distributions of all the observables associated with the state). Hence, we must consider a statistical ensemble of possible pure states that the system could be in, each having an associated probability. This is a so-called classical probability as it does not stem from the intrinsic probabilistic nature of a quantum system, but rather the fact that we lack all the knowledge that we could possibly have about the system.  Is it simply, that in the case of a pure state, even though we know the statistical distribution of the observables associated with this state, we do not, a priori, before measuring the given observable, Know which eigenstate the quantum system is in, and hence must consider it to be in a quantum superposition of the available eigenstates? (In this case, it would be a so-called quantum probability, since such an uncertainty does not arise from lack of information about the state of the system, but is intrinsic in the quantum nature of the system).  Apologies for the long-windedness of this post, I just thought I'd write evergthing down on my thoguhts about it, and hopefully someone can correct/ explain it to me.     Edit: I think that perhaps my confusion stems from how to interpret a quantum superposition of states. How should one interpret this physically? (if I have an understanding of this perhaps it'll clear up things a little).


Eq. (2.4.7) of Weinberg, "Lectures on QM" from eq. (2.4.6)

Could anyone please tell me the proof of (2.4.7), using (2.4.6)?  Substituting (2.4.7) into the right equation of (2.4.4), we get:  $$P_1 = -i \hbar \left( \frac{\partial}{\partial x_{1e}} + \frac{\partial}{\partial x_{1N}} \right).$$  Also, substituting the right equation of (2.4.3) into the RHS of the right equation of (2.4.7), we get:  $$(-i \hbar \bf \nabla _{X} \rm )_1 = - i \hbar \frac{\partial}{\partial X_1} = - i \hbar \frac{\partial}{\frac{m_e \partial x_{1e} + m_N \partial x_{1N}}{m_e + m_N}} = - i \hbar (m_e + m_N) \frac{\partial}{m_e \partial x_{1e} + m_N \partial x_{1N}}.$$  Why we can say these are equal?