So, I'm working on a project where I have to create a front panel of an LED light. The front layer is made up of little diamond shaped surface, the light passes through this, and these tiny diamond shaped front panel helps illuminate and spread light evenly across. Anyway, the problem I'm having is that I tried the easiest way i know to create this panel, which is to make it using a plane mesh, and duplicating it. However for the size I needed, I ended up with over 9000, yes over 9000 (9435) separate duplicates put together. It has the look I want, but its impossible to edit or render it out because there is obviously too many of them and blender keeps freezing. So I'm stuck. How can I fix this without blowing up my PC. If anyone knows an alternate way to create this, please help me! :> I would really appreciate it.

When I composed my     I would have liked to have the camera pitch up enough to show the horizon, except I didn't have enough geometry to extend the cobblestone street and the sidewalk all the way to infinity (mostly because that would require infinite stuff).  Even in that shot it is clear that I need to widen the "sidewalk" to cover up the "sky"box.    Contrast with     where the ray tracer can use the procedurally replicated geometry.   is a failed attempt at faking out the horizon, even with low detail.  It fails because lighting's interaction with the geometry gives it away.  Some techniques that prevent you from having to deal with infinity include   put the scene in a box (usually a room) put the scene in a canyon (which is just a box without a top so you can see the relatively featureless sky) route the road into a tunnel, or around a corner and hide the horizon with other geometry (which is really just a variant on the canyon). have no detail on the ground at all (flat color or gradient)   Those are all dodging the question of interest to me:  What techniques have people used in blender to fake various kinds of detail repeating into the distance (instead of just obstructing the view of infinity)?


I am looking to automate our regression test cases for a silverlight application we have and was wondering if anyone has done this and could suggest tools that can be used to do this quickly.

I am looking for an open-source functional testing automation tool that supports testing of Silverlight based applications.  To be more specific, the tool should be able to recognize objects within the Silverlight applications.  I have found a question that talks about , but I would like to ask for help in dealing with similar testing automation experience on Microsoft Silverlight.


The exercise wants you to make a function that will take an integer and go through adding up its total - 1 each time, so i.e. 4 would be 4 + 3 + 2 + 1 = 10 function addUp(num) {   if (num === 1) return 1;   return num + addUp(num - 1); }  This works, but I'm not sure how. If I used say 6 to me the return line would be 6 + 5 = 11; I'm not sure how this looping? Thanks

One of the topics that seems to come up regularly on mailing lists and online discussions is the merits (or lack thereof) of doing a Computer Science Degree. An argument that seems to come up time and again for the negative party is that they have been coding for some number of years and they have never used recursion.  So the question is:   What is recursion? When would I use recursion? Why don't people use recursion?


Stack is a template class with a vector m_elem. Vector type is also template. So in main I am trying to push an int into the vector but it is showing undefined reference. No idea y is this happening. The program is as follows.  main file  int main() {        Stack<int> intStack;     intStack.push(7);     return EXIT_SUCCESS; }   .h file  template<class T> class Stack {     public:         void push(T const& elem);     protected:     private:         vector<T> m_elem; };   .cpp file  template<class T> void Stack<T>::push(T const& elem) {     m_elem.push_back(elem); }   Error showing is  undefined reference to Stack<int>::push(int const&)   Can someone please help me. Thanking You in advance.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am trying to call a stored procedure by parameter name:  int processId = 1; CallableStatement stmt = conn.prepareCall("{call get_process_log_latest(?)}"); stmt.setInt("process_id", processId);   But setInt() throws a NullPointerException:    However, stmt is not null; the exception is thrown from within setInt() on line 2065 from the method getNamedParamIndex() at line 1381.  The stored procedure:  DELIMITER $$ CREATE PROCEDURE `get_process_log_latest`(     IN process_id INT ) BEGIN     SELECT         id,         start_time,         end_time     FROM process_logs pl     WHERE pl.process_id = process_id     ORDER BY id DESC     LIMIT 1; END$$ DELIMITER ;   I am using JDK 8, mysql-connector-java-5.1.38, and MySQL 5.7.12.  Do you know what I may be doing wrong?  UPDATE  Authenticated into MySQL with account used by Java and used  SELECT * FROM information_schema.parameters    WHERE parameter_name = 'process_id';   to confirm the parameter name of the stored procedure and that the account has metadata privileges.

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


Im using a rock generator add on to create rocks, and have been looking at collisions between rocks using rigid bodies. I found that the rocks dont actually collide, but come close, this lead me to look at edit mode and look at (what I think is) the mesh of the rock.  This rock generation add on is great for producing lots of rocks quickly, so I dont want to create rocks (up to thousands) individually. Is there a way to remesh this to have the mesh intersect with the actual object? Ive tried the remeshing tools in blender, but these alter the shape of my rock (I dont mind a small change, but the changes were quite drastic)

I'm making a rolling ball animation where the ball will roll around a set of pipes, planes and other objects. I created a spring using the screw modifier and then made a second slightly smaller spring inside it to create a track like effect for my ball to roll on. When I add the passive object to them, they still will not hold up my ball. The ball falls straight through them.


We have a few servers on Google Cloud Platform. I enabled Google stackdriver and it looks like our Solr servers are consistently at 70%+ memory utilization. We can increase the memory if it is likely to speed up queries (our Solr queries are taking a few hundred milliseconds). I tried free and ps (pagefault ) commands and here is the output.      free -h -c 5 -s2               total        used        free      shared       buff/cache   available Mem:           7.1G        4.7G        134M         37M        2.3G        2.2G Swap:            9G        2.5G        7.5G   Output from ps, only first line which is for the Solr process.      ps -eo min_flt,maj_flt,cmd | sort -nr 623846089 4526790 java -server   Will increasing memory help?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


What is the current status or acceptance of  as it relates to Einstein's theory of relativity? Has quantum mechanics ruled it out or is it still the favored view of the world? Perhaps there can't be any consensus as we cannot link quantum mechanics with relativity?

In relativity, to my knowledge, the path of an object is described by its worldline in spacetime, and since time is a part of the spacetime geometry, an object's worldline--in a sense--always exists on this “block of time” as I heard the PBS spacetime say. But in quantum mechanics (the Copenhagen interpretation), I’ve heard that a particle will exist in (superposition of being in) multiple places at once until it is observed and the wave function collapses and it has a single position.   So my question is, how could these two viewpoints be reconciled? Apologies if I got anything wrong.


Im having error. I program unity 2D game and there is save system. In game you can collect coins but when player close the game and open it again the score will be the same but coins will be there again. So player can close the game and open it again and gain more coins. I did script Coin which i attached to that coin and there is this code: using System.Collections; using System.Collections.Generic; using UnityEngine;  public class Coin : MonoBehaviour {  public int coinValue = 100;  private void OnTriggerEnter2D(Collider2D other)  {     if (other.gameObject.CompareTag("Player"))     {         Player.instance.ChangeScore(coinValue);     }  }  public void destroyCoin()  {     Destroy(gameObject); // this is where i want at the start of the game destroy coin  }  }  Then i have another scirpt atached to player and there is code that move player, change score and there is also code where the player loads score, level and also that code which should at the start check the bool if a coin was picked up in past: // Start is called before the first frame update public void Start() {     //load player     PlayerData data = SaveSystem.LoadPlayer();      level = data.level;     score = data.score;     coinPicked = data.coinPicked;      if (coinPicked == true)     {         Coin.destroyCoin(); // here is that error which i want check if a coin was picked up and if yes then call coin script     }      text.text = score.ToString();      //score manager this     if (instance == null)     {         instance = this;     } } //coin pickup 1 public void ChangeScore(int coinValue) {     score += coinValue;     text.text = score.ToString();     coinPicked = true; } //coin pickup 2 public void ChangeScore2(int coinValue2) {     score += coinValue2;     text.text = score.ToString();     coinPicked2 = true; } //take 200 when falling public void DeleteScore(int deadValue) {     score += deadValue;     text.text = score.ToString(); }  //save player public void SavePlayer() {     SaveSystem.SavePlayer(this); }   everything works except that delete coin at the start. Unity gives me this error: Assets\Scripts\Player.cs(98,13): error CS0120: An object reference is required for the non-static field, method, or property 'Coin.destroyCoin()' Can someone help? Thanks

Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i > 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)


Is it correct to say 'a very great refrigerator'. Isn't just 'a great refrigerator' enough? Should we use 'very' before 'great' as in a very great man, or is it 'a great man'. Why? Thanks. sundaresh

A common grammar lesson that was taught to me in the US and that I've had to teach abroad in EFL classrooms is that we're not to use adverbs of emphasis with absolute modifiers, just as we're not supposed to use them as comparatives or superlatives.  Classic egregious examples of this mistake include very unique and more perfect, which seem obviously flawed to me. Other instances of further modified absolute modifiers are similarly meaningless or contradictory in nature.  I wonder, though, if the rule that I learned isn't overly broad, and whether it's taught similarly in the UK and elsewhere. I find myself modifying absolute modifiers quite regularly, and in some circumstances I think it's not only logical and correct, but quite meaningful. Phrases like almost exactly or virtually all or practically infinite possess a specific meaning that can't really be replicated using nonabsolutes like very nearly or most or quite long.  In my own speech and writing, I use such phrases exactly as I see fit, so this isn't a request for permission, per se. I'm more curious about whether there's a more appropriate rule regarding absolutes that you rely on (and might be used in a classroom).


What happens to all the extra rep. earned after the 200 daily cap is exceeded? (With the exception of bounties and accepted answers of course.) Does it just "disappear"? Do you gain it the next UTC day? What does happen to it?

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


Let $\vec{v_1}$ and $\vec{v_2}$ given: $\overrightarrow{V_1} = r_1\hat{u_r} + \theta_1\hat{u_\theta} + \phi_1\hat{u_\phi} \\   \overrightarrow{V_2} = r_2\hat{u_r} + \theta_2\hat{u_\theta} + \phi_2\hat{u_\phi} \\$  where $r_n\theta_n\phi_n$ are known constants.  My first question is whether $\vec{v_1}$ and $\vec{v_2}$ are functions? I think they are functions since for each point in coordinate system, the result of $\vec{v_1}$ and $\vec{v_2}$ is different since $\hat{u_r} \hat{u_\theta} \hat{u_\phi}$ changes direction. This is little weird when compared to cartesian coordinate system.  Second, Can we dot product in a similar manner done in cartesian coordinate system, i.e does dot product equal to $\vec{v_1} \cdot \vec{v_2}=r_1 \cdot r_2 + \theta_1 \cdot \theta_2 + \phi_1 \cdot \phi_2$? By similar arguments at question 1 It seems to me that it is only possible when they are defined at same point. Otherwise, i think we need to convert vectors to cartesian coordinate system.

I was writing a C++ class for working with 3D vectors. I have written operations in the Cartesian coordinates easily, but I'm stuck and very confused at spherical coordinates. I googled my question but couldn't find a direct formula for vector product in the search results.  Assume that I have $ \overrightarrow{V_1} $ and $ \overrightarrow{V_2} $ vectors in shperical coordinates:  $ \overrightarrow{V_1} = r_1\hat{u_r} + \theta_1\hat{u_\theta} + \phi_1\hat{u_\phi} \\   \overrightarrow{V_2} = r_2\hat{u_r} + \theta_2\hat{u_\theta} + \phi_2\hat{u_\phi} \\   \hat{u_r}: \mbox{the unit vector in the direction of radius} \\   \hat{u_\theta}: \mbox{the unit vector in the direction of azimuthal angle} \\   \hat{u_\phi}: \mbox{the unit vector in the direction of polar angle} $  $ \theta $ and $ \phi $ angles are as represented in the image below:   What is the general formula for taking dot and cross products of these vectors?  $ \overrightarrow{V_1} \bullet \overrightarrow{V_2} = ? \\   \overrightarrow{V_1} \times  \overrightarrow{V_2} = ? $  If you need an example, please work on this one:  $ \overrightarrow{V_1} = 2\hat{u_r} + \frac{\pi}{3}\hat{u_\theta} + \frac{\pi}{4}\hat{u_\phi} \\   \overrightarrow{V_2} = 3\hat{u_r} + \frac{\pi}{6}\hat{u_\theta} + \frac{\pi}{2}\hat{u_\phi} $


I just created a new account at Meta, and I might create others on the Stack Exchange network. I might post other questions, but if I decide to request an account deletion, will my username no longer be linked to the profile? I.e. will it just be text?  To me that would make sense, but I didn't want to assume.

I have meticulously read through similar questions, answers and their comments but I still do not understand how the deletion is done. From what I understand I email the customer service and then they do what exactly?     1) They disable my account so that I can no longer use it?      2) They reassign all of my questions and answers to some other   account? To which one?      3) They delete all my questions and answers so that they go away from   public view?   What is the flexibility (if it exists) of the deletion procedure? Is it possible to erase the traces of my former association with the site. Can I request any of the following be done?     4) All of my questions and answers be deleted from public view?      5) Some of my questions and answers be deleted? If yes what criteria?      6) Can I have all of my contributions be assigned to some other   account which runs as sort of a "collective account" and already has   tons of content so that it doesn't happen like my contributions just   move to some other url but still stay grouped under that location and   therefore that location can be discovered as representing my account?      7) Can I have my contributions dispersed through several "collective   accounts?      8) Can my current public name be removed from any comments to my posts   so that my posts cannot be identified later as once belonging to me?   Please be polite with me. I wouldn't have asked if I have found the answer in the other questions. The other questions are also old and it is not clear what the situation is as per 05/2012.  UPDATE (for those interested):  I asked the Stackoverflow team about the procedure. Apparently none of the points 2-8 I asked above are possible, only 1 will take place. The link to my user page from my contributions is going to be removed and replaced with non-clickable text of an anonymized user name like "user1234". Whether this number is the same as my current user_id is not clear. That's all the information I got.  I'm going now to rename myself to "Anonymous" then request the account deletion. Those interested in the procedure will witness the exact result on this page.  Farewell.


Is there any full jailbreak for iOS 11.4 except Electra (it's for 11.2 — I cannot downgrade cause Apple doesn't sign that firmware anymore)? Because, honestly I think that Pangu Anzuchang is not a full feature jailbreak as it's just a web clip application which does not inject a kernel exploit (as Electra does, that's why it restarts the device), so what will you suggest?   UPDATE  iOS 11.4 is a stable release now. Any jailbreak methods are available?

I've been searching around for a a while now and So far I haven't found any full jailbreaks for ios 11.4 on a 6s. To be honest, I am new to the jailbreaking scene. I've installed Velonzy, but could find no jailbreaking tools. Am I missing something, or is there truly nothing left.  PS. I would downgrade to a system-rootable version but I haven't any SHSH blobs, or found any alternative method. Is it possible?


I think the title is self explanatory but neither here () nor here () I found a detailed answer

I stumbled upon these SyncTeX files in my directories and wanted to know what they are for. I searched this site and the internet and I think I have some vague understanding of what it is but I'm still not very satisfied with my actual knowledge. I've found many questions about configuring SyncTeX but none about what it is and what it does.  So, could someone explain what is SyncTeX and what does it do exactly and/or point to some general purpose documentation?


I would like to bring my girlfriend from the Phillipines to visit me in Trinidad. The easiest route seems to be manila intransit through Qatar and connect in Gatwick airport to Port of Spain Trinidad. From.my research it seems that no visa is required to transit Doha as the luggage will be checked all the way through to Gatwick. But as she will have to reclaim and recheck luggage she will require a visitor in transit visa. She will also require a visa on arrival into my country. She is currently unemployed in phillipines. I would really like to know if anyone has had experience in getting this transit visa. It seems as if you have to apply for it online but still also visit a visa application center in the Phillipines to have your biometric information collected. It all seems overwhelming. Grateful for any advice.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I have an annoying issue, it's as if linux thinks I'm pressing the Fn key every second. doesn't happen in windows though. Its preventing me from logging into arch. I can enter my LUKS password fine, then after that I just get these ^@^@^@^@^@^@ characters repeating every second. Its the same characters that show when I press my Fn button. IDK what to do. It even does it with my laptop keyboard disabled. I have windows 10 and Arch installed on a Lenovo Flex 3. Anyone have any ideas? Just started doing this out of the blue. Its also really hard to search for.  I tried chrooting into Arch with the USB, but I cant even enter my LUKS password because of the repeating characters. They also show up in Vim.

I recently noticed some weird behavior on my GNU/Linux machine. I've been trying to narrow it down but I am unsure where to go next. My setup uses the following:   i3 gdm arch systemd grub2 pulseaudio 4.13.3-1-ARCH   Here is how it manifests iself:   when trying to resize panes in i3 (alt+right click and hold) the action will be randomly canceled (happens on key presses) alt+dragging windows meets a similar fate booting to tty periodically adds ^@s to the login prompt, I'd estimate them to be ~0.5s intervals in tty I can see those being passed to vim when I open the command bar (:) using a pager like less in tty mode and searching with / will result in  (?) being spammed htop's search (/) is instantly canceled by the periodic keypress  holding a key and trying to have it be repeated (such as holding space) will stop the other occurrences from happening (e.g. only one or two happen) any tooltip (such as chrome tooltips) get instantly closed because of key presses   Here is what I have tried:   tried switching DE temporarily (gnome, cinnamon, xfce) tried killing programs one by one until I was left with a tty session and essentially systemd services + pulseaudio tried booting on an arch livecd - problem does not manifest  overriding grub2 with init=/bin/bash drops me into a shell where the problem does not manifest I have tried pressing all keys to verify it wasn't a hardware problem, however previous steps point to it not being hardware I have made a diff of dmesg, from the init=/bin/bash and the regular boot - the main difference seems to be systemd being started in the regular boot Made a diff of lsmod from init=/bin/bash and regular boot, tried to rmmod modules that seemed related   My system is up to date, I'm not quite sure what other steps I can do to track this down. Any other debugging tips?


I would like to know that what are differences between,  (int)Something;  int.Parse(Something);  Convert.ToInt32(Something);   I asked my friends and no body helped me about this subject.  Any help will be appreciated.  thanks.

What is the main difference between int.Parse() and Convert.ToInt32()? Which one is to be preferred


I just started to learn Java, and I'm a bit lost as to why my "break" command at the bottom of the code is being executed.  import java.util.Scanner;  public class GradeValues {      private static Scanner scanner;      public static void main(String[] args) {         boolean keepGoing = true;         String grade; // initializing variable for grade          while(keepGoing = true){             System.out.println("What percentage did you get? ");  //Ask User the question             scanner = new Scanner(System.in); //starting the scanner              grade = scanner.nextLine();  //storing user input of percentage              int percentage = Integer.parseInt(grade);  //converting string to a int              if(percentage >= 80 && percentage <= 100){                 System.out.println("Your grade is an A!  Awesome job!");             }else if(percentage >= 70 && percentage <= 79){                 System.out.println("Your grade is an B!  Nice work!");             }else if(percentage >= 60 && percentage <= 69){                 System.out.println("Your grade is an C!  That's average. =( ");             }else if(percentage >= 50 && percentage <= 59){                 System.out.println("Your grade is an D!  Come on man, you can do better.");             }else if(percentage < 50){                 System.out.println("Your grade is an F!  You need to hit the books again and try again.");             }else{                 System.out.println("I think you type the wrong value.");             }              System.out.println("Would you like to check another grade?");  //Asking user if they want to do it again             Scanner choice = new Scanner(System.in);  //Gets user input             String answer = choice.nextLine();  // Stores input in variable "answer"             if(answer == "yes"){                 keepGoing = true;  //While loop should keep going              }else{                 keepGoing = false;  //While loop should stop                 break;  //this should stop program             }         }     } }   Considering that the keepGoing boolean variable is still true (if the user types 'yes'), the application will still stop because of the break in the else statement.  Can someone let me know why it's doing that and how to fix that?

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


is there any difference b/w `  $(this).parent().children(".name")    and  $(this).parent().find(".name")   ? Both these function return the same object. When I do   console.log($(this).parent().children(".name"));   and   console.log($(this).parent().children(".name"));   both these function print object of div name on console..

To select a child node in jQuery one can use children() but also find().   For example:  $(this).children('.foo');  gives the same result as:  $(this).find('.foo');  Now, which option is fastest or preferred and why?


I used the following code to convert a bytes array to a string:  byte[] saltBytes;  // ... filling the array with some values  for (int i = 0; i < saltBytes.Length; i++) {     builder.Append(saltBytes[i].ToString("x2")); }  string salt = builder.ToString();    Now,  I would like to revert this process and convert my string to a bytes array. I was reading this question: .  The answer mentions:     If you already have a byte array then you will need to know what type   of encoding was used to make it into that byte array.   I'm not sure about the encoding used in the snippet I posted. Does this have to do with the ToString("x2") part?

How can you convert a byte array to a hexadecimal string, and vice versa?


Can someone explain SQL injection?  How does it cause vulnerabilities?  Where exactly is the point where SQL is injected?

Just looking at:   (Source: )  What does this SQL do:  Robert'); DROP TABLE STUDENTS; --   I know both ' and -- are for comments, but doesn't the word DROP get commented as well since it is part of the same line?


After a print review, all my pictures turned out to be too dark and dull. How should such a picture be edited, say on a picture editing software like Lightroom?  These are images that have been already edited to look almost right atleast on screen. I'm not sure but do I need to further increase the blacks, shadows and vibrance so that the pictures look better on print (this is what I think)?

One thing I still struggle with is using night photos in advertisements. I tend to avoid it but sometimes its necessary or requested.  I find it difficult on glossy and even worse on a newsprint to work with any sort of night photo.  What kind of prep and/or adjustments can be taken to a night shot to make sure it doesn't come out looking too dark, flat, hard to see, kinda lost on the paper.  Say something like this using a photo from Unsplash for a quick example, no affiliation at all with Milwaukee.    Or again with a photo from Unsplash:    When actually printing these can quickly look overly dark and muddy.


here is what I do right now: I create an image and fill it with some colors like so:    then I unwrap my mesh so that every face gets the color I want it to have.  However I don't like this workflow at all, I would prefer it, if I could just select colors for the faces in blender and then blender automatically generates a color map.  Somone knows if this is possible? It must be an image so I can import it to my game engine

I looked everywhere from tutorials to documents and either they only talk about texturing or they are doing the tutorial in 'blender render' when I need it in 'cycles render'.   I have a cube that is toon shaded red. And as you can see it is unwrapped to show the map.    Now I would like to add the color that's on the cube onto the map.   As you can see at the bottom of the image that I created a new image called 'untitled'. Now the next step of baking the colors onto the map is where I become lost. Regardless of which 'Bake Type' that I used, I keep getting error messages like: No valid selected objects.  Everything looks selected to me. No, I am not new to Blender but I am new to color baking. Thank you for any help provided; I used a simple cube first before using other models I already created.


static void Main(string[] args) {    Console.WriteLine("Enter full file name with path:");    string strFileName = Console.ReadLine();     string FileEx =Path.GetExtension(strFileName);    Console.WriteLine("Your File Extension is {0}",FileEx);  }  output :  Enter full file name with path:  D:\MyFiles\TestFile.csv Your File Extension is .csv   Here I have a problem if I saved a text file in name of TestFile.csv it shows file extension is csv but I really want actual file extension even if given a fake file name  Eg : TestFile.csv ( Type of text file ) should give .txt output      TestFile.csv ( Type of csv file) should give .csv output  I think  it is not possible to attain this using above Function , any valuable advice will be helpful.  Thanks in advance

I am looking for a simple way to get a mime type where the file extension is incorrect or not given, something similar to  only in .Net.


I have some web roots in directories x,y,z, etc. in /var/www/, some of them (not /var/www/) are mounted with options rw,bind,uid=301,gid=301 (301 is uid of user www-data and gid of group www-data). This worked very well in default apache2 of saucy, but no longer with upgraded version in trusty. All permissions of all files and directories under /var/www/ are owned by www-data:www-data. Changing all permissions to 777 (and restarting service) didn't help! I never changed any settings in /etc/... or somewhere.  EDIT: I'm getting 404 error when I request under http://localhost:80/x (error page suggests that apache is running: Apache/2.4.7 (Ubuntu) Server at localhost Port 80). No substring error or fatal in /var/log/apache2/error.log or /var/log/apache2/access.log. netstat -tupln shows that apache2 is running on port 80.  Any ideas?  EDIT 2: Now the pages are also broken with lighttpd (don't have any CSS layout and edit links are not shown in mediawiki (this has been a behavior caused by malious redirection of apache, but can no longer be fixed by requesting the page under different hostnames)). Apache behaves as described before

I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened because Zend updated Apache.  Whatever the reason may be, I want to know where to keep my php files so that I can access them from my browser.


:%s/foo/bar/g   This vim command has saved me lots of time.  But today I accidentally typed  :%s/foo/bar without the global (g) ending and it worked anyway!  I was very confused.  What's going on?  Is it better to use the /g and why?

I'm trying to replace each , in the current file by a new line:  :%s/,/\n/g    But it inserts what looks like a ^@ instead of an actual newline. The file is not in DOS mode or anything.  What should I do?  If you are curious, like me, check the question  as well.


I need to write my document in Arial font, and I have no idea how to install the font. Would anyone be able to give a step by step guide? I have tried to use other guides, but they get rather confusing.  Thank you.

In preamble, I have:  \renewcommand{\familydefault}{\sfdefault} \usepackage{arial}   but it doesn't work.  How do I set my font to Arial throughout the entire document?  UPDATE:  In short, both answers work.  It really depends on the environment. If using LaTeX and don't mind using a cloned font then choose Herbert's answer. If using XeLaTex and want to use the authentic font then choose Leo's.


I don't understand how the variables being passed aren't changing when I run the function. The values are initially set to None, as I hope for them to change once I run the function but nothing happens. So I'm obviously doing something wrong. I'm fairly new to Python and would love some help.  def askUser(number_STRING, digits, array_NUM, chars):    print ("NOTE: Program can only convert mm, cm, m, and km")   number_STRING = raw_input("Type the number (9KM, 30M exactly like    that) you would like to convert to centimeters.")   digits = int(filter(str.isdigit, number_STRING))   array_NUM = len([c for c in number_STRING if c.isdigit()])   chars = str(number_STRING[array_NUM:])  def main():    number_STRING = None   digits = None   array_NUM = None   chars = None    askUser(number_STRING, digits, array_NUM, chars)    print chars   print array_NUM   print digits  main()

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I'm running a beta regression in R where the outcome variable is continuous but bounded between 0-1. I need the results to be understandable to an audience with a very basic stats background. I need some help interpreting the coefficients. My model is very basic and look like:  betareg(Y ~ ANE + factor(Year) +factor(Month) +factor(Sector))  I'm not sure how to interpret the coefficient on ANE. Below are the results I got for the ANE variable:   Coefficients (mean model with logit link):               Estimate  Std. Error  z value  Pr(>|z|)  (Intercept) 1.036e+00 : 7.735e-02 : 13.395 : < 2e-16 *** ANE        -1.693e-05 : 6.948e-06 : -2.437 : 0.014803 *

I have some data that is bounded between 0 and 1. I have used the betareg package in R to fit a regression model with the bounded data as the dependent variable. My question is: how do I interpret the coefficients from the regression?


I am happily using Ubuntu Mate 15.04 (Mate 1.8.2) and I need to run a xrandr script in every initialization to correct the resolution of my external monitor.  But it doesn't has a /etc/mdm/Init/...  In gnome-fallback I used /etc/gdm/Init/Default but, for obvious reasons, Mate doesn't use GDM.  Where is the correct place to insert my xrandr commands in Ubuntu Mate?

I used to edit the startup script for the GDM (/etc/gdm/Init/Default) to permanently change my display resolution.   How can I do this with LigthDM in Ubuntu Oneiric?


I downloaded the Java Development Kit from Oracle web site. Since it came as a tar.gz file I have no idea how to install it. Please help me to install it on my Ubuntu desktop.

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?  Before release Java 7, I followed  to install Java 6.  But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?


I was using Ubuntu 16.04 and switched to windows because of wireless problems of Ubuntu. After a while, I decided to return Ubuntu, but confronted with the exact same problem. I couldn't figure out why Linux Ubuntu conflicts with RT3290 wireless. After installation of system, wifi was working, but enable wi-fi option and available wireless connections was missing after first restart. I downloaded rt3290 driver from  and installed it. This driver seems like solving the problem, I now can connect to wifi, but my connection is still too fragile: it keeps disconnecting often and youtube videos is playing in low quality. Does anyone know permanent solution to this problem? Is there official ticket about this problem?

The Wifi is frequently disconnecting in Ubuntu 15.04. My Wireless interface of Ubuntu is RT3290 Wireless 802.11n 1T/1R PCIe  When wifi is disconnected, on iwconfig I got the following  eth0      no wireless extensions.  wlan0     IEEE 802.11bgn  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm              Retry short limit:7   RTS thr:off   Fragment thr:off           Power Management:off  lo        no wireless extensions.   After each disconnection I have to restart network for reconnection by     sudo service network-manager restart


UK Immigration  "bank statements or payslips from the last 6 months" for a Standard Visitor visa. I cannot understand this usage of the word "from".    give many definitions, the only relevant one in my view is:     3.1 Indicating the date at which something was created:      a document dating from the thirteenth century   However, it is still ambiguous for me:    The statement must be done at any point of time in the last 6 months and its period duration is not specified in the sentence; The statement must cover the last 6 months.   Could you clarify the meaning of such usage?

I am a doctor and I want to give my plab 2 exam in the UK.  As I am a recent graduate my father is supporting me financially. He is a retired government officer who gets pension, rents from his properties and interest from his fixed term deposits. Please tell me that how should I maintain his bank statement for 6 months, and is my employment necessary to get a visit visa as I heard from many guys that it shows ties back to your country.


I am creating a website and I am creating a form in it. In this form, I wanted to make it redirect to a URL (www.google.pt, for example) only if a keyword is written in the form when submitted (for example, "google"). Can anyone help me please? Here is the HTML code I've written to create the form:  <form action="/action_page.php" method="post">   <input type="text">

   <button type="submit">SUBMETER</button> </form>

How can I redirect the user from one page to another using jQuery or pure JavaScript?


i began learning lateX 3 days ago to make my training report ... i'm using texmaker in UBUNTU 14.04 I was compiling my files using quick build option in compilation menu and i was wondering what do they do the other options      latex , pdflatex , lualatex , etc.   and what is the difference between each one and when to choose one beside the other  Thanks

I am starting to learn LaTeX and I really like what I am seeing. However, I get the feeling I should actually start with another 'TeX' version. I've been reading about different options. Some references:      These questions and answers are very helpful, but I'd like to check to see if my findings are correct. I get the feeling that XeLaTeX is more of the 'improved' version that provides easier/more font options and makes it easier when using weird characters. Most people talk about 'converting' from one TeX to another, but given the fact that I am a beginner I am looking for the proper TeX flavor right now, so that I do not need to change preambles and such when I am learning about new things that are only available when using other TeX engines. Some details about my usage:  I visualize using TeX mostly for business reports, memos, and investigations. I also might use it for presentations and publishing in book-format. I will not be using advanced math nor Chinese or other very non-Latin symbols. Being a beginner, I do not need to convert any old documents. I have been reading about , however, and this seems like a version that will be superior to the existing TeX options. So when this becomes available, I envision switching to this. So if that is of any validity, I'd say that easy conversion to / compatibility with LaTex3 would be important.  Also, I read about an issue with 'microtype' in XeTeX, but I do not really get what that is and if this would affect me. To quote from  related to another beginner's question:  XeLaTeX would be (especially) suitable to you, for better (Unicode) multilingual support and easy font switching. And it supports more image format and PSTricks code.  I feel this also applies to my situation, so I am about to use XeLaTeX instead of LaTeX, and learn using this instead. Is this a good idea given my situation, or am I overlooking something important?


It is said that mobile OS Android is originated from Linux.  It the statement true? And Can I use apps built for Android OS in Ubuntu?  Thank you.  HELLOVENUS Fantagio.

Is it possible to run Android apps on Ubuntu? And I don't mean inside an emulator, but natively, as you would with any other application installed using the Ubuntu Software Center.


I use the bibtex to generate the bibliography in my beamer, but I get warning about empty thebibliography environment.   My spmv.bib file:      @thesis{im_optimizing_2000,     title = {Optimizing the Performance of Sparse Matrix-Vector Multiplicatio},     institution = {{EECS} Department, University of California, Berkeley},     type = {phdthesis},     author = {Im, Eun-jin},     date = {2000-06}, }  @thesis{vuduc_automatic_2003,     title = {Automatic Performance Tuning of Sparse Matrix Kernels},     institution = {University of California, Berkeley},     type = {phdthesis},     author = {Vuduc, Richard Wilson},     date = {2003},     note = {{AAI}3121741}, }   My beamer file:  \documentclass{beamer}  \mode<presentation> {   \usetheme{CambridgeUS}   \usecolortheme{dolphin}   \usecolortheme{rose}   \setbeamerfont*{title}{shape=\itshape, family=\rmfamily}   \setbeamercovered{transparent} }  \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage{times} \usepackage[T1]{fontenc}   \begin{document} \begin{frame}   \begin{block}{References}     \bibliographystyle{plain}     \bibliography{spmv}   \end{block} \end{frame}   \end{document}   The output of blg file:  This is BibTeX, Version 0.99dThe top-level auxiliary file: test.aux The style file: plain.bst I found no \citation commands---while reading file test.aux Database file #1: spmv.bib   (There was 1 error message The output of bbl file:  \begin{thebibliography}{}  \end{thebibliography}   The output of beamer:

Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body?


I have a 2TB external hard drive from Seagate that will not show up on Windows 10, but it will on Mac OS. I have followed the steps on , in particular populating the disk and noted the disk number (3). Then under Disk management I have found the following . Are the 2TB too big for the disk and is there a way to resolve this? EDIT: The drive is formatted APFS, which is not supported by Windows 10.

I have a Lacie 4TB external HDD which have 1.5 TB of data but I am not able to access it as it looks like the the file system of the volume which contains my data is Apple's File System and I cant find any way to access it from windows machine.  Please Help!!!  EDIT : Is it even possible? Or Do I need to hack my way through it? Cause I really dont wanna pay any direct/indirect singly penny to Apple.


I just installed Chrome on a new laptop and now every time I start Chrome the first page that appears is a Google sign in page. The url in the address bar is -   chrome://signin/?source=0&next_page=chrome%3A%2F%2Fnewtab%2F   My home page is set to www.google.com but this Sign in page still shows. How can I get rid of the sign in page and get www.gooogle.com as my startup page?

No matter that   in Settings → Basics → On startup, I have selected Open the home page Home page is set to my internal address   Chrome still opens with two tabs: my Home page and a Sign in tab (in foreground!).  How do I disable this Sign in thing?  I do not ever want to use it.  The version I'm using is Chrome 18.0.1025.168.  (For purposes of testing, I'm intentionally using older version.)


What would be the best way to process a complex xml file in java?  Something like this:  <company> <owner>    <ownername></ownername>    <ownerage></ownerage> </owner>  <cars>    <car>       <carname></carname>       <engines></engine>        <user>           <name></name>           <age></age>           <address></address>        </user>    </car> </cars> </company>   What would be the best way to extract car or user?

I need to read smallish (few MB at the most, UTF-8 encoded) XML files, rummage around looking at various elements and attributes, perhaps modify a few and write the XML back out again to disk (preferably with nice, indented formatting).  What would be the best XML parser for my needs?  There are lots to choose from.  Some I'm aware of are:            And of course the one in the JDK (I'm using Java 6).  I'm familiar with Xerces but find it clunky.  Recommendations?


Let $X$ be the vector space of all complex functions on the unit interval $[0,1]$, topologized by the family of seminorms    $$p_{x}(f) = |f(x)|, \quad (0 \le x \le 1).$$   Show that there exists a function sequence $\{f_{n}\}$ in $X$ converging to $0$, such that $\{a_{n}\,f_{n}\}$ does not converge to $0$ for all sequences of scalars $\{a_{n}\}$ converging to $\infty$.   Hi everybody. This problem supports the point that the metrizability is necessary for $X$ to make this theorem true:      If a sequence of functions $\{f_{n}\}$ in a metrizable topological vector space $X$ converges to $0$, then there is a scalar sequence $\{a_{n}\}$ converging to $\infty$ such that $\{a_{n}\,f_{n}\}$ converges to $0$.   But I got no clue how to find that sequence like above. Also, topologize a vector space by family of seminorms makes me confused so much. So I hope someone can help me. Thanks.

This is a problem from Rudin's Functional Analysis:  Show that there is a sequence of functions $\{ f_n \}$ in $X$ (the vector space of all complex functions) such that $f_n \to 0$ pointwise, but if any sequence $\{ \gamma_n \}$ tends to $\infty$, $\gamma_n f_n \not\to 0$.  The hint says to use the fact that the collections of all complex sequences converging to $0$ has the same cardinality as $[0,1]$. Honestly, this confused me more than it helped me.  My main issue is through the method of showing existence: I am not sure if I should attempt to construct an explicit sequence $f_n$, or if I need to appeal to other nonconstructive means such as Zorn's Lemma, etc. I have been trying to construct clever choices of sequences for a good bit now, but it always seems like I will be able to find a sequence that diverges slowly enough to allow that $\gamma_n f_n \to 0$.   Thanks!


Based on what I've researched I've installed something which is causing this problem: Ubuntu 16.04 boots fine and goes to my desktop but I can't open a terminal session no matter what I try. When I Ctrl-Alt-F1 - F6 to log in, it loops back to login.  If I need a terminal to fix this I'm unsure how I can do that.

In Unity, are there any pre-defined shortcuts, e.g. to open the dash or unhide the launcher?


I've made some shape in Blender 2.8 that roughly resembles a handle one might find on a fridge to learn, following along with Gran Abitt's videos.  Where the handle part of the handle meets itself in the mirror, in the "viewport shading" mode, there's an ugly dark band around it.  There is no such join on the backplate.  I think my problem is similar to , but the proposed solutions don't work for me - there is no option to "clear custom split normals data", and the problem actually goes away when I tick "Auto Smooth".  The real problem is that I just don't understand what I'm doing.  Why does ticking "Auto Smooth" make the dark band go away?  What is the dark band?  I can't see anything untoward in Cycles whether it's on or off - is it actually a problem?

was following a tutorial where I stumbled into this weird line in my mirrored mesh (sorry for the feet lol)      You can also download the blender file


Are there grammatical errors in the following sentences? Semantically, one of them seems not right.  Someone parked their cars at the entrance. The scientist dedicated themselves to the research.

We have  to a question about gender-neutral pronouns, in which he points to the "singular they" and its long history of use in English. (Note that he also advises against using it.) Example:     If someone wants to watch TV tonight, they'll have to do the dishes.   This avoids having to say "he or she" in mixed-gender situations. Okay, fine. I'm not going to get my panties in a bunch if people want to talk this way.  But it occurrs to me that "singular they"—infelicitous at the best of times—really falls apart when extended into the realm of reflexive pronouns:     If someone wants to watch TV tonight, they'll have to do the dishes all by themselves. [?]   That feels very wrong. The only alternative, if one paints oneself into that corner, is to flip it back to singular:     If someone wants to watch TV tonight, they'll have to do the dishes all by themself. [???]   That feels worse.  If I'm to state this as a question, I guess I would put it thus: How can use of a "singular they" truly be reconciled? Is it really as much of a linguistic dead end as it feels to me?


The /etc/crontab on my machine is as follows:  17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly 25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )   I have two related questions:   Why 17, 25, 47, 52? I get that you might want to stagger the different jobs, but why not stagger them more evenly? Like for instance 0, 15, 30, 45? Why is anacron used for the daily/weekly/monthly commands but not the hourly ones? Are hourly commands more OK to miss? (If I understand correctly, anacron is for if you have an "Every Saturday" command and the computer is down on Saturday, it runs the command on Sunday instead).

To my understanding, this is the default configuration of /etc/crontab:  # m h dom mon dow user  command 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly 25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )   Why were these specific times chosen for the default entries?  At first I assumed that they are somewhat randomized on installation to even out the system load, but that doesn't seem to be correct.


Having a problem on an EC2 Ubuntu Lucid instance where if I run (sudo) apt-get update all packages with Translation-en_US are ignored.  Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid Release.gpg Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates Release.gpg Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid Release Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates Release Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/main Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/universe Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/main Sources Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/universe Sources Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/main Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/universe Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/main Sources Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/universe Sources Hit http://security.ubuntu.com lucid-security Release.gpg Hit http://ppa.launchpad.net lucid Release.gpg Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US Ign http://ppa.launchpad.net/txwikinger/php5.2/ubuntu/ lucid/main Translation-en_US Hit http://security.ubuntu.com lucid-security Release Hit http://ppa.launchpad.net lucid Release Hit http://security.ubuntu.com lucid-security/main Packages Hit http://security.ubuntu.com lucid-security/universe Packages Hit http://ppa.launchpad.net lucid/main Packages Hit http://security.ubuntu.com lucid-security/main Sources Hit http://security.ubuntu.com lucid-security/universe Sources   Just trying to get a little more context around the "ignore", and why it's only ignoring for Translation-en_US

I had a bunch of errors in the output of sudo apt-get update:  duplicate entries and 404 not found errors.  Figured those out, I hope: I removed PPAs that didn't have any packages associated with them, then I removed out a duplicate entry in /etc/apt/sources.list.  It seems I have royally buggered it up.  Now most of the lines say Ign when I do sudo apt-get update.  How do I go about straightening out what I have screwed up?  I need to get rid of these Igns that are all over the place.  There are about 50% (eyeball guess) Igns!


$(3x-1)^7=a_7x^7+a_6x^6+a_5x^5+...+a_1x+a_0$  Now it is required to find the value of $a_7+a_6+a_5+...+a_1+a_0$  Please give me some hints to solve this problem.Thanks a lot in advance.

Given that$$(3x-1)^7=a_7x^7+a_6x^6+a_5x^5+...+a_1x+a_0$$find $$a_7+a_6+a_5+a_4+...+a_1+a_0$$  Is there anyway to do the question without using binomial theorem and expanding the expression on the LHS??


In  there is a deck of 55 cards. Each of them has 8 symbols on it. There is a total of 50 different symbols and each two cards have one and only one in common.  I am wondering, given a total number of symbols N and a number of symbols on each card K, how do you find the biggest number of cards such that:   on each of those cards there are exactly K of the N symbols, every two cards have one and only one symbol in common.

Assume I have a non-empty finite set $S$ with $x=|S|$. I want to divide the set $S$ into subsets $S_1, S_2, .., S_n$ (Edit: Yes, $S = \cup S_i$, and I'm embarrassed that I forgot to include that) such that:     $ |S_i| = y, \forall 1 \le i \le n$  (The cardinality of each subset is fixed)   $|S_i \cap S_j| = 1, \forall 1 \le i,j \le n, i \neq j$ (Each subset has exactly 1 element in common with any other subset)   Edit: The second condition above excludes the possiblility of a pairwise disjoint division of subsets.  Is there a way to determine the maximum value of $n$ (the number of possible subsets), given $x$ and $y$?


I understand that the discrete log problem is defined as  $G^y \bmod p = x$  Speaking generally, $G$ here is a generator for the group zp*, where $G$ is able to generate each element in the group for a given prime modulus.  My question is, in the context of elliptic curve cryptography, is the group the entire set of points that lies on the curve being used?  Assuming this is correct, does the prime used for the modulus have to be larger or smaller than this group of points, or even reside in it?

It's pretty easy to generate a Curve25519 private key: generate 32 random bytes of data and then do:  e[0] &= 248 e[31] &= 127 e[31] |= 64   You can then generate a public key by doing  on the private key. For example, here's a random keypair I just generated:  public: e40ed268dff20db8497d0691421d00b086aad1efedcd5bd223d9eb6c0b85665f secret: e3c0e8b20ba7894882ddb37522dbe90867befcf9f31a5ce29c0d7997e0bd856d   The whole safety of public key encryption is that it is hard to take a public key and reverse the operation. Elliptic curve cryptography, as I understand it, relies on the fact that a  is hard to find. In particular, for a given large b and g, it is hard to find an integer k such that  $b^k = g$  How does that equation relate to Curve25519? Specifically, if I had a public key like the one above, how would I express, in math terms, the problem I need to solve to find the private key? How does it relate to the equation I see from time to time - $y^2 = x^3+486662x^2+x$, and the number $2^{255} - 19$?  I am guessing it is not as simple as "the private key is k and the public key is b and/or g" in the equation above. I'm also a little confused because the keys would appear to have roughly the same number of digits, which would seem to imply that there aren't many feasible values for k?


I want to know a single word for a person who is greatly addicted of using internet. Please don't answer the word internetmaniac. I already have this one.

Is there any specific word for a person who is always online on the Internet?  I am just curious to know because staying online is like a profession nowadays.


I would like to convert a small amount of data from trimble ssf format to shp format for inclusion in an ArcGIS database.    I have been trying to do this for a few months and not success.    I have a small amount of data so do not want to purchase a license for PathFinder.

I have not come across *.ssf files before but I believe they are a Trimble GPS binary format.  Someone has asked me if these files which he thinks have line/poly features can be imported for display in ArcMap 10.0.  I am keen to know whether this is possible because my research so far seems to indicate that they are for correcting feature accuracy rather than containing features.  Can *.ssf files be converted for display in ArcMap?


Hi I want make a console program in c# where the user enters his/her date of birth and the program should return his/her current age...  I am a beginner and have really no idea to do that...

Given a DateTime representing a person's birthday, how do I calculate their age in years?


I have this loop but i dont know why it never check the condition,i thought it might for integer.tostring,please help if you can:     public static void linerSearch(String[] array1, int key){         int size = array1.length;         for(int i=0;i<size;i++){             if(array1[i] == Integer.toString(key)){ // < -- This line                 System.out.println("The node is already in the list");             }         }       }

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


is it possible to swap the numbering of the section block with it's title.  \section{Section}   like     Section 1   instead of     1 Section   I use  \documentclass[fleqn,12pt]{article}

I am having difficulty adding the section number after the section title. Normally the order is section number followed by section title. I want it to be the opposite. I am looking for what I should add to the following .tex file code:  \usepackage[compact]{titlesec} \titleformat{\section}[runin]{\large\bfseries}{\thesection}{}{}


Let $A_n$ be a sequence of sets having the same cardinality $k$ (possibly uncountable, and may not be equal to the cardinality of the continuum). Also assume they are disjoint. How could I show that $\cup_n A_n$ has cardinality $k$?

I am trying to prove that, given a collection $\{S_i:i \in \mathbb{N}\}$ of infinite sets which all have the same cardinality, that $|S_1 \cup S_2 \cup \cdots|=|S_1|$. WLOG, I'm going to assume the $S_i$ are disjoint.  My thought was to let each $f_i:S_1 \to S_i$ be a bijection and to define $g: S_1 \times \mathbb{N} \to S_1 \cup S_2 \cup \cdots$ by $g(x,n)=f_n(x)$. I see that $g$ is a bijection.   So, the problem is reduced to "merely" proving that $|S_1 \times \mathbb{N}|=|S_1|$. I say "merely" with tongue in cheek because it is by no means obvious to me how to do it.  If $S_1$ is countable, I know how to proceed by the standard diagonal argument used to show $\mathbb{Q}$ is countable. But if $S_1$ is uncountable, I don't know what to do, even though it seems intuitive to me that crossing $S_1$ with $\mathbb{N}$ won't make the set "bigger" since it doesn't make it bigger in the countable case.


I'm having trouble figuring out how to get the correct number of days in a given month to populate in a dropdown, based on a previously selected month in a different dropdown. I already have the JavaScript setup to populate the month dropdown, but I can't figure out how to use that data to get the days correct. I was thinking I should use if-else statements and for loops for each statement based on the selected month's value, but cannot figure out how to link the two.   Here's the related HTML:
     Birthday :

             <select class="form-control form-control-sm" id="monthDrop">             </select>

             <select class="form-control form-control-sm" id="dayDrop">             </select>

             <select class="form-control form-control-sm" id="yearDrop">             </select>

   And here's the JavaScript I've done so far:  var month = [     "Jan",     "Feb",     "Mar",     "Apr",     "May",     "June",     "July",     "Aug",     "Sept",     "Oct",     "Nov",     "Dec" ];  var html;  function print(message, id) {     var id = document.getElementById(id);     id.innerHTML = message; }  function printMonthOptions(option) {     var newMonthArray = [];     for (var i = 0; i < option.length; i += 1) {         var optionHTML = `<option value="`;         optionHTML += option.indexOf(option[i]) + 1;         optionHTML += `">`;         optionHTML += option[i];         optionHTML += `</option>`;         newMonthArray.push(optionHTML);     }     return newMonthArray.join(''); }  html = printMonthOptions(month); print(html, 'monthDrop');   I'm fairly new to JavaScript, all of my knowledge is from teamtreehouse, but I'm really trying to learn. I'm also sure there's an easier way to do all of this so any advice about how I've put this together and how to fix it would be much appreciated.

I've been using this function but I'd like to know what's the most efficient and accurate way to get it.  function daysInMonth(iMonth, iYear) {    return 32 - new Date(iYear, iMonth, 32).getDate(); }


When I was reading ,  in the 4th paragraph     In an op-ed for the New York Times Serratore argued that the document read like a statement from a survivor of workplace harassment. At a January 27 dinner, she noted, Comey found out he would be alone with the president.   Now everybody knows the document(s) can not read by itself.  Is this a mistake? Or grammatically correct?  I am sorry if I sound like trying to find trifle things.

This book reads very well.  The usage of the verb read is unusual. Because it doesn't say here that the book reads something, but someone reads the book. Can you give me a hint what is this grammar point called? Can I say these?  This story tells very well. This wine drinks smoothly. This show watches well.


Construct a subset $ C \subseteq [0,1] \times [0,1] $, dense in $[0,1] \times [0,1] $ that has the property of every horizontal or vertical line has at most one point of $C$.  I think if I guarantee that the set I'm constructing has a point in every quarter of the square, then in every 16-portion of the squarte, then in every 4^n portion of the square it'll work. But my problem is writing this.  Ant the second part of this problem is proving the following:   Let $C$ be the created subset, $ \int_{0}^{1} ( \int_{0}^1 \chi (C) (x,y) dx ) dy =  \int_{0}^{1} ( \int_{0}^{1} \chi (C) (x,y) dy ) dx = 0$, but $\chi(C)$ is not integrable.  Can I use Fubini theorem here? The set is 2-measurable, so the first equality should hold, right? But why is it equal to 0?  Thanks!

Given a subset $A$ of $\mathbb{R}^{n}$, a point $x \in \mathbb{R}^{n}$ is said to be in the boundary of A if and only if for every open rectangle $B\subseteq\mathbb{R}^{n}$ with $x\in B$, $B$ contains both a point of $A$ and a point of $\mathbb{R}^{n}\setminus A$.  My question is from Spivak's Calculus on Manifolds: Construct a set $A \subseteq [0,1]\times [0,1]$ such that $A$ contains at most one point on each horizontal and vertical line but has boundary equal to $[0,1]\times[0,1]$.


Whenever you search for any song, (in my case on ), 2 kinds of songs usually pop-up, one the original title and the other a remastered version. I have always wondered, how the process of remastering is carried out; because remastered songs are usually shriller (from my experience) whereas the original ones are soft. Is this a side effect of remastering or is this intended? Also, when remastering a song, is the band whose song is being remastered, supposed to play the song live, or is the digital copy sufficient?

There are times when older albums get re-released as a remastered version.  What is the difference between the original version and the remastered version?


I have an object I'm trying to set a property to.  However, I'm getting the type error Uncaught TypeError: Cannot set property 'meh' of undefined.  I'm trying to set this property using prototype.  greenify = {     color: function(){         console.log("Turned green");     } };  greenify.prototype.meh = function(){     console.log("Off"); }  console.log(greenify);   Can anyone explain why it's claiming the greenify object is undefined and how to fix it?

I'm not that into dynamic programming languages but I've written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one know how this works? var obj = new Object(); obj.prototype.test = function() { alert('Hello?'); }; var obj2 = new obj(); obj2.test();  I remember a lot discussion I had with people a while back (I'm not exactly sure what I'm doing) but as I understand it, there's no concept of a class. It's just an object, and instances of those objects are clones of the original, right? But what is the exact purpose of this ".prototype" property in JavaScript? How does it relate to instantiating objects? Update: correct way var obj = new Object(); // not a functional object obj.prototype.test = function() { alert('Hello?'); }; // this is wrong!  function MyObject() {} // a first class functional object MyObject.prototype.test = function() { alert('OK'); } // OK  Also these  really helped a lot.


This is the first section of my main method, where I prompt the users to input as many phrases as they want, and the input gets saved in an ArrayList. I coded this so that the program would stop asking for more input if the user puts 'q', but for some reason, when I run this, even if I input q, it doesn't exit the loop. It just keeps on asking for more inputs. I'm assuming I made a mistake in the while loop, but I'm not entirely sure what.  I'm really new to Java so I may have made a blatant mistake but I'm not sure..   public static void main(String [] args)   {     //vars     String userInput;     int quitter = 0;      //arraylist     ArrayList<RecursivePalindrome> a = new ArrayList<RecursivePalindrome>();      //scanner     Scanner in = new Scanner(System.in);      //user input     System.out.println("\t Palindrome Checker");     System.out.print("Input phrase one at a time (press 'q' to quit): ");     while(quitter == 0)     {          userInput = in.next();          if(userInput == "q" )         {             quitter++;         }         a.add(new RecursivePalindrome( userInput));         System.out.print("Input phrase one at a time (press 'q' to quit): ");     }     System.out.println();


My PS3 Super Slim bricked beyond repair, and i really wanted to find a way to salvage all the data inside its hard drive so i could possibly use it in a new PS3 if i ever buy another one. My console doesn't even get turned on anymore, so no safe mode can be involved. I searched for some info and learned that the PS3 data is heavily encrypted, so i can't just slide the drive into a new console, it apparently demands formatting the drive beforehand. Is there any way to avoid this from happening? Maybe clone the contents of the old console into the new console's built in drive? Maybe "tricking" the console into thinking there's nothing out of the ordinary?

A while ago, my PS3 completely broke. Every time I turn it on, it just completely shuts down a few seconds later. I decided to buy a new ps3 to play my old games. The problem is that I don't have my saved data, but I still have the original hard drive. Is it possible to somehow transfer the saved data from the old hard drive to my new PS3? I was thinking maybe I could clone the hard drive, but I don't have a spare hard drive to do it on. I do however have a 2 TB external hard drive. Would it be possible to clone it on the external? Are there any alternative methods?


I'm trying to calculate: $$\lim_{n\to\infty}\frac{n!}{n^n}$$ I'd guess it's $1$ as the degree of the denominator and numerator would be $n$ and their coefficients would be $1$ as well.  If it's $1$, then: $$\sum_{n = 1}^\infty \frac{n!}{n^n}$$ Would be divergent from the divergence test. The issue with this is I know that this sum is convergent, but the limit still seems like it should be $1$.

$$\lim_{n \to\infty} \frac{n!}{n^n}$$  I have a question: is it valid to use Stirling's Formula to prove convergence of the sequence?


I am trying to check variable importance of this gender variable. I know if p value is less than 0.05 then its important otherwise not but what is it's giving p-value < 2.2e-16. I have tried other methods too but giving the same for all of the categorical variable. I have pasted output for only one variable. SO, how to interpret this. (variable to be considered or not).  Frequency of my data points   table(data$gender,data$target)   Output:            N       Y   F 2107566 2560932   M 1307442 1567399   U       3      16   To test statistical significance score:  chisq.test(table(data$gender,data$target))  Output:          Pearson's Chi-squared test      data:  table(data$gender, data$target)     X-squared = 86.9407, df = 2, p-value < 2.2e-16   Note : I think one of the possible reason might be because of 7.5 million rows. So, will this be solved by sampling the data for checking the significance.

For some tests in R, there is a lower limit on the  calculations of $2.22 \cdot 10^{-16}$. I'm not sure why it's this number, if there is a good reason for it or if it's just arbitrary. A lot of other stats packages just go to 0.0001, so this is a much higher level of precision. But I haven't seen too many papers reporting $p < 2.22\cdot 10^{-16}$ or $p = 2.22\cdot 10^{-16}$.   Is it a common/best practice to report this computed value or is it more typical to report something else (like p < 0.000000000000001)?


Can anyone identify a short story about a plague which is sweeping the US attacking everyone without distinction - except Post Office workers?  It eventually turn out to be passed on  by licking infected postage stamps.     Post Office workers are exempt because they do not lick stamps, but use a sponge.

The United States is afflicted by a cold- or flu-like disease that has the epidemiologists floored because its distribution is so spotty. In one town practically every adult person comes down with it, but not the children. Children aren't immune, however. Postal employees seem immune to the disease. Fortunately it's not fatal, and it's not obviously contagious, but it keeps spreading. Eventually someone deduces that it is caused by licking postage stamps. The town where the adults all got it had just had a big meeting where they all agreed to write their congressman. And postal employees used a sponge instead of their tongues to moisten stamps. The problem was traced to a single barrel of glue that had gone bad.   Obviously, this story was published long before "lickless" self-adhesive stamps were developed, becoming standard I think in the 1990s. I probably read the story in the 1960s or 70s in an English-language anthology.


I am so frustrated about the annoying Facebook apps invitations and requests from friends and users in my Facebook account. Is there a way to remove them? I haven't had much luck trying it on my own.

I want to block app and game invitations once and for all in Facebook. How can I do it so they cannot disturb me anymore?


I have a button with the class ".test-class" that when is clicked, a checkbox is created and the message "Clicked" is shown on the console. This works great.  The checkbox must have the same event handler. But I click on the checkbox and the console doesn't show anything. It is like the checkbox doesn't have an event.   This is jQuery Code:  $(".test-class").on("click", function() {     console.log('Clicked.');     $("#myDiv").empty().append('<input type=checkbox class=test-class>'); });   This is the button and the div:  <button type="button" class="test-class">Click me</button>

   The Developer's Tool shows the elements:  <button type="button" class="test-class">Click me</button>
     <input type="checkbox" class="test-class">
    is a bit similar.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I am 14 year old I want to learn physics up to a level where I can invent stuff. I want to be an inventor so I need to learn Mechanical physics at the moment. I am comfortable with both mathematical approach and principle approach. Books I should use and how I should learn like what things to study before studying calculus. I mainly want someone to tell which thing to learn first and which to study later.

I think this question has its place here because I am sure some of you are "self-taught experts" and can guide me a little through this process.  Considering that :   I don't have any physics scholar background at all. I have a little math background but nothing too complicated like calculus I am a fast learner and am willing to put many efforts into learning physics I am a computer programmer and analyst with a passion for physics laws, theories, studies and everything that helps me understand how things work or making me change the way I see things around me.   Where do I start ? I mean.. Is there even a starting point ? Do I absolutly have to choose a type of physic ? Is it possible to learn physics on your own ?  I know it's a general question but i'm sure you understand that i'm a little bit in the dark here.


The spell says it deals piercing damage. But it is a magic spell. Could it be magic piercing damage in case of nonmagic immunity?

Are spells that do only bludgeoning, piercing, or slashing damage considered magical or nonmagical damage?  Most especially when considering them for purposes of resistance/immunity against "bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered".  For example, Thorn Whip I can see two sides:   It is being created by a spell, using a melee spell attack to hit, and the spell damage increases with level. Thus it is magical damage. The spell description only states piercing damage, and it's the object created by the spell that does the damage rather than the spell directly. Thus it is nonmagical damage.   Similar arguments can be made for other spells (such as Earth Tremor), or portions of other spells (such as the piercing damage of Ice Knife).  I'm interested in the rule(s) for this class of spell damage, rather than the specific spells.    [1]: Thorn Whip spell can be found in the Player's Handbook.  [2]: Earth Tremor, and Ice Knife are spells found the Elemental Evil Player's Companion.


I just purchased a Mac and I am trying to decide which TeX editor to use.  The security preferences did not recognize TeXStudio or Texmaker which are the two I am most familiar with.  Do you think it is safe to override the security and download either of those or does someone have a recommended application that is recognized by OSX?  Any suggestions or recommendations welcomed.

What editors/IDEs are available for easing the process of writing TeX/LaTeX documents? Please state some useful features like code completion, spell checking, building final DVI or PDF files, etc.  This question is undergoing a systematic refurbishment, see  on Meta. If you’d like to see another editor feature covered here or to take care of an editor that’s not covered yet, share your ideas in that meta question.  List of editors Links to answers.


when trying to update package listings via apt update or apt-get update I receive the following error:  E: Failed to fetch http://lt.archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/Components-amd64.yml.gz  Hash Sum mismatch E: Failed to fetch http://lt.archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/icons-64x64.tar  Writing more data than expected (7468511 > 7467723) [IP: 193.219.61.87 80]   Is this somehow related to localised package distributor or is me all along? I am running beta2 release, that I've successfully installed and updated (without any error prompts) yesterday. Previously I used a 14.04 derivative which also did not bring up any errors. What can be the reason for this error?  EDIT: to duplicate markers, the topic name tackles a different problem rather than the hash sum problem, which is being referenced.

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


I know that I'm supposed to search for data in a Wiki but I would like to structure the data in some kind of tree. Is this possible?  Right now I just have pages that do not really belong to anything so to get there I need to search and when doing that I might miss it.  EDIT : Lets clear this up, Im not looking for a Table of Content on one page, Im looking for a Table of Content of all wiki pages. So when I go to the main Wiki page I will find the Table Of Content there, clicking a content link will take me to the proper wiki page.

Is there any syntax that when wrapped around content, automatically builds a table of contents towards the top of the wiki, similarly to how the Media Wiki works?  I am using SharePoint 2013.


Let $S$ be a bounded non-empty subset of $\mathbb{R}$, and $\bar{m} = sup S$. Prove there is a sequence ${a_n}$ such that $a_n \in S$ for all n, and $a_n$ goes to $\bar{m}$  I want to show how to construct the sequence $a_n$ by using the properties of $sup$ characterize $\bar{m}$ as the least upper bound of $S$. Can anyone show me a formal proof of this?

Let $S\subset\mathbb{R}$ be a non-empty bounded above set. Then there exists a monotone increasing sequence $\{x_n\}\subset S$ such that    $$\lim_{n\to\infty}x_n=\sup S.$$   I'm struggling with creating a formal proof for this problem. I understand that this has to be true, but I'm unsure of how to go about proving it.  I said that $\sup S = C$ and $x_n= C - y/n$ where $y$ is dependent on the size of $S$, but this is just a bunch of jumbled ideas and I can't really think of a way to formalize a proof. Any idea, even totally different from mine would be appreciated.


FYI: These comments (SO) are too wide:   I believe it's specifically the strikeout comment, as when I remove the strikeouted text (firebug) the layout returns to normal:   I know there are issues with the comment widths as they're fluid, but this one (and others like it) could be fixed by removing ability of strikeout from comments.  Comments should be short/simple for what one wants to say, not go into what one didn't want to say (sorry Olli)  I'm using: Iceweasel 24.7.0 on Deb wheezy (7.6)

On , the comments are overlapping the related questions sidebar. Is this something to do with the weird formatting of the first comment?    Browser: Mozilla/5.0 (Windows NT 6.0; rv:16.0) Gecko/20100101 Firefox/16.0


I am having trouble encoding a mysqli result using json_encode   <?php  $emp_id = $_GET["emp_id"];  $servername = "localhost"; $username = "root"; $password = ""; $dbname = "overtimedtr"; $jsonData;  // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) {     die("Connection failed: " . mysqli_connect_error()); }  $sql = "SELECT * FROM employees where id ='".$emp_id."'"; $result = mysqli_query($conn, $sql);  if (mysqli_num_rows($result) > 0) {     // output data of each row     if($row = mysqli_fetch_assoc($result)) {          $empName = $row['name'];         $empPosition = $row['position'];      }              $jsonData = array('empName' => "'".$empName."'",'empPosition' => "'".$empPosition."'"); } else {     //$result["empName"] = '0 results.';     //$result["empPosition"] = '0 results.'; }  $myjson = json_encode($jsonData,JSON_FORCE_OBJECT); mysqli_close($conn); echo $myjson; ?>   Error code:  Fatal Error: Uncaught Error: Cannot use object of type mysqli_result as array in line 24. Stack trace: #0{main} thrown in line 24.   Code starting from line 24:          $empName = $row['name'];         $empPosition = $row['position'];      }             $jsonData = array('empName' => "'".$empName."'",'empPosition' => "'".$empPosition."'"); } else {     //$result["empName"] = '0 results.';     //$result["empPosition"] = '0 results.'; }  $myjson = json_encode($jsonData,JSON_FORCE_OBJECT); mysqli_close($conn); echo $myjson; ?>   I wonder if I am missing something obvious here. I am confused by the error because I am thinking that the code below already converts my mysqli_result object type to an associative array?   if($row = mysqli_fetch_assoc($result)) {          $empName = $row['name'];         $empPosition = $row['position'];      } $jsonData = array('empName' => "'".$empName."'",'empPosition' => "'".$empPosition."'");   I have read similar questions, and could not find any answer that can solve my problem, I am still confused. I am really new to web development, any insights would be so much appreciated. Thank you in advance!

How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object?


I frequently have to cd from $HOME to a particular long directory path. So I thought I'd put a cdscript in $HOME to make getting there a little quicker.  cdscript:  #!/bin/sh directory="/some/big/long directory path/that/I/use/frequently" cd "$directory"   Set permissions: chmod 700 cdscript  ./cdscript doesn't do anything. What am I missing? (Yes, those spaces in the path exist, and I can copy and paste the exact individual lines in the shell with success, so the path exists too). Also, is it more Unixey to just make a symbolic link to the directory instead of the above script, and cd to the link instead?

I want to run a script to simply change the current working directory:  #!/bin/bash cd web/www/project   But, after I run it, the current pwd remains unchanged! How can I do that?


I'm creating a presentation with beamer, and I'm using the theme Boadilla. My problem is, the total frame number is always 1, whatever the real total frame number, and I don't understand why.  EDIT : I just had to compile two times

I don't actually have a real problem, but I'd like to understand why beamer requires multiple compilations to get the slide count right.  I'm writing a presentation, so I often add a new frame, write something, and then compile the presentation to see how it looks. But every time a new frame is added the total number of slides isn't updated, so the last slide shows a n+1/n label instead of n+1/n+1 as I'd expect(where n is the previous number of slides).  I've tried to search a bit but I couldn't find anything mentioning this behaviour.  Is this supposed to be the normal behaviour?  edit: I can reproduce this by doing the following steps:   Create a random beamer presentation(using a style that shows the slide count e.g. AnnArbor) with one frame Compile it Add a new frame Compile again and the last slide will show the described behaviour.


So, I am doing this project that includes an intro activity that switches to a menu activity with navigation drawer. Couple of days ago, I had an issue switching from intro to menu (Android Studio 1.0.2: java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.NullPointerException) and it was solved by changing name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar" to name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" thanks to goonerdroid's suggestion in my previous link.   The issue that I have now is that I am trying to add a search action on the top right corner of the action bar alongside the navigation drawer so it can search on different future activities and javas that I will be adding. When I run the program, it enters the intro activity with no problems. When I click on the button to take me to the menuactivity, it displays the following error:  07-21 07:00:53.450 2775-2775/com.plateformeressources E/AndroidRuntime: FATAL EXCEPTION: main   Process: com.plateformeressources, PID: 2775   java.lang.NullPointerException     at com.plateformeressources.activity.LoginActivity$2.onClick(LoginActivity.java:87)     at android.view.View.performClick(View.java:4438)     at android.view.View$PerformClick.run(View.java:18422)     at android.os.Handler.handleCallback(Handler.java:733)     at android.os.Handler.dispatchMessage(Handler.java:95)     at android.os.Looper.loop(Looper.java:136)     at android.app.ActivityThread.main(ActivityThread.java:5017)     at java.lang.reflect.Method.invokeNative(Native Method)     at java.lang.reflect.Method.invoke(Method.java:515)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)     at dalvik.system.NativeStart.main(Native Method)

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


I bought a luggage with a TSA lock on the side of the luggage, which holds the zipper.   Can I use this lock, or will they break my entire luggage if they need to inspect it (considering most European airports seem not to have access to a TSA masterkey).

I understand if you travelling in or to the US, you can lock your luggage using the TSA Luggage Lock. (Immigration is still able to open your luggage using their own special keys)  How about Europe? Especially Heathrow + Charles de Gaulle?    If the TSA Lock is not acceptable in Europe, are there any other alternative precautions I could use instead?  (FYI, information about the )


Just like I said, I have two passports right now. My old passport with valid visa and study permit is about to expire at september this year. Since then, I applied for a new passport to replace my old one. I am just wondering that if I can still use the visa and study permit on my old passport with my new passport to re-enter Canada before the expired date of my visa?

I recently renewed my passport. I also have an expired passport which has my Canada visa (visitor's) valid for another three years. I have already used my Canadian visa which is multiple entry. I am planning to visit Canada this summer.  Since my valid Canadian visa is in my old/expired passport, do I need to renew/transfer my Canada visa or can I simply travel with valid visa in old passport?


I am trying to install this theme:  but I need to install git first, and this error shows up: ~$ sudo apt install git Reading package lists... Done Building dependency tree        Reading state information... Done git is already the newest version (1:2.25.1-1ubuntu3). The following packages were automatically installed and are no longer required:   linux-headers-5.4.0-26 linux-headers-5.4.0-26-generic   linux-image-5.4.0-26-generic linux-modules-5.4.0-26-generic   linux-modules-extra-5.4.0-26-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up linux-image-5.4.0-39-generic (5.4.0-39.43) ... Processing triggers for linux-image-5.4.0-39-generic (5.4.0-39.43) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.4.0-39-generic /etc/kernel/postinst.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 34: /etc/default/grub: blacklist: not found run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.4.0-39-generic (--configure):  installed linux-image-5.4.0-39-generic package post-installation script subproc ess returned error exit status 1 Errors were encountered while processing:  linux-image-5.4.0-39-generic E: Sub-process /usr/bin/dpkg returned an error code (1)  Edit: cat /etc/default/grub output: # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" blacklist radeon GRUB_GFXMODE=1920X1080X32 GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1 amdgpu.modeset=1"

I have Xubuntu 18.04.3, and whenever I try to install a package through apt-get I get the following message.    Removing linux-image-5.0.0-31-generic (5.0.0-31.33~18.04.1) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-5.0.0-31-generic /etc/kernel/postrm.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 35: /etc/default/grub: FROM:: not found run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.0.0-31-generic (--remove):  installed linux-image-5.0.0-31-generic package post-removal script subprocess returned error exit status 1 Errors were encountered while processing:  linux-image-5.0.0-31-generic libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing... E: Sub-process /usr/bin/dpkg returned an error code (1)   Contents of /etc/default/grub:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="persistent"  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"  FROM: GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX="" TO: GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1" GRUB_CMDLINE_LINUX="ipv6.disable=1"


My book "Introduction to SetTheory" says      $\{\emptyset\}\in\{\{\emptyset\}\}$ but $\{\emptyset\}\not\subseteq\{\{\emptyset\}\}$   When we say $\{\emptyset\}\not\subseteq\{\{\emptyset\}\}$, we mean that $\emptyset$ is not listed amongst the elements of $\{\{\emptyset\}\}$.  I was under the impression that every set contains the empty set. Hence, the elements of $\{\{\emptyset\}\}$ would be $\emptyset,\{\emptyset\}$. If that were true, wouldn't the assertion that $\{\emptyset\}\not\subseteq\{\{\emptyset\}\}$ be false?

$\{\emptyset\}$ is a set containing the empty set. Is $\{\emptyset\}$ a subset of $\{\{\emptyset\}\}$?  My hypothesis is yes by looking at the form of "the superset $\{\{\emptyset\}\}$" which contains "the subset $\{\emptyset\}$".


As far as I know photons don't have mass but they do have momentum ($p=mv$). Scientists say that if we put a shiny (reflective) shield of large radius in the vacuum of space, then light from sun will will start moving the shield. How can these two facts be commensurate?

As an explanation of why a large gravitational field (such as a black hole) can bend light, I have heard that light has momentum. This is given as a solution to the problem of only massive objects being affected by gravity. However, momentum is the product of mass and velocity, so, by this definition, massless photons cannot have momentum.  How can photons have momentum?   How is this momentum defined (equations)?


I'm a beginner.   I tried to write my CV in LaTeX and I downloaded the template from LaTeX Templates.  I used the \cvitem command but I got a problem. The margin seems too short to show all worlds in one line.  It should like this (This picture is from website):    But it looks like this:    How can I solve this problem? Should I change the moderncv template?   This is my code.  \cvitem{Date of Birth}{} \cvitem{Place of Birth}{} \cvitem{Gender}{Male} \cvitem{Military Service}{} \cvitem{Marital Status}{}   Thanks for your help.

I am writing my CV using moderncv package, everythig is nice but I have a problem with \cventry command. I have something like this:   (it means 2010 - now)  I would want to have this in one line, rather than in two lines. I tried looking into the moderncv style files but with no success. What can I do to achieve the effect I want?


I have a mesh which i have Smart UV projected , and i have many loose UV faces . I would like to know if i am able to select a face in the UV/Image editor , And make it select the face on the 3D mesh. Is this possible?   I cannot select every face on my 3D mesh to find the correct face in the UV , That is very time consuming and confusing. Thank you.

I can't see this as an option so is there a way to select faces or islands and have them show up as selected faces on the object in 3D view.  In programs such as maya it is possible to work from either view and makes selection and mapping a little more user friendly.  I suspect it isn't possible in Blender but welcome your feed back.  Edited as flag as already answered, although the question was not asked in the other post in a way that showed in my search.  I was looking for face and island selection to show in both views. The other asked about unselected vertices this obviously did not appear in the results.