I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs:     Fatal error: Call to undefined function _system_default_theme_features() in /[drupal_path]/includes/theme.inc on line 1422   and when I reload it another fatal error apperars:     Fatal error: Call to a member function getDirectoryPath() on a non-object in /[drupal_path]/modules/image/image.module on line 83   next reload – first error, one more – second. Also, second error is loading much faster.  And one more thing, after applaying update.php I got one failed, I don't know if this is connected:     media_gallery module      Update #7009      Failed: FieldException: Próba aktualizacji egzemplarza nieistniejącego pola media_gallery_media. w field_update_instance() (linia 557 z /[drupal_path]/modules/field/field.crud.inc).   which is something like:     Failed: FieldException: Attempt to update an instance of a nonexistent field media_gallery_media. in field_update_instance() (line 557 in /[drupal_path]/modules/field/field.crud.inc).   PHP Version 5.5.6  I was trying disabling some modules from db (especially image.module, media_gallery already was disabled), but this did't help.  Any tips where the problem is? Thx in advance.


Can I bring a used robotic vacuum cleaner to India from France? Note: I am not returning on a permanent basis.What are the custom rules around that?

What are Customs rules regarding bringing vacuum cleaner from abroad to India ?


How can I run a local command (to run a script) on (just before) log out of a Unity session?

At the risk of posting a duplicate question: How can I run a local script (as the current user) when I log out? I read (and tried) among others:   (Marton's version), which did perfectly nothing, used on a simple script creating a file, absolute paths to the script (being executable) and the file. , which must be outdated; it made me remove the file from command line to be able to use my system again. I also looked into , without succes.  I believe I must be doing something wrong here, but cannot find out what is my blind spot. Context Looking for an elegant solution (workaround) to , presumably the result of a bug, I made a script that, depending on the argument, either takes a snapshot of the current desktop icon arrangement, or arranges the icons, according to the last snapshot. The script works fine, but is really no candidate to run as a background script. The script therefore should run on logout to get the arrangement, obviously run by the current user.


How to persist iptables configuration on Amazon EC2 VPC NAT Ami?

I have a small script like this to configure the iptables:  #!/bin/bash  PRE_STR="iptables -t nat -A PREROUTING -p tcp -j DNAT" FOR_STR="iptables -A FORWARD -p tcp -j ACCEPT"   ##################################### # instances CM="10.0.1.137" MASTER="10.0.1.149" MYSQL="10.0.1.83" REPORTING="10.0.1.85"  ##################################### # Clear Iptables iptables -F iptables -t nat -F  ##################################### # Forward to enable Internet on private nodes iptables -t nat -A POSTROUTING -j MASQUERADE   ##################################### # Port forwarding  forward() {         $PRE_STR --dport $1 --to $2:$3         $FOR_STR --dport $3 -d $2 }  #what   from    to ip           to port forward 3222    $CM             22 forward 7183    $CM             7183 forward 7180    $CM             7180  forward 3122    $MASTER         22 forward 8888    $MASTER         8888 forward 11000   $MASTER         11000  forward 2122    $MYSQL          22 forward 13306   $MYSQL          3306  iptables-save > /etc/firewall.conf   The question is, how to load the /etc/firwall.conf with the current iptables settings on the next startup?  On a normal Debian machine I would put a script that fires iptables-restore < /etc/firewall.conf it into the folder /etc/network/if-up.d/iptables. But this isn't available in this image.  So what is the correct why to load this /etc/firewall.conf?  AMI ID: ami-1de2d969  Update:  Is it ok to fire it in iptables-restore < /etc/firewall.conf in /etc/rc.local?  Source:


Hotmail not accepting my emails from my email server. [dyn dns]

I am using DynDNS to do name resolution and would like to send emails to Hotmail and Gmail.  Gmail marks them as spam, while Hotmail just blocks everything.  How do I make Gmail and Hotmail know that my mail server is legit?  My DNS is as follows:  A companyName.com x.x.x.x  MX 10 companyName.com.   This is OK, right?  Thank you.


How to insert text into a root-owned file using sudo?

Possible Duplicate:          Running a command like sudo echo 'text' >> /file.txt fails with:  bash: /file.txt: Permission denied


Do feature-length animation studios reanimate characters' mouths for foreign language dubs?

For instance, I know that Toy Story 3 was released in several other languages besides English, did Pixar re-render the characters mouths to sync with the audio? Do traditional animation studios do this?  I would ask about television shows as well, but I'm fairly certain that the lower budgets means this never happens.


Game: Create multiple obstacles flying towards your ship

I have to create a game for university. Here is how the game should be: On the left side you have a plane that you can control (up and down). This works very good so far. On the right side obstacles are spawning and they are flying towards the plane so you have to dodge the obstacles. With my code only one obstacle is spawned in the beginning. It flies towards the plane like it should and also the collision detection works. My problem is, that I just don´t know how to spawn multiple obstacles. I have thought about implementing a timer that counts up and every x seconds a new obstacle is spawning but if I write something like "time.sleep" into the while-loop the game doesn´t even start. I am very thankful for every idea and tip as I will get a grade on this project. So thanks a lot in advance! If there are any more things that you need to know please leave a comment. Best regards, Timo :)  import pygame import random import time import math  # Initialize pygame pygame.init()  # Create window (width, height) screen = pygame.display.set_mode(((800, 600))) ScreenHeight = screen.get_height() ScreenWidth = screen.get_width()  # Background picture background = pygame.image.load("background.jpg")  # Title and Icon pygame.display.set_caption("F22-Raptor Simulator") icon = pygame.image.load("jet1.png") pygame.display.set_icon(icon)  # Player playerImg = pygame.image.load("player1.png") playerX = 10 playerY = 270 playerY_change = 0   def player(x, y):     screen.blit(playerImg, (x, y))   # Obstacle obstacleImg = pygame.image.load("rock.png") obstacleX = random.randint(600, 700) obstacleY = random.randint(0, ScreenHeight - 64) obstacleX_change = -0.3   def obstacle(x, y):     screen.blit(obstacleImg, (x, y))   # Collosion detection (Player with obstacle) def collisionDetection(playerX, playerY, obstacleX, obstacleY):     distance = math.sqrt((math.pow(playerX - obstacleX, 2)) + ((math.pow(playerY - obstacleY, 2))))     if distance < 64:         return True     else:         return False   # Keep window running (Infinite-Loop) running = True  # While-Loop (Everything that takes place during the game is inside here while running:      # Background-Color of window     screen.fill((192, 192, 192))      # Insert Background     screen.blit(background, (0, 0))      # End game / close window     for event in pygame.event.get():         if event.type == pygame.QUIT:             running = False          # Movement up/down         if event.type == pygame.KEYDOWN:             # Movement up             if event.key == pygame.K_w:                 playerY_change = -0.15             # Movement down             if event.key == pygame.K_s:                 playerY_change = 0.15         # If no key pressed -> no movement         if event.type == pygame.KEYUP:             if event.key == pygame.K_w or event.key == pygame.K_s:                 playerY_change = 0      # Display movement of player     playerY += playerY_change      # Movement-boundaries Player     if playerY <= 0:         playerY = 0     if playerY >= 536:         playerY = 536      # Display player     player(playerX, playerY)      # Display movement of obstacle     obstacleX += obstacleX_change      # Display obstacle      obstacle(obstacleX, obstacleY)      # Collision Detection     collision = collisionDetection(playerX, playerY, obstacleX, obstacleY)     if collision:         playerX = 10         playerY = 270         player(playerX, playerY)      # Update after each iteration of the while-loop     pygame.display.update()


Analytic solution for angle of minimum deviation?

Consider a simple prism with a prism angle $A$, angle of incidence $\theta_1$, angle of emergence $\theta_4$ and the first and second angle of refraction as $\theta_2,\theta_3$. the refractive index for the prism (w.r.t the surroundings) is $n$. The angle of deviation is $\delta$.I wanted to derive an equation that could give the relation between $\theta_1$ and $\delta$, plot of which for a monochromatic light is as in the . Below is my failed attempt (equations 2 and 3 are from the :- $$\theta_4=\sin^{-1}n\sin(\theta_3)$$ $$A+\delta=\theta_1+\theta_4$$ $$A=\theta_2+\theta_3$$ $$\delta=\theta_1+\sin^{-1}n\sin(\theta_3)-A$$ $$\delta=\theta_1+\sin^{-1}n\sin(A-\theta_2)-A$$ $$\delta=\theta_1+\sin^{-1}n\sin(A-\sin^{-1}\frac{\sin(\theta_1)}{n})-A$$ Equation, when I plotted it on  for an equilateral prism with $n$=$1.5$ yielded the required plot in the limit $28.5^\circ<\theta_1<90^\circ$ (to avoid total internal reflection). But then, how do I use this equation, to analytically find the angle of minimum deviation, and the fact that at minimum deviation $\theta_1=\theta_4$. (I tried taking the derivative, but it turned out to be too complex).


I can't seem to figure out how to connect my light bulb to the generator to make it turn on.  How do I do this?


Matlab reports "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException"

Hi wonder about a java error that is repeatedly occurs in matlab. It typically occurs when matlab is doing some heavy stuff with java. This can for example be holding ctrl+z or ctrl+y.  I did by mistake erase the error message before I copied it but I think that I can pass the core of the problem any way.  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException ... at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)   Does anyone know why this error occur? I have found some information about this from matlab r2007, this due to that java swing is thread unsafe and matlab lacked support to ensure thread safety. However, that is supposed to have been fixed in matlab r2008b. So why do I get it now?  EDIT Here is the full stack trace:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.netbeans.editor.BaseDocument.notifyUnmodify(BaseDocument.java:1465) at org.netbeans.editor.BaseDocument.notifyModifyCheckEnd(BaseDocument.java:816) at org.netbeans.editor.BaseDocumentEvent.redo(BaseDocumentEvent.java:336) at javax.swing.undo.UndoManager.redoTo(Unknown Source) at javax.swing.undo.UndoManager.redo(Unknown Source) at com.mathworks.mwswing.undo.MUndoManager.redo(MUndoManager.java:255) at org.netbeans.editor.ActionFactory$RedoAction.actionPerformed(ActionFactory.java:767) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:259) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at com.mathworks.widgets.SyntaxTextPaneBase.processKeyEvent(SyntaxTextPaneBase.java:1187) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)


Short story where an astronaut is sent into space, and then a few years later is found by a significantly more advanced ship, also from Earth

Can anyone tell me the name of a science fiction short story where a spaceship is sent out on an exploration mission from Earth. And then after a few years, the progress of technology is such that humanity spreads to local space and picks up the forgotten original spacecraft as a relic? With the lone pilot waking up to a world far advanced It's an older one, definitely pre-2000. I remember reading it in a short anthology of sci-fi stories I found on the shelves of a used book store as a kid, so I can't remember a specific title or author. Please it's driving me crazy! The overall message of the story was to illustrate how the progression of technology can outpace previous efforts, suggesting it's better to wait until technology is more advanced, and asking the question how long should we really wait.


How to get posts by multiple post slugs?

i am trying to get posts by multiple posts slugs, i can do this by passing post ids but I do not want to pass post ids i am looking for posts slug  Here is my code   $option = array( 'posts_per_page' => -1, 'post_type' => 'post', 'name' => 'berlin, frankfurt, munich, augsburg' );  $new_query = new WP_Query($option); if ($new_query->have_posts()) { while ($new_query->have_posts()) { $new_query->the_post(); /* my html stuff */ } }   but it does not display anything but when i pass only "berlin" then queyr gives me correct results. it mean i only need to use post ids to get selected multiple posts ?


Is it a problem if a UK visa was issued but not used?

Last year, my wife and I were issused 6-month visieor visas for the UK. She did not travel with me and, therefore, didn't use her visa. I am currently applying for a visitor visa for my daughter and myself.  Will the fact that my didn't use her visa have any negative affect on our new application?


Retrieve list item created by current user in content editor in SharePoint 2013

I want to show SPModal Dialog which contains a new item creation form to the user on the page intranet home page if user is not create or submit any items in that list.  I tried but I am getting error when I am passing current user item in query.  Please suggest me ways to do that  <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(init,'sp.js'); var context; var web; var user; var siteUrl = _spPageContextInfo.siteServerRelativeUrl ; //var userId= _spPageContextInfo.userId; var userId= 123; var flag=true; //var options = { title: "Announcements - New Item",url:"../Lists/Announcements/NewForm.aspx"}; var options = { title: "Announcements - New Item",url:"http://webtest:3333/Lists/test/NewForm.aspx"};  function init() { context = SP.ClientContext.get_current(); web = context.get_web(); //alert(flag); getCurrentUser(); retrieveListItems();  }  function getCurrentUser() { user = web.get_currentUser(); context.load(user); context.executeQueryAsync(onGetUserNameSucces, onGetUserNameFail); } function onGetUserNameSucces() { // TODO: implement your own succes handler     //alert(user.get_title()); } function onGetUserNameFail(sender, args) { // TODO: implement your own fail handler and do some logging }  function retrieveListItems() {       var oList = context.get_web().get_lists().getByTitle("test");      var camlQuery = new SP.CamlQuery();       //context.load(user);      //alert(userId);  camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'Author\' /><Value Type=\'User\'>'+ user.get_title() +'</Value></Eq></Where></Query></View>');     this.collListItem = oList.getItems(camlQuery);      context.load(collListItem);     context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded),Function.createDelegate(this, this.onQueryFailed));   }  function onQuerySucceeded(sender, args) {            //alert( _spPageContextInfo.userId);      var listItemInfo = '';     var listItemEnumerator = collListItem.getEnumerator();       while (listItemEnumerator.moveNext()) {         var oListItem = listItemEnumerator.get_current();         listItemInfo += '\nID: ' + oListItem.get_id() +              '\nTitle: ' + oListItem.get_item('Title');     }     alert(listItemInfo.toString());     if(listItemInfo==null){ //      flag='false';       SP.UI.ModalDialog.showModalDialog(options);            }      //alert(flag);        }  function onQueryFailed(sender, args) {     alert('Error: ' + args.get_message() + '\n' + args.get_stackTrace()); } </script>   I cant get List Items over here


You made mistakes in the past, but learned from them and now you are not committing these mistakes any longer. However, because you committed these mistakes in the past, some might say, that you are morally not in the position to point out these very mistakes to others. How is this fallacy called?


I've set up a wifi hotspot on my computer using netsh commands.  I would like to know if it is possible to change the max number of clients ("netsh wlan show hostednetwork" shows maxclients=100).  I suppose it is using the command "netsh wlan set profileparameter" but I do not manage to use it.  Thank you for your help.


My first OS was Windows 10. Then I install ubuntu 16.04. But though the installation finished, the grub menu didn't come out. Then I format that free space partition and reinstall again. Also went into the same old issue. Then I install third time, ''Install alongside with Windows'' step was not there anymore. Then I install ubuntu straight. Then, after restarting, no boot option comes out and then automatically login into ubuntu straight. I see my Windows 10 system files inside there. Is it overwrite on my OS or how can I get back my Windows 10. Now I'm on ubuntu 16.04.


Prove if n, i, j are integers with 1$\leq i<j\leq n$ then $\gcd (n!i+1, n!j+1) = 1$

I've started by letting the $\gcd = d$. With the goal of trying to prove $d$ must be equal to 1. Since $d$ divides both $n!i + 1$ and $n!j + 1$ then there exist integers $k$ and $m$ such that $dk = n!i + 1$ and $dm = n!j + 1$. By rearranging these equations and doing some substitution, I find that $d|i - j $and $d|j$ ai. Am I off base here?


Can a mac boot from an external drive, if the external drive is running an older version of macOS?

In general, can a make that has a newer version of macOS on it boot from an external hard drive that has an older version of macOS on its main drive? For example, could I boot High Sierra from an external hard drive on a mac that has Catalina installed on its' main drive? Why? I have a mac desktop running Catalina that's a work machine. I'd like to use the hardware for personal use, and run macOS using an external hard drive, using an older version of macOS that I've purchased myself, but when I try, I see the "Prohibited" sign on the drive when I try and boot from it. I tried to use the external drive with a macbook running El Capitan, and it worked fine EDIT: The model is "iMac Retina 4k, 21.5, 2019"


how to update new parent node in the middle of the postgresql ltree by some simple update SQL statement?

I follow this URL to make some SOP for my colleague.   However, my colleague hope to use some simple statement about "UPDATE" for adding or deleting some parent nodes without complex Regular Expression statements.  Is there any better statement by using UPDATE? Thanks for advance.


PHP mbstring.func_overload vs using mbstring functions

I want to conform my site's string handling to support other languages per UTF-8. It seems that the best way to do this is to forsake all the standard string functions.  So I have two options, I can set the mbstring.func_overload option in php.ini or I can go back over my code and just replace all the functions with mb_*. I would assume that the second option will be easier on people using my code as they won't have to change their sever config. (if they even can!)  What about when PHP 6 comes out? Should that have any baring on my choice since it will support proper multibyte processing.


Inkscape: remove stroke preserve size/shape

I've created a path with a stroke and a fill of the same color, and I'd like to remove the stroke while preserving the size/shape of the object. Is there a simple way to do this?  In other words, I'm looking for something like a "Stroke-and-Fill to Path"  The best solution that I have come up with so far is to use "Stroke To Path" and then delete all of the inner nodes.


How does an empty IFRAME cause cache busting

Found the following line in a javascript library that is used for predictive text in search boxes.  Ex:  If you type "red" a list pops up with "red dress, red flowers, red cars, etc"  // Write the cache busting IFRAME document.write('<iframe style="height:0px;width:0px;visibility:hidden;display:none;" src="about:blank">this prevents back forward cache</iframe>');   I don't see how an empty iframe can bust cache.  I've seen people append random numbers to the end of links to bust cache...but what is this iFrame all about.  The library is big so I can share it.  Sorry if this is not enough code to declare an answer.


Is the 'th' sound usually reduced in spoken English?

I am working on my accent and pronunciation. I use  and it says that in spoken English, speakers usually run words together.  For example, "Run them all together" turns into "Runnemalld'gether." I have two questions here.   Is there any rule when we can reduce th sound?  Is it acceptable in business meeting and academic speaking to reduce th and running word together?


How to notify bug (achievement dropdown does not show rep increase)?

I had 60 rep increase on one SE site, but the achievement dropdown list shows only 10.  I found on Meta how to see the actual list of reputation changes (by clicking on the rep count below the picture in the profile page). But the point is I still wanted to inform the staff about the existence of a BUG.  I used meta as it seems to be the only available mean. But I feel I am just cluttering the space. I do not need to ask a question: I know what to do for myself. I only want to inform the staff.


SSD drive filled up in drive D - mysterious file usage

This is from my thinkpad t450s which has a Samsung 240GB SSD. It has been running fine (and still is). But I suddenly noticed one morning that my D: drive had filled up overnight. This is a surprise because I hardly do anything to occupy disk space other than browsing the web, and reading pdfs.  D: drive is 110 GB in size and in MyComputer it shows that 87.9 GBs of it has been used. But when I go into the drive in windows explorer, select all files and folders and then do a file size query it shows that the total size occupied by files and folders is 24.2 GB (there's no change of this even if I select hidden folders, system folders etc). Page file is disabled on the D: drive and the only one on C: drive is system managed. I have also disabled system restore on all partitions.   Surprisingly the disk usage is only abnormal as such in D: drive only. I have checked with WinDirStat, it shows up usage as 24.2 GB. But when run with CCleaner it shows file usage of 87.9 GB and describes the ~60 GB of unexplained usage as "other files".  My question is how can I find this mysterious disk usage/bloat that Windows Explorer cant see and only CCleaner classifies as 'other files' ? Is this a sign of disk wear with some random corrupted bit sectors ? I have checked SSD health and SMART data with software and almost all of them showed no signs of errors or warnings.


Git: Is there a way to check previously stashed code?

I have lost a lot of work, which was not staged. However I did stash it, and then unstash it, before losing it. Does git save this info anywhere?  Edit: I still had the dropped stash reference ID in my terminal, so was able to recover using Dolda's suggestion in


How to get a script to fire when the button to call it is generated into the DOM after the page loads

I have this script  Javascript:  $('#generateEditWindow').on('click', function () {     var $el = $(this);     var id = $el.data('id');     alert(id) });   and this HTML:  <a id="generateEditWindow" data-id="10">        Click to show the data id </a>   And this works, but only if the page loads with THIS HTML already as part of the page. I need this script to react to new elements that are added to the DOM after page load. When I generate the HTML you see here after the DOM has loaded this function will not fire.  I have put this function in a document ready function but that doesn’t seem to make sense nor work and have tried outside of document ready. I feel like I need to make this function to fire “on change” and have it listen for calls but I don’t even know the terminology to be able to google that correctly. Any help would be great, thanks community.


ꕺ (U+A57A Vai Syllable Kpoo) is allowed in character names as the last character

I believe this should be changed so ꕺ can not be the last character of a name at minimum. This could be a bug in my opinion because it provides confusion with diamond mods.  Although other symbols are blocked from what I understand but this does technically look different.  I have changed my name to such to demonstrate the confusion at least temporarily.  They say imitation is the greatest form of flattery so maybe this should be accepted because to anyone who is familiar with SO I doubt this would cause an issue.


I've just updated my iPad to the IOS 8 and I can't download the English (Oxford) and French dictionaries, as many users have already complained. Please, tell us what is the way to solve it!


Show that if $x_n \to x$ then $\sqrt{x_n} \to \sqrt{x}$ I have been stuck on this for a while. I tried $$|\sqrt{x_n} - \sqrt{x}| = \frac{|x_n - x|}{|\sqrt{x_n} + \sqrt{x}|},$$ and then I at least can get the top to be as small as I want, so I have $$\frac{\epsilon}{|\sqrt{x+\epsilon} + \sqrt{x}|},$$ but I get stuck here at choosing the N, and I don't know if my first step in breaking down the absolute value is legitimate. Please help.


How to match substring between two strings with RE2 regex?

I need to extract the substring between "Design Brands > " and the first following pipe(|) character from of the following string:  "T-shirts|Brands > Port & Company|Design Brands > Montana Griz|Designs > TeamLB Griz > MTG31|T-shirts > TeamLB|T-shirts > Montana Griz"   This is within a google sheets function so I have to use Go's RE2 syntax  I would expect that the following expression would work  Design Brands > (.*)\|   However, the expression matches everything up to the last pipe in the string  "Montana Griz|Designs > TeamLB Griz > MTG31|T-shirts > TeamLB"  instead of everything up to the first occurance of a pipe in the string. I cant seem to figure out how to isolate just "Montana Griz" within a capture group.


Suppose $f(x)=\frac{4^x}{4^x+2}$ and prove that $f\left(\frac{1}{1997}\right)+f\left(\frac{2}{1997}\right)+\ldots+f\left(\frac{1996}{1997}\right)=998$

Suppose $f(x)=\dfrac{4^x}{4^x+2}$ and prove that $$f\left(\dfrac{1}{1997}\right)+f\left(\dfrac{2}{1997}\right)+\ldots+f\left(\dfrac{1996}{1997}\right)=998.$$  I tried to do the problem but I could not get started. Substituting the value of $x$ seems to be too lengthy.


Challenge: Shortest Infinitesimally Unlikely Document: "ordinary" document forever requesting: "rerun to get cross-references right". t"

Stop reading here if you do not like stupid yet amusing challenges.   Challenge: produces the shortest document yielding   LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.   No matter how many times it is run through LaTeX.  I presume there is a cheating solution by which you mess up with the reference information as read from the .aux file. It would be nice to see one.  The challenge in producing the shortest "non-cheating" solution might be in clever ways of searching for a needle in an enormously huge haystack: Those rare documents in which setting changing a referenced label, say from 1 to 2 manages, through the delicate layout algorithm, to change the referenced label back, i.e., from '2' to '1'.    EDIT: In view of , which essentially solves the problem by a different kind of "cheating": forcing in and out text and blocks, using macros, I would rephrase:   The shortest LaTeX document that requests forever: "rerun to get cross-references right", but please do so by using text only.  It is okay to use text generated by, e.g., \lipsum, but it is not okay to sneak in loops.   If memory serves me right, Lamport said in his book that the probability of such an incident is infinitesimal.


How do I export both my private and public keys into one file?

I need help on exporting both private keys and public located in ssh into one file. id_rsa and id_rsa.pub


What should you do if you're serial downvoted & it isn't automatically reversed within 24 hours?

Example: Three days ago I was serial downvoted        After these weren't automatically reversed, 24 hours later, I flagged one of the posts. It was eventually marked as helpful, but the downvotes are still there.  It could be that it was 2 users, but it looks like too much of a coincidence.  What should you do in these circumstances?


Python - How to copy a file to the new location with a different name

Here i am trying to copy a file from a source location to the target location. from shutil import copy2 sourcefile = "file.avro" targetdirectory = "/home" copy2(soucefil,targetdirectory)  But i need to copy the file to the new location with a different name say file.avro.copy Is there any python library that can be used for renaming file while copying itself. Donot want to copy and rename in two different steps.


I want to query newly created fields(Metadata) in the contact object where day = Today().   Is this possible in Salesforce?


So I recently made the switch to cycles rendering and smoke modifiers, but it's been giving me loads of problems already.  This is what the model looks like:   And then when I go to render it, this is the result I get.    Why is this happening?


How to decide which answer to pick if most of them contain useful information just to different aspects of the question?

The question in question:    Possible strategies   a) Select the highest-voted answer.  Clearly people like this best. It states that what I asked for is not supported directly, currently. Although I feel that it lacks possible workarounds. b) Write a new answer merging all the good ideas into one well-structured answer.  I think this would be the most helpful for people stumbling into the question later on, but it feels like a unjust move not picking one from the people who took time to answer. c) Select one and then edit to include helpful bits from others' answers, even if it substantially changes the original answer.  This is a kind of middle ground between A and B, still picking one for being helpful, and also making it more useful for future readers. d) Something else?   Choice  Which strategy should I pick, and why?


From Haneda airport to Narita airport with same airline

We will arrive in Haneda airport at 7:10am and connecting flight to US from Narita is 11:15am.    Is there enough time to catch my next flight?    I've confirmed with UA that we don't need to pick up our luggage during the connecting flight but we have to go through Immigration, that usually may take an hour.    What's the best way not to miss our next flight?    Is there a fast lane for Immigration and direct transportation from one airport to the other?    What if I miss the flight, will UA give us the next availability flight without penalty?


Are hyphens needed in a noun-phrase that precedes 'manner'?

I sometimes use "manner" to use noun-phrases as adverbs, like "in the manner of a vigilant watchdog". If I reverse the order, does the noun phrase then have to be hypenated? Like so: "in a vigilant-watchdog manner"


Shower at Heathrow during layover in Terminal 5

Reading the  questions here, I am not too hopeful, but this is the perfect site to find the answer if it does exist:  Facts:   I arrive at T5 (British Airways) at 08:30, depart at 11:40 from T5 (British Airways) to another country. No time once I reach final destination to shower, Leave straight from work to catch the first leg. US citizen + passport, only final destination visa (currently)   Desire:  I want to shower - 10 mins is plenty.  Assume money is no object (pay for lounge access, cabs etc), but I'd rather not buy full ticket if I can avoid it.  P.S. It's a wedding, so I REALLY want to shower before haha.  EDIT: My plan so far (which doesn't work because it's after Security):   Travel from  Use    UPDATE:  I followed G & Doc's advice and walked over to the Sofitel Hotel (Immigration + walk ~20-25 min total) showered there for £25 and walked back through Security with plenty of time to spare.  Thank you all for your help!


I notice that "let alone" is used in sentences that have a comma. The structure of the sentence is what comes before the comma is some kind of negative statement. Right after the comma is "let alone," followed by the rest of the sentence.  What does "let alone" mean here? Does it mean the same thing as "or even?" Can someone explain this phrase and sentences that have it?


Should the main method not be declared static or should the other method be declared static? Java

public class Question {       public void doThing() {}       public static void main(String[] args) {               doThing();       } }   Should the doThing() method be declared static to be used in main()?  or   should the main() method not be declared static?  They both don't give me an error but which one would you say was right or wrong and why?


Why isn’t there a $\cos(\theta)$ in the work-energy theorem?

please don’t use any calculus in your answers I was reading the derivation of the work energy theorem in my textbook and it goes like this: $$W = Fs\Rightarrow  W_{net} = mas$$  Since $v^2 - u^2 = 2as \Rightarrow as = \frac{v^2 - u^2}{2}$, substituting in the original equation, we get: $$W_{net} = \frac{mv^2}{2} - \frac{mu^2}{2}$$ Which is delta K.E.  But where did the $\cos(\theta)$ go which is there in the original equation of the work??  Shouldn’t the derivation be : $W = Fs\cos(\theta)$  And then we do the same as before and we should get: Net work $= (1/2)m(v^2 - u^2)\cos(\theta)$ , where theta is the angle between the NET force and the displacement, right?  What is wrong with my reasoning? I know this probably isn’t correct because let’s take a simple case: $v = \theta$ and $u$ is a non-zero positive integer. Let’s say $\theta = 180^\circ$ i.e., according to my derivation, we would expect the work done to be negative, since $\cos 180 = -1$. But when you do $v^2 - u^2$, you would get a negative value itself which would then give us a positive net work which is incorrect. I think part of the wrong reasoning is that whenever we use the work equation, we only plug in the MAGNITUDES of the force and displacement as the positive or negative work is only decided by the term cos(theta). But then how do I get $v^2 - u^2$ as negative? If $u$ is let’s say $10$ m/s then $v^2 - u^2$ would be $-100$. I can’t just write +100 for that. Please clear my confusion.


Group theory: prove that there is an element $s \in S$ such that $f(s) = s$

Let $S$ be a finite set with $n$ elements and let $f \in A(S)$ the set of all bijective functions onto $S$ (this is a group with the composition). Suppose that the order of $f$ is $p$, with $p$ prime, and $p$ does not divide $n$. Prove that there is an element $s \in S$ such that $f(s)=s$. So, the things I know is that $p$ is the least positive integer such that $f^p(s) = id(s) = s$ for all $s$; $n = qp+r$ for some $q,r$ with $0\leq r<p$. I also established that $s^n = e$ for all $s$ where $e$ is the identity of $S$, but then I realized that $S$ is not necessarily a group. My first approach was to compute $f^r(s) = f^{n-qp}(s) = f^n \circ((f^p)^{-1})^q(s) = f^n(s)$ since $f^p$ is the identity and so is the inverse, and so is after take $q$ compositions. What I'd like is to find that $f^r(s) = id(s)$ and since $p$ is the order of $f$, necessarily $r=0$ but then $p$ divides $n$ and derive a contradiction. Then I though about the set $H = \{s \in S:f(s)=s\}$ and show that is not empty, but didn't help. I couldn't came up with the assumtion that $f(s) \neq s$ for all $s$ because I didn't know how to use it. Now, since $f:S \rightarrow S$ is bijective and $S$ is finite, $f$ is just a permutation, so the cardinality of $A(S)$ is $n!$, and $p$ divides $n!$ but doesn't divide $n$, so $p$ has to divide some number from $1,2,3,\dots,n-1$. But didn't help either. Any hint, please. Thanks


Meaning of "A user can unprotect any protected question"

On the  privilege page, we find     Any question, even a deleted question, can be protected and unprotected, subject to the following restrictions:         The question must be at least a day old   A user can unprotect any protected question      What does the latter statement mean? Can any user unprotect a question? Can any other 15k user or mod unprotect a question?  UPDATE: .


Is there an arbitray large prime equal to 3k+2?

How could I find an arbitray large prime number equal to 3k+2?


SFMC - SMS Data Extension, having multiple of the same mobile numbers (different Subscriber Key) in the DE - only sends to ONE of the duplicates

EDIT:  is not a duplicate of my question.  I recognize that this is a limitation of SFMC and am inquiring about any known workarounds.  The linked question does not inquire about any workarounds, in fact, it's basically just asking "why is this happening".  I know why it's happening. Is there any way around this SFMC limitation?  I have a sendable data extension I'm using for SMS sending via Automation Studio.  The use cases involve potentially having the same mobile number in the data extension multiple times, with the expectation that that mobile number will receive XXX number of messages where they exist XXX times in the data extension.  See below - notice my cell number is in here twice, but with different subscriber keys.  When I invoke the automation to send this, I only receive a single SMS representing the TOP record, not both, as expected.  I figure this is standard out of the box functionality similar to "de-duplicating email subscribers".  Is there any way around this limitation, perhaps via a back end business rule setting?


If I supply more current than needed will my electronics fry

If I have a stepper motor and driver that require 5V and 240mA and I supply 5V at 3A will my circuitry die? I have heard the expression that a motor "draws" the current that is needs, but I don't really know if that's true, and if it is true, how's does that even work? It does not seem to be the same for voltage. I am very beginner with electricity so simpler is preferred thank you all for taking the time to answer I really do appreciate it Edit: Apparently this is a frequently asked question, view the answer here or go to  on the topic


is it possible to connect to multiple database E,g. database1, database2

is it possible to connect to multiple  database? E,g. "database1, database2".  if is not possible, anyone can show me how to connect, multiple  database.  $db_host        = 'localhost'; $db_user        = 'username'; $db_pass        = 'password'; $db_database        = 'username_database1, username_database2';   /* End config */   $link = @mysql_connect($db_host,$db_user,$db_pass) or die('Unable to establish a DB connection');  mysql_set_charset('utf8'); mysql_select_db($db_database,$link);   thank you.


apt --fix-broken install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   dictionaries-common Suggested packages:   wordlist The following NEW packages will be installed:   dictionaries-common 0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded. 68 not fully installed or removed. Need to get 0 B/186 kB of archives. After this operation, 775 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Preconfiguring packages ... (Reading database ... 59883 files and directories currently installed.) Preparing to unpack .../dictionaries-common_1.27.2_all.deb ... Adding 'diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common' dpkg-divert: error: rename involves overwriting '/usr/share/dict/words.pre-dictionaries-common' with   different file '/usr/share/dict/words', not allowed dpkg: error processing archive /var/cache/apt/archives/dictionaries-common_1.27.2_all.deb (--unpack):  new dictionaries-common package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/dictionaries-common_1.27.2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


How to filter SQL Server 2008 Profiler Output for a single database?

SQL Server 2008 Profiler always profiles all databases. I want to restrict profiling or output to a single database. How can that be done most easily?


How does the notion of accepting answers handle cases that vary setup to setup?

The problem being:    an answer to a problem that works on my "machine" may not on yours, and what works on yours may not work on Person C's; etc...   I'm wondering therefore whether it would be more relativistic - ergo accurate - to simply use upvotes, and dispense of the notion of an "accepted" answer?    For those interested in context,  that prompted my question.  (apologies if this question has already been discussed and/or concluded, I did search for existing threads but found none).


What is the strongest known theorem (if any) that classify which manifolds can be built as CW complexes? Thank you guys. This is just  a question I thought of during class, obviously not homework...


How can I make a Bézier curve have sharp and curved points?

How can I make a  have sharp and curved points? Like a zig-zag. And also being able to make more 'circular' parts too.  (I want to make fig 2, but I can only get to 1 by creating curves added with the E button.)


Rendering Cycles and Internal in the same scene without compositing

I have a scene that's 90% Blender Internal (for speed) with 1 object in Cycles (because that one object looks way better in Cycles). My question is is it possible for me to: Set the single blend file rendering Have it output the BI scene and Cycles scene into a single openEXR multilayer file  I was hoping to render everything as quickly as possible and then do a final composite after everything's rendered so I don't waste time compositing frames that might be wrong or broken. So far I've got a 3rd scene that I've been using to composite both scenes at render time so I know how to get that setup going, I'm just hoping someone can tell me how to render both scenes at the same time without having to composite them.  Ideally I'm looking for:  Scene 1 = Internal -> Outputs to sequence BI_render_.exr Scene 2 = Cycles -> Outputs to sequence Cycles_render_.exr  If it comes down to it I might be able to do the Cycles render separately because the single object should be quite quick to do on its own but I was thinking this would be practice for a more complex setups for the future.  I have to admit I have a horrible feeling this can't be done but I just have to ask.  Thanks


I have a valid US visa on my old passport which is still valid for next 3 months. I have applied and acquired a new passport with same first name (Ambreen) and Surname (Alwani, that is my maiden name) as that of my old passport but previously my father name was written on my old passport and now on my new passport (after marriage) father name is replaced by my husband's name.   So do I have to apply for new US visa again because of change in my father to husband name while my name and surname remains same i-e Ambreen Alwani.  Please suggest what should I do?


Updated WiFi fix for Yoga 13 and Ubuntu 16.04?

I have a Lenovo Yoga 13 and I was running 14.04 on it and I've since upgraded to 16.04. I applied the fix descibed here () with 14.04 and it worked but no longer seems to with 16.04. I know that the way Realtek drivers work was reorganized in Linux kernel 4.4 () however I don't know enough about what was changed to know if that was the problem. Has anyone else experienced this issue or know how to fix it?


Ubuntu 12.04 LTS freezes entirely. what should i do?

Sometimes (like 10 times a day) my ubuntu completely freezes (mouse stop working, the sound who whas playing start a annoying loop "repeating like the last 0.2 seconds") and the only thing im able to do is mannualy restart via the reset button on cpu case. What should i do? is there some system log where i can find the reason? thx and sorry my bad english


Discrete Math: Writing Proofs with All Steps

What would the full proof look like for $𝐵\subset 𝐴$? If   $A = \left\{6a + 4b\in\mathbb{Z} : a, b \in\mathbb{Z}\right\}$ and $B = \left\{2a \in\mathbb{Z} : a \in\mathbb{Z}\right\}$. Show that $A = B$  So far I have:  $A\subseteq 𝐵$  Suppose $x\in A$. $x = 6a + 4b$ for some $a, b \in\mathbb{Z}$. $x = 2(3a + 2b)$. Let $k1 = (3a + 2b)$ where $k1\in\mathbb{Z}$. x = 2k1. 2x, x ∈ ℤ. Then $x\in B$.  $B\subseteq 𝐴$ Suppose $y\in B$. $y = 2a$ for some $a\in\mathbb{Z}$. $y = 6a + 4(−a)$. Then $y\in A$.  I need help with showing steps for $B\subseteq A$.  Thank you all for the help!


'this' is undefined inside function(). angular 2

So I am using a  in my app. My problem is, when I am going to click the <button> for confirmation. the this inside function is undefined. here's my code...  declare var UIkit:any;  deleteData(dataArr): void {      UIkit.modal.confirm('Are you sure you want to delete this?', function() {       console.log(dataArr);       console.log(this);       //use service here...       UIkit.modal.alert('Confirmed!');       }); }   Inside that function I wish to use service for http request but I am having a problem on the this. I am using Angular 2.x.


Given that $$\int_{-\infty}^\infty e^{{-x}^2} dx = \sqrt{\pi}$$ The value of:        $$\iint_{-\infty}^\infty e^{{{-(x}^2}+xy+{{y}^2)}}dxdy$$ is A) $\sqrt{\frac{\pi}{3}}$   B)$\frac{\pi}{\sqrt3}$  C)$\sqrt{\frac{2\pi}{3}}$  D)$\frac{2\pi}{\sqrt3}$  *Both the limits of double integral is from $-\infty$  to  $\infty$ *  I tried with integration by parts and it is leading nowhere.Please help.


How to get rid of "Rockettab powered by addonjet"?

I've been trying to get rid of this adware for the past week or so with no results.   Here is what it looks like on my browser (chrome):    Basically it just adds a bunch of ads above my search results--a minor annoyance, but I suspect that the adware is only a gateway for more malicious programs (and some research on Rockettab does seem to corroborate this).  Some more details:   The appearance of the ads are very sporadic, if I close them by clicking on the little "x" on the bottom right, they will sometimes go away for a time but always return later. The ads appear in both incognito and normal browser modes The ads do not appear in the IE or MS Edge browsers The ads do not appear in other search engines (e.g Bing)   I've checked out several guides for removing this thing, but none of them seem to apply to my case. Here's what I've tried so far (none of which has worked):   Attempted to uninstall through the Control Panel (there isn't any program by that name or any program that even seems suspicious to uninstall) Cleaned cache, history, cookies, even uninstalled Chrome and reinstalled Ran Malwarebytes, MSE, MalwarebyesAdaware, HitmanPro Searched through all folders using "Everything" for files with "Rocket", "addonjet" etc.  Checked the registry for entries with "Rocket", "addonjet" in their name   I really don't know what else to try at this point, any help would be much appreciated.


Good alternatives to Georgi's Lie Algebras in Particle Physics?

I just started reading Lie Algebras in Particle Physics by Howard Georgi and I'm finding it frustratingly fuzzy. What I mean is that he often makes non-trivial statements without proof, is imprecise with definitions, and so on. However, what other books I can find seem to swing a bit too far the other way, and I simply don't have time for the most comprehensive and rigorous treatments. The ideal book would be somewhere in the middle. It should be a quick read, but prove or sufficiently motivate important statements. And it should cover the essentials needed in introductory theoretical particle physics; i.e. basic representation theory, basic Lie theory, and something about $SU(2)$ and $SU(3)$. Are there any good alternatives?


Can I safely charge my laptop with a non-standard, third-party charger?

I have a Toshiba Satellite laptop. My charger has stopped working.  I have access to a Lenovo charger. Can I use this charger on my laptop?


Problems with Beamer and diagrams in Tikz

I did a commutative diagram with tikz in the article class and everything works. The next code is the MWE in article class.  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \begin{center} \begin{tikzpicture}   \matrix(m)[matrix of math nodes,row sep=2em,column sep=4em,minimum width=2em]   { A & B \\     C & D \\};   \path[-stealth]     (m-1-1) edge node [above] {e} (m-1-2) edge node [left] {f} (m-2-1)     (m-1-2) edge node [right] {g} (m-2-2)     (m-2-1) edge node [below] {h} (m-2-2); \end{tikzpicture} \end{center} \end{document}   But, when I copy the code in a Beamer document, something is wrong, as the following code.  \documentclass{beamer}  \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \begin{frame} \begin{center} \begin{tikzpicture}   \matrix(m)[matrix of math nodes,row sep=2em,column sep=4em,minimum width=2em]   { A & B \\     C & D \\};   \path[-stealth]     (m-1-1) edge node [above] {e} (m-1-2) edge node [left] {f} (m-2-1)     (m-1-2) edge node [right] {g} (m-2-2)     (m-2-1) edge node [below] {h} (m-2-2); \end{tikzpicture} \end{center} \end{frame} \end{document}   Any idea? Am I doing something wrong?


Have multiple site accounts and enough reputation to qualify for the association bonus, but didn't receive it

Is it still a thing? I don’t think I’ve ever seen it.   Ask Ubuntu: 264 Meta SE: 81 Linguistics: 56 Area 51: 51 (spooky!) Super User: 33 Unix & Linux: 3 Stack Overflow | User Experience | Bicyles | Video Production | Music: Theory & Practice | Retrocomputing | Genealogy & Family History | Joomla: 1


After reading my ray optics chap, I am frustrated and cannot get an answer. As a concave mirror create real images, how can we see them on mirror? Now I know you will say it is an illusion, the image is in space. But then how am I able to catch it on camera? And when a school experiment is performed, they keep the screen on side and mirror in front. Then we are also able to see the image at both places (in mirror and on the screen). How is that possible if our eye imagines real images to be coming from mirror (without screen use) then if I place the screen in side I can see in that also, that means imgage in concave is not only forming in air but besides too?


Let f be twice continuously differentiable on [a, b] and f(a)=f(b)=0

Let $f(x)$ be twice continuously differentiable on $[a, b]$ and $f(a)=f(b)=0$. Show that there exists $c\in[a, b]$ such that $$\int_a^b f(x)dx=-\frac{f''(c)}{12}(b-a)^3 $$  I have tried using the Taylor expansion of $f(x)$ at $x=a$ and $x=x_0$ where $f'(x_0)=0$ (Rolle's theorem), but nothing seems to work. Any hint will be appreciated.


Can someone please explain how polynomials are vector spaces? I don't understand this at all. Vectors are straight, so how could a polynomial be a vector. Is it just that the coefficients are vector spaces? I'm really not understanding how polynomials tie in to linear algebra at all? I can do all the problems with them, because they are done the same way as any other vector problem, but I can't understand intuitively what I'm doing at all.


Files in folder:  a.j ab.jp abc.jpg abcd.jpeg   dir command results:  Command       Result (Files shown) ----------    -------------------- dir ?.*       a.j dir ??.*      a.j, ab.jp dir ???.*     a.j, ab.jp, abc.jpg dir ????.*    a.j, ab.jp, abc.jpg, abcd.jpeg   So we can see single ? it means "0 or 1 letter".  Now more dir command results:  Command       Result (Files shown) ----------    -------------------- dir *.?       a.j dir *.??      a.j, ab.jp dir *.???     a.j, ab.jp, abc.jpg, abcd.jpeg --> What is this?! dir *.????    a.j, ab.jp, abc.jpg, abcd.jpeg   In 3rd command why ??? is showing jpeg? Can you explain? Is this bug in cmd?


Best factor for determining the bettering of CPU

First of all, if my English is not good please pardon me.  Now the problem; when comparing many CPUs with each other, which factor is the best one? For example, there are many various types, like, core to due, dual core, pentium, core ix, and many many other flavors. When I'm at this bad situation I save myself by choosing the best one by their HZ unit . For example, when there are many varous CPUs I say most powerful one is that has bigger frequency unit. 2.66GHZ<2.88GHZ. Is it a true solution?


My current situation is:   One hard disk Dual boot Ubuntu 11.04 and Windows 7. Partitions:  100MB Windows System thingy 144GB Main Windows 160GB Ubuntu 4GB Swap 12GB System Restore stuff    Now I want to install an 80GB SSD and move Ubuntu to it. AFAIK I need to:   Shrink the 160GB Ubuntu partition to 80GB Copy it over to the SSD Change fstab to mount the SSD as /   How do I do the second? And what do I need to do about Grub?


Do I need a Schengen transit visa as a US Green Card holder?

I am travelling from  Washington DC to Copenhagen ( layover 4 hours ) then to Newcastle UK. Do I need a schengen visa? I have a green card and 5 year UK visa and am a citizen of India


How to install drush on 1 and 1 linux hosting for creating sub-theme for ZEN?


Modifying a generated list in Python 3.8 resulting in weird behavior

So I was trying to solve the N queens problem in Python, and I generated my chess board using the following statement, in my Solution class: self.board = [[0] * self.dimension] * self.dimension  where dimension is initialized to the value that defines the number of Queens, and hence the size of the chessboard After obtaining a list of possible positions ( a list of tuples, held in the class variable queen_positions, where each tuple holds a position on the board), I attempted to print the solution using the following:     def print_board(self):     """     Prints the board     """     for i, j in self.queen_positions:         self.board[i][j] = 'Q'     print(self.board)  And much to my horror, instead of updating the specific coordinates specified by the indices, it also updated additional coordinates. For instance, for position (0,1), after the update, my board looked like this: [[0, 'Q', 0, 0], [0, 'Q', 0, 0], [0, 'Q', 0, 0], [0, 'Q', 0, 0]]  I noticed that if I did not generate the board at the beginning, but hard coded it as a 4x4 list, this does not happen. From IDLE board = [[0,0,0,0],[1,1,1,1], [2,2,2,2], [3,3,3,3]] for i,j in [(1,1),(2,2)]:     print(f"i is ${i} and j is ${j}")     board[i][j] = 'Q' >>> board [[0, 0, 0, 0], [1, 'Q', 1, 1], [2, 2, 'Q', 2], [3, 3, 3, 3]]  What am I missing here?


Is the property "being a derivative" preserved under multiplication and composition?

Since differentiation is linear, we therefore have that if $f, g: I\to \mathbb{R}$ is a derivative (where $I\subset \mathbb{R}$ is an interval), then so does their linear combination. What if we consider their multiplication and composition?  Due to the forms of the product rule of differentiation of product function and chain rule of differentiation of composition, I highly doubt their product or composition necessarily is still a derivative, but I cannot construct counterexamples.


I'm looking for Minecraft language files to a resourcepack, but I only found the English US one. Where are the another ones?


Is there another expression for "cheat on" or "have an affair"?

Is there another word for "cheating on somebody"? Instead of using " have an affair with somebody", could you help me come up with another word for it ? Can I say " he has a mistress or concubine or lover"?


Spivak, Calculus on Manifolds, Problem 1-30

Let $f : [a,b] \to \mathbb R$ be an increasing function. If $x_1,,\ldots,x_n \in [a,b]$ are distinct, show that $\sum_{i=1}^n o(f,x_i)<f(b)-f(a)$.  Definitions:   $o(f,x_i) := \lim_{\delta \to 0} [M(x_i,f,\delta)-m(x_i,f,\delta)]$ is the oscillation of $f$ $M(x_i,f,\delta) := \sup\{f(x) \mid x \in A, |x-x_i| < \delta\}$ $m(x_i,f,\delta) := \inf\{f(x) \mid x \in A, |x-x_i| < \delta\}$   My work:  Since $f$ is increasing, $x_i-\delta \le x \le x_i+\delta$ implies $f(x_i-\delta) \le f(x) \le f(x_i+\delta)$. So $M(x_i,f,\delta) \le f(x_i+\delta)$ and $m(x_i,f,\delta) \ge f(x_i-\delta)$. So $M(x_i,f,\delta)-m(x_i,f,\delta) \le f(x_i+\delta)-f(x_i-\delta)$.  I am not sure how to proceed next. I have to choose some $\delta > 0$ that will work but I'm not entirely sure. Any hints will suffice.


I'm trying to get to grips with JavaScript for more than just simple JQuery DOM manipulation and something is confusing me.  I've been looking through sample code and seen the following two patterns in the same sample which seem to both be equivalent...  var Car = function(){} var c = new Car();   and  function Van(){}   var v = new Van();   Is there any difference between them? Why would you use one over the other?


WiFi connection keeps failing on BCM4313 [14e4:4727 rev 01]

I'm a Linux noob and I can't get my WiFi BACK to work properly. THE PROBLEM: Around a week ago, the WiFi on my notebook started to fail, so, as the problem persisted, I've just wiped it with a fresh UBUNTU 20.04.1 LTS, but the problem persists: Internet connection works for a while, but navigation periodically stops working for around 1 minute, then gets back to normal. NOTES:  The problem happens exclusively on that machine. The problem doesn't occur when I plug in a USB WiFi adapter. Anything I "ping" to responds without packet loss, during the problem, at the same time I can't access them though the web browsers (Firefox and Chrome). Channels are fixed to 20MHz on the router.  DATA I'VE COLLECTED: sudo lspci -v 12:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter (rev 01) Subsystem: Dell Inspiron M5010 / XPS 8300 Physical Slot: 0-1 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at fbc00000 (64-bit, non-prefetchable) [size=16K] Capabilities: [40] Power Management version 3 Capabilities: [58] Vendor Specific Information: Len=78 <?> Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [d0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Virtual Channel Capabilities: [160] Device Serial Number 00-00-9d-ff-ff-c3-1c-65 Capabilities: [16c] Power Budgeting <?> Kernel driver in use: bcma-pci-bridge Kernel modules: bcma  rfkill ID TYPE      DEVICE      SOFT      HARD 0 wlan      phy0   unblocked unblocked 1 bluetooth hci0   unblocked unblocked  WHAT I HAVE TRIED: -1- Following  thread. sudo apt install linux-firmware sudo reboot sudo apt install firmware-b43-installer sudo modprobe -r b43 sudo modprobe b43     sudo rfkill unblock all sudo reboot  -2- By impulse I tried to use the "Software & Updates > Additional Drivers" to install the "Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)"; Not only the problem persisted, but also I couldn't install anything from the Ubuntu Software application until I reinstalled the OS again, as an error message was shown. -3- By despair Disabled IPV6; No difference. I'd really thank If someone can help me to solve that problem.


Dividing polynomial $f(x^3)$ by $x^2+x+1$

Given two polynomials with real coefficients $g(x)$ and $h(x)$.  Additionally,  $x^2+x+1$ is a factor of $f(x^3)= h(x^3)+xg(x^3)$.  Prove that $x-1|h(x)$ and $x-1|g(x)$  I have tried to solve it by doing this;  $(x-1)(x^2+x+1)|(x-1)(h(x^3)+xg(x^3))$  then; $(x^3-1)|(x)(h(x^3)-g(x^3)) + (x^2)g(x^3) - h(x^3)$  consider degree of $3k, 3k+1, 3k+2$ separately, I got;  $(x^3-1)|(x^2)g(x^3)$ and $h(x^3)$  Lastly, $(x^3-1)|g(x^3), h(x^3)$ and so on finish proving.  I wonder, is it correct to separate three cases of degrees in this problem?


Reheated half a cherry pie in the oven. Accidentally left it in said oven overnight

Is it still safe to eat? It was cooked the other day, reheated last night, and left in the oven until 4:30, turned off of course.


Fastest external hard drive interface nowadays

I run virtual machines from an external hard drive from my Mac (internal SSD is not big enough for what I do).  My question is:  Which would the fastest external interface be nowadays assuming I have the fastest SSD hard drive on it?   USB-3 USB Type C Thunderbolt eSata Other?   What would you guys recommend?   Thanks!


I have a MacBook Air and I lost (forgot) my Admin (root) password

I have lost or forgotten the root password.  is there a way to recover it or reset it?


I need help solving this integral: $\int_0^1 \frac{\ln{\left(x+\sqrt{1-x^2}\right)}}{x} \ dx = \frac{\pi^A}{B}$

I need help with this problem:  $$\int_0^1 \frac{\ln{(x+\sqrt{1-x^2})}}{x} \ dx = \frac{\pi^A}{B}$$ Find $A + B$.  I've tried all the analytical approaches I can think of, so I've been exploring series solutions but haven't come up with anything that works. My most promising attempt is as follows: Substitute $x = \sin{(\theta)}$, $dx = \cos{(\theta)} \ d\theta$, thus the integral becomes $$\int_0^{\frac{\pi}{2}}\frac{\ln{(\sin{\theta}+\cos{\theta})}}{\sin{\theta}}\cos{\theta} \ d\theta$$ Multiplying by $\dfrac{2}{2}$ leaves $\dfrac{1}{2}$ outside the integral and squares the inside of the natural log: $$\frac{1}{2}\int_0^{\frac{\pi}{2}}\frac{\ln{(1+2\sin{\theta}\cos{\theta})}}{\sin{\theta}}\cos{\theta} \ d\theta$$ I then used the series representation of $\ln{(1 + x)}$ and multiplied each term by $\dfrac{\cos{\theta}}{\sin{\theta}}$. I then integrated each term of the series from $n = 1$ to $n = 5$ (using Symbolab) but didn't get a result that lined up with any series representation for the form $\dfrac{\pi^A}{B}$ I know that there are a lot of series representations for the form $\dfrac{\pi^A}{B}$, which is why I'm using this approach. I'm finishing calc 3 just for reference of my skill level. This was an honors project question that was assigned to me a while ago, and I never solved it, but it's been bothering me ever since. Can I get some help solving it?


how I can download and install C++ in Ubuntu?

I am a mechanical engineer and I have Ubuntu 14.04.3 LTS on my Laptop. I need to install C++ program. How I can do that ?  Help me please


Check the statements about irreducibility

We have the ring $R$ and the polynomial $a=x^3+x+1$ in $R[x]$. I want to check the following statements:  If $R=\mathbb{R}$ then $a$ is irreducible in $\mathbb{R}[x]$. This statement is false, since according to Wolfram the polynomial has a real solution, right? But how can we calculate this root without Wolfram, by hand?  If $R=\mathbb{Z}_5$ then $a$ is irreducible in $R[x]$. The possible roots are $0,1,2,3,4$. We substitute these in $a$ and we get the following: \begin{align*}&0^3+0+1=1\neq 0\pmod 5 \\ &1^3+1+1=3\neq 0\pmod 5 \\ &2^3+2+1=11\equiv 1\pmod 5\neq 0\pmod 5 \\ &3^3+3+1=31\equiv 1\pmod 5\neq 0\pmod 5 \\ &4^3+4+1=69\equiv 4\pmod 5\neq 0\pmod 5\end{align*} So since none of these elements is a root of $a$, the statement is correct, right?  If $R=\mathbb{C}$ then $a$ is irreducible in $R[x]$. This statement is wrong, because from the first statement we have that $a$ is reducible in $\mathbb{R}[x]$, and so it is also in $\mathbb{C}[x]$. Is this correct?  If $R=\mathbb{Q}$ then $a$ is not irreducible in $R[x]$. Since this is a cubic polynomial, it is reducible if and only if it has roots. By the rational root test, the only possible rational roots are $\pm 1$. Since neither of these is a root, it follows that $a$ is irreducible over $\mathbb{Q}$, right?  If $R=\mathbb{C}$ then $a$ has no root in $R$. This statement is wrong, since from statemenet 3 we have that $a$ is reducible in $\mathbb{C}[x]$ and so it has roots in $\mathbb{C}$, or not?


Cant boot win7. Boot loader installed on SSD

I have 500gb hdd and 32gb SSD on my ASUS laptop UX32V  On HDD there was WIN7  On SSD I just have installed Ubuntu (/,/home,/swap and boot partition)  After all I realized that I have made a bad choice to make a boot partition on SSD because now i can boot only Ubuntu.  I have installed win7 recovery tool on my USB. When I run it i have to select os which I want to repair but in selection window win7 doesn't show up.  Can I reinstal boot loader to my HDD? what should i do?  > > karolis@karolis-UX32VD:~$ sudo lshw -C disk [sudo] password for karolis:    *-disk                   >        description: ATA Disk >        product: Hitachi HTS54505 >        vendor: Hitachi >        physical id: 0.0.0 >        bus info: scsi@0:0.0.0 >        logical name: /dev/sda >        version: GG2O >        serial: TE95113QKWMLSP >        size: 465GiB (500GB) >        capabilities: partitioned partitioned:dos >        configuration: ansiversion=5 sectorsize=4096 signature=957a0691      *-disk      description: ATA Disk    product: SanDisk SSD i100    physical id: 0.0.0    bus info: scsi@1:0.0.0    logical name: /dev/sdb    version: 11.5    serial: 121600103561    size: 29GiB (32GB)    capabilities: gpt-1.00 partitioned partitioned:gpt    configuration: ansiversion=5 guid=a8636661-170c-476f-81b8-e2d39c529c61 sectorsize=512       *-disk      description: SCSI Disk    product: xD/SD/M.S.    vendor: Generic-    physical id: 0.0.0    bus info: scsi@6:0.0.0    logical name: /dev/sdc    version: 1.00    serial: 3    capabilities: removable    configuration: sectorsize=512  *-medium       physical id: 0       logical name: /dev/sdc


How can I install an old version of Google Chrome

I have a specific requirement (probably silly!) for testing a browser of Chrome. I realize this requirement isn't the most logical, but politics being what they may I'd like to know the technical workaround.  I need to test a site in version, let's say, 28 of Google Chrome. Obviously Google runs a silent updater which can be disabled, but at this point they don't (to my knowledge) release old archives of the MSI installers (which I can easily use to reinstall and force a no-update option for testing). If we can get this working on a single instance then there's a possibility that a virtual machine or some other workaround will give us an easy restore point to meet this test.  If anyone has a good idea of where to start here that would be amazing.  I've already floated the "why are we doing this question?" and the answer is that it is part of the requirements so we need to make a best effort.  UPDATE:   FileHippo appears to only archive the online installer (automatic update)  OldApps doesn't archive Chrome anymore  OldVersion doesn't appear to have any Chrome Archives   UPDATE 2:  - The accepted answer's server is the correct solution here at this point in time. Basically speaking you're looking for the full install (30 or so MB). If you have an 800K file it is the online installer which automatically updates.


What weapons and armor can a Shield Guardian use?

Shield Guardians make two fist attacks at +7, are size large, strength 18(+4), CR7, and have an intelligence of 8. They can be commanded by the owner of their Master’s Amulet.    Can a Shield Guardian use weapons?  If so, at what proficiency? (i.e. does it only use it’s ability bonus or does it have a proficiency bonus for being CR7.) Could it use a weapon in each hand? Is there any armor beside shields that could fit - and if so - would they even have any effect?   Note: We should clarify that we are considering this in the context of Adventurers League. This is a slight variation on the question  because those answers suggest that for the DM’s creatures it is the DM’s call. Whereas Shield Guardians are treasure owned by PCs and the proficiencies would be logged on an AL log. Would this mean the first DM chooses the proficiencies of the Shield Guardian and that’s what gets logged? Or does every DM make a ruling every game? Is there perhaps a more generic guideline that applies for what weapons and armor are used and at what proficiencies?


How can I start auto-completion for algorithm package in TeXstudio

As shown in image, I have checked algorithm.cwl, and I am sure I have \usepackage{algorithm} in my source, but the command related to this package cannot auto-completed. Who can tell me why, thank you.


This post is a Q&A style post on this problem from the beginning of Ring Theory: Prove $0a=0$ in a ring $R$.


Right-Click menu awareness on Web Application

The web application I am building has a custom right-click menu. I'm concerned that the user might not find this menu as normally right-clicking will only display the default browser's menu. Is there a standard way to make the user aware of custom right-click menus? Is there another way to show this information?


I am trying to replicate a caption like the one below.  Thus far I have made the following modifications:  \usepackage{caption} \captionsetup[table]{labelsep=newline, labelfont=bf, singlelinecheck=off, justification=justified}  \caption{Table title.\newline \indent Table subtitle.}   However \indent does not seem to work in caption, so how do I get a single line indented in my caption?  Thank you for your help.


Show that no two of the spaces $(0,1), \ (0, 1], \ [0,1]$ are homeomorphic.

I want to show that no two of the spaces $(0,1), \ (0, 1], \ [0,1]$ are homeomorphic, with the hint: what happens if you remove a point from each one of these spaces.  No idea where to begin, except that it concludes a chapter on connectedness.  All these spaces are all in the subspace topology of the usual topology on $\mathbb{R}$.  Edit  (Thanks @Chris Culter)  So far what I've got is: Let $A = (0,1] - \{1\}$.  If $f:(0,1] \rightarrow (0,1)$ is a homeomorphism, then $f$ restricted to $A$ is a homeorphism onto a subset of $(0,1)$ with one and only one point removed.  But any removal of a point in $(0,1)$ results in a disconnected space, while at the same time $f_A$ ensures that the space is connected, it being a continuous image of a connected space $A$.  Therefore there is no continuous bijective map between the two spaces let alone a homeomorphism.  A similar agument shows that $[0,1]$ and $(0,1)$ are not homeomorphic.    I can't seem to show that $(0,1]$ and $[0,1]$ are not homeomorphic using this method though.


Margin in Microsoft Word doesn't match in Print Preview or Printed version

We have a document template that we're building that looks like this:        When we click Print, the Preview window appears, and we see (note the additional whitespace at the top and left of the blue sidebar):        This Preview is what we see on the physical paper copies as well. Is there a setting that should be changed to prevent this? The left bar and the line below "Document Title" are both in the header, but "Document Title" is not.


Evaluate $\sum_{k=0}^{n} {n \choose k}{m \choose k}$ for a given $n$ and $m$.

How do I evaluate $\sum_{k=0}^{n} {n \choose k}{m \choose k}$ for a given $n$ and $m$.  I have tried to use binomial expansion and combine factorials, but I have gotten nowhere. I don't really know how to start this problem.  The answer is ${n+m \choose n}$. Any help is greatly appreciated.  EDIT: I'm looking for  a proof of this identity.


How to disable app installation on android?

Hello I downloaded an app that allows me to block google play, however I can still install apps through play.google.com via another device. Is there a way I can disable this? The app I'm using is called AppLock.


Will forms detect fields that are created dynamically via jQuery?

Background Information  We are using opensource code to manage widgets. One of the pages allows users to edit data in a table that has potentially hundreds of rows. For each row, it's currently populating a drop down box with hundreds of values. As you can imagine, this takes a long time and is not necessary. We won't be editing all rows at a time.   So I've been trying to tweak the code to prevent this from happening. I've changed all the drop downs in the rows to DIV tags and created a new button for them to EDIT a row.  When the user clicks on EDIT, the DIV change to a dropdown menu.  So far so good.  The page loads now in under a second vs over 15 minutes.  Problem  The problem is that when the user clicks on SUBMIT (for that specific row) to save their changes, the DIV field that I've been playing around with is not included in the POST data.  So specifically, the field looks like this when the page loads:
canada
	   but after you click on an edit button and the jQuery that's triggered is done running, it looks like this (as per the F12 developer tool, and NOT view source):       <select tabindex="1" id="location_id" name="location_id">         <option value="0">-- NONE --</option>         <option value="15" style="font-weight: bold">canada</option>         <option value="16" style="font-weight: bold">usa</option>          </select> 	   This drop down is created by cloning an existing drop down menu when the user clicks on the EDIT button for that specific row. (I'm cloning because the existing dropdown has all the values in it that I need.)  I need the form data to include a value of "location_id=15" for the above mentioned example.  What I've checked so far:    I've made sure that the field in question is inside the form tags.  Alternatively, I guess I could create empty drop down controls in each row of my table...and initially set them to hidden.  Then via jQuery, if the user wants to edit the row, I could change the status to visible, and somehow copy all the data from the master dropdown.    Questions  Should the form be able to 'see' fields that are created dynamically by jQuery?  If so, what else could I be doing wrong? If you want to see the full code, let me know and I will paste bin it for you.


There are various features that affect "targets within X feet".  For example, the 's  table (PHB, p. 104) has the following result on a d100 roll of 83-84:     Each creature within 30 feet of you takes 1d10 necrotic damage. You regain hit points equal to the sum of the necrotic damage dealt.   Do you take this damage as well and then immediately heal it? (Thanks to user @RallozarX for pointing out that this does matter, say if they are concentrating on a spell)    Below are some examples I've found arguing that you are a creature within X feet:  There is the  cantrip (SCAG, p. 143):     [...] Each creature within range, other than you, must succeed on a Dexterity saving throw or take 1d6 force damage [...]   Which seems to imply that you do count as "a creature within range".  Then there is the question "", and  states that "you are always within 30 feet of yourself".    Below are examples I've found arguing that you are not "a creature within X feet":  The Wild Magic Sorcerer's Wild Magic Surge table result on a d100 roll of 95-96:     You and all creatures within 30 feet of you gain vulnerability to piercing damage for the next minute.   This seems to imply that you would not be considered "a creature within 30 feet".  Then there is the  spell (; XGtE, p. 157), which states:     [...] Hit or miss, the shard then explodes. The target and each creature within 5 feet of it must succeed on a Dexterity saving throw or take 2d6 cold damage [...]   This too seems to imply you do not count as "a creature within 5 feet".  There is also the question "", and  quotes :     The splash damage of lightning arrow affects each creature within 10 ft. of the target, not the target.   Crawford :     If I say, "Each person within 5 feet of me gets a cupcake," an idiomatic reading of that English doesn't lead to me getting a cupcake.     Do you count as "a creature within X feet" of yourself?


I encountered this question and I need some assistance to solve it.  $T$ is a linear transformation from $V \to V$  We are given that $T^2 = T$  Show that $T$ can be diagonalized.


Consider the following scenario please:   I see a question and think I have a good answer or comment. I post my answer or comment and move on happily. After couple of hours I see comments that my answer is bad because this and that and it's really bad - I didn't think enough before posting.   The question is: should I delete my post, or leave it be so that people won't repeat my own mistake?


How to make a for cicle changing regex at each iteracion in javascript?

Hi i am trying to change the following regex: const usdRate = /(currency="USD" rate="(.*?)("))/.exec(line)[2]  For each cicle i want to change USD to EUR, JPY and so on. example: line has an xml line loaded into it. const array = ['USD, 'EUR', 'JPY'];  for(let i=0, i<=2; i++){       console.log(/(currency="+array[i]+" rate="(.*?)("))/.exec(line)[2]);  }  I tried many ways to send the current text in a array i want into the regex expression but nothing works. Do you know how can i change the regex expression in a for cicle on each iteraction?


We roll a dice until we get a $5$. What is the expected value of the smallest dice rolled?  I am looking for a thought process/an idea. Seeing a full solution would be great as well.  Calculating the probability of obtaining $1,\dots, 5$ is what I seem to struggle with. I thought it is simply a Bernoulli distribution, namely that the probability of getting $k$ in the first $i$ throws is simply $1-\left (\frac{5}{6}\right)^{i}$. Intuitively, the more I throw, the more likely I am to get a $1$ or $2$ so these numbers should have a greater weight than $3,4,5$. I can't seem to express this mathematically though.


ORA-01555:Snapshot too old error during execution of expdp command

After performing expdp command in production database (Oracle 11g - linux):  expdp abc/123 DIRECTORY=data_pump DUMPFILE=SA10_%u.dmp LOGFILE=SA10.log  TABLES="abc"."/1FE/019" PARALLEL=4 CONTENT=DATA_ONLY COMPRESSION=ALL  EXCLUDE=statistics STATUS=60   it take more than 13h to finish the export and it was completed with this error message:  ORA-31693: Table data object "abc"."/1FE/019" failed to load/unload and is  being skipped due to error: ORA-02354: error in exporting/importing data ORA-01555: snapshot too old: rollback segment number 56 with name  "_SYSSMU56_1611713889$" too small    Anyone please advice how can I solve this error?  P.S. I'm not allow to change retention policy!


how to use these hash functions in python?

In this article , specifically in the section 4.1 of the initialization phase,the following cryptographic hash functions have been chosen: \begin{align} h_1&:   \mathbb G\to\mathbb Z_q^*\\ h_2&:  \{0,1\}^*\times\{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\ h_3&:  \{0,1\}^*\to\mathbb Z_q^* \end{align} where G is an additive group with order q. Can anyone explain to me what's the meaning of their notations and how to use them for example in SHA algortihm? Or maybe give me a simple example with real inputs?


Can I turn off the new item notification?

Once in a while, I get new trading cards from playing games. I am really not into the whole Steam trading card thing, and the constant green notification icon in the top right corner, both in the client and on the web interface, annoys me to no end. Is there a way for me to turn off the notification? I don't care if I keep getting cards or not, but I'd like to not have that green thing there every time I open Steam.


Opening MPK file without ArcGIS Desktop?

Is there any way to open an ArcGIS map package (*.mpk) file with MapInfo?  I do not have access to ArcGIS Desktop.


Why we can operate dx just like a real number in integration?

In physics, we can probably write things like this: ds=vdt. And then we can substitute the expression of ds into the integrand.In mathematics,this is known as integration by substitution. However,during my math lesson, my teacher told me that dx was only a symbol.Then, why can we operate ds like a real number(if dx is not a symbol, it should be an infinitesimal  quantity.This differs from real number)? What on earth is the real meaning of dx in integration? Why integration by substitution is just like changing dx to another expression(by exactly following the calculation of real number)? Especially in physics, we actually do not need to consider the phrase "integration by substitution" , but just simply think about the physical meaning of ds=vdt,dm=pdV,dW=Fds ect. and do the substitution. Why we can do these incredible things ?I am very perplexed. SOS!   AND THX A LOT FOR YOUR HELP!


How to find out size of session in ASP.NET from web application?


Limit of the sequence $a_n=\sqrt[n+1]{(n+1)!}-\sqrt[n]{n!}$

Find the limit of the sequence $a_n=\sqrt[n+1]{(n+1)!}-\sqrt[n]{n!}.$  The limit is supposed to be $e^{-1}$ and there are a couple of posts in MSE proving it. But here is a proof I encountered showing the limit is $1.$ Please tell me what's going wrong here.      Proof:  We can write $a_n=\sqrt[n]{n!}(b_n-1),$ where $b_n=\frac{\sqrt[n+1]{(n+1)!}}{\sqrt[n]{n!}}.$ Hence $$a_n=n\cdot\frac{\sqrt[n]{n!}}{n}\cdot\frac{b_n-1}{\ln{b_n}}=\frac{\sqrt[n]{n!}}{n}\cdot\frac{b_n-1}{\ln{b_n}}\cdot\ln{b_n^n.}$$   But $\lim \limits_{n\to \infty}\frac{\sqrt[n]{n!}}{n}=e^{-1},$ so $b_n\to1$ as $n\to \infty.$ On the other hand, $$\lim \limits_{n\to \infty}b_n^n=\lim \limits_{n\to \infty}\frac{(n+1)!}{n!}.\frac{1}{\sqrt[n+1]{(n+1)!}}=e.$$   Also $$\lim \limits_{n\to \infty}\frac{b_n-1}{\ln{b_n}}=\lim \limits_{n\to \infty}\frac{1}{\ln{[1+(b_n-1)]^{1/(b_n-1)}}}=\frac{1}{\ln e}=1$$         And the author goes on to say that the limit is $e^{-1}.$ But doesn't it say that the limit is $1?$ I must have overlooked something so obvious.


"driver contact details" vs. "driver's contact details"

You’ll receive your driver contact details.  You’ll receive your driver's contact details.   Can you tell me please which of these sentences is correct? Is 's necessary or not in this context?


Extend Network by Connecting a Wireless Router to a Wired Router?

I came across  question and it seems similar, however I dont have an XBOX and its not D-Link specific as both of my network devices are D-Link.  So, I figured I'd ask.    I just purchased a D-Link DIR-825 wireless router and I am hoping that I can "extend" my LAN by connecting it to my existing D-Link DGL-4100 wired router.    I dont know if I worded that correctly but basically, I'd like to be able to connect an Ethernet cable from one of the ports on the 4100 (wired) to one of the ports on the 825 (wireless and wired) and gain 3 extra wired ports as well as serve wireless in my house.  Currently, the 4100 is set up as 192.168.1.1 and is the DHCP server for the network.  There will be two iPhones, a laptop and an iMac connecting to the wireless and three other desktops plus a printer on the wired.  If the answers for my situation are the same then I shall delete this question and refer there.


Where do you put a document you want as link on your apache website on Ubuntu?

Since there are no drive letters in Ubuntu, where do you put a document you want as link on your Apache website on Ubuntu?   For example, you install Apache2 on Ubuntu Server, you go to /var/www/html/index.html to create your website. On your website you have an option for Contacts and About us which you want to be clickable. Where do you put the document to link to this option?


Which charger to get fast charging of iPhone XR?

I'm about to buy an iPhone XR. Technical specification says it's possible to charge 50% of the battery in 30 minutes. However, seems that the provided 5W charger is not able to do that. I've been in the Apple Store and they said I need an iPad charger, but which one?  When a search for "charger" and filter for "XR model," I get . Is it the correct one?


How to compute F-statistics for each features of regression models in glmnet?

I have learned lot's of Lasso regression models(20000) using glmnet. I need to compute somehow test statistics for each features of models. like F-statistics,...  Can I do this using bootstrapping ? if yes, how is it possible ?


Does client OS verify packages downloaded from Ubuntu main repository?

Packages seem to be downloaded over http from the Ubuntu main repository, so I was wondering whether the client's OS verifies the packages once downloaded? If so please could someone outline the different steps in this process? Would be much obliged if you could use apt-get flac as an example! When exploring -  I can see that there is a DSC file for each version of the package. Within this are the hashes of the XZ archives for the release, which is then in turn signed by one of the maintainers.


Ambiguous plurality ("One or more items was/were skipped")

Given a sentence in this format, which would be correct?     One or more items was skipped.      One or more items were skipped.   I'm leaning towards the latter, but maybe it doesn't matter? (Hey, that rhymes!)


Is there a way to create linked 'vanishing cabinets', or an effective alternative, without homebrew?

I'm about to start running a homebrew seafaring campaign in which my PC's will spend the vast majority of the narrative travelling on a boat, far from the mainland, on a diplomatic mission to explore a newly discovered archipelago.  While they are geographically distant from their homeland and their country's authorities (initial quest givers), and constantly on the move,  I would nonetheless like there to be some limited channel of communication between the ship and the mainland - basically, a way that they can send progress reports from the ship back to the government and receive fresh commands / periodic updates on what's happening at home.  The way that I've hit on doing this is through something like a , one of which is on the boat and one on the mainland (inspired by Harry Potter). Objects (in this case written documents) which are placed in one cabinet disappear from that cabinet, when it is closed and appear in the other. These cabinets would be small enough to prevent people travelling through them.  I currently plan on homebrewing this but, can such an effect, or something very similar to this, be achieved through any official spells or items?  Solutions should take into account:   The boat will be constantly moving - the mainland will not know the PC's location in advance to send things to them. There will not initially be any high level magic users on the boat - though there may be high level NPCs on the mainland. The PC's will start the game at a low level and I don't want to populate the boat with party-allied NPC's that are more capable than the PC's themselves are. Otherwise why would such an NPC stay on the boat whenever they make landfall, rather than boosting the PC's landing party? my preference would be for a system that transports actual physical objects (such as written documents), rather than provides some form of psychic connection.


I have an error after installation of Ubuntu 12.04 in display

display is red totally and it shows that out of range.I had installed ubuntu with wubi


Will I miss anything if I replace my aging DSLR with a bridge camera?

This is my first question in /photography. I'm a very amateur photographer, doing things wrong and by eye with lots of trial-and-error all the time.  I currently own a reflex Nikon D70 my uncle gave us after he bought a better one. It has some nice settings, and he bought a a Nikkor 28-80mm F/3.5-5.6 zoom lens for it. It behaves nicely, but it's getting old (it has those old cartridges before SD cards existed) and every new charge takes longer than the last.  I'm planning to upgrade to a better camera, and there are some neat offers on a nearby superstore (MediaMarkt), this one catching my eye:  Sony DSC-H400 63x, Sensor Super HAD 1/2/3 CCD 20.1MP -> for less than 300€ taxes included  I don't have any type of extra information aside from that, all I can get from the official site is clinical data from other cameras that I suspect it's not 100% accurate, and there's no photography expert on the store to ask.  The common things I use my D70 for are: taking pictures of scenery (castles, towns, forests, waves hitting rocks, etc...), nearby (<5m) persons and objects, and well, things where I want to save a memory in digital format, not for professional purposes at all.  Being that my objective is to have a decent, good-zooming (superzoom looks awesome), amateur (but with manual settings) camera, is this Sony a good replacement? Will I miss any features? Is there any better, similarly-priced alternative you know of?  Basically, I want to know whether I will get better quality photos than I currently do, given the examples, with any averagely-priced bridge camera similar to that Sony, and if it's worth it.  examples of current camera results  Full zoom-out of town at night, bad quality I know; notice the pink blur at the left.    Maximum zoom on that pink blur from almost the same spot:    Daylight, cloudy, modified with Adobe Lightroom, scenery:    Same day, same beach, different settings:    Same day, same beach, rocks:


What is the difference between 'make decision' and 'take decision'?

What is the difference between make decision and take decision? When to use the one and when the other?


How to recover data from NTFS partition that was made into a Swap partition?

I have extremely important stuff on my windows partition which during the ubuntu 10.10 installation,when it said that I should create something called swap space, I selected it to be a swap space (without even knowing what it actually meant)  The Grub2 doesn't show up so I don't get a choice to boot Ubuntu or Windows. I don't get my windows partition as a removable device in Ubuntu either. When I go to disk utility and select the sda2 (i.e.. my windows partition) and click edit partition and select HPFS/NTFS for the type and tick bootable and click OK the small processing sign keep on rotating on the bottom right of the sda2 in the chart and after about 10 to 15 minutes it gives an unknown error and thus, I am still unable to use my windows.  I am even worse than a beginner who doesn't know a thing about Ubuntu so please be patient and help me out.


How do I find duplicate values in a table in Oracle?

What's the simplest SQL statement that will return the duplicate values for a given column and the count of their occurrences in an Oracle database table?  For example: I have a JOBS table with the column JOB_NUMBER.  How can I find out if I have any duplicate JOB_NUMBERs, and how many times they're duplicated?


Can I transition from Ortho to Perspective camera?

I'm preparing for a short animation for this week. I would need to start the animation using an Orthographic Camera and then transition to a Perspective camera. Is it possible in Blender and how to do this? Or should I cheat and use a really long focal length and shorten it to achieve a similar effect?  I have a flat logo, comprising of a black circular background and a few white circular "stars" on top. The stars are connected. It looks like a little network icon. I want the logo to "become" 3D, by transitioning it from full to no opacity, and at the same time transitioning the opacity on a 3D duplicate of this network. So it sort of comes out of the logo. That's when I need to transition from Orthographic to Perspective. It needs to be orthographic in the beginning because it needs to line up with the logo. Then once it "comes out" it can be a regular 3D perspective.  So, does it make sense, is this possible to do?


Today I heard the word "lest" in our daily chat with some teammates and I even thought it was a typo. As far as I understand, it means 'avoiding', but can I use it normally in my daily speaking ? I read some examples, but none of them from daily life:   Large shell collections are built up by exchanging duplicates with other collectors. Hence it is wise to take a number of specimens. A notebook should be carried in which records may be made at the time of collecting, lest important data be forgotten.


I'm trying to make a desktop launcher for Matlab in order to run it from the desktop. This is how my desktop entry looks like:  #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Icon[en_AU]=/home/userA/Pictures/matlab.png Name[en_AU]=Matlab Exec=/media/d/usr/local/MATLAB/R2014b/bin/matlab Name=Matlab Icon=/home/userA/Pictures/matlab.png   But when I run it, matlab start page appears for a second then disappears, this happened to me before when trying to run it from the folder itself, and I figured out that I need to sudo,  so I need to modify my desktop entry exec command so that it runs matlab without asking everytime for password. So if anyone could please advise


How do I get VLC Player or GNOME MPlayer to run DVDs I put into my computer?

I am using Lubuntu 13.04, I installed Lubuntu restricted extras back when I installed it, and It still didn't work? I put in a few choices of DVDs, She's the Man, Wreck it Ralph, etc. If I do get this fixed, will I be able to play bluray DVDs? I was able to on Xubuntu. It could be due to my CD Drive, or DVD drive not picking up on Lubuntu. I'm not sure..  Thank you!


I have a windows 10 laptop at work. It's set up to show default icons on the desktop from the C:\Users\Public\Desktop folder. I hate that these icons clutter up my workspace but I have no privilege to delete them, and I think even if they were deleted, some group policy would recreate them sooner or later.  How can I hide or remove them?  Note: In File Explorer, I have allowed to show hidden files and I want to keep it that way.


question about my pixels resolution for my poster

I have a question about pixels. I made a background for a poster for a party. Put i think when i make the picture larger you will see a lot of pixels. Can someone help me to fix this? If you can help me it would be wonderful!    I made this in photoshop cs6.  thx jenten


What is the expectation of the following random variable

Let $X_1,X_2,X_3,\ldots $ be an i.i.d. sequence of uniform random variables over $[0,1]$. Define $$N= \min \{n \geq 1:X_1+\cdots+X_n>1\}$$ Find $P\{N>n\}$ and compute $E[N]$.


How to make an already live Ubuntu pen-drive, a persistent one?

I have created a USB flash drive with the latest Ubuntu version, but it is not persistent. How can I make it persistent without repeating the whole process?


As I understand it Newton's Laws imply that space is relative, as the laws of physics are the same in all inertial frames and as such there is no way, even in principle, to distinguish a frame that is truly at rest (absolute space). Hence the concept is physically meaningless, and the positions of (and distances between) physical objects, events, etc. are relative to the frame in which one is observing them from. Advancing on to Special Relativity, by postulating that the speed of light (in vacuum) is constant in all frames of reference, we are forced to conclude that time is relative also (as if it weren't then different observers would observe a different speed of light (in vacuum)). This leads to the result that the concepts of space and time are no longer completely separate and independent of one another and instead intertwined (as an event that occurs at rest over some time period in one frame, will occur over some spatial interval and a different time interval in another frame). Hence they should be considered as should be considered as a single entity, called spacetime.  Sorry for the waffling so far, just want to check that my understanding is correct up to this point?!  My main question is, given that space and time are (individually) relative quantities, is spacetime itself relative, or can it be considered absolute (as after all, it is the mathematical space of all possible events and exists independently of the physical events that occur within it)?


What is the best way to take screenshots of a Window with C++ in Windows?

What is the best (easiest) way to take a screenshot of an running application with C++ under Windows?


How to loop through a duplicate row and concatenate value column

I have a sql query which i managed to filter joining different tables, Below  NoOfCounts - Duplicate count of same Question in a Form having different Answer NoOfRowsPerAnserId - Used a Rank Partition by and order by AnswerId  My resultset looks somewhat like this now,  What I expect ( I just omitted other column but it can be there if this is not possible)  Query I have CREATE Table #myData ( Id INT Identity (1,1) ,NoOfCounts INT ,NoofRowsPerAnswerId_RankFunction INT, AnswerId INT, Value NVARCHAR(256) , FormId INT, QuestionId INT, AnserNameofItem NVARCHAR(256), DesiredValue NVARCHAR(256))  INSERT INTO #myData  VALUES (1,1,11,90,101,1,'Equity','')  ,(2,1,22,$1000,101,2,'CashInFlow','') ,(2,2,22,$1001,101,2,'CashOutflow','') ,(3,1,33,$99,101,3,'Chase','') ,(3,2,33,$100,101,3,'Capital','') ,(3,3,33,$101,101,3,'Citi','') ,(4,1,44,$800,101,4,'Equity','') ,(4,2,44,$801,101,4,'Fund','') ,(4,3,44,$802,101,4,'Credit','') ,(4,4,44,$804,101,4,'Debit','')   SELECT * FROM #myData


Let $X$ be a vector space, equipped with two norms $\|\cdot\|_1$ and $\|\cdot\|_2$ Which are equivalent.   What is the easiest way to prove that these two equivalent norms induce same topology?