How do i partion my hardisk in Ubuntu and im having having a single partion, only one drive, the main problem is i could not parrtition my home drive by staying in home drive itself and i could not enter into BIOS (i have tried all possible ways) please help?Edit

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I have acer netbook with dual boot, window 7 and Easy Peasy . I want to replace EasyPeasy partition with Lubuntu so that I have dual boot of window 7 and lubuntu.  Please let me know how can do it.

I would like to see a full how-to guide on how to install Ubuntu.


Prove that $$gcd(2^{2^m}+1, 2^{2^n}+1)=1$$ if $m, n$ are positive integers such that $m \neq n$.  A Hints to solve the problem is also given in the book as follows:  Let $m>n$. Then $2^m=2^{n}2^{m-n}=2^n.2k$ for some integer $k$, (since $m>n$). Let $2^{2^n}=x$. Then $2^{2^m}-1=x^{2k}-1$ and it is divisible by $x+1$.  I am still unable to solve. Please help.

I've been working with the Fermat numbers recently, but this problem has really tripped me up. If the Fermat theorem is set as $f_a=2^{2^a}+1$, then how can we say that for an integer $b<a$, the $\gcd(f_b,f_a)=1$?


I made a search bar with search icon. I want this, when I click the #forminput, #search will return white; and after I click another object, #search will return lightgray color. How can I do this? My codes:  $(document).ready(function(){ $("#forminput").click(function(){ $("#search").css("color", "white"); }); });   Have a nice day.

I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });


Rooted samsung galaxy s4 using odin& CF Auto root. Then flashed CWM using rom manager. Now I can go to CWM  recovery mode (using power+volume up+ home) . I can get NAndroid backup. Does this mean that I have unlocked my bootloader? After a lot of googling I think I should use ADB 'fast root in order to unlock bootloader. but since I'm already booting cwm in recovery mode others say I'm alreay unlocked!!!  the method I used from  isn't for unlocking its for rooting. please explain Thanks. actually now that I read  the instruction in chainfire website don't understand why rooting worked for me he has a warning that using those auto root files on a locked bootloader will brick the phone!!!

I flashed CWM using Rom Manager. Does this mean that my Galaxy S4 bootloader is unlocked?  I'm using Samsung Galaxy S4 (SGH-I337M) (Canadian Telus)


I have noted in c# that using var improves your performance, especially when declaring variables of a specific class. I have done multiple bench marks and have got the same result every time. I have also read similar questions on this site and others. but no one has actually commented on this.  Can anyone please confirm or refute this.   I have a  class for image data, clsImageData  and collection clsImageDataCollection.  a function in collection class is SetCaseLowerCase().  Code is   private void SetCaseLowerCase() {     foreach (var item in this)     {        item.DestinationImageName = item.DestinationImageName.ToLower();     }  }    Now if I use clsImageData instead of var, it performs slower, I have checked it with 100000 iterations. but results is always the same. also with other examples too.  Thanks  Edited I have tested this simple code and got 7/10 times better performance using var. Please tell me what am I doing wrong, I am using VS 2017, debug mode for any CPU, my processor is quad core. Thanks              sw.Start();             for (int i = 0; i < 10000000; i++)             {                 var xyz = "test";             }             StopClock(sw, "Example var - ");             sw.Start();             for(int i = 0; i<10000000; i++)             {                 string xyx2 = "test";             }             StopClock(sw, "Example type - ");

Earlier I asked a question about  and got the answer that while it is only necessary for anonymous types, that it is used nonetheless to make writing code 'quicker'/easier and 'just because'.  Following  I saw that var gets compiled down to the correct type in the IL (you will see it about midway down article).  My question is how much more, if any, IL code does using the var keyword take, and would it be even close to having a measurable level on the performance of the code if it was used everywhere?


I have created an IList variable as below:  IList<vertex> matrix = new List<vertex> ();   Here, vertex is a structure I defined with one of the members being visited (boolean).  But, when I try to modify this member by traversing through the list as below:  matrix[j].visited = false;   It gives an error saying "Cannot modify return value because it is not a variable". Any idea why?

I have a list of structs and I want to change one element. For example :  MyList.Add(new MyStruct("john"); MyList.Add(new MyStruct("peter");   Now I want to change one element:  MyList[1].Name = "bob"   However, whenever I try and do this I get the following error:     Cannot modify the return value of   System.Collections.Generic.List.this[int]‘ because it is not   a variable   If I use a list of classes, the problem doesn't occur.  I guess the answer has to do with structs being a value type.  So, if I have a list of structs should I treat them as read-only? If I need to change elements in a list then I should use classes and not structs?


I made a very simple script  #!/bin/bash mkdir $1 && cd $1   when I execute  myscript test   It creates test directory but doesn't go inside just after. I don't understand why, on my fedora 27 this script works without any issue but on my debian stretch this behavior occurs. Could someone explain why I am having this bug.

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 created some proposals on Area 51, and I (obviously) followed them all. Unfortunately, they all got deleted for not meeting the three-day requirements. Whenever I return to my Area 51 profile the proposals that I followed, but were deleted, are not shown.  So, should we add a list of followed proposal sites in the user's profile which got deleted on Area 51?

, and I was  that someone tried to start an Area 51 proposal called "On the road", which covered what I wanted, but it failed.  , so I assume it's been deleted.  I'd like to see this proposal to see if any lessons can be learned about what went wrong, and if/how a similar proposal could maybe succeed in future.  Is this possible? If not, could we make it possible? For example:   Keep a minimal amount of data on deleted proposals. Content of discussions with vote scores (but no data on who voted), stats on the numbers of followers (but not data on who followed), sample questions which got 5+ votes (without comments or data on who voted), etc. Hide deleted proposals in searches unless a "Show deleted proposals" box is ticked Links to deleted proposals don't just show as dead links, they have a page saying something like:      This proposal was deleted on [date], after [X] days of inactivity. Only a minimal amount of data on this proposal has been kept.      [Show me anyway] _ [Find similar proposals]"


Im refactoring how URLs work on my site. Is there an SEO difference when you have a forward slash or not for the homepage? Eg website.com?xxx  Vs website.com/?xxx

My home page could be potentially linked as:  http://example.com http://example.com/ http://example.com/?ref=1 http://example.com/index.html http://example.com/index.html?ref=2  (the same page is served for all those URLs)   I am thinking about defining a canonical URL to make sure Google doesn't consider those urls to be different pages:  <link rel="canonical" href="/" /> (relative) <link rel="canonical" href="http://example.com/" /> (trailing slash) <link rel="canonical" href="http://example.com" /> (no trailing slash)   Which one should be used? I would just slap / but messing with canonical seems like a scary business so I wanted double check first.  Is it a good idea at all for defining a canonical URL for a home page?


The purpose of my research is to look into public ITS (Intelligent Transport System). To do this in a realistic way I need not only the city map but also the public transport routes.   I work with ArcMap 10.3. As input data an OSM file, I use ArcGIS Editor for OpenStreetMap to import it.   I have the list of points , lines and polygones but in attribute table most of information are missing (e.g., public route numbers, directions and operation time)  How can I extract the missing information?

I'm currently trying to download data from OpenStreetMap specifically from San Carlos, Venezuela. I'd like to take the OSM file and convert it to SHP for use in ArcGIS.   I've used geofabrik for other country's in the past, but Venezuela is not available for download. Exporting a bounding box of the city directly from OpenStreetMap, then using OpenStreetMap Toolbox to convert the OSM to SHP gives me the lines but it's missing street names and city. Ideally I'd have addresses as well, but I can live with just street names.  Is there any way to achieve this? Export all streets within a city from OpenStreetMap, then convert it to SHP with city and street name attributes?


There is a cpu soft lockup when I am entering the installation gui when I am installing ubuntu 16.04, how to report bug for this?

I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide?


I am US citizen, I have a full time employment as a software engineer which allows me to work from anywhere, although I have to go on site once every 2 months. I have met a girl in Canada and we want to spend a lot of time with each other, she cant come to the US due to work/School.  I would like go stay in Canada for 1 to 2 months at a time, come back to the US for about 2-3 weeks for work/errands/etc, then go back to Canada again for another month or two, and repeat.   I know that I'm allowed to spend 6 months in Canada, but at some point are they going to have an issue with me visiting so often and staying for an extended amount of time?

I'm a US citizen and online business owner. I've been in Canada for 141 days, and have a permitted 180 day stay. I want to leave to the USA to basically reset the 180 days. Can I do that? I don't think I can apply for the visa extension because I'm not "working" in their country by their standards (since it's online) and I'm not a student.   So my questions are: 1.) Can I leave and come back?  2.) If so, how long do I need to be gone? 3.) CAN I apply for an extended visa? Although I never needed one to begin with as a US citizen. (<--cant find this answer on the CIC website)


I would like to know the following:   Assumption: suppose a person has surrendered/cancelled his Indian official passport and gotten back his regular passport, but he has a US visa valid until 2020 in his official passport.  Can he travel to the US with the new official passport and enter with the visa in the surrendered/cancelled passport?

My old passport is in my maiden name and has already expired. My B1/B2 visa to travel to United States is still valid but is stamped in my old passport with my maiden name.   My new passport has my new name (old name got changed after marriage) but has details (like old passport number, father and mother's name) related to my old passport.    Will I be allowed to travel to US as long as I carry the my old as well as new passport?  Or Do I need to again get the visa stamped on my new passport?


I saw this question earlier, and wrote a lengthy answer for it (offline, as the text editor is not friendly to embedded graphics).  When I went to post the answer, the question had .  It had 0 answers at the time.  My best efforts to search for it yielded nothing. So I am re-summarizing the question here, and posting my answer.  I am in the Philippines, and I am getting shocked by my shower with electric hot water heater.   The Philippine codes are very similar to American NEC.  We are getting new 240V service installed.   While we wait, we are using the old service that was present.  This provides 220V/240V between only two wires, and does not provide a neutral.  I installed a new 8' grounding rod, and measured from the grounding rod to each wire, and got 120V.  The shower is a Panasonic DH-3JL2P.  It wants hot, neutral and ground.  It is giving me quite a strong shock.  Why is it doing this?

Background:  I live in Metro Manila, Philippines where the electric distribution company, Meralco, delivers split-phase power to residential buildings. Our old (1980s) Meralco service drop consists only of 2 conductors, both phase conductors, and no neutral conductor. Phase-to-phase voltage is 240V, while phase-to-ground (measured with the help of an existing ground rod) is 120V.  We recently started the construction of a new house and wired it according to the Philippine Electrical Code (PEC). Based on my research, the PEC is very similar to the NEC. That said, the new house uses three-prong receptacles: 2 for the phases and one for ground. The grounding conductor is connected to a ground rod.  Since Meralco still hasn't energized the new house, it is temporarily connected to the old two-wire service drop, leaving the grounding conductor connected to the ground rod only (i.e. no connection to the load-side neutral yet).  Problem:  The heater in question is a Panasonic Shower Heater DH-3JL2P (rated at 3.5 kW). Its terminals are labeled Line (L), Neutral (N), and Ground (G). When I tested this heater initially, I had no idea that Meralco's supply is split-phase, not single phase. So I just operated it under the assumption that the line and neutral conductors are connected correctly at the receptacle (which actually doesn't matter now knowing that the supply is split-phase, i.e. both are line conductors, there's no neutral conductor).  Upon testing, the heater functioned properly as far as heating the water is concerned. However, I felt a significant electric shock when I touched the shower head where the heated water was coming from.  What could cause this shock to happen? I have a couple of ideas on why this happened, but can't really say for sure:   Grounding conductor is disconnected to the load-size neutral (of the transformer). Heater is expecting a single-phase supply, not split-phase.   I can post a picture of the heater internals later.


I want to redirect this way: from www.example.com/link.php?a=1&b=1 to www.example.net/subdirectory/link.php?a=1&b=1  I tried to use this .htaccess which isn't working:  Options +FollowSymLinks RewriteEngine On RewriteBase /  RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]  RewriteRule ^(.*)$ http://www.example.net/subdirectory$ [L,R=301]   The above redirects www.example.com/link.php?a=1&b=1 to www.example.net/subdirectory/?a=1&b=1, omitting the link.php part.  System is apache2.2 + mod_rewrite running on debian wheezy 64bit. Thanks in advance.

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


Hi I have a string that looks like this - Wednesday 16 January 2019. I want to check in groovy if this date matches with the format EEEE DD MMMM YYYY.  Is there a way to do this?  Are there any inbuilt functions that I can use or regex is my only option?  Cheers!

I find it curious that the most obvious way to create Date objects in Java has been deprecated and appears to have been "substituted" with a not so obvious to use lenient calendar.  How do you check that a date, given as a combination of day, month, and year, is a valid date?  For instance, 2008-02-31 (as in yyyy-mm-dd) would be an invalid date.


I know about the 2009 question:   It's 2013 now and I want to know if anything has changed.  I want a laptop with two external displays, to make three in total with the laptop screen.  Or even three external displays with the laptop screen disabled.  Is this possible? If so, what should I look for when choosing a laptop?

Equaling 3 Displays Total (or 2, if the laptop display cannot be used).  I work at home on two large monitors, but at the office on a laptop with a single large monitor. Is it possible to attach two (or more?) external monitors to a laptop without having them clone each-others display?


This was a movie in color 50s 60s maybe 70s.  It opened with two men, maybe scientists, who were in an office or at a home, and who were compelled by a telepathic force to build a device - they had no idea what they were building.  It turned out to be some sort of screen on the wall - I seem to remember the keystone shape of the Heinz 57 shield - and it either functioned as a communication device, a teleportation device, or both.  The two find themselves on another planet and during one scene they see a demonstration of a laser generator that burns a hole through a very thick steel plate.  I don't remember much else, including what the aliens wanted...

Bits I remember about this SF movie which probably originated in late 50s / early 60s:   Humans are flying in a light, general aviation, high winged, single engine aircraft. An alien in a flying saucer abducts the whole kit & kaboodle (plane & passengers). Takes them to a secret terrestrial base Eventually tells them that his computer is damaged and he needs their help to get back to his planet. He needs an astronomer for planetary masses & other information. He needs a mathematician to calculate trajectories and perform other calculations. He needs the woman as eye candy, lol They eventually make it back to the alien home planet which is under attack by its enemy. The attacking aliens are bombarding the original alien's home planet with meteors / asteroids.   That's about all I remember.


Could not get lock /var/lib/apt/lists/lock.  It is held by process 1453 (packagekitd).  can any one tell what this and how to fix plz and thank you.

I did: sudo apt-get update  I got this: Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1131 (packagekitd)  N: Be aware that removing the lock file is not a solution and may break your system.  E: Unable to lock directory /var/lib/apt/lists/  I used to just remove the lock file, but I've never seen that note before (did it break my system?)?? What do I do?


Which is the most secure and most efficient way for storing passwords inside the database tables using PHP?  So far I have used the md5() and the sha256 algorithm for storing passwords where both of them can be easily hacked using rainbow tables if finally someone gain access on the database.

It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection.  This question,   suggests that hashing multiple times may be a good idea, whereas  suggests using salt.  I'm using PHP. I want a safe and fast password encryption system. Hashing a password a million times may be safer, but also slower. How to achieve a good balance between speed and safety? Also, I'd prefer the result to have a constant number of characters.   The hashing mechanism must be available in PHP It must be safe It can use salt (in this case, are all salts equally good? Is there any way to generate good salts?)   Also, should I store two fields in the database (one using MD5 and another one using SHA, for example)? Would it make it safer or unsafer?  In case I wasn't clear enough, I want to know which hashing function(s) to use and how to pick a good salt in order to have a safe and fast password protection mechanism.  Related questions that don't quite cover my question:


I have the head in my html set to:  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   However, apostrophes and commas are still coming in as question marks...  It seems to only be occurring in safari, but fine in mozilla and chrome. Is this a client side issue, or is there a method I could use to bring this data in from mysql to prevent the errors?  Here is my $sql statement, which appears to be prepared correctly:  $sql="select m_id, collection, collection_copy, collection_img, title,   standalone from cmsmedia where collection = (select collection from cmsmedia where media_type=1 order by m_id desc limit 0,1) limit 0,1";   $stmt = mysqli_prepare($link, $sql);                      mysqli_stmt_execute($stmt);                      mysqli_stmt_bind_result($stmt, $m_id, $collection, $collection_copy, $collection_img, $title, $standalone);                     mysqli_stmt_fetch($stmt);                      mysqli_stmt_close($stmt);   Here is the view code:  echo '<p>'.$collection_copy.'</p>';

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


I'm trying to add every task which has been created in constructor  static private int Id = 0; private int id = 0; private Date StartDate; private Date EndDate; private static ArrayList<Task> Tasks; SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");   public Task(java.util.Date StartDate, java.util.Date EndDate) {     try{         this.setStartDate(StartDate);         this.setEndDate(EndDate);         setId(Id++);          System.out.println(this.id + this.EndDate.toString() + this.StartDate.toString());         Tasks.add(this);     }     catch(Exception ex){         System.out.println(ex);     } }   It throws NullPointException.  I couldn't find out a way to solve this.  Thanks in advance!

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?


Still trying to wrap my head around panoramas. I am using bracketed RAW photos and have merged using lightroom. Now, it is best to pick a single image, colour correct it and sync the settings across all the merged hdr images, or is it better to export all to a tiff, stitch in PTGui and then re-import into lightroom for color correction?  The problem I see if that if I stitch in PTGui 1st, I lose the flexibility of RAW. If I develop in LR 1st, then it's hard to get a good color grade due to working with a single reference image.  Any ideas?  EDIT: a few people have linked related threads. I have read these but i'm still unclear as to at what point I I should no longer be using RAW and when I need to color grade. I guess i'm looking for a workflow step by step guide from people.

I have a set of three images imported in Lightroom 3.6 which I want to stitch into one panorama using Photoshop's CS5.5 Merge to Panorama tool. As I see it I have two options in doing so.   Doing all modifications (colour, brightness, contrast, etc...) first, syncing the changes between the three photos and then stitch them together. Stitching the photos first and then use Lightroom to apply modification to the whole image.   Which of these two methods is considered to be best practice?


Trying to save odd numbers between 2 numbers in an array  public class OddNumber {      static int[] oddNumbers(int l, int r) {         if (r <= l)             return null;         int size = ((r - l) / 2) + 1;         int arr[] = new int[size];         int p = 0;         for (int i = l; i <= r; i++) {              if (i % 2 != 0) {                 arr[p] = i;                 p++;             }         }         return arr;     }      public static void main(String[] args) {         System.out.println("Odd numbers between 2 & 9 are: " + oddNumbers(2, 9));     } }   It is always giving same junk value "Odd numbers between 2 & 9 are: [I@15db9742". I dont know what is the problem

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


We use the adjectives:  1. big/large/great - small  2. high/great - low  3. more - less when comparing figures; for example:   The number of people in New York is higher/bigger/larger/greater than London.  50 square metres is greater than 50 square centimetres.  New York has more people than London.    Do we use any other comparative adjectives when comparing them?

Which of the following is most correct?      The distance of the shortest path must not be higher than 10km.   The distance of the shortest path must not be greater than 10km.   The distance of the shortest path must not be bigger than 10km.   Or is there an even better word?


I was reading a paper and encountered an integral where the differential, $dx$, was raised to the power $4$. What does this mean? Is this some kind of special integral?   $$\int d^4x$$

What the following formula mean?  $$\int\mathop{}\!\mathrm{d}^4x$$  I know that this $\int f(x)\mathop{}\!\mathrm{d}x$ is the integral of the function $f$ over the $x$ variable, but the following $\int\mathop{}\!\mathrm{d}^4x$ leave empty the argument and also have the $\mathrm{d}$ elevated to the fourth power. What that mean?  Update.  In the Einstein-Hilbert action we have (note that I have understand that the other parts of the integral are relevant only after your answers, thus sorry.):  $$S=\frac{c^4}{16\pi G}\int\mathop{}\!\mathrm{d}^4x \, \ R \sqrt{-g}$$


I want to display All Opportunities associated with the same Product as this OpportunityLineItem

I'm trying to display opportunities associated with an OpportunityLineItem on a Visualforce page on the OpportunityLineItem object   I have a problem in the select I do not know how to retrieve the OpportunityLineItem name in this request I have hard code the OpportunityLineItem name  public List<OpportunityLineItem> getOpp() {     return [SELECT TotalPrice, Opportunity.Name, Opportunity.StageName,                     Opportunity.Account.Name, Opportunity.id, Product2.Name              FROM OpportunityLineItem               WHERE Product2.Name='GenWatt Diesel 10kW'     ]; }


Inside the latex file (.tex) the typical picture command is used:  \includegraphics[bb=0 0 2100 1528,width=3.83in,height=2.79in,keepaspectratio]{summbetadiethist.eps}   However, when running htlatex with the command:  htlatex foo.tex "myfile.cfg,charset=utf-8,pic-m" " -utf8 -cunihft"   there are error messages thrown like:    The preamble (myfile.cfg contents) are as follows:  \Preamble{xhtml} \DeclareGraphicsExtensions{.eps,.pdf,.svg,.png,.jpg} \Configure{Picture}{.svg} \ifdefined\HCode\else .... \fi \DeclareMathSizes{12}{14}{10}{8} \ConfigureEnv{tabular}     {\HCode{}}{\HCode{}}{}{} \ConfigureEnv{figure}      {\HCode{}}{\HCode{}}{}{}     \Configure{float}    {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}    {\HCode{}} {\ifvmode \IgnorePar \fi\EndP \HCode{}\csname par\endcsname\ShowPar} \Css {body {margin-top: 100px;                  margin-right: 400px;                  margin-bottom: 10px;                  margin-left: 400px;                 }          } \begin{document} \EndPreamble   If the .svg line in the preamble is commented out to enforce creation of .png files, the errors are still thrown for each input .eps image.  So does the image engine(s) wrapped into tex4ht not like .eps images?

I'm trying to convert a table to png format using Imagemagick  \documentclass[12pt,a4paper,border=8pt,convert=true]{standalone}  \usepackage{booktabs} \usepackage{caption} \usepackage{siunitx} \sisetup{binary-units = true,          table-format=7.0}  \begin{document}      \minipage{1.08\textwidth}     \addtolength{\tabcolsep}{-1.0pt}     \begin{tabular}{lS[table-format=6.0]             S[table-format=6.0]             S[table-format=6.0]             SSS}         \toprule         Device & 2011 & 2012 & 2013 & 2014 & 2015 & 2016 \\         \midrule         Non-smarthphones & 22686 & 55813 & 108750 & 196262 & 357797 & 615679 \\         Smarthphones & 104759 & 365550 & 933373 & 1915173 & 3257030 & 5221497 \\         Laptops e Netbooks & 373831 & 612217 & 917486 & 1340062 & 1963950 & 2617770\\         Tablets & 17393 & 63181 & 141153 & 300519 & 554326 & 1083895\\         Home gateways & 55064 & 108073 & 180562 & 267545 & 376494 & 514777 \\         M2M & 23009 & 47144 & 92150 & 172719 & 302279 & 508022 \\         Altri devices & 525 & 1460 & 5429 & 22966 & 84204 & 242681\\         \bottomrule     \end{tabular}     \captionof*{table}{Traffico mobile globale al mese per dispositivo in \si{\tera\byte}}     \endminipage  \end{document}   Here it is the table create using standalone package. I read the documentation and it says to use ImageMagick. The problem is when I compile it doesn't find the exacutable imgconvert.exe. So I put this exacutable into folder where there is tex file. Now when I compile I got another error:  imgconvert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE  -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2  "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r300x300"  "-sOutputFile=C:/Users/MAZZAR~1/AppData/Local/Temp/magick-31681PKeFVHE065o"  "-fC:/Users/MAZZAR~1/AppData/Local/Temp/magick-3168A-Fab6j3iIUc"  "-fC:/Users/MAZZAR~1/AppData/Local/Temp/magick-3168QXzuvG_UAP07"  @ error/utility.c/SystemCommand/1890. imgconvert.exe: Postscript delegate failed  `table.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/678. imgconvert.exe: no images defined `table.png' @ error/convert.c/ConvertImageCommand/3066.


I can't see any tweak about this in dconf or compiz. Can someone explain is there any way to make Nautilus remember its position before the closing?  Ubuntu 12.04

When I log in Ubuntu, I would like all windows opened at previous session (terminal and Firefox mainly) to be re-opened automatically at the same size and position.  How to proceed?


This question explores if the , which we know to be untrue.  This then raises a question. Who introduced the Sandworms to Dune?      This  indicates how it may be done by humans, is there any mention in the prequels etc. of who put them there? A really nice bonus would be what species originally introduced the Sandworms.

Later in the Dune series, the Bene Gesserit have transplanted some sandworms and there are sandworms living on other planets besides Arrakis.  Considering the importance of melenge and that it was coming from only one planet, why didn't the Empire try to protect their resources by transplanting some sand trout or sandworms to other planets earlier?  Wouldn't this have made them (and the Spacers) less vulnerable to an attack on a single planet?


I have created a logo with pen tool in Illustrator but between lines (where they intersect with each other) there is a gap where it gets the color of the background.  Something like this:  (Black color is the background color) - As you can see where the paths join each other there is a kinda dotted black line. I Grouped them but still the same. I converted to jpeg just to be sure it is not only shown like that but same effect.   NOTE: I want to export that logo as SVG file type and use it in the WEB. I tried some solutions given like anti-aliasing in preferences or art optimize when saving for optimization. But still I have same problem. I want to get that logo in SVG and put it on the web where it will display clean without those strange gaps.  How can i get rid of this?

How can I align 2 paths perfectly? No matter what I do I get a little space (gap between the 2 paths I create, and they are straight lines not as I saw in other questions with pixel problems)  An example:    Between every triangle is a little space, like in the example. It isn't obvious and it doesn't bother, but if I use the image (as an SVG or something) it is really obvious.


Is there a method for issuing command line instructions directly from the python shell?

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I am trying to learn about the higher level basics of physics. I want to cover up all that is included in particle physics/quantum physics. Now being in high school, I only know partially about Newtonian physics. So what order of topics should be followed by an undergraduate to get an overall idea of the theories and interesting concept of quantum theory for pleasure as well as knowledge?

I apologize if this is off topic since it does not relate directly to the study of physics, but I could not think of a better place to ask.  I am a high school student graduating in a few days and have recently developed an interest in quantum mechanics. I began to study physics about one and a half years ago and calculus two years ago, and I feel confident about my abilities in integral and vector calculus (at a typical college Calc I–III level), differential equations, mathematical problem solving, and some set theory. I have been introduced to quantum behavior, particle physics, and nuclear physics, but none of these were delivered with a heavy focus on mathematics. Quantum physics, however, caught my attention as a future field of study due to its bizarre nature and inquisitive mathematical models.  Without prior knowledge of more difficult topics, I am concerned that attempting to study quantum mechanics will only provide entertainment rather than benefit my college career. I have selected a few books (Griffiths, Sakurai, Feynman, etc.) of which I will choose one to read over the summer of this year and onto college if I determine to do this.  Should I follow these plans without first strengthening my knowledge in other fields of physics and mathematics, as I dive directly into the topic? Or should I wait until I am more experienced in other fields before discouraging myself with the difficulty of quantum mechanics? If so, what areas of physics or mathematics would you recommend as prerequisites to the topic?


I am not sure what the real cause is, but recently I installed the Microsoft OneDrive on my Win 10 computer. Since then, every time I open a new browser (be that in chrome, firefox, and IE), they're all redirected to first for a split second , then quickly re-redirected into . I have tried resetting the default homepage on these browsers but somehow the microsoft page seems to overwrite them all. Also, my Avast Antivirus kept identifying this issue: SVC: eCrrrA > C:\ProgramData\eCrrrA (as Win64:Trojan-gen), it shows back up even though I kept deleting or moving it to virus chest.  Am I getting some virus or malware? And how do I remove the forced homepage?

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


consider below code snippet:     Stream.of("a", "b").collect(Collectors.toMap(                s -> s,                s -> "a".equals(s) ? "a" : null));     }   it is throwing null pointer exception when null values goes in the map.  java.lang.NullPointerException at java.util.HashMap.merge(HashMap.java:1224) at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)   I am not able to understand why is it so?   As far as i know it is fine to have null values in a HashMap?

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?


In the isset( $wp_filter['all]), the all key will fire for all other hooks. i need to know how Wordpress understands what to do if the key all is used.. It should be defined somewhere which make Wordpress understands it.

I'm a newbie in WordPress. I'm trying to understand how it generates the XHTML pages. I guess it's the function of do_action( 'hook-name' ) , but I'm stuck with the understanding of the instruction isset( $wp_filter['all] ) when reading the function do_action because I don't understand what is the meaning of the word all.  Is it a PHP feature or a WordPress one?


This question is from an old Ph.D Qualifying Exam for Complex Analysis.    Let $\Omega\subset\mathbb{C}$ be an open set. Suppose that $f$ is holomorphic in $\Omega$. Define $g$ on $\Omega\times\Omega$ by $$g(z,w)=  \begin{cases} \dfrac{f(w)-f(z)}{w-z},  & w\neq z \\ f'(z), & w=z \end{cases}$$   Show that $g$ is continuous in $\Omega\times\Omega$.    My attempt: If $w\neq z$ then $g$ is clearly continuous, so we just have to consider the case of $w=z$. Clearly, for a fixed $a\in \Omega$, $\lim_{w\to a}(\lim_{z\to a}g(z,w))=f'(a)$, but the double limit need not be identical to the joint limit $\lim_{(z,w)\to (a,a)}$, so I'm not sure this is right. Does anyone have ideas?

Let $G\subset \mathbb{C}$ be a non-empty open set and $f$ be a function holomorphic on $G$. Let $g: G\times G\to \mathbb{C}$ be a function defined as $$g(z,w)= \begin{cases}        \frac{f(z)-f(w)}{z-w}, & z\ne w \\       f'(z), & z=w     \end{cases}$$  I need to prove that $g$ is continuous on $G\times G$.  My approach:  Let $\varepsilon > 0$. Then $\exists \delta_1, \delta_2>0$ such that $\| (z,w)-(z_0,w_0) \|^2\le|z-z_0|+|w-w_0|<\delta_1+\delta_2$ implies that $|f(z)-f(z_0)|<\epsilon$, $|f(w)-f(w_0)|<\epsilon$, since $f$ is continuous on $G$.  Now, $\| g(z,w)-g(z_0,w_0) \|=\left| \frac{f(z)-f(w)}{z-w} - \frac{f(z_0)-f(w_0)}{z_0-w_0} \right|\le \left| \frac{f(z)-f(w)}{z-w}\right| + \left|\frac{f(z_0)-f(w_0)}{z_0-w_0} \right|$  Since $f$ is holomorphic on $G$, it is continuous on $G$, thus $\exists \delta'>0$ such that $| {f(z)-f(w)}|<\varepsilon'|z-w|<\varepsilon'\delta'$ whenever $|z-w|<\delta'$.  And here's where I'm stuck, because it's not clear how to deal with $\left|\frac{f(z_0)-f(w_0)}{z_0-w_0} \right|$, because $z_0, w_0$ are fixed points, so we can't just make them approach each other. Of course, my first thought was to somehow rearrange the inequality in such a way as to obtain $\left| \frac{f(z)-f(z_0)}{z-z_0}\right| + \left|\frac{f(w)-f(w_0)}{w-w_0} \right|$, but I don't see how to do so.  Your help would be appreciated.


Can anybody help me with the following: I want to insert a PDF page into my Latex-file, however after I accomplish that, the header is not shown on that page that I have integrated. Is there any possibility to make the header visible? I used the package pdfpages.  Here is my code:  \documentclass[12pt,oneside,a4paper]{article} \usepackage{amsmath, amssymb, graphicx, pgfplots, tikz, booktabs, tabularx, float, pgfplotstable, fancyhdr, subfigure, pdfpages} \allowdisplaybreaks \usepackage[font=small,labelfont=bf,labelsep=colon]{caption} \special{papersize=210mm,297mm} \usepackage[left=40mm, top=30mm, right=20mm, bottom=20mm, headsep=12.5mm, headheight=3mm]{geometry} \pagestyle{fancy} \renewcommand{\headrulewidth}{0.0pt} \lhead{} \chead{} \rhead{\makebox[0pt][r]{Here is my header}        \hspace*{1.66667em}        \thepage} \lfoot{} \cfoot{} \rfoot{} \usepackage{setspace}\onehalfspacing \setstretch{1.3} \begin{document} Text \includepdf[pages={1}]{name_of_integrated_file.pdf} \end{document}   Thanks for the help!

I am writing my thesis. I have a "main" LaTeX file from where I am calling (attaching) pdf file. But the attached pdf file is not showing any page number. Also, it is not showing other page style I have (like, color vertical box at right end of the page, for chapter name). How this problem can be solved ?  %=======================================  \documentclass[11pt, b5paper,twoside, svgnames]{thesis}  % "thesis" uses book class  \usepackage{pdfpages} \usepackage{hyperref}   %---------------------------------------------------------  \begin{document}  \chapter{RESULTS} \includepdf[scale=0.9, pages={-}]{results.pdf}   \end{document}    %====================================== % HEADER and FOOTER %---------------------------------------  \usepackage{fancyhdr}   \pagestyle{fancy} \fancyfoot{} \fancyhead{}  \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancyfoot[RO]{\thepage}{\slshape \rightmark} \fancyfoot[LE]{\thepage}{\slshape \leftmark}  %=======================================================


So the day before yesterday I ordered a new computer (my other one died) when I got it yesterday I installed windows 10 on it straight away and everything went okay, no problems with windows 10.  Now in the first case windows updated itself and installed all the drivers that belong to my hardware, I installed Minecraft and it would try to launch, the launcher would pop back up with the error exception_access_violation:  A fatal error has been detected by the Java Runtime Environment: #EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000bc358e2, pid=1084, tid=4132 # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops) #Problematic   frame: #C[ig4icd64.dll+0x6d58e2]   After hours of googling I found an article that told me that if you let windows update the drivers automatically it might not install the proper openGL setting which causes Minecraft to crash. I completely wiped all of my amd drivers to install them again myself, this didn't help at all. At one point I even reinstalled windows 10 to make sure there could be nothing left of the AMD drivers so that's not the problem either.  After a few more hours of googling a dude told me that it might be a problem within the AMD Crimson software and he suggested me to completely wipe my drivers again, to replace them by AMD Catalyst™ 15.4.1 Beta for Windows®. After doing this the exception_access_violation error did not come up again, instead my Minecraft now launches for about 0.1 seconds, like it's trying to go full screen and then the launcher pops up with a white screen (it stays white). After a while it'll tell me Java SE Platform is not responding and I have to force shut it down in task manager.  Note: I've tried to install the Windows 10 Edition of Minecraft to see if that would work and it runs like a charm, never played minecraft so smoothly. The problem is I want to play with my friends who own a realm on the PC version so I'm definitely not content with the Windows 10 Edition. The point I'm trying to make here, if that version works the PC version should too right? Since its compatible with Windows 10.  Here are the specs of my new computer:    AMD FM2 A8-7600 Quad Core 3,1GHz,  MSI A68HM Grenade, AMD Radeon R7 240 2GB.   I'm currently posting this from a school-computer so if anyone asks for a screenshot or whatever I'll be able to post that in about 3 hours from now.  I've tried installing and reinstalling Java 8 64-bit,32-bit & Java 7 64-bit, 32-bit. I'm not sure if it's a java problem.

When I try to launch Minecraft 1.7.4 or newer, the game crashes on startup, and the game output screen says this:  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=*, pid=*, tid=* # # JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot™ Client VM (* mixed mode, sharing windows-* ) # Problematic frame: # C  [ig4dev32.dll+0x3e88] OR # C  [ig4dev64.dll+0x55ec] OR # C  [ig4icd32.dll+0x104a77] OR  # C  [ig4icd64.dll+0x84930a]   This happens with both Java 7 and 8.  What causes this error, and what can I do to fix the issue?


If $f:[a,b] \rightarrow R$ be continuous , let $f(x) =0$ when $x$ is rational. Prove $f(x) =0$ for all $x$ that is an element of $[a,b]$.   Thanks for the help I can't seem to find the f[a,b] notation in my notes and it is throwing me off.

Akhil showed that the  is the same as the continuum, using as a step the observation that continuous functions that agree at rational points must agree everywhere, since the rationals are dense in the reals.  This isn't an obvious step, so why is it true?


It has been almost a week as Apple has disabled downloads from  due to a security breach.  If you don't have App Store set up for whichever reason, how are you supposed to be using your brand new Mac for development?  Is there a copy of Xcode hidden somewhere within a brand new mid-2013 MacBook Air?  How do I get Xcode if I don't have an App Store account?  Nothing works without Xcode, I can't even use MacPorts to install the stuff I need, because it all depends on Xcode.

I've installed Xcode and MacPorts on a brand new mid-2013 MacBook Air, but MacPorts doesn't work, saying that it cannot find anything.  mba:~ cnst$ sudo port install wget Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build. Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information. --->  Computing dependencies for wgetError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? mba:~ cnst$   And, indeed, there is no make or clang in the path, but it is definitely installed, though:  mba:~ cnst$ find /Applications -name "clang" -or -name "make" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang /Applications/Xcode.app/Contents/Developer/usr/bin/make mba:~ cnst$   Why is there no make or clang in the path?  Why MacPorts doesn't work?  I notice that  mentions that you have to install something from ADC, Apple Command Line Developer Tools, but ADC doesn't work since last Thursday or Friday due to their security breach, so, the developer tools are nowhere to be found.  What's the proper solution here?


By a mistake I installed this on my system. Fast google search gave some sites that mark it as a malware etc and provide removal tools. However a fast google search about those sites shows that they aren't to be trust and probably scam.  Can anybody please help me with real info about this utility, and how to remove it safely?  EDIT: After I read , I see that if it's malware, I'll reinstall my system, but My question is yet: Is it a malware, scam etc, or is it just a not efficient program?


I have this array that i need to edit the array :      Array (     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_1\012014.user_1.txt] => TotalVisits 6788     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_1\022014.user_1.txt] => TotalVisits 11141     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_1\032014.user_1.txt] => TotalVisits 6143     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_1\042014.user_1.txt] => TotalVisits 936     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_1\052014.user_1.txt] => TotalVisits 936     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_2\012014.user_2.txt] => TotalVisits 9     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_2\022014.user_2.txt] => TotalVisits 25     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_2\032014.user_2.txt] => TotalVisits 37     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_2\042014.user_2.txt] => TotalVisits 17     [E:\EasyPHP-cmsServer-14.1VC9\data\cms\sites\user_2\052014.user_2.txt] => TotalVisits 16 )   And I want to be like this :  Array (     [012014_user_1] => TotalVisits 6788     [022014_user_1] => TotalVisits 11141     [032014_user_1] => TotalVisits 6143     [042014_user_1] => TotalVisits 936     [052014_user_1] => TotalVisits 936     [012014_user_2] => TotalVisits 9     [022014_user_2] => TotalVisits 25     [032014_user_2] => TotalVisits 37     [042014_user_2] => TotalVisits 17     [052014_user_2] => TotalVisits 16 )   Here's what I've tried :  foreach($myarray as $key => $value){                         $exp_key = explode('\\', $key);                         $exp_key_name = explode('.', $exp_key[6]);                       $key = $exp_key_name[0]."_".$exp_key_name[1];                      }   Any idea where's the error in my code? Thanks

I have an associative array in the form key => value where key is a numerical value, however it is not a sequential numerical value. The key is actually an ID number and the value is a count. This is fine for most instances, however I want a function that gets the human-readable name of the array and uses that for the key, without changing the value.  I didn't see a function that does this, but I'm assuming I need to provide the old key and new key (both of which I have) and transform the array. Is there an efficient way of doing this?


I was reading through the Monk rules in D&D 5e when I came across this section in the rules for Quivering Palm:     When you use this action, the creature must make a Constitution saving throw. If it fails, it is reduced to 0 hit points. If it succeeds, it takes 10d10 necrotic damage.   PHB pp.80   The standard expectation of how saving throws work is that if someone's attacking you, failing your saving throw brings worse results than succeeding, so you naturally want to succeed, and your attacker benefits if you fail.  However, that isn't always the case. Quivering Palm is an example which violates that standard expectation. Suppose you're on very low HP, or you're a very low-constitution wizard with less than 100 max HP to begin with, or you may want to avoid having to make death saving throws, or worse yet, a combination of these things! At that point, failing the save and dropping to 0 HP may be a far more appealing than succeeding, taking 10d10 necrotic damage, and risking dying outright.  How do you handle this situation that seems counter-intuitive to the rules? Can the rules be reinterpreted so that the best option you're left with is not simply to fail your saving throw? Something that, like normal, gives an advantage to success over failure? Especially since, as  in comments to an answer here, the character doesn't know he should fail.

(Yet another) follow-up from :   As someone mentioned in the question above, some 'friendly' spells (Calm Emotion, IIRC) specify that one can choose to fail the saving throw. In this case, the allowance makes sense, given that the spell has both a 'defensive' component--removes fear, charm--and an 'offensive' one--reduce aggro/threat, if you will. However, Banishment, and most other spells that require saves, are (meant as) offensive spells, so, it wouldn't make sense to allow the target to choose to fail the save--at least not explicitly. Can someone choose to fail a saving throw even for these spells?  The specific case that comes to mind (as per the question linked above) is using Banishment to return yourself to your native plane: if you are somehow transported to a different plane, casting Banishment on yourself, failing the throw, and then maintaining concentration for one minute should return you permanently to your native plane.  Considering non-spell saves/'defenses,' it seems that one can choose to fail (insofar as verisimilitude is a factor): a warrior can drop his shield, stand still, and allow his/her enemy to strike them down (effectively setting their AC to 0, so to speak, or even adopting/mimicking the Incapacitated condition); a PC making a strength check/contest can choose to give in/stop exerting strength; and the infamous/contentious issue (at least, in 4E I believe it was so), any character can presumably choose to hurt themselves with their own weapons, even if the PHB doesn't have a rule for it.


if (customer === "new") {   //run code } else { }   When I run this condition it run my code while actually I have string value in customer "customername" and comparing with sring "new" which is not equal as ("customername" != "new")  it should not run the code while comparing.  I found to using === equal will check type if type is same it will pass true so == is the option to check the value but I am facing erro on using ==.  Expected '===' and instead saw '=='  eqeqeq

I'm using  to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing idSele_UNVEHtype.value.length == 0 inside of an if statement.  Is there a performance benefit to replacing == with ===?   Any performance improvement would be welcomed as many comparison operators exist.  If no type conversion takes place, would there be a performance gain over ==?


I am writing a bash script to perform some analysis using the program . I want to run some initial command to load the result of the analysis, then continue using ROOT interactively.  The analysis part goes along well but the problem is that after root is executes my initial command, it closes immediately. So far I have tried the EOF (here-file) construct to pass my initial command and I am a bit unfamiliar with shell scripting so I would like to get your opinions on how to keep ROOT running after the execution of the script. That is I would like to see the ROOT prompt instead of the sytem prompt.  ./runReader.py SummerStd 140PU_NM1  root -l SummerStd_140PU_NM1_his.root << EOF TBrowser a; EOF   The above code executes the analysis then runs root; however, it immediately terminates and I have no time to inspect the TBrowser since I have the system prompt instead of the ROOT prompt. I would like control to stay at root's command prompt after the script sends the TBrowser command to the program, so I can enter additional commands by hand.

I am running long program on server, which is basically Jar file of java program. I want to keep this program running even if SSH terminal is closed, how I can keep this program running on server?


I am new to Salesforce integration.I have a web application and want to post user data to SalesForce account.The examples available for this purpose required SalesForce login when try to get Authorization Code using oAuth.This is not possible because when User post data on Application he don't have access to SalesForce account.Is there any way that I get permanent Authorization code.

Our salesforce org needs to expose some functionality as a REST API class to an external app. We created the apex class(@RestResource(urlMapping='')), now to provide access to the external app :   We created a new Integration User with limited access to profile and API enabled = true. We provided the credentials of this user to external app. We created a connected app and provided client_id and secret to external app. We provide salesforce oauth URLs to external app. External app uses Username Password oauth authentication flow with salesforce using these details to get access token.   We would like to explore a way without having need to create an Integration user and sharing this user's credentials.  How can this be achieved?


I am an advanced beginner who has been tempted to try Ubuntu by two friends who program.  My major question is about using Windows programs. The ones I use most are Quicken, Family Tree Maker, Last Pass, and Dragon Speech.    Will these work in Ubuntu or are there alternatives?

Can .exe and .msi files (Windows software) be installed in Ubuntu?


I was trying to setup a backup server with Ubuntu 18.04 Server  user@host:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.1 LTS Release:    18.04 Codename:   bionic   but I ran into a dependency error even thou the dependencies that fail are installed.  user@host:~$ sudo apt-get install  amanda-server amanda-common  xinetd gawk gnuplot readline-common Reading package lists... Done Building dependency tree Reading state information... Done readline-common is already the newest version (7.0-3). gawk is already the newest version (1:4.1.4+dfsg-1build1). Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  amanda-common : Depends: adduser but it is not going to be installed              Depends: debconf (>= 0.5) but it is not going to be installed or                       debconf-2.0              Depends: update-inetd but it is not going to be installed              Depends: perl (>= 5.22.1-3) but it is not going to be installed              Depends: perlapi-5.22.1              Depends: libcurl3 (>= 7.16.2) but it is not going to be installed  amanda-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed  cron : Depends: adduser but it is not going to be installed         Depends: libpam-runtime (>= 1.0.1-11) but it is not going to be installed  gnuplot : Depends: gnuplot5-qt but it is not going to be installed or                 gnuplot5-x11 but it is not going to be installed or                 gnuplot5-nox  init-system-helpers : Depends: perl-base (>= 5.20.1-3) but it is not going to be installed  libgd3 : Depends: libfontconfig1 (>= 2.11.94) but it is not going to be installed  libpam0g : Depends: debconf (>= 0.5) but it is not going to be installed or                  debconf-2.0  libssl1.0.0 : Depends: debconf (>= 0.5) but it is not going to be installed or                     debconf-2.0  nginx-common : Depends: debconf (>= 0.5) but it is not going to be installed or                      debconf-2.0  python3 : PreDepends: python3-minimal (= 3.6.5-3ubuntu1) but it is not going to be installed        Depends: python3.6 (>= 3.6.5-2~) but it is not going to be installed        Depends: libpython3-stdlib (= 3.6.5-3ubuntu1) but it is not going to be installed  python3-service-identity : Depends: python3-openssl but it is not going to be installed  wireless-crda : Depends: crda (>= 1.1.1-1ubuntu2) E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   I did notice missing packages: update-inetd, perlapi, gnuplot5-qt. But I'm not sure if installing them will fix the missing dependency error on the installed packages too.  How can I install it on Ubuntu Server 18.04?

I am writing this because I am very confused about installing PostgreSQL 9.3 on my Ubuntu 14.04. First I need it for my Python/Django development, and I ran into the problem when I tried to install it. Now I have this error and it is driving me crazy:  The following packages have unmet dependencies: postgresql-9.3 : Depends: postgresql-client-9.3 but it is not going to be installed Depends: postgresql-common (>= 142~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I have found some solutions online (),  and I did everything to the Preventive Measures part, because I have had some broken packages problem, and again after I had this error show to me again.  The second thing I have followed the official PostgreSQL installing tutorial (), and I have had duplicated repositories, but I have deleted them and I have added a fresh one but still this error.


I am having a html file which will accept and send the login and password. It is sent to the file login.cgi.  **   html file   **  <form method="POST" action="login.pl">

     Username 	     <input type="text" name="usr" size="20">

     Password 	      <input type="password" name="pwd" size="20">

     <input type="submit" id ="Login" value="Login" name="login"/>

   **   .pl   **  #!/usr/bin/perl    # login.pl   use CGI;   use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;   use CGI::Session ( '-ip_match' );    $q = new CGI;    $usr = $q->param('usr');   $pwd = $q->param('pwd');    if($usr ne '')   {       # process the form       if($usr eq "demo" and $pwd eq "demo")       {           $session = new CGI::Session();           print $session->header(-location=>'home.html');       }       else       {           print $q->header(-type=>"text/html",-location=>"LoginHtml.html");       }   }   elsif($q->param('action') eq 'logout')   {       $session = CGI::Session->load() or die CGI::Session->errstr;       $session->delete();       print $session->header(-location=>'LoginHtml.html');   }   else   {       print $q->header;       print <           <form method="post">           Username: <input type="text" name="usr">            Password: <input type="password" name="pwd">             <input type="submit">           </form>   HTML   }   After starting the apache server, i open the page and enter the username as demo and password as demo and click on the button.  I get the following error:     Software error:      Can't locate CGI/Session.pm in @INC   (@INC contains:   /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.8   /usr/lib/perl5/site_perl/5.8.7   /usr/lib/perl5/site_perl/5.8.6   /usr/lib/perl5/site_perl/5.8.5   /usr/lib/perl5/site_perl   /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.8   /usr/lib/perl5/vendor_perl/5.8.7   /usr/lib/perl5/vendor_perl/5.8.6   /usr/lib/perl5/vendor_perl/5.8.5   /usr/lib/perl5/vendor_perl   /usr/lib/perl5/5.8.8/i386-linux-thread-multi   /usr/lib/perl5/5.8.8 .) at   /var/www/cgi-bin/login.pl line 6.   BEGIN failed--compilation aborted at   /var/www/cgi-bin/login.pl line 6.      For help, please send mail to the   webmaster (root@localhost), giving   this error message and the time and   date of the error.   Please help me out to resolve this error.  **   EDIT 1   **  Problem resolved after installing CGI-Session-4.42.  Thanks to all of you, for your help.

I get this error:  Can't locate Foo.pm in @INC  Is there an easier way to install it than downloading, untarring, making, etc?


As more experienced users know, . However, the tooltips still say the same as on other StackExchange sites:    The tooltips are:   Question up vote: This question shows research effort; it is useful and clear. Question down vote: This question does not show any research effort; it is unclear or not useful. Answer up vote: This answer is useful. Answer down vote: This answer is not useful.   I think the tooltips should be fixed on meta to speak their actual meaning.  Although I understand why the votes have different meaning on Meta, it is quite a bad practice to change the expected behaviour of already established elements. In this situation maximum should be done to correct for this bad practice; either by  some notifications to the new user, pop-ups, ... Fixing wrong tooltips is the absolute minimum that should surely be done in this regard.

Since voting on meta sites mean something different on the main sites, can you change the tooltip as well:   This question is useful and clear --> I agree This question is unclear or not useful --> I disagree This answer is useful --> I agree This answer is not useful --> I disagree   ...or something along those lines.


I am having a programming function with name WorkFunction_(). I am trying to highlight this function using \texttt{}, something like \texttt{WorkFunction_()}. However this ends in error.  Could anyone suggest an alternate for this?

How can I produce the text Word_one_two in LaTeX?  I tried:  Samp\_Dist\_Corr   But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing:  \texttt{Samp\_Dist\_Corr}   I find it looks a bit like the underscore is merging in to the bottom of the "D", but maybe it's just because of the typewriter D?


I have dvds for Linux Lite 32 and 64 bit, would 32 be faster?  (x86_64) I have 2.8 ram

What is the difference between 32-bit and 64-bit Ubuntu? I've heard the 64-bit platform performs better and can detect more than 4GB of RAM. Also, while some apps haven't ported to 64-bit yet, ia32-libs lets a 64-bit machine run them.  If so, why not promote 64-bit over 32-bit?


Ok scenario: 8 9 8 9 9 on table. Player 1 has 8/4 in hand. Player 2 has K/2 in hand. Who wins? I personally say split since table has higher full house. Am I right?

In Texas Hold'em poker, there are some cases where a particular card, often called kicker, acts as a tiebreaker between players to determine who wins the pot, or if the pot has to be shared.  For some combinations such as three or four of a kind, there is no doubt: the kicker is the 5th card of the chosen combination, and determines the winner.  Example     Alice has 7 and 10   Bob has 7 and K   On the board are 7, 7, 2, 3, 4   In that case, both have a three of a kind. But because Bob has a king and Alice only a 10, he wins.  Most of poker websites explaining the rules clearly mention the role of the kicker applying to three of a kind and double pairs. But much fewer say something about colors, straights and full houses, and I found many contradicting answers. I also asked the question to some used online poker players and they also gave me contradicting answers.  I have tried to search for official tournament rules, but most of them only explain what happens with bad behaviors, bad deals, incorrect or confusing betting, showing cards when you shouldn't, acting when it's not your turn, etc. without mentioning subtleties about combinations at all.  To simplify my question, I will take three examples; I think it's better to start with examples before getting to the general answer if one exists. So, what's happening in the following 3 examples? Could you give a more generalized answer?  Example 1 - Flushes     Alice has 2♣ and 3♣   Bob has 4♣ and 5♣   On the board are 6♣, 8♣, 10♣, 2♥, 5♦   Contradicting answer 1: it's a tie, because the highest card included in the flush is the 10, which everybody chooses to include in their 5 showdown cards. Contradicting answer 2: Bob wins, because he has the greatest private card that is part of the flush  Example 2 - Straight     Alice has 6 and K   Bob has 6 and J   On the board are 4, 5, 7, 8, 10   Contradicting answer 1: it's a tie, because the greatest card in the straight is the 8 for both Alice and Bob Contradicting answer 2: Alice wins, because she owns an extra king, compared to the jack of Bob  Example 3 - Full house     Alice has 3 and 7   Bob has 3 and 6   On the board are 3, 3, 2, 2, 5   Contradicting answer 1: it's a tie, because one is supposed to choose only five cards to make a combination, and a full house is already five cards. There couldn't be any kicker, and thus their showdowns are strictly equals. Contradicting answer 2: Alice wins because of her extra 7, compared to the 6 of Bob  Thank you very much for your answers.  Note: I'm unable to post next to you, so I edit my own post; strange not be able to answer to an answer.  Ok, So if I summarize what you are saying :   In the flush case, Bob wins because at some point, their hand differs. Technically, I can continue comparing the highest private card to decide who wins. I had it correct. In the straight case, if the highest card of the straight is public, then it's technically always a tie, no matter what the players had as second private card (asuming that only one of the two cards was part of the straight). In a full house if both players have the same triplet and the same pair, it's always a tie, no matter what the players had as second private card (assuming again that only one of the two was part of the full house).   Please confirm me that what I summarized is correct.  Thank you for your answer.


I am getting undefined reference errors on my parrotos install, works fine on arch. /usr/bin/ld: /tmp/ccndw0FB.o: in function resolution': sfetch.c:(.text+0x284): undefined reference to XOpenDisplay' /usr/bin/ld: sfetch.c:(.text+0x2f7): undefined reference to XGetWindowAttributes' /usr/bin/ld: sfetch.c:(.text+0x322): undefined reference to XCloseDisplay' collect2: error: ld returned 1 exit status Compile command: gcc -std=c99 -lX11 -g sfetch.c

Why does the order in which libraries are linked sometimes cause errors in GCC?


It has no questions and seems awfully specific.  It's surely on-topic for other sites in the network, but yet it seems to publicly exist.

I just stumbled over this page in the Stack Exchange dropdown (top left corner).   cs50 - For students of HarvardX CS50x: Introduction to Computer Science  When I  I get the following message:  Warning: this site is currently in private beta for at least a few more days. To log in, you must have commited to the  and received the invitation email. Click the invitation link in the email to log in!  However, the  does not exist, so it's impossible to get any further information. So, what is going on? Apparently this is a private site for  students? I don't have a problem with that in general, but I wonder  a) Why is it part of the Stack Exchange family if it is a private site? b) Why does it show up for me under Stack Exchange sites at all if it won't even let me have read access to it?  It seems that there are several of those sites, for example . Is this some sort of pilot project?


Where can I download the 64 bit geoprocessing for ArcGIS 10.3?  I know it can be done from the instalation CD, but I don't have access to it at my work.  Do I just have to install ?

I am trying to install 64-bit processing to ArcGIS 10.2, but the ESRI .  One similar question on this exchange  that shows an option to include this, but my setup installation program (which I downloaded) does not show this installation window, but instead goes straight to selecting features to install as shown below.  I can't find any other documentation for running 64-bit geoprocessing on ArcGIS version 10.2.  Can anyone show me how to do this? or is it best to just try to install the service pack 1 version of it?


Most of the technology in Chilling Adventures of Sabrina suggests some time before the 1990s but after the 1940s. Cellphones, so ubiquitous in the modern world since at least 2005, are conspicuous in their absence. Every phone call is made with a landline (or occasionally through magic). If there are any personal computers, even, they do not seem to play an important role. The cars mostly seem to be much older models, and several people—especially Sabrina—have hairstyles that seem to evoke an earlier era. Some of the cultural references are relatively dated, too: the characters talk a lot about Alien, The Rocky Horror Picture Show, or even "16 Going On 17", but I do not recall any references to Justin Bieber or the Spice Girls, or indeed, anything after 1990. On the other hand, in terms of vocabulary and mannerisms, the human characters certainly talk more like teenagers from 2010 than like teenagers from the 80s, let alone earlier. Further, in terms of the culture of the school body and administration, the school often seems more characteristic of a modern educational institution than what one would likely encounter in a small town in some 30 or more years back. For instance, when Nick goes to the school, he joins the school LBGTQ Alliance; while the Gay Activists Alliance, probably the inspiration for most of these groups, was founded in 1969, it would have been rather unlikely to find an analogous high school club, let alone in a small town. Also, for what it is worth, in the alternate universe, Harvey (or his actor?) talks about #Habrina, with Twitter of course having popularized hashtags. So in what time period does Chilling Adventures of Sabrina take place? Or does it not take place in any particular year?

Almost everything in Greendale seems to be vintage 1960's (cars, movies, dress). I assume it is to reflect the original comic book, but I swear I saw Ambrose using a laptop computer in the first episode. Was this just to make it more topical? Or is it some kind of alternate reality?


I just started using Ubuntu-Mate 16.04 and after setting everything up, I then installed my printer. The driver itself installed smoothly without any problem and it showed up in the printer menu.  But sadly it couldn't print any document. Even trying to print the test-page was merely a dream. When I looked at the Print Queue, the document actually was sent there, but in a second it got completed without any of them being printed.  I can use the printer alright in win10.  What's wrong, eh?

I am having trouble to set up my Epson printer on Ubuntu 16.04. How can I install the drivers?


Sometimes all I want to say is Thank you., but I need '5' more letters 'to go'. I've seen people write "4more" or "kdjgodfjg" or other things to get around this. Can we short the comment minimum to be 10 so we don't have to do this to simply say thank you?

I understand that there is an upper limit. But why do you have to type at least 15 characters to post a comment? It is easy to work around it anyway (like adding dots or other useless things).


Its the standard float issue. You have a bunch of floating elements inside a parent container div. Since the childs are floating, the parent doesnt expand to include all of them.  I know about the clearfix solution as well as setting the overflow property on the parent container div to "auto" or "hidden". To me setting the overflow method seems much nicer as its just one property. What I want to understand is when does the clearfix approach has advantage over this method cause I see it being used extremely often.  P.S. I am not concerned about IE6.

I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.

   There seem to be numerous methods of fixing the clear bug in Firefox:
 overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the
 solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust?


With the database manager in QGIS, it is possible to export a QGIS layer to a PostgreSQL database, by creating a new table in the database. For instance, if I have a cities layer in my QGIS project, I can export it to a new table cities in my PostgreSQL database. The tool provides the option of replacing the destination table in the database, if this table already exists (see screenshot below, sorry about the French locale). Now, my question is: is there any way to "concatenate" the data of my QGIS layer cities to the existing citiestable of my PostgreSQL database, instead of erasing the existing table and replacing it by a new one? (assuming of course, that the existing database table and the QGIS layers have the same CRS and the same geometry type)

I 'm running postgis with qgis 2.6. I created a database and tables that i need to update with new datas provided with shapes. I cannot find how to insert them in table. All attributes both shapes and table are same. I don't despair to have an "easy" way instead of using an insert to command that i'm not sure to use correctly in postgis command.  I've tried the database manager but i only succeed in erasing all previous data in the table >_<  Window 7 64 bits Qgis2.6 Postgis1.5 Postgrsql 9.4


Be $x$ a number, denote $[x]$ the greater integer number that is smaller than $x$, and denote $\{x\} = x - [x]$. For example: $$x = 1,71 \qquad [x] = 1 \qquad \{x\} = 0,71$$  What is the value of $\lim_{n\to\infty}\{(2+ \sqrt{3})^n\}$ ?  I have been seeking for any pattern, but i didn't not found anything. My guess would be open it as a series, but i think this would be too much cumbersome. I would appreciate any help to start with maybe a better way.

I've stumbled upon the following problem:  $$\lim_{n\rightarrow \infty} \{(2+\sqrt{3})^{n}\}$$  where "{}" notates the fractional part.  I've never studied this kind of problem, there exists any reference that I could read about this type of problem?


I am doing multinomial logistic regression.  Dependent variable is categorical with 6 categories. 6 Independent variables are measured on an interval scale (included as covariates in SPSS)  Now I am watching the LR test. None of the independent variables have a $\chi^2$ value and no degrees of freedom are shown, so significance is not specified. (except for the constant, which is significant and has 5 df's). One variable is redundant in the parameter estimates.   When I omit the redundant IV in the model, there are $\chi^2$values, df's and significance values for the independent variables. Was the first model over-parametrised or something?  what is the explanation for this situation? And is it valid to omit one independent variable in the model?

I am running an ordinal logistic regression in R and running into trouble when I include dummy variables.  My model works great with my first set of predictors.  Next I want to add dummy variables for each of the years represented in my dataset.    I created the dummy variables with car:recode in this manner (one statement like this for each of the 11 years)  fsd$admityear2000 <- recode(fsd$ApplicationYear ,"2000=1;else=0")   The lrm model is specified as follows  library(Design) ddist<- datadist(fsd) options(datadist='ddist') m4 <- lrm(Outcome ~ relGPA + mcAvgGPA + Interview_Z + WorkHistory_years + GMAT + UGI_Gourman + admityear1999 + admityear2000 + admityear2001 + admityear2002 + admityear2003 + admityear2004 + admityear2005 + admityear2006 + admityear2007 + admityear2008 + admityear2009, data=fsd)   (sorry for all of the other random variables, but I don't want to introduce confusion by changing my code)  I get the error  singular information matrix in lrm.fit (rank= 22 ).  Offending variable(s): admityear2009 admityear2000 admityear1999  Error in lrm(Outcome ~ relGPA + mcAvgGPA + Interview_Z + WorkHistory_years +  :    Unable to fit model using “lrm.fit”   I understand that including all options of a dummy variable over-defines the model, but I get the error whether I include all 11 years or just 10.  I found a suggestion  to set the penalty parameter of lrm to a small positive value.  Setting it to 1 or 5 changes the error such that it only names one of the variables as offending.  The error doesn't go away even with penalty=100.  I'm pretty new to R, but loving the freedom so far.  Thanks for any help!  Responses and Lessons   Factors are awesome and I can't believe I didn't notice them earlier. Man that cleans up my code a lot.  Thanks! My DV, 'Outcome' is indeed ordinal and after making it a factor(), I also made it ordered(). The str() command is also awesome and this is what my data now looks like (with some of the non-relevant variables omitted)   output:  str(fsd)      Outcome      : Ord.factor w/ 3 levels "0"<"1"<"2" relGPA       : num   mcAvgGPA     : num  admitschool  : Factor w/ 4 levels "1","2","3","4" appyear      : Factor w/ 11 levels "1999","2000",..    both lrm() and polr() now run successfully, and they both deal with appyear by dropping some values of the factor.  lrm() drops 1999, 2000, and 2001 while polr() just drops 1999 and 2000.  lrm() gives no warnings while polr() says "design appears to be rank-deficient, so dropping some coefs."  This is an improvement, but I still don't understand why more than one value needs to be dropped. xtabs shows that there isn't full seperation right?   output:  xtabs(~fsd$appyear + fsd$Outcome)            fsd$Outcome fsd$appyear    0    1    2        1999 1207  123  418        2000 1833  246  510        2001 1805  294  553        2002 1167  177  598        2003 4070  158 1076        2004 2803  106 1138        2005 3749  513 2141        2006 4429  519 2028        2007 6134  670 1947        2008 7446  662 1994        2009 4411   86 1118


We have a small linux cluster ~12 computers and a similar number of users.  Is it possible for a superuser to launch a graphical application - say firefox or even a python script on another machine that is being used by another user?

Following are other questions which I think I need to know:   From a non X Session? (meaning root isn't logged into X) If multiple people were logged in on X, could I auto-detect who was on which screen, and thus programmatically detect which screen I need to launch the app on? Can I launch the app as the user? ( ok I'm 99.999% sure this is a yes ) Can I detect if users of group X are logged in to X?


I am looking for recommendation on upgrade path from my current needs to have sharper image quality.  My Equipments   Nikon D3200 2 years old. 35mm 1.8 DX Lense (my primary go to lense for everything) Nikkor 50 mm F/1.8 FX AS G SWM AF-S SIC M/A Lens Nikkor 18-35mm f3.5-4.5D ED IF Aspherical Lens (unused because on the frame it manual focus only) Nikon Speedlight SB-600 Basic Kit Lense Eye-Fi SD Wireless Card   I have also rented out a 17-35mm lense when in need.  What Do I do  I shoot at events that are typically dark and latenight (clubs, corporate events venues at restaurants, etc). I have also shot at weddings and engagements as a second photographers. I do mostly groups and single (couple) portraits. I have been engaged in day light shots for some fashion bloggers lately, therefore I have been gaining more experience in day shots now.  I do not foresee the type of work I currently do to deviate (more weddings/engagement and night time photography at least once a week).  This is still a "hobby" that I like to do, but It is not my primary job. So I do not expect to spend over 2K worth (body lenses combine) in the near future to accommodate my hobby.  I'm unsure what is my next step would be:   Buy more lenses (I don't have zoom, I dont have wide angle. even if I rent a 17-55mm, that lense is sure heavy and bothersome) Buy an upgraded Crop Frame (Current generation up, or last generation closest to full frame) Last generation entry point full frame   Any incremental steps I should be taking for my needs?  Note I am open to keeping the D3200 as a secondary if needed (also if my upgrade, the lenses I currently is not compatible like a full frame with a DX lense)  Update/Response to mattdm  I have read:   As per the best/top response with 9 vote - I am limited to my gear. I am surrounded by those who have full frame and work equally to use their photography passion as a second income and passion. So I am getting a lot of practice and pointers in terms of composition etc. I have felt that I have tapped the feedback / group path and it is time for more gears in terms of lense and/or body.

I have an entry-level Nikon DSLR, and I cant decide if I should upgrade my camera body or upgrade from a  AF-S DX Nikkor 18-200mm to whatever else might be recommended?


It takes almost two seconds before my linux machine replies the password is incorrect while the correct one gets accepted almost instantaneously.

I notice a weird (well, according to me) thing about passwords. For example, if I type an incorrect password during login, there will be a few seconds' delay before the system tells me so. When I try to sudo with a wrong password I would also have to wait before the shell says "Sorry, try again".  I wonder why it takes so long to "recognize" an incorrect password? This has been seen on several distributions I use (and even OSX), so I think it's not a distribution specific thing.


I am not a physicist but this question has bugged me for a while now. The second law of thermodynamics states that the total entropy of an isolated system can never decrease over time. However, if the Universe is considered to be an isolated system, which as far as I know many people suggest, wouldn’t the formation of stars cause a decrease of the entropy?

Please forgive: I am a layman when it comes to physics and cosmology, and have tried finding an answer to this that I can understand, with no luck.  As I understand it, the solar system evolved from a massive molecular cloud. To me, this seems to break the second law of thermodynamics, as I think it suggests order from disorder.  I know there must be something wrong with my logic, but am really stuck.  Can anyone explain this one in layman's terms?  (Posting to both "Astronomy" and "Physics", as it seems to overlap these subjects)


This question , but I hope that new QGIS features may have produced an anwswer.   In the new QGIS version, are there new raster features  similar to the vector features "action button", label menu or Qt Designer form, that may allow  to display a raster label (not band value) ?

I have been struggling for one hour with this simple problem (QGIS 1.8.0-Lisboa, Windows 7) :  I have a raster layer. I would like to display the label and not only the band value when I use the Identify Features button. Is it possible?


Is there GCC compiler that could build large source code in parallel ? "The compiler itself running with parallel computing methodology " Is there any GCC option for doing the previous requirement?

Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile large projects quicker (for example 4 source files at a time for a multi-core CPU)?


I wished to know if someone knew how to put the compilation warnings of GCC in a text file ?  For example :  I wrote (willingly) a undefined function foo(). So gcc tell me :  warning: implicit declaration of function 'foo [Wimplicit-function-declaration]   How can i get this line written in a text file ? I search for an option in the man page of gcc :    but didn't find anything about that. I tried the commands echo and tee to do that but those commands only catch the compilation line (eg : ... gcc -o test test.o main.o ...)

I want to see the output of a command in the terminal as if there was no redirection.  Also, stderr needs to be redirected to err.log and stdout needs to be redirected to stdout.log.  It would be nice to also have the exact copy of what is shown in terminal, i.e. errors printed as and when it occurs, in a separate file: stdouterr.log.


I struggled coming up with a title for this post but I would love to find a simple explanation why the running the following program gives output of 6,5,5 instead of 5,5,5:  public class TestMethod { public static void main(String[] args) {      IntegerObject aInt = new IntegerObject(5);     objectIncrease(aInt);     System.out.println(aInt.x);      int bInt = 5;     increase(bInt);     System.out.println(bInt);      Integer cInt = new Integer(5);     increase(cInt);     System.out.println(cInt); }  public static void objectIncrease(IntegerObject x){     x.increment(); }  public static void increase(int x){     ++x; }}   IntegerObject is just another class that I created to demonstrate my point.  Why does the increase(int x) method create a local instance of the int x but the objectIncrease(IntegerObject x) method does not create a local instance of the integerObject x?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


This notation has come up in a paper I'm co-working on.  We're currently calling $$\{\{1\},\{2\},\ldots,\{n\}\}$$ the partition of singletons.  This name seems suitable.  However, I'm not sure what to call $$\{\{1,2,\ldots,n\}\},$$ and I'm guessing there's a name for it in the literature that I'm unaware of.  Question: What is an appropriate name for the partition $\{\{1,2,\ldots,n\}\}$ of the set $\{1,2,\ldots,n\}$?


I'm kind of confused about how to prove one to one and onto with functions and composition functions. I am also a visual learner. Could someone tell me step by step how to prove whether or not a function is one to one and if it is onto? Help is greatly appreciated!

Suppose we have two functions, $f:X\rightarrow Y$ and $g:Y\rightarrow Z$. If both of these functions are onto, how can we show that $g\circ f:X\rightarrow Z$ is also onto?


Why does Ubuntu create a file ending in ~ for every file I create with a text editor ?   Creating a file with a text editor like GNU Emacs, say myfile, another file called myfile~ is also created. Why is this superfluous file created ? Using cat on it displays nothing.  Thanks,

I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit.  I understand the need for a temp file (eg. in case of a crash), but vim for example deletes the extra file it creates, when I close it.  Is there a way to do the same with gedit? Some configuration perhaps?


Show that the set of bounded continuous functions is complete in the sup-norm.  My work: we want every Cauchy sequence to have a limit in the same set. But I don't understand what we can start with. If we take some Cauchy sequence $||f_n - f_m|| \leq \epsilon$, but we still have no information about its convergence...

I have lecture notes with the claim $(C_b(X), \|\cdot\|_\infty)$, the space of bounded continuous functions with the sup norm is complete.  The lecturer then proved two things, (i) that $f(x) = \lim f_n (x)$ is bounded and (ii) that $\lim f_n \in \mathbb{R}$.  I don't understand why it's not enough that $f$ is bounded. I think the limit of a sequence of continuous functions is continuous and then if $f$ is bounded, it's in $C_b(X)$. So what is this $\lim f_n \in \mathbb{R}$ about? Many thanks for your help.


Prove $G=N_G(P)H$ where $H \lhd G$ and $P \in Syl_p(H)$.  I definitely need some help with this one. I was thinking that maybe the problem meant to say that $P$ was a sylow subgroup of $G$, that would make this seem much more reasonable. Does anyone have any insights?

Let $A$ be a normal subgroup of a group $G$. Let $B$ be a subgroup of   $A$ with the property that whenever $B_1 \leq A$ is conjugate to $B$   in $G$ then it is conjugate to $B$ in $A$. Prove that $G=AN_G(B)$   Help me some hints.


The question is similar, but the answer here is more general. The log output width is limited to 80 characters. For example, this output:  (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgfplotssysgeneric.code .tex)) (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/pgfplotslibrary.code.t ex) (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldp gfsupp_loader.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/pgflibraryfpu.code.tex )   could be:  (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex)) (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/libs/pgfplotslibrary.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_loader.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/pgflibraryfpu.code.tex)

Is it possible to tell the LaTeX command not to use line breaks in its console / log output?  This would make it easier to automate the processing of the log file, e.g. extracting the names of missing graphics files like in this output  ! LaTeX Error: File `figures/triggers/muontriggers/notmu18_medium_mu10_loose/2d map_abs_eta_phi.pdf' not found.   which are otherwise cut into pieces and unnecessarily difficult to grep etc.


I'm in the process of trying to find $|Aut(K_{4})|$, where $K_{4}$ is the Klein-4 group, isomorphic to $\mathbb{Z}_{2} \times \mathbb{Z}_{2}$. $K_{4} = \{ id, (12)(34), (13)(24), (14)(23)\}$ is a subgroup of $S_{4}$, the group of permutations of $4$ objects.  Right now, I have already established that $K_{4} \simeq \mathbb{Z}_{2} \times \mathbb{Z}_{2}$ and have proven that if $G,H$ groups such that $G \simeq H$, then $Aut(G) \simeq Aut(H)$.   So, I am at the point where I am ready to check which of the permuations in $K_{4}$ are homorphisms, and I am unsure of how to do that.  For example, for the permuation $(12)(34) = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 1 & 4 & 3 \end{pmatrix}$, I want to show that the map $f: \begin{pmatrix}1 & 2 & 3 & 4 \end{pmatrix} \mapsto \begin{pmatrix} 2 & 1 & 4 & 3 \end{pmatrix} $ is a homomorphism, but I am not sure what the appropriate group operations to use are.  Until now, I have only ever calculated $Aut$ of $\mathbb{Z}_{n}$, where the operation I would use was addition modulo $m$, but I've never dealt with a case where the underlying group was a permutation group and not an additive group. Could somebody please demonstrate for me how to show that  $f: \begin{pmatrix}1 & 2 & 3 & 4\end{pmatrix} \mapsto \begin{pmatrix} 2 & 1 & 4 & 3 \end{pmatrix} $ meets the criteria for being homomorphic? If I see one worked out example, I can probably figure out how to do the rest on my own, but as it is right now, I am at a loss.  Thank you.

This is most likely a lack of understanding of wording on my part. I was considerind the Klein 4-group as the set of four permutations: the identity permutation, and three other permutations of four elements, where each of those is made up of two transposes, (i.e., 1 $\rightarrow$ 2, 2 $\rightarrow$ 1 and 3 $\rightarrow$ 4, 4 $\rightarrow$ 3) taken over the three possible such combinations of four elements.  Here, then, is my question. I am assuming (?) that Aut(G) in this case is the set of permutations of the four elements of the Klein 4-group - or the three non-identity ones for the purpose of showing isomorphic to $S_3$. If this is the case, what does it mean to have a permutation of these three permutations that I mentioned above? As always, thanks for your help.


I can draw a simple table with non merged rows and columns. However, I want to draw a table in latex with some rows merged as shown below, any ideas on how to do it?

I can compile this table separately but when I want to compile the whole file, it gives me an error, which is fixed by removing \multirow.  \usepackage{multirow}  \begin{table}[htbp] \begin{center} \begin{tabular}{|c|c|c|c|p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}|} \hline A & B & C & D & \multicolumn{7}{|c|}{F}  \\ \hline \multirow{ 2}{}{1} & 0 & 6 & 230 & 35 & 40 & 55 & 25 & 40 & 35 & \\ & 1 & 5 & 195 & 25 & 50 & 35 & 40 & 45 &  &  \\ \hline \end{tabular} \end{center} \label{table2} \end{table}


Mechanically, the Beholder takes a copy of their target's role (with some small exceptions, e.g. Bloodhound -> Seer) and then uses that copy to visit their target's target.  On any given night, the Drunk Seer has a certain chance to get drunk and forget their check. So... Does the beholder copy the Drunk Seer role? If so, do they get drunk if (and only if) the Drunk Seer gets drunk, or is the drunkenness independent?

What happens when the Beholder beholds a Drunk Seer who was drunk that night? Does he see what they beheld before they blacked out, or does he just see that they were drunk?


I read an article and found it very useful:   I made two key pairs for root and the other user. But it only works for root  When it comes to the other one, the server shows:  Using username "theotheruser". Server refused our key theotheruser@mydomain.com's password:

I generated a key and copied it to my target:  ssh-keygen ssh-copy-id username@hostname   I left the the location of the key as default and did not set any passphrase.  For a small while after that, I was able to ssh username@hostname without being prompted for a password, and then it stopped working for some reason.