For any install in ubuntu  It is giving the same error. How can I remove all these gstreamer package errors?  The error is   installArchives() failed: dpkg: dependency problems prevent configuration of gstreamer0.10-plugins-bad: gstreamer0.10-plugins-bad depends on libdirectfb-1.2-0; however: Package libdirectfb-1.2-0 is not installed. gstreamer0.10-plugins-bad depends on libiptcdata0; however: Package libiptcdata0 is not installed. gstreamer0.10-plugins-bad depends on libjack0 (>= 0.118+svn3796); however: Package libjack0 is not installed. gstreamer0.10-plugins-bad depends on libmodplug0c2 (>= 1:0.7-4.1); however: Package libmodplug0c2 is not installed. gstreamer0.10-plugins-bad depends on libmpcdec3; however: Package libmpcdec3 is not installed. gstreamer0.10-plugins-bad depends on libmusicbrainz4c2a (>= 2.1.5); however: Package libmusicbrainz4c2a is not installed. gstreamer0.10-plugins-bad depends on libsoundtouch1c2 (>= 1.3.1); however: Package libsoundtouch1c2 is not installed. gstreamer0.10-plugins-bad depends on libssl0.9.8 (>= 0.9.8k-1); however: Package libssl0.9.8 is not installed. gstreamer0.10-plugins-bad depends on libwildmidi0; however: Package libwildmidi0 is not installed.  libgstreamer-plugins-bad0.10-0 (0.10.22.3-2ubuntu2.2) breaks gstreamer0.10-plugins-bad (<< 0.10.22.3-2) and is installed.  Version of gstreamer0.10-plugins-bad to be configured is 0.10.18-1ubuntu1. gstreamer0.10-plugins-good (0.10.31-1ubuntu1.2) breaks gstreamer0.10-plugins-bad (<< 0.10.21.2) and is installed.  Version of gstreamer0.10-plugins-bad to be configured is 0.10.18-1ubuntu1. dpkg: error processing gstreamer0.10-plugins-bad (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: gstreamer0.10-plugins-bad Error in function:

dpkg --configure -a  Setting up linux-image-3.13.0-35-generic (3.13.0-35.62) ... Running depmod. update-initramfs: deferring update (hook will be called later) The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-35-generic vmlinuz(/boot/vmlinuz-3.13.0-35-generic ) points to /boot/vmlinuz-3.13.0-35-generic  (/boot/vmlinuz-3.13.0-35-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-35-generic.postinst line 491. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-35-generic /boot/vmlinuz-3.13.0-35-generic update-initramfs: Generating /boot/initrd.img-3.13.0-35-generic  gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-3.13.0-35-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-35-generic.postinst line 1025. dpkg: error processing package linux-image-3.13.0-35-generic (--configure):  subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-35-generic:  linux-image-extra-3.13.0-35-generic depends on linux-image-3.13.0-35-generic; however:   Package linux-image-3.13.0-35-generic is not configured yet.  dpkg: error processing package linux-image-extra-3.13.0-35-generic (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-image-generic:  linux-image-generic depends on linux-image-3.13.0-35-generic; however:   Package linux-image-3.13.0-35-generic is not configured yet.  linux-image-generic depends on linux-image-extra-3.13.0-35-generic; however:   Package linux-image-extra-3.13.0-35-generic is not configured yet.  dpkg: error processing package linux-image-generic (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  linux-image-3.13.0-35-generic  linux-image-extra-3.13.0-35-generic  linux-image-generic


Hi I'm very new to Java and have this HW problem, we are asked to build a Class RandomBag -- a generic bag container which allows 'RandomPick' of an element. I keep getting this error I have little idea to fix, any help is greatly appreciated!     public RandomBag() {       ArrayList<E> Bag=new ArrayList<E>();       Random Rand =new Random();   }   public RandomBag(int seed) {        ArrayList<E> Bag=new ArrayList<E>();       Random Rand =new Random(seed);

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?


Suppose $f$ is two-times differentiable at $x$. Show that  $$ \lim_{h\to 0} \frac{f(x+h) - 2f(x) + f(x-h)}{h^2} = f''(x). $$

The function $f$ is differentiable twice at x. Prove that:   $$\lim_{h\to0}\frac{f(x+h)-2f(x)+f(x-h)}{h^2}=f''(x)$$   Hint: use Peano's remainder (if $f:I\to\mathbb R$ is differentiable $n$ times on $a\in I$ then $R_k(x)=o(|x-a|^k), \ x\to a$).   I just don't see the connection here between the second derivative and the Taylor series which has to do with Peano's remainder...  The remainder is defined to be the difference between the function and polynomial but what does it has to do in this case ?


The below code works fine, independently. Meaning, if I come to the page and smash the like button it will function correctly and display the unlike button. However, if I immediately click the unlike button following that, nothing will happen. I will have to refresh the page and functionality will resume. Am I missing a crucial step here or is my logic flawed?          $(document).ready(function(){             var content = <?php echo $content['id']; ?>;             user = <?php echo $user['id']; ?>;              $('.like').on('click', function(e){                 e.preventDefault();                 $.ajax({                     url: 'ajax.php',                     type: 'post',                     data: {                         'content': content,                         'user': user,                         'like': 1                     },                     success: function(response){                         $(".like").replaceWith( "<a href='#' class='btn btn-sm btn-danger rounded-pill unlike' data-id='<?php echo $content['id']; ?>'> Boo!" );                     }                 });             });              $('.unlike').on('click', function(e){                 e.preventDefault();                 $.ajax({                     url: 'ajax.php',                     type: 'post',                     data: {                         'content': content,                         'user': user,                         'unlike': 1                     },                     success: function(response){                         $(".unlike").replaceWith( "<a href='#' class='btn btn-sm btn-success rounded-pill like' data-id='<?php echo $content['id']; ?>'> Woo!" );                     }                 });             });         });

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


discusses limitations of House Elves. If House Elves couldn't be used to search Chamber of Secrets, why didn't he simply asked ghosts?  Ghosts can certainly move around freely without any bound.  If Moaning Myrtle was shy to be interacted, he could order house ghosts like Nearly Headless Nick or Bloody Baron. Also, Professor Binns could have happily accepted his request.  Why didn't Dumbledore ask ghosts to search for the Chamber of Secrets?

got me to wonder why Hogwarts ghosts never knew about the Chamber of Secrets.  Some  have been around Hogwarts for centuries. Plenty of time to explore the school grounds, talk to people who might know, or talk to the person killed by the basilisk. "So the last thing you saw was a big pair of glowing yellow eyes over there by the sink? Well, Nick, let's float down through the floor by the sink and see what's there."  They can move through walls, so they can access the  without needing to say "Open" in a Parseltongue.  They are immune to or less affected by hexes and charms that would bedevil living residents.  They had many opportunities over the centuries and the means to do it. Why didn't the ghosts discover the Chamber of Secrets?  Please support your answers with quotes from canon sources.


I have done some books on GTR like by Sean Carroll's Spacetime and Geometry, read a little bit from Kip Thorne's Gravitation, and also did Short course on General Relativity. But I didn't understand much. The problem is not mathematics but notation and line of reasoning, like I don't understand why did we use tortoise coordinate in Schwarzschild solution to explain black holes I mean what were the hints that were asking us to use tortoise coordinate. And if I am working on some problem on GTR in future how would I know that which coordinate transformation would be better and how many sort of coordinate transformation are there. I just want some or more books to understand how Physicist did solve Einstein field equation.

What are some good books for learning general relativity?


Is there any application or ways to group multiple open windows together so that they open together in layout it is arranged.  For example, If I arrange these application like this then on any icon of these application in Ubuntu launcher, it opens as it is arranged.  --------------------------------------------- |      Gedit           |   Gnome Terminal   | |                      |                    | |                      |                    | |                      |                    | |                      |                    | |                      |                    | |                      |--------------------| |                      |   Google Chrome    | |                      |                    | |                      |                    | |                      |                    | |                      |                    | |                      |                    | |                      |                    | ---------------------------------------------

I'm wondering is there any way to achieve the affect of the Ctrl-Alt-Keypad shortcuts in Unity using terminal commands instead? I want a command that sets a gui window to half the size of the screen, either left or right aligned.  By way of background, I'm writing a script that runs after log in. It uses Zenity to ask whether or not I want to open my development environment (GVim and IPython side-by-side). I have been trying to achieve two equal-sized windows for these programmes by using set lines= columns= in my .gvimrc and c.IPythonWidget.width = and c.IPythonWidget.height = in my ipython_qtconsole_config.py. However, there are problems associated with this approach.


is a 1/1 creature, costs 2 mana and allows the player to draw a card when it is played. Under what circumstances (if any) would it be worth playing the coin on the first turn to summon this card, sacrificing future mana advantage for immediate card advantage?

There are various articles on Hearthstone opening strategy which suggest it's a bad idea to use early-game spells and summons to damage your opponent directly, and that you should instead save them for minion removal.  An example: your starting hand contains an Elven Archer, a 1-cost 1/1 minion that does a point of damage when summoned. I've seen it advised that if going first, with that card in your hand, you should not play it, but save it for minion removal.  Another example:  Going second against a Rogue with a 2-cost 2/1 Loot Hoarder, Deathrattle: draw a card in your hand. The advice was not to play it and save the coin, because on her second turn, the Rogue can generate a dagger and kill the Hoarder.   I understand why, in most circumstances, it's better to remove a minion than damage the enemy. What's bugging me about these particular opening examples is why they're a better idea than doing nothing and ending the turn.  In both cases, you've wasted a point of mana, and the chance to take the initiatve. By having a minion on the board first, you can use the following turn to attack with that minion, possibly removing an enemy summon and leaving you clear to summon onto an empty board.   The Loot Hoarder one I find particularly puzzling. If the Rogue gets a dagger and kills it, you still have the initative, you've forced the Rogue to make what's possibly a suboptimal turn-2 play, you've done 2 damage to the Rogue and you got a card into the bargain. Sounds like a pretty good use of the coin to me.  What am I missing here?


I am running a local distribution of Drupal "commons" using Acquia Dev Desktop on a mac and somehow got locked out of my site. I saved my login info and am almost sure it's correct, but I'm still locked out.  Anyone know how I can remedy this situation?  Just for context, I am new to Drupal, so would need a detailed guideline for the fix.

When I attempt to login to my admin account, I'm getting a 'Sorry, unrecognized username or password.' message. The weird thing is that the password and username are correct. I've looked them up in the SQL database. I've even tried changing the password in the database, but have had no luck getting it to work. After every 5 attempts, I've had to use the DELETE FROM 'flood'; sql command in order to reset the attempts.  In my local environment, I'm having no trouble logging in. This is also the first time I've attempted to login to the production website.   Is there anything I can try to fix this?


Whats the best way to convert a contractor's rate  to an employee's rate

I am aware of the general differences between being an employee and being an independent contractor.  However, I am unable to easily compare the two when it comes to after-tax compensation.  Company A:  You're a contractor (1099).  You get paid $X/hour.  You genuinely act like a contractor and aren't secretly an employee.  Company B:  You're an employee (W2).  You also get paid $X/hour.  You genuinely act like an employee and aren't secretly a contractor.  If absolutely everything about the two companies are the same except your status as an employee/contractor, you'd be better off as an employee because you end up paying less taxes.  Your after-tax income will be higher.  But where's the dividing line?  Is there a simple formula that tells you the equivalent employee rate given a specific contractor rate?  I completely understand that this involves simplifications and won't be perfectly accurate.


I have CS5.1 which does not support Canons RAW format using Camera RAW on a 60D, so I must change to DNG format before using CS5.1  Do I lose any quality or dynamic range from this conversion?

I'd like to convert all my ARW (Sony) files to DNG for several reasons, but the only thing keeping me back from doing it is the fear of losing useful metadata during the conversion. I know that the image it's self is completely safe during the conversion but what about proprietary maker noteS? Will those stay too? And even if they do, are they actually useful and can be actually used by something other then Sony's own RAW converter?  P.S. I'm using Ubuntu so I'd prefer to use KipiPlugins' DNG converter because from what I understand it does everything the Adobe converter does, but if I'm wrong I can use Adobe's instead.  EDIT:  It looks like the LensID does carry over! With the ARW and the DNG files converted by Kipiplugins' built in converter, info is stored as "Exif.Sony.0x___". With Adobe's official converter, it moves the info to more logically named fields in the XMP, such as "LensID" and "Lens".  Now that I've figured it out, I think I might use Adobe's Official converter, just because I prefer how it reorganizes the Exif Data.  I'm not fully convinced though and I'd like to hear others take on all this.


Does the series ${a_n}$ = $\sum _1^n \frac{1}{n^{1+\alpha}}$ converge for all $\alpha$ > 0?

To prove the convergence of the p-series   $$\sum_{n=1}^{\infty} \frac1{n^p}$$  for $p > 1$, one typically appeals to either the Integral Test or the Cauchy Condensation Test.  I am wondering if there is a self-contained proof that this series converges which does not rely on either test.    I suspect that any proof would have to use the ideas behind one of these two tests.


Working in Blender 2.82a, I have noted that the Anisotropic does not work in eevee, so I try to create my own. I managed to make it half work, but I may have misunderstood a node value.    If you follow the pink "scar" you will see that it shifts as I move the view, but when I move the light the "scar" does not shift. The Shader setup is as follows.    I am guessing Incoming is not the node I should use if I want the "scar" to react to the lights. What should I use instead?

Is it possible to get that typical chrome-like angled look using the Shader Editor? I see a lot of tutorials making chrome on all types of surfaces but not on a knob geometry like the one in the following image:  Q: Is there any way to get that chrome-like surface appearance procedurally or should I just use a texture to fake it?


What should I do when I see an unanswered question (or not well answered) which solution is the same of the answer to a different question?   Should I refer to the answer of the different question with a link:   in the comment section? as an answer?  Should I copy the answer of the different question? Should I down-vote it? Should I flag it for moderator attention?   Notice I tried to use the same wording as the meta-question  as it is easier to find it.    Note: To clarify a bit this issue, I will illustrate it with a real example. I wrote  to the question, that involved a pretty long process. I also found , that seems completely different to the other one, but in reality, it is a question that emerges in the same process of the other question/answer. I decided to answer it with a link to my previous long answer. Should I do it that way or other way is preferred?    Edit: This question has been marked as a duplicate by 3 different questions... :-)  I did some searches before posting current question, and neither of the questions I found seemed clear to me. Now I realize, that the question  may give part of the solution to this question, though my mind still gets confused, and does not find a definitive answer to the list of questions I ask here.  Moreover I think the wording of current question it is easier to find.

I answered to  and it was marked as possible duplicate. Then I looked at  (the original question) and thought that my answer can be helpful there, even though the question has an already accepted answer. Should I copy my answer to the original question? Would it be better to wait the possible duplicate to be closed?


I know that aperture and DOF are inversely proportional. But, can anybody explain to me the Physics/Optics behind that? What's the mathematical relation that relates aperture with DOF?

I'm wondering, technically, why and how does the out of focus areas blur more when using a bigger aperture. I think it'd help a lot if I presented a problem that's been driving me nuts for a long time:  I've read that the f-number of the human eye varies from about f/8.3 in very bright light to about f/2.1 in the dark. But from what I've tested, I always see out-of-focus areas with the same amount of blur.  Which leads me to ask: how does this aperture thing work, why does it create a blur from the technical point of view, and does it also apply to eyes, or is it just a "failure" in the camera lenses we've come to like and never wanted to "fix"?


I have seen a lot of old questions with great old answers which are up for new answers as technology has evolved.  One such example would be of answers on Android development. A lot has changed since 2010, but there are a lot of old answers to great old questions which needs update.  It's not that users who have answered those questions don't want to update, but it's not possible in case of most questions. This leads to many users with old answers which don’t apply to their current version of same technology.  Can there be a strategy to mark such questions and answers? I am not sure which strategy to be used, but this might certainly benefit our community and reduce duplicacy.

I was thinking about this issue from time to time but I didn't know whether it really exists or just an speculation on my side until today when I woke up [!], I saw  downvoted (in the meantime I'll leave that answer unedited for the sake of discussion; note that this is just a sample. I'm not asking "how to deal with this specific answer." The question is completely general as it's nearly impossible to keep track of all of your answers to see whether they require updating or not). While the downvoter didn't explain a thing, I suspect the reason is that the answer is no longer applicable (It's one of the new features in iPhone OS 3.0). As we go to celebrate a long sequence of birthdays for Stack Overflow (hopefully!), we're going to see lots of answers become obsolete. How we're going to deal with this issue?


Is there an program that allows me to remotely access and play my hard drive's music files?  I found and downloaded a program called 'sockso' that would have worked, if it was still supported, at least it would have allowed me to access and play music off of my hard drive through an open port.  I simply want to set up a program on my laptop (accessible via wifi) and access it from my phone or tablet.   I desire an program that remotely either plays my hard drive resident songs randomly or allows me to set up a play list.   There are probably a million ways to do similar things using other techniques, but:   I want the files to be physically on my laptop's hard drive and  Accessible remotely (a resident program running on the laptop is OK).

I'm interested in being able to play music that's on my computer through my phone - mostly so I can plug the phone into speakers in different parts of the house. Looking for apps, I realise that there are actually some pretty different ways you can do this:   Run a music server that's accessible over the internet, access through app or web browser on phone (eg AudioGalaxy, Subsonic) Run an audio streaming server that provides a single audio stream (eg SoundWire - you drive the choice of music from the PC, and the phone is just a passive receiver) Share your music folder, and use a Samba (or equivalent) file share app like ES File Explorer to access the files on your phone and play them from there. Use DLNA-supporting apps at both ends to play and share music (eg, Windows Media Player on PC, and AllShare or Skifta on phone) Sync music from PC to phone regularly, and just play it from there.   Am I missing any? What are the strengths and weaknesses of each approach? One concern for me is I'd rather not have music going via the internet, because then it would count doubly out of my internet usage cap.  Also, are there apps (with the right combination of PC software) that can combine these approaches? It would be great to be able to either drive a playlist from the PC, or select songs from the phone. Extra bonus points for solutions that work for video (ie, films) as well.  My PC is Windows XP, my phone is Samsung Galaxy Note.   EDIT Incorporating answers from below into the original list.


Evaluate the product $$\prod \limits^{2014}_{k=1}\left( 1-\frac{1}{k^{2}} \right)$$  Any help will appreciated!

Evaluate the infinite product $$\lim_{ n\rightarrow\infty }\prod_{k=2}^{n}\left ( 1-\frac{1}{k^2} \right ).$$  I can't see anything in this limit , so help me please.


Basically the title. If I summon a creature, use an ability to "untap" it before my combat step. May I attack with the creature?

Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site)


I found this site just moments ago and this question is eating away at me. I have compared all their stats, vistis per day, questions, answers, all that good stuff. I made this account just to have this question answered.  Can anyone fill me in on why they are different sizes? I don't even know why this is bugging me so much..

I noticed that  has been changed, and by default sites are shown by balloons.  What is not clear to me is why some sites are shown with a bigger balloon than other sites. For example, WordPress Answers has less questions, answers and users than Programmers, but its balloon is bigger. What are the criteria used to show the sites on that page?


I know the Patronus Charm is the only effective spell against Dementors - but does any other spell have an effect on a Dementor? E.g. in The Order of the Phoenix Mundungus Fletcher was supposed to look for Harry Potter in Little Whinging. If he had not left he would have had to help Potter with the Dementors. But I really doubt that he was able to perform the Patronus Charm so he would have tried any other spell on the Dementors. edit:  and  are related to this question but both do not answer how especially spells could have affected Dementors. Mundungus Fletcher couldn't have helped Harry Potter just by controlling his feelings, becoming an Animagus or getting a ghost, he would have tried something like the Stunning Spell - maybe without any success.

In Half Blood Prince, we read      "Harry fully expected to receive low marks on his, because he had disagreed   with Snape on the best way to tackle dementors" - Chapter 21, The Unknowable Room.   Also in The Prisoner of Azkaban,     “There are — certain defenses one can use,” said Lupin.                               - Chapter 10, The Marauder's Map.   The only way that is specified in the books (7+3) for tackling dementors is to cast a Patronus.   Is there any mention (by Mrs. Rowling perhaps), of another way?  Or is there any piece of magic spelled out somewhere in the canon that we can infer, is effective at tackling dementors?


I have the following problem on iOS devices. When I click on an input field and the keyboard appears my page scrolled to the beginning/top. The problem occurs only on iOS devices and it occurs after I have scrolled down bit on the page.   P.S. the page is i.e. the account edit\new page but it is overridden with a custom one. On the original page everything works fine.

I've this issue using Salesforce1 on mobiles (Android and IOS) with a long lightning component form: Tapping on an input text element at the bottom part of the form, scrolls the screen to the top. After the editing of the form element I'm not able to scroll again to the top and forcing it fires the overscroll, refresh the all page and losting all inserted data.  To reproduce: lightning component form  <aura:component implements="force:appHostable"> <ltng:require styles="/resource/SLDS0120/assets/styles/salesforce-lightning-design-system.min.css"/>
TEST PAGE START

         Input Label
             <input id="inputSampleSmall" class="slds-input slds-input--small" placeholder="placeholder" type="text"  />

TEST PAGE END

     1 - After tapped on the imput text field, the focus is in it but the screen scroll to the top when mobile keyboard is showed into the screen.  2 - Starting writing, force the screen back to the imput text field; You can see what you are writing.  3 - After wrote, mobile keyboard is hidden and you see screen in the correct position.  4 - If you try to scroll to the top you cant as the top limit is noe set to the actual screen position (much below the real top) and forcing the scroll fires the overscrolling and refresh the all page, losing all data set.  Have someone the same issue??  Thanks!


i need to export particle system from blender to three.js with animation , i had export this model as gltf .

I've started trying to make a 3D model that I will end up exporting to an augmented reality app but I've hit a problem in terms of the particle system. The app wants the 3D file in .dae(collada) format which blender allows, but it doesn't seem to export particle systems. I've read that blender doesn't support exporting particle systems at all so I'm now focused on converting the particle system to lots of meshes which will (hopefully)animate using key frames. Then I can export all the meshes and the particles will 'work'.  Currently I'm just using a standard particle system emitting small icospheres. I've tried a few different techniques, such as 'make duplicates real' and using a particle instance instead but they don't seem to animate. Instead it just freezes the current frame into an object(which exports fine but is not what I want). I've also tried recording the animation in the blender game engine but particle systems don't work with it so that didn't work either.  Any help would be appreciated! Thanks


hi i don't have much knowledge of the jquery  i have some problem with the Checkbox attribute.  here below i mentioned some code  code : $( this ).html()   output :   <input name="cb_kot[]" class="cb_kot cb_1" id="cb_1" checked="checked" type="checkbox">1Fish Shorma Rs 195   in the code i am getting the above html. now you can see in above that there is a checkbox in html. now i want to check that this checkbox is checked or not so can anyone advice me how can i find it ?  thanks in advance  Thanks

I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist?


I have a link,   When that link is opened in Safari on either MacOS or iOS, it gives me an "unknown error" (NSURLErrorDomain: -1) and fails to load.  It works without a problem in Chrome on MacOS.  Any wisdom?

I have a ProFTPd Server where the users can access to files using links dynamically generated in a website. The link URL follows the pattern   With the new iOS 11 and new macOS, users cannot access the FTP server. They get a "don't have permission to open" error.   Surprisingly, on a Mac, hovering over the link and using contextual menu->“download attached file” will download the file.  Any iPhone or Mac running previous OS versions can download the files normally.  Looking through FTP logs confirms credentials are not sent by Safari.  Using any other browser (Chrome, Firefox) works fine as well.  Forcing users to an external app is not an option.  Any idea?  EDIT: I have tpcdump the connection and I see that Safari changes request user and password to: user-> anonymous pass-> cfnetwork@apple.com  So the FTP server rejects the connection to a anonymous user.


I have the RCA Galileo Pro and it is very slow, is there a way to upgrade?  I have always had a Samsung, so this is a big change.

I would like to update from Android 6.0 (Marshmallow) to Android 8.0 (Oreo) on my RCA Galileo Pro 2 in 1, this model is RCT6513W87 it has a 1.3 GHz quad-core processor+, with WiFi and Bluetooth. I would like to upgrade the WiFi to dual band 2.4/5 GB 802.11ac.    I am told that a way to upgrade is to use a Custom Recovery app like ClockworkMod Recovery (CWM) or Team Win Recovery Project (TWRP) both of these requires you to make a connection with a computer, using a USB cable.  My 2 in 1 only has one USB 2.0 port and one micro USB port for charging only. But I haven’t been successful with work with the root and app’s that give you root access.


Suppose F has four elements Prove that $1+1=0$  I know that for $F=\{0,1\}$, $1+1 =0$ because if $1+1 =1$, then $1=0$, which is not true, by the definition of field

My thinking:  Due to the axiom describing closure of a field we know that there are four possibilities for the result.  Thanks


After some partition table problems I finally ran up my Ubuntu and GParted to see my partitions. Then some window appeared.    I clicked Cancel and then second one appeared.    I clicked Cancel once again - finally GParted started.    I don't know what to do! GParted says this about my swap:    /dev/sda4 is my extended partition - this is were my Ubuntu is.  you can read about my previous problems with partition table.  I simply rewrited old partition table - It's not my fault! (I hope)  Also, here's my fdisk -l output:  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xa118d672     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   286719999   143256576    7  HPFS/NTFS/exFAT /dev/sda3       286720000   811972349   262626175    7  HPFS/NTFS/exFAT /dev/sda4       915726335   976771071    30522368+   f  W95 Ext'd (LBA) /dev/sda5       915726336   968652799    26463232   83  Linux /dev/sda6       968652801   976771071     4059135+  82  Linux swap / Solaris   And here's how was it before:  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xa118d672     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   286719999   143256576    7  HPFS/NTFS/exFAT /dev/sda3       286720000   811972349   262626175    7  HPFS/NTFS/exFAT /dev/sda4       915726335   976771071    30522368+   f  W95 Ext'd (LBA) /dev/sda5       915726336   968652799    26463232   83  Linux /dev/sda6       968652800   976771071     4059136   82  Linux swap / Solaris   Thanks for help!

Story:  Yesterday I wanted to make my Ubuntu partition bigger so I ran Windows (Dual boot) and decreased size of my D drive size. It wanted me to reboot computer, when it was starting up it done everything and rebooted once again. Then I saw grub rescue with "no filesystem" or something like that. I ran Ubuntu live CD to fix that and it is now working.  Problem:  Problem is when I want to add unallocated part of HDD to my Ubuntu partition I can't, because GParted thinks whole disk is unallocated! I tried fixing filesystem by: fsck /dev/sda5 -f -r, but I think that's not it (or I'm doing it wrong way). I have also tried chkdsk from Windows Installation CD, but it didn't fix anything. Also, both of systems are working.  Is it just GParted problem, or maybe HDD is bad for real? If so, how to fix it?  fdisk -l can see partitions:  root@ubuntu:/home/ubuntu# fdisk -l  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xa118d672     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   286719999   143256576    7  HPFS/NTFS/exFAT /dev/sda3       286720000   811972349   262626175    7  HPFS/NTFS/exFAT /dev/sda4       915726335   976771071    30522368+   f  W95 Ext'd (LBA) /dev/sda5       915726336   968652799    26463232   83  Linux /dev/sda6       968652800   976771071     4059136   82  Linux swap / Solaris   Images:


Compiling the following documents throws an error: "! Paragraph ended before \@sect was complete." I just want to add an alternative name to the table of contents and have no idea why this should be a problem using multicol :-)  \documentclass[% paper=B5,% ]{scrbook}% \usepackage{multicol}  \begin{document}  \begin{multicols}{2}[\section[test]{Test}]  Test  \end{multicols}  \end{document}

I accidentally discovered () that a closing square bracket within an optional argument delimited by [ ] can cause problems.  Here is example code illustrating the issue:  \documentclass{article}   \begin{document}  \tableofcontents  \section[Square brackets ([ and ])]{Square brackets: [ and ]} % bad: the TOC now has "Square brackets ([ and", and the actual title is a mere ")".  Some text.  \section[{Square brackets ([ and ])}]{Square brackets: [ and ]} % good (works as originally intended)  Some text.  \end{document}   The text to be used as the optional (as well as the non-optional) argument contains a ], and this character is not supposed to function as the optional argument terminator but as a matching square bracket/parenthesis. Perhaps this is as it should be, but the question is how to best circumvent any potential problems. Enclosing this in a group works, but I don't know whether doing this has other side effects (perhaps not here in the case of \section but hopefully someone else has a better example of where grouping could lead to a problem). There is no (obvious) way other than writing [{ }] because [ and ] are not normally escaped. That [ and ] are normal characters and bear syntactic function (as optional argument delimiters) creates this potentially problematic situation.  Is simply enclosing the entire optional argument in a group ({ }) a good solution? Are there other/better ways?


i saw this Heap Sort program on geeksForGeeks:   in main method(), they've taken an int[] and passed it to sort(). After that they passed the same int[] to a utility function printArray() for printing and it  prints the sorted array . I tried the same to swap 2 variables, but it doesnt work .  public void swap(int a,int b){ int t=a; a=b; b=t; } public static void printVal(int a,int b){ System.out.println("New value \n a: "+a+", b: "+b); } public static void main(String[] args) {     ArrayEx ae= new ArrayEx();     int a=5;     int b=10;     System.out.println("Old value \n a: "+a+", b: "+b);     ae.swap(a, b);     printVal(a,b); }   can anyone please tell how argument passing and processing works in java ?  Thanks in advance

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?


I purchased a new Ubuntu server several months ago. It is connected to my router. I was able to set up port forwarding for port 22 with my ISP, and then SSH into the server using the internal IP from my Windows laptop using wireless with the same router. I was also able to set up a name for the server and connect it to the external IP address using the No-IP dynamic update service, and was able to access the server using SSH both inside my apartment and remotely.  Then for some reason this stopped working several weeks ago while I was away traveling, and I was no longer able to SSH into the server externally. Since I have been back home I am not able to SSH into it internally either. Nothing has really changed as far as I am aware. I've had several calls with the server manufacturer as well as my ISP, and after troubleshooting all the obvious candidates both sides claim that the issue is on the other end.  I have checked that the IP is correct, port forwarding is set correctly, I've rebooted everything, reinstalled openssh on the server, etc. I have also tried connecting to it from another internet provider. I still can't SSH into the server internally or externally. The server works completely fine, and I can ping it on my laptop, I just can't SSH into it.  edit: I'm using putty with windows for ssh and the error I get is "Network error: Connection timed out"  When I type "sudo systemctl status sshd.service" I get that the system is active (running).  When I type "ssh localhost" I get "WARNING REMOTE HOST IDENTIFICATION HAS CHANGED" and then an error about an offending ECDSA key. "ECDSA host key for local host has changed and you have requested strict checking. Host key verification failed."  edit2: I fixed previous issue with ssh-keygen -R localhost. Now I can ssh into localhost.  I think my question is a little different from this other one  I didn't realize why I wasn't able to connect to ssh and it happened to be that my firewall was enabled. It wasn't that enabling the firewall disconnects a functional ssh connection.

sudo ufw disable followed by sudo ufw enable kicks me out of SSH  DMESG reports  [UFW BLOCK] IN=eth0 OUT= MAC=30:........ SRC=192.168.1.me DST=192.168.1.server LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=15776 DF PROTO=TCP SPT=55640 DPT=22 WINDOW=253 RES=0x00 ACK URGP=0  I can log back in without having to change rules via the console (UFW still enabled).  This started after upgrading Xenial (16.04) from kernel 4.4 to 4.15 (HWE). Upgrading to 18.04.1 did not solve the issue.  Versions:   iptables v1.6.1 ufw 0.35 4.15.0-29-generic #31-Ubuntu Ubuntu 18.04.1 LTS   UFW status verbose is (some rules were omitted, but they are all ALLOW)  Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip  To                         Action      From --                         ------      ---- 22                         ALLOW IN    Anywhere 22 (v6)                    ALLOW IN    Anywhere (v6)   Why is this happening, or at least, how to revert to the expected behavior?  I looked at , and I am not sure it applies, but here's /etc/ufw/before.rules  # # rules.before # # Rules that should be run before the ufw command line added rules. Custom # rules should be added to one of these chains: #   ufw-before-input #   ufw-before-output #   ufw-before-forward #  # Don't delete these required lines, otherwise there will be errors *filter :ufw-before-input - [0:0] :ufw-before-output - [0:0] :ufw-before-forward - [0:0] :ufw-not-local - [0:0] # End required lines   # allow all on loopback -A ufw-before-input -i lo -j ACCEPT -A ufw-before-output -o lo -j ACCEPT  # quickly process packets for which we already have a connection -A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT  # drop INVALID packets (logs these in loglevel medium and higher) -A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny -A ufw-before-input -m conntrack --ctstate INVALID -j DROP  # ok icmp codes for INPUT -A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT  # ok icmp code for FORWARD -A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-forward -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT  # allow dhcp client to work -A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT  # # ufw-not-local # -A ufw-before-input -j ufw-not-local  # if LOCAL, RETURN -A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN  # if MULTICAST, RETURN -A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN  # if BROADCAST, RETURN -A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN  # all other non-local packets are dropped -A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny -A ufw-not-local -j DROP  # allow MULTICAST mDNS for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT  # allow MULTICAST UPnP for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT  # don't delete the 'COMMIT' line or these rules won't be processed COMMIT   PS: I didn't expect this to "fix" the issue but just for reference I changed the port SSHD listens on (and the corresponding rule) and the problem persists.


What does the expression $Pr(x|y;\theta)$ mean? As in: $$ {\displaystyle {\begin{aligned}L(\theta |x)&=Pr(Y|X;\theta )\\&=\prod _{i}Pr(y_{i}|x_{i};\theta )\\&=\prod _{i}h_{\theta }(x_{i})^{y_{i}}(1-h_{\theta }(x_{i}))^{(1-y_{i})}\end{aligned}}} $$   I've never been able to figure out what $Pr$ means. What's the difference versus $P$?

Are these merely stylistic conventions (whether italicized or non-italicized), or are there substantive differences in the meanings of these notations?  Are there other notations meaning "the probability of" that should be considered in this question?


I am a student here in Spain and I lost my passport with the Schengen visa, I got a new passport from the embassy but it’s without a visa and I am thinking of travelling somewhere in europe, how can I do that without the visa?

My passport was stolen in Prague on my way to Vienna. I filed a police report and our embassy swiftly acted by giving me a temporary passport for my onward journey to Munich and Rome. Upon exit from Rome, the immigration ask for the Schengen visa, when I told him that I lost my passport, he did not ask for any document to support my claim, he just stamped my new passport with exit. I am not sure if on record, I am officially out of the Schengen area or not. I am scared that without the lost visa, it appears that I am still in the area and might reach the 90 day limit and will be denied when I re-apply as it would appear I broke the rule. What to do?


Doing Quick Look on .txt files is very convenient (select in Finder and press space).  Is there a way to enable Quick Look for other text files which don't have the .txt extension (e.g., .strings files)?

I'm a programmer, and I find Mac's QuickLook a really great feature for quickly becoming familiar with a particular code base.  Basically, I open up a Finder window in the directory where my code files are, I push the spacebar (to evoke QuickLook), and then I arrow key up/down/left/right through all the files and scroll within QuickLook as needed.  The problem that I run into are files with no extension and files with unknown extension.  How can I convince the Mac to attempt to QuickLook these files as text files (which they usually are).  Also, it's really nice how QuickLook automatically colors the code based upon the type of code it thinks it is.  How can I extend the types of code files that the Mac recognizes?  For instance, I want to be able to QuickLook the code in a *.html.erb file or a *.js.erb file.


One of those automated grammar checking tools pointed this out to me.  I have a sentence, "There are a boatload of other options."  The are in this sentence gets flagged as not agreeing with the form of boatload as singular.    boatload in this usage would seem to be plural, and saying is a boatload of other options sounds strange.  Which is the correct usage?

I've been having an argument with a colleague about this sentence, could you please let me know which one of us is correct:     There are no shortage of applications for our product in this   space.   She is convinced that are should be replaced by is, and I think it should stand as it is. Thanks for your help!


I am completely new to cryptography and am interested in encrypting two basic text strings into one encrypted text that can be accessed separately with two different keys (preferably using something easily accessible like 256bit AES). For example:  Text1= I like peanut butter  Key1= Password1  Text2= I'm allergic to peanut butter  Key2= Password2  Output: 5UniWN0MjkPvUbLImrQUP68W4tpwOBMp2nrDqV73xeY  This output is just Text1+Key1, but is there a way that I can get both to work simultaneously so if Key1 is used, Text1 is returned, but if Key2 is used, Text2 is returned?  From my understanding, this is called deniable encryption and I was wondering where I could find a generator.  Thanks so much in advance!

I read the summary of deniable encryption on wikipedia:   Then I read a question, by doom123 on security.SE:   But I had a subtly different problem which can be stated as follows:   Alice wants to send Bob the book "Mocking Jay" which is banned in Bob's country.  Alice encrypts "Mocking Jay" to data MJ with the password P1. Using another book of similar size (or by trimming a larger book), say the "The Hobbit", she processes the data MJ and computes password P2.   The solution to this problem will allow Bob to claim that he maintains a copy of "The Hobbit" (assuming that "The Hobbit" is not banned of course), while being able to read  "Mocking Jay". The solution, in theory, should also allow Bob to plausibly deny that there's any other copy hidden in the data "MJ" other than "The Hobbit"; or like the aforementioned security.SE question, should allow "MJ" to hold any number of copies (and thus any number of passwords), providing Bob the excuse of acknowledging only one copy that he has the knowledge of.  The  provided by the user lynks to the question posed by doom123 solves the problem for storing data on a hard-disk. Is there a general solution to this problem?  UPDATE 1 With regards to the answer provided by fgrieu I am slightly modifying the question. Is it possible to add a third layer (and an arbitrary number of further layers) of such encryption? What I mean is, with Mocking Jay, The Hobbit, and Silmarillion (assuming that the books are roughly the same in size) as inputs, is it possible to create an encrypted output say MJTHSI? I am alright with the passwords being the output as well. Decrypting with password P1 will reveal Mocking Jay. If rubber-hose is used password P2 can also be given up revealing The Hobbit (with the intention of ultimately protecting Silmarillion which can be revealed using P3).


I am currently studying Python at school. I don't understand what the book is trying to explain and my instructor isn't very helpful. The book gives the following example: usr_text = input('Enter a string: ') print()  first_half = usr_text[:len(usr_text)//2] last_half = usr_text[len(usr_text)//2:]  print('The first half of the string is "{}"'.format(first_half)) print('The second half of the string is "{}"'.format(last_half))  I don't understand what [:len(usr_text)//2]  & [len(usr_text)//2:]  does. Would anyone mind explaining what's happening there and why it's used? Thank you!

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


The question as stated on a past exam:  Use mathematical induction to prove that $$ \frac{1}{2}\cdot \frac{3}{4}\cdot \frac{5}{6}\cdot ...\cdot \frac{2n-1}{2n} \leq \frac{1}{\sqrt{3n+1}} $$ for any positive integer n.  I have done plenty of induction proofs before and understand the how and why they work. However I can't seem the find the algebraic trick to this question. I start of by multiplying both sides by $$ \frac{2n+1}{2n+2} $$ with the final goal of proving that $$ \frac{1}{\sqrt{3n+1}} \cdot \frac{2n+1}{2n+2} \le \frac{1}{\sqrt{3n+4}}$$ to complete the proof but I quickly get lost, any help or tips would be very appreciated.

Given that $x_n = \displaystyle \prod_{i=1}^n  \frac{2i-1}{2i}$  Then prove that $x_n \leq \frac{1}{\sqrt{3n+1}}$ for all $n \in \mathbb Z_+$  What I did was take the logarithm of $x_n$, and I arrived at: $\log{x_n}=\displaystyle \sum_{i=1}^{n} (\log{(2i-1)} - \log{2i}) $  I'd like to know if I proceeded correctly, and thus would like further guidance to solve the problem. However, if I haven't approached the problem correctly, I'd appreciate hints and techniques that are applicable. Please don't post the whole answer because I'd like to work this out on my own. Thanks.


I have been struggling to understand one basic concept of off-page SEO. Suppose i have a website example.com. Now when i researched for keywords i got the following good keywords  keyword one  keyword two  keyword three  Now what is the best way to do back linkings on good PR websites.  1 - Should i comment,bookmark, make a article, forum comment etc and mention my main website's url www.example.com   OR  2 - I should create individual pages in my website with the keywords i researched. for example. www.example.com/keyword-one , www.example.com/keyword-two, www.example.com/keyword-three  and then i comment,bookmark, make a article, forum comment etc and mention my keyword pages links there ?  What is the best approach towards this ?

What are the best ways to improve a site's position in the Google search results?


I am curious as to how Java would handle a situation as follows, I will provides some insight into what it is that I am doing.  I am busy writing a Sudoku Solver for a ProjectEuler problem, I am using a 2D Array of Nodes (Custom Object):  Node[][] grid;   The Following is my Node Class:  public class Node {      public int x;     public int y;      public int value;      public int quadrant;      public ArrayList<Integer> possibleNumbers;      public SudokuNode() {}      public SudokuNode(int x, int y, int value, int quadrant) {         this.x = x;         this.y = y;         this.value = value;         this.quadrant = quadrant;         this.possibleNumbers = new ArrayList<Integer>();     }      public ArrayList<Integer> getArray() {         return possibleNumbers;     } }   Now at some stage during the process of Solving the Puzzle I might find that I need to take a guess of sorts, what I would like to do is backup the current state of the grid into another object called Guess, that structure follows as well:  public class Guess {      public Node[][] grid;      public int x;     public int y;      public Guess(Node[][] puzzle, int x, int y) {         this.grid = puzzle;         this.x = x;         this.y = y;     } }   In this object I wish to make a copy of the Current Grid, aswell as the X and Y coordinates of the Node where I took a guess.  What I am curious about is whether or not Java will make a complete copy of the grid, or merely use a pointer to the original one?  A friend of mine is writing a Solver in Javascript, I am aware they are completely different Languages, he ran into a problem where the grid wasn't being backed up as it was still referencing the Original grid he had created and so couldn't revert to the previous state in the event that the guess turned out to be wrong.  I would just like to understand what happens when I say do something like this:  Node[][] backup = currentGrid;   Does it make an entirely new copy or not?  Sorry if this is a duplicate or silly question to ask. I am teaching myself programming and therefore I might have missed something or just don't understand some core concepts.

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?


I need to install Ubuntu on my Laptop which had windows 8 pre-installed when I bought it. After an update now it is running windows 10.  I tried following a lot of guides, and used several tools but none of them have worked for me.  These are the steps I followed so far: -I used RUFUS, unetbootin, and universal-USB-installer to make a live USB disc with an image of a 64 bit AMD installer for Ubuntu Desktop 16.04LTS. I used default recommended settings (Fat32 file system, GPT partition, UEFI settings). -I made a partition of 50 GB of my main hard drive (Though I think this is irrelevant to my problem). -My Win10 specs say it was installed in UEFI mode. Therefore I disabled Secure Boot, Fast Boot, and enabled Legacy Mode/BIOS compatibility.  So when the system starts I choose to boot the USB and then GRUB 2.0 starts. When I choose install Ubuntu or try Ubuntu, it loads the splash screen which says Ubuntu, and some dots flashing in order. The system freezes in this screen and i'm forced to hard restart my laptop.  My specs are: -Laptop: HP Pavillion Notebook 15 ab-114la -BIOS:F.13-08/06/2015 -RAM: 12GB -Processor: AMD A10-8700P Radeon R6, 10Cores 4C+6G.  By the way. I am able to run Ubuntu 16.04 64 bit on a virtual machine inside windows.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


Can $\sin(xy)$ be written in terms of trigonometric functions of only $x$ or $y$? I am tempted to say yes, because the double- and half-angle formulae exist, and these would be special cases of $\sin(xy)$.  I first looked at the Taylor series,  $$\sin(xy) = \sum_{n=0}^\infty\frac{(-1)^nx^{2n+1}y^{2n+1}}{(2n+1)!} = xy-\frac{x^3y^3}{6}+\frac{x^5y^5}{120}-\cdots$$  but as far as I know, neither $x$ nor $y$ can come out of the sum since they are not constants.

Can we express a trigonometric function for the product of two angles as a function of trigonometric functions of its factors?  For example: Is there a formula for $\sin(xy)$ as a function of $\sin x$ and $\sin y$ or other trigonometric functions of $x$ and $y$.


I am designing 4-layered PCB for the first time.  Searching web, I learned that normally we place layers in following way  TOP | GND | VCC | BOTTOM  Will there be problem if i place GND at the bottom? So that it works as below  TOP | VCC | BOT | GND  ?

I'm designing a 4 layer PCB and I know that the standard stack-up is  Signals GND VCC Singals  (GND and VCC can be switched depending on the layer with more signals) The problem is, I don't really want to connect all ground pins through vias, there are just too many of them ! maybe because I'm not used to 4 layer PCBs, anyway, I've read a  by Henry W. Ott about a different stack-up  GND Signals Signals GND  (Where the power is being routed with wide traces on the signal planes) According to him, this is the best stack-up possible with a four-layer PCB, for the following reasons: 1.Signal layers are adjacent to ground planes. 2.Signal layers are tightly coupled (close) to their adjacent planes. 3.The ground planes can act as shields for the inner signal layers. (I think this requires stitching ??) 4.Multiple ground planes lower the ground (reference plane) impedance of the board and reduce the common-mode radiation. (don't really understand this one) One problem is cross-talk, but I really don't have any signals in the third layer, so I don't think that corss-talk will be an issue with this stack-up,am I correct in my assumption ? Note: The highest frequency is 48MHz, there's a wifi module on the board too.


Until recently I assumed that “racism” simply meant a belief that there are innate and meaningful differences between races.   I thought that the common practice of using "racism" as a stand-in for hatred against other races, a discriminatory/segregationist political agenda, etc. was mainly a colloquial simplification meant to ease/influence public discourse. I was surprised to find that indeed,  as primarily related to certain political stances (with the belief in innate differences between races and ethnicities only listed as common justification). Whether this was always the case or is just an example of a colloqualism becoming a norm, I cannot say.  Still, now I am left to wonder: How can one refer to the belief that there are innate and meaningful differences between races - independently of any political stance?  Examples of using such a word:   My recent studies indicate that racial provenance is a good predictor for performance on tasks A and B. I am convinced of the quality of my research but not apt or willing to make political recommendations based on it. I do not believe that races are equal in their capabilities, I am a proponent of “Y”. I am a “y”-ist.  I believe that my racial group is innately less capable than other races at C, but I do not think this is a compelling argument to deny us a fair chance at C. I do not believe that all races are equal, I believe in “Y”. I am a “y”-ist.

in the dictionary means      a belief or doctrine that inherent differences among the various human races determine cultural or individual achievement, usually involving the idea that one's own race is superior and has the right to rule others.   Is there a word or phrase that means      a belief or doctrine that inherent differences among the various human races determine cultural or individual achievement   without implying "the idea that one's own race is superior and has the right to rule others"?  None of the other answers are relevant.


I realize that similar questions have been asked, but through all of the ones I've seen, the answers seem to be specific, normally asking the author about the specific question.  I'm trying to ask in the "" about why video games are violent—is it a historical convention, a practical necessity, what people want? But when I try to post I get the "This looks like spam." error message and am not allowed to ask my question.   What can I do?

I don't think  deserved to get  deleted as spam. Martin'Vobr vas Rebex linked to a product he makes as an example of a library to accomplish the task the OP sought, and did so in a way that made it clear that he is the creator of the library and therefore his word should be taken understanding that he is biased.  Do you think he did anything underhanded in his answer? Here's the "spammy" part, for those without ten thousand arbitrary numbers:     I would try the code from the codeproject and if it suits your needs stick with it. In case of too many parsing problem the commercial email component with decent support could be a wise move. I would recommend our  ($149 single dev) but I'm biased. Feel free to browse for you own favorite ;-). At least it will be (in case of any problem) someone who is paid for solving your mail parsing problem.   Ordinarily I would flag this for moderator attention but unfortunately I am not permitted to flag locked answers. Also, I'd like to know if I'm completely wrong about my understanding of what is and is not spam.  To me, this isn't spam. To six other people, it is. One of us has to be wrong, by the pigeonholing convention of '57. Can we figure this out? There are a lot of similar users to Martin who post their products, and a lot of them do it in a very spammy way. But in the specific instance of Martin I think he does it well. We can't outright outlaw all users who advocate their own libraries, can we? Those might be the only libraries that do what the asker wants, after all.


I have a GFCI outlet in my powder room that needs to be replaced.  Is it significantly more difficult to replace a GFCI than an ordinary outlet?

I recently purchased an older home and wanted to install GFCI outlets in the kitchen.  When I opened up the outlet, there were four wires (two black and two white) in addition to the ground.  I watched a few videos online about installing GFCI outlets, but they only gave guidance about doing it when there's one black, one white and the ground. Currently, the two-prong outlets have all four wires attached - the two black wrapped around screws on one side and the two white wrapped around screws on the other side. What do I do with these "extra" black and white wires on the GFCI outlets?  Attach them somehow or tie them off?


Prove that $x^2+x+2$ is maximal ideal in $F_3[x]$ ring.  I think of using the theorem that $B$ is maximal ideal in $A$ if $A/B$ is field. Particularly in this case we need to prove that $F_3[x]/(x^2+x+2)$ is field. Could you please help?

Prove that $(x^2 + x+2)$ ideal is a maximal ideal in $F_3[x]$ ring.  I know the theorem about factor rings and fields     B ideal from A ring is maximal iff A/B factor-ring is a field   How can I use the theorem here?


I am not able to overload the + operator and I have no idea why. I've tried a lot of solutions but I didn't manage to solve this problem. (Operator += works fine)  I don't get it. Could you help?  I get error:     LNK2019: unresolved external symbol "public: __thiscall   Zbior::Zbior(class Zbior const &)"   (??0?$Zbior@H@@QAE@ABV0@@Z) referenced in function "public: class   Zbior __thiscall Zbior::operator+(class Zbior const &)"   (??H?$Zbior@H@@QAE?AV0@ABV0@@Z)   The problem does not exist when I change the return object of method: Zbior  operator+ (const Zbior &other)  to   return Zbior<T>();   My .h file is:  template<class T> class Zbior { public:     Zbior(void);     ~Zbior(void);     void dodajElement(T elem);     Zbior<T>(vector<T> elementyZbioru);     Zbior<T>(Zbior<T> const &other);          Zbior<T>& operator+=(Zbior<T> const &other);      Zbior<T>  operator+ (const Zbior<T> &other)     {         vector<T> otherVec = other.elementyZbioru;         vector<T> thisVec = elementyZbioru;         Zbior<T> wyjZbior = Zbior<T>();         for (vector<T>::iterator p = otherVec.begin(); p != otherVec.end(); ++p)         {             wyjZbior.dodajElement(*p);         }         for (vector<T>::iterator p = thisVec.begin(); p != thisVec.end(); ++p)         {             wyjZbior.dodajElement(*p);         }           return Zbior<T>(wyjZbior);     } private:     vector<T> elementyZbioru;  };   And my .cpp file is:  #include "Zbior.h"  template<class T> Zbior<T>::Zbior(void) { }  template<class T> Zbior<T>::~Zbior(void) { }  template<class T> Zbior<T>::Zbior(vector<T> elementyZbioru) {     this->elementyZbioru = elementyZbioru; }  template<class T> void Zbior<T>::dodajElement(T  elem){     this->elementyZbioru.push_back(elem); } template<class T> Zbior<T>& Zbior<T>::operator+=(Zbior<T> const &inny){      vector<T> innyElementyZbioru = (inny.elementyZbioru);      for (vector<T>::iterator p = innyElementyZbioru.begin(); p != innyElementyZbioru.end(); ++p)     {         dodajElement(*p);     }     return *this; }   Ussage of the class:  #include "stdafx.h" #include "Zbior.cpp" #include "Zbior.h"   int _tmain(int argc, _TCHAR* argv[]) {     Zbior<int> zb1 = Zbior < int>();     zb1.dodajElement(1);     zb1.dodajElement(1312);        Zbior<int> zb2 = Zbior < int>();     zb2.dodajElement(21);     zb2.dodajElement(21312);      //zb1 += zb2;     Zbior<int> zb = zb1 + zb2;       //Zbior<Zbior<int>> zbzb = Zbior<Zbior<int>> ();     //zbzb.dodajElement(zb1);     //zbzb.dodajElement(zb2);      system("PAUSE");     return 0; }

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


When I run the code below, I use three inputs (in Ubuntu terminal):   abc(Ctrl+D)(Ctrl+D) abc(Ctrl+D)(Enter)(Ctrl+D) abc(Enter)(Ctrl+D)     The code reacts well in all cases. My question is: why in 1) and 2) I need two EOF?  #include <iostream>  int main() {   int character;    while((character=std::cin.get())!=EOF){}    std::cout << std::endl << character << std::endl;  }

I am studying for an exam and I am confused as to how canonical vs. non-canonical input/output works in Unix (e.g., curses).  I understand that there is a buffer to which "line disciplines" are applied for canonical input.  Does this mean that the buffer is bypassed for non-canonical input, or does it simply mean that no line disciplines are applied?  How does this process differ for input and output operations?  In the curses programs I have worked with that demonstrate canonical input, the input typed by a user is automatically entered either after a certain number of characters have been typed or a certain amount of time has passed.  Are either of these things considered "line disciplines" or is this something else entirely?


Is there a word that describes someone who works hard despite an easier way, but they aren't interested because they are too lazy or unmotivated to figure it out? I'm trying to specifically describe someone doing a task on a computer in a very convoluted way, but isn't interested in learning how to do it simpler and a lot faster.

For an example, I'll quote C.S. Lewis' The Voyage of the Dawn Treader:     One day the cat got into the dairy and twenty of them were at work moving all the milk out; no one thought of moving the cat.   Is there an idiom for this type of situation?


Just wanted to ask: Is there some reason to name a function as variable in JavaScript?  (I mean using Dep two times. Just was crawling in Vue.js and found this)  var Dep = function Dep () {     this.id = uid++;     this.subs = [];   };

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


I'm new at Statistics and I was wondering some problem. Suppose you have two independent events $A$ and $B$ and you want to calculate the conditioned probability of having either $A$ or $B$ if you have $C$, that is:  $P(A\cap B  \mid  C)$  Is this correct: $$P(A\cap B  \mid  C) = P(A \mid  C) \cap P(B  \mid  C)\,\,?$$  Thanks a lot!

I started with   $$P((A \cap B\mid C)=\frac{P((A \cap B)\cap C)}{P(C)}=\frac{P((A \cap C)\cap (B \cap C))}{P(C)}$$  by applying the basic property of conditional probability.  Then, I get stuck because I do not know how to come out with $P((A\mid B\cap C)$ and $P(B\mid C)$ from the above expression. I cannot think of any other possible multiplication rules that I can use. Please help!


I hope you can help me with this issue. My bike has Avid juicy 7 brakes, and lately both the front and the rear brakes are pressing against the rotor, which makes it really hard to ride it (feels like putting more resistance on a stationary bike). In the past before it got to this point the brakes randomly would be looser and then later more firm. Is it a bleeding issue or do you think that it's something else?  I would appreciate any suggestions. Thanks in advance!

My front disk brake's piston doesn't fully retract.  While I can ride the bike, the brake is slightly rubbing.  (IE, if I just spin the wheel with my hand, it'll go around about one and a half times and then stop.) It's definitely slowing me down.   If this fixable?  The advice I got was that it's not worth the trouble and to buy a replacement set.  The current brakes are Avid Juicy 7s that are about 7 years old


This question perhaps was asked before, but my case is somehow special.   I have two divs one inside the other. Both divs heights are unknown, but what I can tell about the outer div is its minimal height. The point is - I want the smaller div to center vertically inside the outer div if the inner div is smaller than the outer. And I want the inner div to expand the outer div if it is bigger than the minimal height of the outer div.   I would like to achieve this without using any scripts.  Is it even possible?  Sample code:

        Im here, I could be short, I could be long         and if I wrap - i could be tall

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


My father was colorblind, and I always wondered if colors were a matter of physics or if different colors are just a human way of describing and differentiating our visual perception of the world?  For example, is the color blue by nature blue, or is it just what we see?

So, when someone is red-green colorblind, the colors appear the same to them, like this:   And if you're totally colorblind, then things presumably just appear like they would in a black-and-white movie.  However, this isn't how ultraviolet patterns seem to work. Compare how we see this flower to the version where ultraviolet is visible:   The UV pattern is completely invisible here. However, unlike with the red and green, this isn't because yellow and UV are colors that appear identical when you can't see UV. Look at these flowers:     This time the flowers are purple, but the UV pattern is still invisible. Why is that? Shouldn't the UV pattern still be apparent on at least one of the flowers, just in a different color? And on some other flowers, the UV does appear as a different color. So:    Why is the UV invisible only sometimes?  Does it have to do with the flower using iridescent structures to produce color, instead of a pigment? Can this happen with red and green, as well?


When I studied how AC mains power works, I learned that one of the wires is connected to the ground or a body of water so that it can get back to the power station. The concept baffles me. Every source of information I've come across fails to explain how it works or quickly glosses over it as if it is self explanatory.   If power can travel through the water or the earth back to the power station, then why aren't we getting vaporized when we walk on the ground near power lines?  Also, how does an isolation transformer prevent you or your equipment from getting fried? If I touch both terminals of the secondary, am I going to get fried?

I'm a bit confused about the concept of ground, and perhaps voltage as well, particularly when trying to analyze a circuit. When I learned about Ohm's law in grade school, I learned how to apply the law to calculate current, voltage, and resistance of simple circuits.   For instance, if we were given the following circuit:    We would be could be asked to calculate the current passing through the circuit. At the time, I'd simply compute (based on the rules given) 1.5V/1Ohms=1.5A.  Later on, however, I learned that the reason the voltage of the resistor would be 1.5V is because voltage is really the difference in potential between two points, and that the difference of the voltage across the battery would be the same as that of the resistor (correct me if I'm mistaken), or 1.5V. I got confused, however, after the introduction of the concept of ground.   The first time I tried to do the current calculation for a circuit similar to the previous circuit on a simulator, the program complained about not having a ground and "floating voltage sources". After a bit of searching, I learned that circuits need ground as a reference point or for safety reasons. It was mentioned in one explanation that one can pick any node for ground, although it's customary to design circuits so there is a "easy place" to pick ground.   Thus for this circuit    I picked ground at the bottom, but would it be okay to pick ground between the 7 ohm and 2 ohm resistor - or any other place? And what would be the difference when analyzing the circuit?  I've read that there are 3 typical ground symbols with different meanings - chassis ground, earth ground, and signal ground. A lot of circuits I've seen used in exercises either use earth ground or signal ground. What purpose is there in using earth ground? What is the signal ground connected to?  Another question: since the ground is at unknown potential, wouldn't there be current flowing to or from ground to the circuit? From what I've read we treat the ground as 0V, but wouldn't there be some sort of effect because of a difference in potential of the circuit and ground? Would the effect be different depending on what ground was used?  Finally: In nodal analysis, one customarily picks a ground at the negative terminal of the battery. However, when there are multiple voltage sources, some of them are "floating". What meaning does the voltage of a floating voltage source have?


$ uname -a Linux msi 5.8.14-arch1-1 #1 SMP PREEMPT Wed, 07 Oct 2020 23:59:46 +0000 x86_64 GN>  so I do a console login as a regular user, type reboot and it works. shutdown now as well. Why am I not required to be root to do that like on debian?

On Arch Linux, with systemd, the following commands are all symlinks to systemctl:  /usr/bin/telinit /usr/bin/poweroff /usr/bin/runlevel /usr/bin/reboot /usr/bin/halt /usr/bin/shutdown   I find their behaviour with respect to authorization confusing:  $ shutdown Must be root. $ halt Must be root. $ telinit 3 # Asks for Polkit authorization   Neither poweroff nor reboot asks for authorization. poweroff doesn't actually turn off my system, the laptop remains on with text on the screen stating it is powering off - indefinitely.  I haven't tinkered with Polkit rules, so I wonder why their behaviour is so.   All commands were tried with my non-root admin user, who's a member of wheel. /etc/polkit-1/rules.d only seems to contain a default ruleset:  # tail /etc/polkit-1/rules.d/* // DO NOT EDIT THIS FILE, it will be overwritten on update // // Default rules for polkit // // See the polkit(8) man page for more information // about configuring polkit.  polkit.addAdminRule(function(action, subject) {     return ["unix-group:wheel"]; });    On closer inspection, /usr/share/polkit-1/actions/org.freedesktop.login1.policy has sections for poweroff, reboot, suspend and hibernate, with allow_active set to yes. But there are no sections for shutdown. If this is the cause, why is it so?


In the context of Newtonian mechanics, is it possible to have an isolated system which does not lose/gain particles, but whose mass changes over time? I have been trying to think of such an example for a while, but have been unable to come up with one. I understand that this phenomenon is common in special relativity, but, as I have been told, Newton did not postulate mass invariance for Newtonian mechanics either. The question is also somewhat related to Newton's formulation of the second principle, $$\overrightarrow{F}=\frac{\overrightarrow{dp}}{dt}$$ which, given that the system referred to does not lose/gain particles, could also be written as $$\overrightarrow{F}=m\frac{\overrightarrow{dv}}{dt} + \frac{dm}{dt}\overrightarrow{v}$$ However, I have never seen an example outside of relativity where this formula is used. Is there any such example in Newtonian mechanics?

From Goldstein:     ... The mechanics of the particle is contained in Newton's second law of motion, which states that there exist frames of reference in which the motion of the particle is described by the differential equation $$\mathbf{F} = \frac{d\mathbf{p}}{dt} \equiv \dot{\mathbf{p}},$$ or $$\mathbf{F} = \frac{d}{dt}\left(m\mathbf{v}\right).$$ In most instances, the mass of the particle is constant and [the last equation] reduces to $$\mathbf{F} = m\frac{d\mathbf{v}}{dt} = m\mathbf{a}\textrm{...}$$   What Goldstein is saying troubles me for it implies that $\mathbf{F} = \dot{\mathbf{p}}$ works for a particle of time-varying mass and that contradicts Ján Lalinský's answer to this question: .  What's going on here?  Edit: Some people think that a particle that loses mass that isn't going anywhere--it simply disappears---isn't a useful fiction to solve problems. Consider a ball that is emitting mass isotropically whilst being pushed by some force. In analyzing the motion of this ball there is no need to consider the fact that material is indeed being emitted, all that is needed is the fact that the ball is losing mass. Here we can just use $\mathbf{F} = m\mathbf{a}$ instead of $\mathbf{F} = \dot{\mathbf{p}}$, no?


I have a few questions on terminology, first, actually, as having the right terminology may have enabled me to answer this question on my own.   What is the terminology for such constructs, "as [adjective] as [noun]"? ( seems to label them adjective-based similes—is that correct?) Is the [noun] considered a subject, a direct object, or some other kind of an object?   I feel that [noun] was actually meant to be a complete sentence on its own, e.g. "She is as wonderful as they [are wonderful]," but for convenience we drop repetitive words—is that an accurate view?  If so, then, are sentences like "She's as tall as me" actually ungrammatical? Yet, it seems awkward to say, "She's as tall as I." Is that purely due to a shift in speaking norms?

Consider the sentence "I can run faster than 15 miles per hour." Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time.  I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person.  I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that "him" is not a speed.  I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say "... faster than he can" or even "... faster than he can run?"  I am faster than him. – With "am" instead of "can run" it now seems slightly more correct. But is it?  I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, "I am faster than he is" or even "I am faster than he is fast." (Though I suppose that is a given since I could hardly properly compare to some other category as in "I am faster than he is smart.")  My speed is faster than his. – Hmm. This seems more proper as "my speed is greater than his."   So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article  may be of great interest to some readers!  Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inﬂectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic.


How come the Horcrux in attached to Harry's soul (for years) does not affect him like the  Horcrux in the locket.   The Horcrux in the locket affected Ron's, Hermione's, and Harry's moods (when worn for any  length of time) and even hindered Harry from making a Patronus (while he was wearing it).   The Horcrux attached to Harry's soul seems almost benign by comparison (unless of course  Voldemort is near or trying to get into his mind or killing someone etc.)  Any explanations why it is benign?

To make a Horcrux, certainly murder can't be the only requirement. It is obvious a proper spell is needed for completing a Horcrux. Voldemort could have made a thousand Horcruxes, as he had already murdered a thousand people. But, how on earth did Harry become a Horcrux, with Voldemort murdering his mom and not using the Horcrux-making spell? Certainly Avada Kedavra is not the spell used for making a Horcrux.


I'm trying to set the enumeration style in my bibliography into parentheses instead of square brackets. I was not able to find a solution for it. I'm not talking about the in-text citation style, just about the enumeration style in the Bibliography. Here you can see the general structure of my code:  \documentclass[a4paper,12pt]{scrreprt} \usepackage[super,sort&compress,comma]{natbib}    \begin{document} ... \bibliographystyle{achemso} \bibliography{mybib}  \end{document}   My goal is, that my Bibliography style looks like     I have no experience with this or any forum at all. So if my question does not fit the formalities just let me know. Thank you all in advance!

The editor asked me to use the following format.      Reference   1. Author, blah blah   Instead of      Reference   [1] Author, blah blah ...   Even though in the main text, [1] style has been used.   For example,        Smith [1] has proposed ...      Reference   1. Smith,      This is what I want.   Could you please advise how I can do the above?  Thanks in advance.


I shoot mainly Street Fashion and need something with fast focus, large aperture and small to carry with me. I've narrowed down my options to 35L vs 50L.  I am wondering since the 50L can be used easily on a full frame for both scenarios (portraits and full body shots), if it's a better candidate and might replace my 35mm needs. The 35L though, has faster autofocus and it's a great walkaround lens. I am also somewhat afraid in regards the shift-backfocusing issues on the 50L.  Which one would you pick if you could only get one?  Here's a few samples of what Focal Point - Style I am looking for:

You probably know Scott Schuman and his blog (). What kind of lens (that is not expensive) would you recommend for Canon 550D to achieve similar effect (in terms of DoF etc.)? I'm a newbie so I'm not sure how to properly interpret those photos' EXIF info. My guess is, that a similar effect can be achieved using .   PS:   Update: Thank you guys for all the answers, it's much more clear for me right now. I think I'll try the Canon 50mm f/1.4 lens.


I am using ArcGIS 10.1 and I am trying to add a feature class that I create to an MXD, so that I can join to it.   This all needs to be done using Python.  Is this possible?

I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shapefile to the current map. (And then do stuff to it, but that's another story).  The best I can do so far is to add a layer file to the current map, using the following ("addLayer" is a layer file object):  def AddLayerFromLayerFile(addLayer):  import arcpy  mxd = arcpy.mapping.MapDocument("CURRENT")  df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]  arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE")  arcpy.RefreshActiveView()  arcpy.RefreshTOC()  del mxd, df, addLayer   However, my raw data is always going be shapefiles, so I need to be able to open them. (Equivalently: convert a shapefile to a layer file without opening it, but I'd prefer not to do that).


If the function $f(x)=\frac{ln(x)}{x}$ where $x>0$, has a maximum at $(e,\frac{1}{e})$ compare the numbers $e^{\pi}$ and ${\pi}^e$.  ***$ln(x)$ is the natural logarithmic function i.e the logarithmic function with base $e$.

How can I  compare (without calculator or similar device) the values of $\pi^e$ and $e^\pi$ ?


Is there any clock widget available? In Windows, I can show a clock on my screen.  Please suggest any widget/package/software that can do this.

While upgrading to Ubuntu 11.04, my google-gadgets framework was removed. I thought at the time this is because it's deprecated because there's some alternative integrated in the new unity framework, but I couldn't find any.  Are there any RSS/clock/etc. widgets in Unity? If not - why did the upgrade uninstalled my google gadgets app? What do I do now?  Thanks.


Messages (on Mac OS X) used to let you add a gmail account for jabber -- it appears this is gone now? Is there a way to re-enable it?

After upgrading to MacOS Mojave, Messages no longer allows me to sign in to Jabber / Google Talk.  Previously, if the Jabber account was offline, it offered a dropdown to sign back in.  Now, that dropdown appears to be gone.


I was learning c++11 about constexpr. So I went to website and learnt how to code it.  When I was learning how to code it.  I had raised a problem about return array’s size function.  I thought it was functional, but I couldn’t know how write it like this. This is my code:  #include <iostream>  constexpr auto newline = "\n";  template < typename Type , uint32_t SZ> constexpr uint32_t len(const Type (&array)[SZ]) {     return SZ; }  int main() {     int* ptr = new int (9);     int array[] = {1,2,3,4,5,*ptr};     std::cout << len(array) << newline; } /* Output: 6  */   I want to know why len function return array‘s size correctly.

template<typename T, size_t n> size_t array_size(const T (&)[n]) {     return n; }   The part that I don't get is the parameters for this template function. What happens with the array when I pass it through there that gives n as the number of elements in the array?


I am in Gilded Vale in the Temple of Eothas. A door with a rather high lockpick check is hindering my way. In what order do have to sound the bells?

In the Temple of Eothas there are 3 bells that you have to ring to (presumably) open the door to the next level.  I've found one clue, that the large bell is to be rang second, where can I find the other clues (or what is the actual order).


I've written a query to return data from the sys.dm_exec_query_plan DMV, but for a specific stored procedure the query_plan column which should contain a link to the XML version of the plan is NULL.  select     qs.sql_handle     , qs.statement_start_offset     , qs.statement_end_offset     , qs.plan_handle     , execution_count     , st.text     , substring(st.text, (qs.statement_start_offset/2)+1,         ((case qs.statement_end_offset             when -1                 then datalength(st.text)             else                 qs.statement_end_offset             end - qs.statement_start_offset) / 2 + 1)) as [Filtered text]     , qp.query_plan from sys.dm_exec_query_stats as qs     cross apply sys.dm_exec_sql_text (qs.sql_handle) as st     cross apply sys.dm_exec_query_plan (qs.plan_handle) as qp where st.objectid = object_id('myProcedure') order by qs.sql_handle     , execution_count desc   I've checked the documentation and indeed it says that the columns is nullable, but does not say anything about the reasons why its nullable.    Although the procedure has been ran at least two times, my understanding is that the plan cache should have information saved about this stored procedure and its compiled execution plans, but this query returns NULL.  I've also looked in the procedure code to check if it has the RECOMPILE option both at procedure level and at statement level and it doesn't.  My next assumption is that the query_plan column is NULL because all of the queries from the procedure (and from the above result set) are either inserting or reading data from #temporary tables.  Is my assumption correct and is that the reason why no query plan is stored for these queries? Or is there possibly another reason?  Update:  I've checked based on @Shaky's comment if the procedure is encrypted, by verifying the value in sys.dm_exec_sql_text.encrypted and it's 0.  I've also tested my assumption that the procedure plan is not stored because of the use of temporary tables in the queries and for that I created a dummy stored procedure which stored the result in a temporary table and then displayed the data from that table and its execution plan is returned by my query.

I'm using the following code to pull our top 20 queries (ordered by CPU):  SELECT TOP 20 qs.sql_handle     ,qs.execution_count     ,qs.total_worker_time AS [Total CPU]     ,qs.total_worker_time / 1000000 AS [Total CPU in Seconds]     ,(qs.total_worker_time / 1000000) / qs.execution_count AS [Average CPU in Seconds]     ,qs.total_elapsed_time     ,qs.total_elapsed_time / 1000000 AS [Total Elapsed Time in Seconds]     ,st.TEXT     ,qp.query_plan FROM sys.dm_exec_query_stats AS qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS st CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) AS qp ORDER BY qs.total_worker_time DESC   However, I'm seeing this:   Can anyone shed some light as to why the Query Plan and SQL Text are showing up NULL?  Are they some sort of system process or external application?  We are running SQL 2008 R2.  Thanks, as always, everyone!


I understand that the code is convert miliseconds to seconds, mins and hours, but I dont understand what the " % " does ...  int seconds = (int) (milliseconds / 1000) % 60 ;  can someone explain please?  can I do the same action in C++ ?  thanks !!               milliseconds = ((System.currentTimeMillis()) - (startTime));             int seconds = (int) (milliseconds / 1000) % 60 ;             int minutes = (int) ((milliseconds / (1000*60)) % 60);             int hours   = (int) ((milliseconds / (1000*60*60)) % 24);

As an example in pseudocode:  if ((a mod 2) == 0) {     isEven = true; } else {     isEven = false; }


When I single-click on a folder or file on the desktop, it is highlighted in orange.  How can I either disable the highlighting or change the colour to a transparent one?

I was trying to change the selected items color from the default orange to something else, however, the option isn't there, as it used to be in the Appearance properties in previous versions of ubuntu. Any idea where it could be in the beta?


I have come across the proof that all natural numbers to infinity when summed equals -1 / 12 and can not quite grasp this. Could anyone find a way to explain this in an easy understandable way for someone still in school (for that one kid who says he gets this and he's still in school, good for you).  Here's the video I saw :   Thanks!

$\displaystyle\sum_{n=1}^\infty \frac{1}{n^s}$ only converges to $\zeta(s)$ if $\text{Re}(s) > 1$.  Why should analytically continuing to $\zeta(-1)$ give the right answer?


For fields E and F, is the every element of EF, compositum of E and F, could be represented by the finite combination(addition, multiplication, inverse) of the finite element in E and F?

I'm interested in understanding compositum of general fields better. Assume we have $\Omega/K/F$ and $\Omega/L/F$ field extensions, and consider the composite $KL$.   It seems to me that every $a \in KL$, exists $n_1,n_2 \in \mathbb{N}$, $ \left \lbrace k_i \right \rbrace_{i=1}^{n_1}, \left \lbrace k'_i \right \rbrace_{i=1}^{n_2} \subseteq K$ and $ \left \lbrace l_i \right \rbrace_{i=1}^{n_1}, \left \lbrace l'_i \right \rbrace_{i=1}^{n_2} \subseteq L$ such that: $$ a = \frac{\sum_{i=1}^{n_1} k_i l_i}{\sum_{j=1}^{n_2} k'_j l'_j} $$  (That is since the family of all such sums is closed under addition, multiplication, and distribution because of the abelian nature of fields, therefore all numbers of this form are subfields that contain both K and L)  Is it a correct way to refer to a compositum of fields? When is it correct that the general item of an extension is $a = \sum_{i=1}^{n} k_i l_i$?


I'm having issues while connecting to my Local Centos 6.3 VM with 500 MB ram.  Below is the output of ssh -vvv localhost connection:  OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /usr/local/etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [127.0.0.1] port 22. ^^^^^^^^^^ Loading this statement takes more than a minute  debug1: Connection established. ...  debug1: Next authentication method: password  root@localhost's password: ^^^^^^^^^^ This step takes a minute too  debug3: packet_send2: adding 64 (len 50 padlen 14 extra_pad 64) debug2: we sent a password packet, wait for reply debug1: Authentication succeeded (password). Authenticated to localhost ([127.0.0.1]:22). debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug2: channel 0: send open debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug2: callback start debug2: fd 3 setting TCP_NODELAY debug3: packet_set_tos: set IP_TOS 0x10 debug2: client_session2_setup: id 0 debug2: channel 0: request pty-req confirm 1 debug2: channel 0: request shell confirm 1 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel_input_status_confirm: type 99 id 0 debug2: PTY allocation request accepted on channel 0 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: shell request accepted on channel 0 Last login: Wed Oct  9 13:27:02 2013 from 10.0.0.2   Please suggest on how do I get rid of this delay.

Running ssh user@hostname takes ~30s. Here's the scenario:   this is a VM on the local LAN Windows and Mac machines get instant login am using Debian and I could reproduce with an Ubuntu machine someone using Ubuntu says that logging into my machine (local LAN) is also instant using hostname IP address takes about half as much time (~15s)   [update]  Using ssh -vvv user@hostname, here's where it waits the most:  debug3: authmethod_lookup gssapi-with-mic debug3: remaining preferred: publickey,keyboard-interactive,password debug3: authmethod_is_enabled gssapi-with-mic debug1: Next authentication method: gssapi-with-mic   And then it waits a bit here:  debug1: Unspecified GSS failure.  Minor code may provide more information Credentials cache file '/tmp/krb5cc_1000' not found  debug1: Unspecified GSS failure.  Minor code may provide more information Credentials cache file '/tmp/krb5cc_1000' not found


Let $A,B$ and $U$ be sets so that $A\subseteq U$ and $B \subseteq U$. Prove that $A \subseteq B$ iff $(U\setminus B) \subseteq (U\setminus A).$   I've this question as my graded assignment. But for the entire module, I am completely lost and would really appreciate if anybody can help me with this question. Thank you so much!

Let $A,B$ and $U$ be sets so that $A\subseteq U$ and $B\subseteq U$. Prove that $A\subseteq B$ iff $(U\setminus B)\subseteq(U\setminus A)$.  The forward implication is easy to prove but i got stuck at the backward implication, i.e. $(U\setminus B)\subseteq(U\setminus A)\Rightarrow A\subseteq B$. Can someone help me out with it? Thank you.