I installed Spotify (folowing the instuctions here: )  For some reason it adds an ugly low res icon/item to the menu bar that does not fit the theme at all. I tried to search the options for an option to remove it, but I could not find any.  Screenshot:   So my question is, if there is some tool or something I could use to remove items from the menu bar? Or just a way to hide this ugly green icon

The Spotify indicator icon clashes with the native Unity theme, and is redundant, since it is already listed in the Sound indicator menu. Is there a way to remove or disable the Spotify indicator? Or at least to change the icon (couldn't grep it on my filesystem). I am using the Spotify "preview" with 12.04. Thanks!


We are using SQL 2012  Our Secondary server in a log shipping configuration went offline never to come back (the VM was permanently deleted before log shipping configuration was updated).   On the Primary server, I am trying to clean up the LS configuration but everything I've tried times out and/or gives me errors about having configuration still existing.  I have done the following:   Deleted the LS jobs from the primary server (Backup and Alert) Run the Stored Procedure "sp_delete_log_shipping_primary_secondary" with success Attempted to run the Stored Procedure "sp_delete_log_shipping_primary_database", this fails.   The error with sp_delete_log_shipping_primary_database is as follows:     Msg 32011, Level 16, State 1, Procedure sp_delete_log_shipping_primary_database, Line 51   Primary Database <"DB name"> has active log shipping secondary database(s). Drop the secondary database(s) first.   If I try to use the SQL management studio GUI, it tries to get me to log into the Secondary server (no longer exists) and times out/errors when it cannot communicate with it.   How do I get log shipping configuration cleaned up on the Primary server, knowing that the Secondary one doesn't exist anymore?    I have flexibility to do a backup/restore of the database during troubleshooting, if needed.

My primary server with SQL Server 2005 broke down, so I've started up the log-shipped database on the secondary server. The database is live on the secondary server, and I just need to remove the log shipping settings for it, while the primary server is no longer accessible.  It seems that the sp_delete_log_shipping_secondary_database stored procedure should be executed on the secondary server to do this, which "removes a secondary database and removes the local history and remote history", as it is stated on .  Would this also remove the database itself? Or only the log shipping settings for it? And what will it do when the primary server is not accessible?  I must not loose the database on the secondary server, as it is already in use.


Is there a way to create files in /proc/ without actually writing a kernel module?  This is for reverse engineering purposes, an app expects certain things in /proc/ and I do not want to write a kernel module to supply it. The app simply just reads /proc/something/some_key and expects certain/known values.  EDIT: Union mount doesn't seem to work as I need a new directory, e.g. /proc/new_dir/ and some files in there and making union on top of /proc/ itself seems to break it.

I am running CentOS 6.2 and I need to create a subdirectory named "crypto" inside /proc/sys. Inside /proc/sys/crypto, I need to create a file named test which contains the value "1".


I have generated the ARIMAX(1,1,1) model to predict the future Barramundi catch. In this model, there are two exogenous variables (price and streamflow) that affect Barramundi catch. I have used 1st differenced data to run this model as the data was not stationary at level. Could you please help me out to identify the equation for it and how can I use this equation for the future prediction of catch especially for the undifferenced data? Here, I have attached an excel file of my data.

I have an Arima(1,1,1) model with  var1+var2+var3, but am struggling with how to write the equation. The problem is that on all of the sources I see a variation of the following is given.  $$\left( 1 - \sum_{i=1}^p \phi_i L^i\right) (1-L)^d y_t = \delta + \left( 1 + \sum_{i=1}^q \theta_i L^i \right) \varepsilon_t . $$  Is there a way to write the equation solving for $y_t$? I find that the above equation is difficult to understand. Though I have the model saved in R the users of the forecast want the coefficients so they can plug them into excel and I don't have a good way to explain the formula solving for $y_t$


here is my decorator:  def check_domain(func):      def wrapper(domain_id, *args, **kwargs):         domain = get_object_or_None(Domain, id=domain_id)         if not domain:             return None         return func(domain_id, *args, **kwargs)      return wrapper   Here is a wrapped up function:  @check_domain def collect_data(domain_id, from_date, to_date):     do_stuff(...)     If I do collect_data.__name__ I get wrapper instead of collect_data  Any ideas?

Suppose I have written a decorator that does something very generic. For example, it might convert all arguments to a specific type, perform logging, implement memoization, etc.  Here is an example:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z  >>> funny_function("3", 4.0, z="5") 22   Everything well so far. There is one problem, however. The decorated function does not retain the documentation of the original function:  >>> help(funny_function) Help on function g in module __main__:  g(*args, **kwargs)   Fortunately, there is a workaround:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z   This time, the function name and documentation are correct:  >>> help(funny_function) Help on function funny_function in module __main__:  funny_function(*args, **kwargs)     Computes x*y + 2*z   But there is still a problem: the function signature is wrong. The information "*args, **kwargs" is next to useless.  What to do? I can think of two simple but flawed workarounds:  1 -- Include the correct signature in the docstring:  def funny_function(x, y, z=3):     """funny_function(x, y, z=3) -- computes x*y + 2*z"""     return x*y + 2*z   This is bad because of the duplication. The signature will still not be shown properly in automatically generated documentation. It's easy to update the function and forget about changing the docstring, or to make a typo. [And yes, I'm aware of the fact that the docstring already duplicates the function body. Please ignore this; funny_function is just a random example.]  2 -- Not use a decorator, or use a special-purpose decorator for every specific signature:  def funny_functions_decorator(f):     def g(x, y, z=3):         return f(int(x), int(y), z=int(z))     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g   This works fine for a set of functions that have identical signature, but it's useless in general. As I said in the beginning, I want to be able to use decorators entirely generically.  I'm looking for a solution that is fully general, and automatic.  So the question is: is there a way to edit the decorated function signature after it has been created?  Otherwise, can I write a decorator that extracts the function signature and uses that information instead of "*kwargs, **kwargs" when constructing the decorated function? How do I extract that information? How should I construct the decorated function -- with exec?  Any other approaches?


I currently have a UTF8 string that contains nulls, backspaces, etc. inside the string.  I am trying to escape the string so that control characters are visible in their escaped form.  Basically, the input/output I want looks like this:  String inString = "String\u0000 with\u0008 stuff \u000a in it"; String outString = "String\\0 with\\b stuff \\n in it";   I don't want to write a regex searching for all the escape characters, but I couldn't seem to find any inbuilt functions to do this.  Is regex my only option?  Thanks!

In C#, can I convert a string value to a string literal, the way I would see it in code? I would like to replace tabs, newlines, etc. with their escape sequences. If this code: Console.WriteLine(someString);  produces: Hello World!  I want this code: Console.WriteLine(ToLiteral(someString));  to produce: \tHello\r\n\tWorld!\r\n


Is there a proof that Maxwell's equations will hold true even billions of years in the future, for example?

Hubble's constant $a(t)$ appears to be changing over time. The fine stucture constant $\alpha$, like many others in QFT, is a running constant that varies, proportional to energy being used to measure it. Therefore, it could be agued that all running constants have 'evolved' over time as the Universe has expanded and cooled. Both the local and global curvature of the Universe changes over time implying that so too does the numerical value of $\pi$. All these things are however constants (well, let's say parameters since they are not really 'constant'.)   In  with astronomer Sir Fred Hoyle, Feynman said "what today, do we not consider to be part of physics, that may ultimately become part of physics?" He then goes on to say "..it's interesting that in many other sciences there's a historical question, like in geology - the question how did the Earth evolve into the present condition? In biology - how did the various species evolve to get to be the way they are? But the one field that hasn't admitted any evolutionary question - is physics."  So have the laws of physics remained form-invariant over the liftetime of the Universe? Does the recent understanding of the aforementioned not-so-constant constants somehow filter into the actual form of the equations being used? Has advances in astronomical observations, enabling us to peer back in time as far back as the CMB, given us any evidence to suggest that the laws of nature have evolved? If Feynman thinks that "It might turn out that they're not the same all the time and that there is a historical, evolutionary question." then this is surely a question worth asking.  NB/ To be clear: this is a question concerning purely physics, whether the equations therein change as the Universe ages, and whether there is any observational evidence for this. It is not intended as an oportunity for a philosophical discussion.


Let$ S$ be a subring of$ R$. If $R$ is an integral domain, then $1_R$ = $1_S$?   I know that if $S$ is subring of $R$ then  $S$ is integral domain. How to prove this problem ?  Thanks in advance.

Let $R$ be a ring with an identity element $1_R$ which is a domain. Let $S$ be a nontrivial subring of $R$ with identity element $1_S$. Prove that $1_R = 1_S$.


I have got a new PC and I am trying to kill Cortana once and for all. I have many different version of essentially the same guide as to how to turn it off but none of them exactly match what I am seeing on my computer - no doubt because Microsoft seems to change all this stuff ever 5 minutes.  I am on Windows 10 Pro, Version 1703, OS Build 15063.250  I think that I need an option that says     Cortana can give you suggestions, ideas, reminders alerts and more   but I do not see that in any of the settings panel that I have opened.  If I click the notebook icon there is no settings options there (there is a permissions option and I have turned everything off).  I can remove the search bar from the task menu by using the cortana menu but that only shrinks or removes the search bar. I want the search bar but not the microphone or cortana.

It  to disable internet search results in start menu searches before the Windows 10 Creators Update, but I've just clean installed a new Windows 10 Pro image and that setting is gone. Is there some way to disable it through editing the registry/etc?


Is it possible to use natbib to generate formatted text from a .bib file, but not have the citation show up in the bibliography?  I'm using chapterbib and natbib to create a multi-chapter bibliographic document in the style of this example:  \documentclass{report} \usepackage[sectionbib]{chapterbib} \usepackage[sectionbib]{natbib}  \begin{document} \include{ChapterFish} \include{ChapterCats} \end{document}   with ChapterFish.tex:  \chapter{Information About Fish}  \citealp{Fish1}: General information about fish.  \citealp{Fish2}: Overview of why fish are delicious.    For more information, see also \citealp{Cats}    in chapter \ref{ch:cats}.  \bibliographystyle{abbrvnat} \bibliography{ref}   and ChapterCats.tex:  \chapter{Information about Cats}\label{ch:cats}  \citealp{Cats}: Study on eating habits of cats   with regards to fish.  \bibliographystyle{abbrvnat} \bibliography{ref}   and ref.bib:  @ARTICLE{Fish1,   author = {S. Hark},   title = {All About Fish},   journal = {Foo},   year = {2010} }  @ARTICLE{Fish2,   author = {G. Oldfish},   title = {Fish Are Tasty},   journal = {Bar},   year = {2010} }  @ARTICLE{Cats,   author = {F. Eline},   title = {Why Cats Eat Fish},   journal = {Baz},   year = {2010} }   As written, the bibliography for the chapter 1 contains 3 bibitems: {Fish1}, {Fish2} and {Cats}. But this means that I have a reference about Cats in the chapter about Fish, which I don't want. I'd like to suppress {Cats} in the chapter 1 bibliography.  The trivial solution is to manually type the appropriator formatted citation for {Cats} in chapter 1.  However, I anticipate this issue will arise pretty frequently in my paper, and I'd like to use a more automated method to take advantage of my existing .bib file.

I have a manuscript in which has the following structure:  Main Text Bibliography Appendix   However, there are citations which are only cited in the appendix, and they show up in the main bibliography. I would like to split my Bibliography into two different sections, so that the structure of the paper would look like this:  Main Text Bibliography for Main Text Appendix Bibliography for Appendix   I'm currently using bibtex and a single .bib file, and creating the bibliography with  \bibliographystyle {someBibStyleFile} \bibliography {bibFileName}   I'm interested in a method to split my single bibliography into main bibliography and appendix bibliography with minimal changes to the rest of the document.  I'm aware that biblatex is more powerful than bibtex, but I'm not prepared to make the switch before the deadline of this project. There are many related bibliography-with-multiple-sections type of questions, but I didn't see one that covers this case.


i am using web service to get weather list from api.forecast.io. when i get the parameter string icon, i am parsing the string icon value from api and get the icon resource from class utility with viewholder  vh.icon.setImageResource(Utility.getIconfromWeatherCond(item.getIcon()));   this is method for getIconfromWeatherCond  public static int getIconfromWeatherCond (String icon) {     if (icon=="clear-day") {         return R.drawable.ic_clear;     }     else if (icon=="clear-night") {         return R.drawable.ic_clear;     }     else if (icon=="rain") {         return R.drawable.ic_rain;     }     else if (icon=="snow") {         return R.drawable.ic_snow;      }     else if (icon=="sleet") {         //hujan campur es         return R.drawable.ic_snow;     }     else if (icon=="wind") {         return R.drawable.ic_cloudy;     }     else if (icon=="fog") {         return R.drawable.ic_fog;     }     else if (icon=="cloudy") {         return R.drawable.ic_cloudy;     }     else if (icon=="partly-cloudy-day") {         return R.drawable.ic_light_rain;     }     else if (icon=="partly-cloudy-night") {         return R.drawable.ic_light_rain;     }     else if (icon=="hail") {         return R.drawable.ic_snow;     }     else if (icon=="thunderstorm") {         return R.drawable.ic_storm;     }     else if (icon=="tornado") {         return R.drawable.ic_storm;     }     return -1; }   but when iam trying to runing on my device i get error like this. android.content.res.Resources$NotFoundException: Resource ID #0xffffffff what should i do??

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


I am using LaTeX to make a manual. I would like to annotate an image with arrows pointing to parts of the image and a textual annotation outside of the image. Is there a simple way I can do this with TikZ or something similar?    The question is not answered already... the linked "duplicate" (which I had seen) doesn't describe drawing arrows with text annotations, which is what i asked about!

Recently I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on a image. Instead of pasting a image in Illustrator and adding some vectors to point something in the picture I would like to do it using TikZ. Is it possible?   For example, on a picture of a computer (PNG,etc) I would like to draw some arrows and labels saying "Keyboard", "Monitor", etc.


I'm going mental here.   I'm writing code for my Ph.D. project(s). I have two versions of a specific .cpp file and I want to use them both (alternating between them). I want to keep the most updated version of the other files.   I tried using svn copy but it won't run over existing file. I tried to delete the file but svn copy will just, kindly, say that it won't write over files existing in the repository even if they are missing in the target folder. Apart from checking out the entire version to a separate directory and copying the file manually to the desired folder, how can I revert a single file in my local folder to a previous version?   I don't want to update the entire tree, simply the local copy.  Alternatively, is there other version control system that can work over ssh and will give me this feature?  Thanks

"It is not possible to check out a single file. The finest level of checkouts you can do is at the directory level."  How do I get around this issue when using Subversion?  We have this folder in Subversion where we keep all our images. I just want to check out one file (image) from that. This folder is really big and has ton of other stuff which I don't need now.


Hello need help to get my wifi chipset working.I have brcmsmac driver and i would like to have brcm80211 chipset up and running. I have tried everything but nothing helped?    git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git Copy brcm/bcm43xx-0.fw and brcm/bcm43xx_hdr-0.fw to /lib/firmware/brcm (or wherever firmware is normally installed on your system).  still got brcmsmac ??   then i tryed    git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git cd ~/linux-next/drivers/staging/brcm80211 nano Makefile   the problem is that there is no brcm82011 folder?? do i follow cd ~/linux-next-a694cb1 like the link sad? i have Broadcom Corporation BCM4313 [14e4:4727]

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I need help finding d&d game sets. I also can't seem to find any players. What do I do?

I'd really like to learn how to play pen-and-paper RPGs.  I know that it takes a few players to actually sit down and play, but I'm not at all sure where to find more gamers.  How do I find existing groups to join? Or, are there any resources online that may help me find existing RPG groups or players?


Sorry, title is vague as I don't know how to specify.  I am trying to use biblatex to produce a bibliography, but the references section is not produced, and all that is produced is a bold version of the reference name.  This is my MWE:  % !TEX TS-program = LuaLaTeX  %Macro Preamble \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{fullpage}  \date{     \today}  \title{\vspace*{-9ex}\scshape %enter title here My cool title}       \author{\scshape\small\bfseries %enter name here Christopher Tatlock}  \usepackage[bibencoding=utf8,style=apa]{biblatex} \addbibresource{references.bib}    \begin{document} \maketitle   Hello, this is a reference \parencite{albert}  \printbibliography  \end{document}   The output for this is      Hello, this is a reference (albert)   This is my bib file:  @article{albert,   title={Understanding the Life Course through Newspaper Obituaries.},   author={Albert, Ajani Oludele and Anthony, Adegoke and Lateef, Adisa Ademola},   journal={Indian Journal of Gerontology},   volume={30},   number={4},   year={2016} }   It feels like I am missing something blatantly obvious.  I appreciate any help.  I am also trying with apacite with similar code, but apacite is generating      Hello, this is a reference (?, ?)   instead, with no references section.

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


How I could tell if graphics processing (3D, video encode/decude) in Ubuntu is utilizing hardware acceleration (ie. using GPU). Is there a utility that can help?

I want to install and test 3d acceleration in Ubuntu 12.  I have read these pages:       I think I have installed it correctly, but I don't know how to test it.  I tried to play minecraft in the browser, but I got a black screen. It may be a java problem too, so I need to troubleshoot.  So how can I test my video card and drivers?


I'm using the newest stable version of OpenLayers which is 6.3.1.  I have a problem when trying to call http request on an url genereted by the wmsSource.getFeatureInfoUrl function. It returns me an URL and when I execute this url directly on the newly opened tab on my browser I get the detailed result about the cliecked point on a map. But when my Angular app is calling this url I have a CORS error:  Access to XMLHttpRequest at 'http://q1.geopartner.ad/cgi-bin/qgis_mapserv.fcgi?map=/qgisdata/projekty/Q_postD.qgz&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=dzialki&LAYERS=dzialki&INFO_FORMAT=text%2Fhtml&I=126&J=31&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=2035059.4410645328%2C6966165.009797823%2C2074195.1995465432%2C7005300.768279833' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.   My url won't be available for you cause it's only available behind the VPN connection. Here is my code:  const wmsSource = new TileWMS({   url: 'http://q1.geopartner.ad/cgi-bin/qgis_mapserv.fcgi?map=/qgisdata/projekty/Q_postD.qgz',   params: { LAYERS: 'dzialki' } });  const wmsLayer = new TileLayer({   source: wmsSource });  const view = new View({   center: [ 2071206.0066185605, 6997895.536649533 ],   zoom: 10, });  const map = new Map({   layers: [wmsLayer],   target: 'map',   view });  map.on('singleclick', function(evt) {   document.getElementById('info').innerHTML = '';    const viewResolution = view.getResolution();   const viewProjection = view.getProjection();    console.log('viewProjection', viewProjection);    const url = wmsSource.getFeatureInfoUrl(     evt.coordinate,     viewResolution,     viewProjection,     { INFO_FORMAT: 'text/html' });    if (url) {     console.log('url', url);      const Http = new XMLHttpRequest();     Http.open('GET', url);     Http.send();      Http.onreadystatechange = (e) => {       console.log(Http.responseText);     };   } });   The map is loading correctly, I can zoom in/out etc. And when I click on the map I have the problem which I described. How can I fix it?

Is it possible to enable  (CORS) in OpenLayers?  If so, how?  I have a web map in OpenLayers, and I'm using an HTML canvas to render it as a PNG image.  My script works great, but due to the browser's , I can only convert my canvas to an image if all the map tiles I've drawn to it come from the same host (e.g. sub.domain.com).  To boost my map's loading speed, I pull tiles from an array of subdomains: a.domain.com, b.domain.com, etc.  This greatly improves performance, working around the browser's limit of four simultaneous connections per host, but prevents me from ever converting my canvas to an image, as the tiles come from multiple hosts.  I'm trying to use  to work around this problem.  I've set the appropriate Access-Control-Allow-Origin response header for the tileset I serve with PHP, but this doesn't have an effect.  I suspect this is due to not having the Origin header in the request (as shown in the example on the Wiki page).  It would seem that some OpenLayers configuration is required.  But what?  Has anyone else done this successfully?


When attempting to check my disk usage under / I found that root did not have access to certain virtual filesystems. I also could not check the permissions on the virtual filesystem. Why is this?       lanix ~ # du -sk / | sort -rn | head     du: cannot access ‘/proc/11983/task/11983/fd/4’: No such file or directory     du: cannot access ‘/proc/11983/task/11983/fdinfo/4’: No such file or directory     du: cannot access ‘/proc/11983/fd/4’: No such file or directory     du: cannot access ‘/proc/11983/fdinfo/4’: No such file or directory     du: cannot access ‘/run/user/1000/gvfs’: Permission denied     5851640 /     lanix ~ # cd /run/user/1000/gvfs     -su: cd: /run/user/1000/gvfs: Permission denied     lanix ~ # ls -l /run/user/1000/gvfs     ls: cannot access /run/user/1000/gvfs: Permission denied     lanix ~ # ls -ld /run/user/1000/gvfs     ls: cannot access /run/user/1000/gvfs: Permission denied   From /etc/sudoers      # User privilege specification  root    ALL=(ALL:ALL) ALL

Can someone tell me what I'm doing wrong, what this is, or how to fix it? I'm running Fedora 18 and getting the error shown  [root@servername /]# find . -name ngirc find: `./run/user/1000/gvfs': Permission denied [root@servername /]#  [root@thinktank /]# pwd / [root@thinktank /]# ls -ltr ./run/user/1000 ls: cannot access ./run/user/1000/gvfs: Permission denied total 0 d?????????? ? ?    ?      ?            ? gvfs lrwxrwxrwx. 1 root root  17 May 28 12:30 X11-display -> /tmp/.X11-unix/X0 drwx------. 2 kal  kal  120 May 28 12:30 keyring-QjDw4b drwx------. 2 kal  kal   40 May 28 12:30 gvfs-burn drwx------. 2 kal  kal   60 May 28 12:30 krb5cc_5f0bcaf94f916d6b61696e2251a4dbb3 drwx------. 2 kal  kal   60 May 28 18:25 dconf


i have the following dictionary of items in Python, but i want to sort the dictionary in order based on the value of a selected key. in this case score, i want the lowest number to be at the top so i can then select that item from the dictionary to be processed  [   {     "id": 1928430,     "score": 0.5030304,     "name": "John"   },   {     "id": 7283849,     "score": 0.2030304,     "name": "Sam"   },   {     "id": 8384954,     "score": 0.3030304,     "name": "Steven"   } ]

I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]


So for some reason material preview and rendere view aren't working anymore. Everything is dark and glitchy and adding any light does nothing. I tried everything, i reinstalled blender, I have reset all settings, i updated my graphics Card drivers (amd radeon r7 m340) I tried older versions of blender but nothing works. I can render stuff in cycle but not on evee. Here are some screenshots:

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


public static String winner(String computer,String user) {     String win=" ";     if (computer=="rock" && user=="scissors")     {         win="Computer wins! Rock smashes scissors.";     }     else if (computer=="paper" && user=="rock")     {         win="Computer wins! Paper wraps rock.";     }     else if (computer=="scissors" && user=="paper")     {         win="Computer wins! Scissors cuts paper.";     }     else if (computer==user)     {         win="Tie. No winner";     }     else if (user=="rock" && computer=="scissors")     {         win="YOU win! Rock smashes scissors.";     }     else if (user=="paper" && computer=="rock")     {         win="YOU win! Paper wraps rock.";     }     else if (user=="scissors" && computer=="paper")     {         win="YOU win! Scissors cuts paper.";     }     return win; }   The method receives 2 lower case strings as parameters. I have checked by printing the parameters. I do not understand why my if else statements are not working. I am simply trying to do the possibles out comes of a rock paper scissors game. Thanks for all your help guys.

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


I need to update child case from parent case.   After creating child case, when ever the number field is updated in parent i need same field to get updated in child case.  How can i achieve this.

I have a Child and parent case. I have the following fields:   Reopen Flag (Checkbox field) Case Reopened By (Drop down field)   The vales in Reopened By fields are Customer and Internal  Total Reopen Count Customer Reopen Count Internal Reopen Count   Details by Steps:   Select Reopen Flag in Child Case Select Case Reopened By (Value: Customer) in Child Case Customer Reopen Count Field gets incremented by 1. in Child Case Total Reopen Count gets Incremented by 1. in Child Case Parent Case also gets updated.   Repeat the steps but it does not gets updated in Parent Case.  Change the Value in Case Reopened By - "Internal" in child Case then the values will get updated in Parent Case.  How to update Parent Case from child case every time Total Reopen Count and Customer Reopen Count/Internal Reopen Count gets updated.  trigger Update_Parent_Case on Case (after update) {      map<string,case> case_map = new map<String,Case>();      for(case cs : trigger.new){          if(trigger.oldMap.get(cs.id).Total_Reopen_Count__c != cs.Total_Reopen_Count__c){                         case_map.put(string.valueof(cs.ParentId),cs);         }     }       list<case> to_update = new List<case>();     if(case_map.size() > 0){         for(case cc : [Select id,Case_Re_opened_By__c,Re_open_Flag__c, Customer_Re_open_Count__c,Internal_Re_open_Count__c from case where id in: case_map.keySet()]){             case c = case_map.get(cc.id);               cc.Case_Re_opened_By__c = c.Case_Re_opened_By__c;              cc.Re_open_Flag__c = true;             cc.Total_Reopen_Count__c = c.Total_Reopen_Count__c;             cc.Customer_Re_open_Count__c = c.Customer_Re_open_Count__c;                cc.Internal_Re_open_Count__c = Internal_Re_open_Count__c;               to_update.add(cc);         }         update to_update;         case_map.clear();     }  }


Say for example, my group is fighting a group of archers. Bard casts Darkness. We determine that the archers can see through the darkness, as they are hitting each of their shots. Can the bard end concentration on the Darkness spell the moment the party realizes that they can see through the darkness or does he have to wait until his turn?

From the :  Some spells require you to maintain concentration in order to keep their magic active. If you lose concentration, such a spell ends. If a spell must be maintained with concentration, that fact appears in its Duration entry, and the spell specifies how long you can concentrate on it. You can end concentration at any time (no action required).  The rule is very short and only says "at any time (no action required)". How is this "any time" defined? An example scenario:  I cast levitate on an enemy to remove them from the battle. Later, on his turn, he raises a crossbow. The DM declares the attack, but then I interrupt him and say that I end my concentration, so he will fall down and become prone.  Another example scenario:  I cast levitate on myself and fly 30 ft. The enemy then flies and spends all his movement to fly to me, to attack me in melee. After he reaches me, I declare I am ending my concentration, so I can fall back to the ground, preventing him from attacking me.  Is this allowed? Can I end concentration conveniently any time, interrupting any currently declared action/event?


I'm aware that  is similar but for my taste, I   don't find intuitive. Why $\beta$ distribution is U shaped when $\alpha$, $\beta$ < 1?

In the Beta distribution (used to model Bernoulli probabilities), the $\alpha$ and $\beta$ parameters can be interpreted as the number of heads$+1$ and the number of tails$+1$ seen. So, if they were both $2$, it would lean towards the coin being fair and have a maximum at $0.5$. If they are both $20$, the distribution would become even surer we're dealing with a fair coin and peak even more at $p=0.5$.  What I don't get is its behavior when $\alpha$ and $\beta$ both become $<1$.   In that case, it becomes U-shaped and the density peaks at $p=0$ and $p=1$. Meaning the coin is likely to be two-sided. I know there is an intuition for this since I think I had an idea about it a long time ago. However, I've been trying to recollect all day and can't piece it together. Does anyone have an intuition?


What I've been trying to do:  -Ask for the temperature  -Ask what to convert to ("C", "c", "F", "f")  It compiles fine, but when it comes for the second question to be asked, I can't input anything, which doesn't allow me to move on. Any help? Thanks!  import java.util.Scanner;  public class TemperatureConversionSelection { public static void main(String[] args) {     Scanner keyboard = new Scanner(System.in);     System.out.println("Enter a temperature in degrees (for example 29.6): ");     double temp;     temp = keyboard.nextInt();      System.out.println("Enter 'F' (or 'f') for Fahrenheit or 'C' (or 'c') for Celsius: ");     String letter;     letter = keyboard.nextLine();      if (letter == "F"){        double total = (9)*(temp)/(5) + (32);     System.out.println(temp + " degrees F = " + total + "degrees Celsius");}     if (letter == "f"){         double total = (9)*(temp)/(5) + (32);{     System.out.println(temp + " degrees F = " + total + "degrees Celsius");}     if (letter == "C"){         double total2 = (5)*(temp - 32)/(9);     System.out.println(temp + " degrees C = " + total + "degrees Fahrenheit");}     if (letter == "c"){         double total2 = (5)*(temp - 32)/(9);     System.out.println(temp + " degrees C = " + total + "degrees Fahrenheit");}     } } }


What happens when a photon hits a mirror? Does the photon decelerate instantaneously to zero and then accelerates instantaneously to the velocity of light when it is reflected from the mirror?  How do we identify individual photons? How do we know it is the same photon that hit the mirror which is reflected back?

When a photon of light hits a mirror does the exact same photon of light bounce back or is it absorbed then one with the same properties emitted? If the same one is bounced back does it's velocity take all values on $[-c,c]$ or does it just jump from $c$ to $-c$ when it hits the mirror?  Or, is the phenomenon of a mirror better explained using a wave analogy? If so, what is this explanation?


I'd like to start by saying that i am fully aware that windows 7 is no longer supported, and i am also aware of the implications of running an outdated vulnerable operating system on my physical machine. Moving on to my problem. I currently have a drive with grub boot loader on it with Arch linux. The drive uses GPT. I needed to dual boot with windows 7, however i am only able to boot into the windows 7 installation by enabling CMS in my motherboard. I did read that i can hack the windows 7 iso to have true uefi support by patching it with efi files, vga drivers etc but sounds like too much pain. I booted into the installation and got till the part where it asks me to chose a partition to install, all fine and well. At this point i expected the windows installer to point out that my drive is GPT and im booted in BIOS mode and therefore the installation cannot proceed without wiping my drive, however it has not pointed that out. From the looks of it i can simply select a partition (or create one) and proceed with the installation. However, i did not proceed because i am not sure of what the result of doing such an installation is and therefore i am not prepared in case im left with a kaput machine that will not boot without further troubleshooting. So hopefully somebody that has done this before or knows about this can tell me what i should expect after the installation, and what tools i need to have on hand to mitigate any problems in booting. Thanks. Edit: It seems that even though you have to enable CSM in order to get into the actual installation of Windows 7, it is still in UEFI mode and you can install as normal. Windows will add its efi files to the already existing efi partition. Then you can use your bios uefi utility  to select which efi file has to be prioritized in the boot process. In my case i set it to grub and then used os-prober to add the Windows boot loader to the grub menu. Note that you will need to have CSM enabled in order to boot into Windows 7 even after installation - if you disable CSM and attempt to boot, your machine will crash. Tried this on Windows 7 N ultimate SP1 x64 bit. I'm making this edit because the question is closed and hopefully this information might be able to help someone.

I have an HP 566 with Windows 8 installed. I removed it, and I wanted to install Windows 7. I have problems installing Windows 7.  In BIOS I can choose two boot modes:   Legacy boot mode   UEFI boot mode     If I chose the Legacy boot mode for some strange reason all of my Windows CDs stop booting at a certain point.  If I choose UEFI mode I enter the installation process, but cannot install Windows on the drives because they are GPT type. I tried converting them using diskpart, and I got an error that disks cannot be converted.   How to proceed? I am really stuck here.   If it makes things easier, Windows XP can also be installed.


My mother tongue is Chinese, and as I read English articles, I find a convention in written English that I can't explain.   If a quoted word appears at end of a sentence, the period is written inside the quote instead of being written outside, which is quite counter-intuitive to me.   For example, a paragraph from  SSD White Paper.    Notice it is written as:     ... called a "strobe."   instead of      ... called a "strobe".   Can someone help explain this?

I have been/am being taught that end punctuation should always go inside quotes. For example, you are supposed to write:     Marvin thought it was "awful."   The problem is I do not see how does this make sense. Intuitively, I always wrote:     Marvin thought it was "awful".   as that makes more logical sense — you want a quote to be an exact replication of what somebody else said, so why should you add punctuation inside?  I always thought it made more sense to not touch the quote and add anything after or before if it must be added.  So, why should I put end punctuation inside quotes?


I need to pove that: $$0^2{{n}\choose{0}} + 1^2{{n}\choose{1}} + 2^2 {{n}\choose{2}} + ... +n^2{{n}\choose{n}} = n (1+n)* 2^{n-2}, n \in \mathbb{N} \setminus \{0\}$$ I think that the left hand side looks like binominal theorem. The problem is that in that case the sequence: $$0^2+1^2+2^2+...n^2$$ would be therefore equal to the multiplication of growing powers on one element and decreasing powers of other element. That is impossible since powers are constant and equal. And I can't do my induction proof without any transformation of that expression since adding $1$ to $n$ would make that structure in its current form irregular - I wouldn't be able to extract the seqence that is my thesis. Therefore I don't know how to transform that expression so that it can be proven by induction (as I assume).

I found crazy (for me at least) induction example, in fact it just would be nice to prove. (Even have problems with starting) Any hints are highly valued: $$0^2\binom{n}{0}+1^2\binom{n}{1}+2^2\binom{n}{2}+\cdots+n^2\binom{n}{n}=n(1+n)2^{n-2} $$


As you know that some sites/apps don't allow to take screenshots with a flashing message 'Can't take screenshot due to security policy.'  Is there anyway to get screenshot from these sites/apps ?

Some apps don't allow screenshots so how can I still take a screenshot?  It is my phone and I should be able to do whatever I want with it so why is there even a feature to disallow screenshots?  Android 5.0.1


I'm debugging a large C++ project (Linux environment) and one binary appears to be taking more time to run than I expect. How can I see a breakdown of how much time each function call in each source file takes, so I can find the problem(s)?

I have a C++ application, running on Linux, which I'm in the process of optimizing. How can I pinpoint which areas of my code are running slowly?


UserRecordAccess tells you which records user has access to. But it doesn't inform why a user has access to that record.  I'd understand that this can be complicated but this is one source of questions and we go chasing all the reasons why a user has access.  Is there a list of rules or steps one can follow to highlight reasons behind a record access?

I Want to prevernt user to access other user cases in search and report as well in salesforce, when user at same level in role hierarchy.  My Organization-Wide Defaults setting is following   Case: Private User: Public Read Only Account, Contract and Asset: Private   Kinldy sugget the way, how can I achieve this.


I would like to know how many of my friends follow me on Facebook. I have looked up my profile on other peoples Facebook accounts and try to log on to my account through a computer for room and yet I still am unable to find out how many followers I have.

Facebook must have changed something again because I cannot find out how to view the list of subscribers.  In Googling for this, I came upon this question:    However, it doesn't take me to my list os subscribers.  Where do I view this list now?  Please include a screenshot and highlight the link I need to click on.  This way, when Facebook changes their layout again, your screenshot will at least clue future inquirers in on this fact so they know they're not going crazy.  Edit  Here's what I see when I log into Facebook:


While answering  within a few minutes of it being posted, I had to fight to be allowed to fine-tune my answer: review queue history (reviewer names edited out as this is not personal):  XXX.XXX reviewed this 10 mins ago: Reject This edit is incorrect or an attempt to reply to or comment on the existing post. XXX.XXX reviewed this 11 mins ago: Reject This edit is too minor; suggested edits should be substantive improvements addressing multiple issues in the post. XXX.XXX reviewed this 11 mins ago: Reject This edit is incorrect or an attempt to reply to or comment on the existing post.    The edit history, over a period of maybe 5 minutes, went about as follows: notice indentation missing - add it; notice user might not understand why a positive number can turn into a negative one - add a reference to why this could happen; notice it would be nice to add sample output - add it.  The entire reference to the IEEE representation of integers, which is potentially very relevant for a beginner who has never seen it, was reverted by a reviewer. I cannot see how improving on your layout isn't beneficial to SO, or adding additional info for clarification. Certainly none of my changes was 'incorrect'.   I am familiar with the rule in place to prevent insubstantial edits. To the best of my knowledge it is supposed to prevent people from going on editing sprees to boost their reputation from useless edits; in the worst case of gravedigger-old questions that get prompted back to the front page. This hardly applies to improving a question with a few minutes of being posted - all the more with editor == original author. I also wasn't front-running to competitively get an answer on the page first: mine was second, just - in my eyes - substantially improved upon the first answer.  I don't have any suggestion to prevent it from happening, but I would humbly ask people to please ease up in their review process and let others actually post a respectful answer as they see fit.

When clicking "edit" I see:  Your edit will be placed in a queue until it is peer reviewed. We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.  Like:     Likewise, when I am not logged in, clicking "improve this question" or "improve this answer" shows:  You are not . Your edit will be placed in a queue until it is .  And when I click 'Save', I get:  Thanks for submitting an edit. It is only visible to you until it's been approved by trusted community members  Like:     Who can suggest an edit? Where do suggested edits go? Who can vote on a suggested edit? How do suggested edits get reviewed? Can I earn reputation? What about abuse or bad edits? Sometimes the Community user approves or rejects my edit. Why is that? When can I not suggest an edit? Is there a minimum change requirement for a suggested edit? How do I check my suggested edit history? I disagree with the reasons why my suggested edit was rejected. What can I do? How do I know whether there are edits waiting for review? Someone suggested an edit to my own post, and the reviewers took the wrong action. What can I do? Are tag wikis included in this scheme? What do the "Improve Edit" and "Reject and Edit" buttons do? Why are apparently valid links to rejected edits resulting in 404 errors?   For more information about editing, see "" in the .


I am using \cref in my Persian document. I want to change the connective "and" to its Persian counterpart when I am using \cref for multiple referencing. By multiple referencing, I mean putting several entities, say theorems, in one single \cref command; example: \cref{thmTech, thmMain}.  This command outputs something like: "theorem 2.3 and 2.5".  I am wondering if "cleveref" package has an easy-to-use command for this?   If exists, it must be like the command "\crefname" used for changing the title-name of the counters:  \crefname{chapter}{CH.}{CH.s} If you want "CH.s 1 and 2" instead of "chapters 1 and 2" in your output.

I want to change the conjunction used for a pair of equations. It keeps printing "and", I've tried a few different with \crefpairconjunction but I just can't get it to work. I didn't find anything which helps when googling around. Below is a minimal working example, the stuff in the preamble is what's currently in my report, is this affecting it?  Many thanks.  \documentclass{article} \usepackage[sort&compress, % on multiple refs sort them and write as range         capitalise, % Use Section not section etc.         noabbrev, % Use Table not Tab. etc.         nameinlink % Make the name (eg Section) part of the hyperlink         ]{cleveref} % just use (...) for equations \crefformat{equation}{#2(#1)#3} \crefrangeformat{equation}{#3(#1)#4--#5(#2)#6} \crefmultiformat{equation}{(#2#1#3)}{ and~(#2#1#3)}{, (#2#1#3)}{ and~(#2#1#3)}  % Except for start of sentences where we need to say "Equations" \Crefformat{equation}{Equation~#2(#1)#3} \Crefrangeformat{equation}{Equations~#3(#1)#4--#5(#2)#6} \Crefmultiformat{equation}{Equations~(#2#1#3)}{ and~(#2#1#3)}{, (#2#1#3)}{ and~(#2#1#3)}  \begin{document} \begin{equation} e_1 \label{eq1} \end{equation} \begin{equation} e_2 \label{eq2} \end{equation}  This has an `and' \cref{eq1,eq2}  But I want this: \cref{eq1}--\cref{eq2}  \end{document}


i am trying to install matlab and its trying to install in /home because i get a warning saying /home is left with 1 gb. How do I check what folders are in home and how can I install matlab in /dev/sda6 instead because it has 67gb free ?

Is there a way to quickly check the amount of free / used disk space in Ubuntu?  I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.


I had recent came across this question when unintentionally tearing a piece of my journal paper. These atoms' bonds are pulled apart when the paper is torn, but is there a way to put them back together?   Now i know that, depending on the object, the method can vary. According to an article i read  this can be done. However i wasnt given enough info on what atom they split, as they can vary per object.   Though i am not well educated in the field of quantum physics i understand in some instances this will work. Can anyone clear this up for me regarding what types of materials can undergo this.  Edit: Forgive my ignorance when i said they are obviously split. i do realize the bonds were pulled apart. i just didn't word it as so

Consider a piece of paper. If I pull on it in the right way it tears into two pieces. However, if I push those two pieces together, they do not spontaneously form a single piece. What happens at the microscopic level when the paper tears such that the process is irreversible?    My instinct is that in the fully formed piece of paper the fibers are strongly interwebbed, and so there is a large amount of (electrostatic?) energy stored at the boundaries between the fibers. To tear the paper, one must overcome this barrier, but I don't see what could have happened to make it difficult to re-introduce all those surfaces with one another. It almost seems like an entropy argument might work but I'm not sure how.


I'm using bootable persistent USB key. I think there are some display problems, so I have to set resolution manually. These commands do it right:  sudo xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync sudo xrandr --addmode VGA1 1440x900_60.00 sudo xrandr -s 1440x900   It would be great if I wouldn't need to manually run these every time my machine starts.

How can I run the following xrandrcommand on startup?  xrandr   cvt 1368 768  xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync xrandr --addmode VGA1 1368x768_60.00 xrandr --output VGA1 --mode 1368x768_60.00


How can I label a table and then refer it to my latex file?

Which book (free or otherwise) was the most useful to you when you started learning LaTeX?  I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got me started, , but I feel that there might be better options around.  Also see .


Let ${\rm Aut}\, G$ denotes the automorphism group of $G$. Prove that there is no finite group with $|{\rm Aut}\,G|=|G|+1$. I begin by suppose there is a finite group with the above property. First of all $G$ cannot be non-abelian, For if does then as ${\rm Inn}\,G\cong G$ so we have $\gcd(|{\rm Aut}\,G|,|G|)>1$. And this is false as $\gcd(|G|+1,|G|)=1$. So $G$ must be abelian. From now on I have no progress. Any hint? I think maybe decompose $G$ into a finite direct product of $\mathbb{Z}_n$ could help to derive some contradiction.

If $|G|$ and $|{\rm Aut}(G)|$ are relatively prime, then first, it can be shown that $G$ must be abelian: this is clear, since if $G$ would non-abelian then a prime divisor of $|G/Z(G)|$ (which divides $|G|$) is necessarily a divisor of $|{\rm Aut}(G)|$.  Therefore, we assume that $G$ is abelian group with $(|G|, |{\rm Aut}(G)|)=1$. It may be possible to deduce something more; I guess that $G$ must be cyclic. Is this true?


Philosophy has not advanced very far since Ancient Greece and Rome and every philosophical point of view, when extended, becomes absurd.  Meanwhile, in little more than 3 centuries, and mostly in the latter half of that, Science has transformed (and multiplied) the lives of virtually everyone on the planet, although not all for the better.  I suppose you could argue that Science and technology is a branch of philosophy, but if so, it is probably the only branch worth having.  Philosophy may be a pleasurable pastime, but it doesn't really solve real world problems.  Can anyone give examples of the practical use of philosophy?

Examining the practical, impactful, real-life benefits of getting a degree in philosophy It is often asked, "What is the practical use of philosophy?" or "How will learning about philosophy impact real-life?" It is easy to see why there is such mystery surrounding the topic. Most schools up through high school may only offer 1 or 2 courses on it, if any. It is also often talked about in general conversation as a "wishy-washy" subject, often negatively, as though it contains no answers but only raises an endless series of questions. To add to this, those who hear of the subject but know very little of it may be surprised to see it offered at their university as a major. It is clear to most why some people would want to major in Computer science, Mathematics, or Physics. But what would a degree in philosophy get you?


We've just started AC circuit analysis in class, and the terms that I mentioned above popped up all at once. I'm new to the idea of phasors(I usually visualize them as arrows making a certain angle with another reference arrow), and I can visualize V and I, but how does power be represented as a phasor?  The phasor representation is $$S=P+jQ$$ and what actually are these terms? I know P is the average part. What exactly does Q represent, the RMS reactive power? And what is the relation between these terms and instantaneous power? Is S here instantaneous power?  P.S: Sorry about so many trivial/stupid questions. The things kinda made sense individually but I can't seem to connect the dots.

What is the definition of apparent power? How to calculate apparent power for three-phase circuit? Is it S = S1 + S2 + S3 or S = sqrt(P^2 + Q^2)  where  P is total active power P = P1 + P2 + P3  and  Q is total reactive power in system Q = Q1 + Q2 + Q3?


I often review Close Votes in my favorite SE site ever since I got the close vote privilege and I have seen both Leave Open and Skip in the queues. What is the difference between both. From my understanding, marking it as "Leave Open" counts as a review, and "Skip" doesn't. Does marking as "Leave Open" add any reopen vote that negates a close vote or something like that?

I've noticed and used the new (at least for me) button Leave Open, but I can't find any explanation as to the implication of clicking it.  I've found a highly voted  question:       ...How about, as soon as there's one vote to close, there should be an option to counter the close vote, something like "vote not to close" or whatever. This would then bring the "Vote to close" number down by one.   Is this that is happening? Or something else?    By reading the FAQ, there's no mention to this new action... so I'm assuming that an update is coming to the last paragraph of :     Users with 3000 reputation can cast up to 50 close votes per day. When a question reaches 5 close votes, it is marked as closed, and will no longer accept answers. Closed questions may be opened by casting reopen votes in the same manner. However, you may only vote to close or reopen a question once.


Our old camera broke, so we decided to buy a new one, but we can't choose between similar models from Fujifilm, Canon, and Nikon. Many people advised me to get the Canon, but in my opinion the Fujifilm looks better. What's the difference between these brands, and in general is there a particular reason I should pick one over another?

I need a P&S camera for my family. They would probably use it for family functions,trips etc. I want a camera with flash for taking good night photos with a decent quality. They are not technically inclined and I dont want much manual features apart from the normal modes (potrait,sports,landscapes). Decent picture quality for normal conditions is the criteria I am looking for. If the camera looks little big, it is an added advantage.  I have looked at few models like Fujifilm Fine Pix F800 EXR, the Panasonic Lumix DMC series and a Nikon P510. But I am confused with all the options and the different reviews on different sites. My thinking is that for a point and shoot camera, it is better to consider brands other than Nikon and Canon since they may provide better value for money.   Can someone recommend some good resources for analysis and what kinds of cameras I should consider - a bridge camera, a basic point and shoot, or some other type?


In init method in a class I want to read keys as self.key from a dict kwarg and assign values to them. Look at code to understand.  class Abc:     def __init__(self,**kwarg):         for key,value in kwarg.items():             self.key = value obj = class(name = 'josh', age = 23, country = 'UK') print(dir(obj))   obj has only key attribute. I get it why it has key. But I don't know how to read keys to self.key? I think you can get the question. What I except is obj must have name, age, country attributes

Suppose I have a python object x and a string s, how do I set the attribute s on x? So:  >>> x = SomeObject() >>> attr = 'myAttr' >>> # magic goes here >>> x.myAttr 'magic'   What's the magic? The goal of this, incidentally, is to cache calls to x.__getattr__().


I have updated and installed adobe but I am receiving this message error still. And Amazon music will not stream at all, I am 100% new to Ubuntu/ Linux and just learning. Guidance much appreciated.

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -   - a particular online flash game still requests that I update to the latest flash player.  I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.  Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?


Feed page in app only loads one post.   App Version: 1.0.85 Device Manufacturer: Xiaomi Device Model: HM NOTE 1LTE   OS Version: 4.4.4 (V7.5.1.0.KHIMIDE)

SE Android App Version: 1.0.84  There is a display issue in the Feed section. The Earlier today, the below sections and the post title are not visible.  There is no exact steps to reproduce. It doesn't happen when the app is initializing. But if you open the Stack Exchange app, navigate to some other apps, then come back after few minutes, I can see this issue (but not all the time).  When the issue is there, if I manually click the Feed option in the navigation sidebar, the display issue is fixed.  I have recorded the issue:


Not sure if this is something I am not understanding about WPF or about Catel, but I have a treeview with 3 datatemplates for different node types.  2 of the node types can be bound to a delete button.  The binding of the button command binds to the viewmodel of the parent control (rather than to the node itself) and a command parameter of the node where the button was clicked is passed.  I am providing a small snippet of one of the data templates (the whole thing is too large to enter here):  <Grid Margin="10" x:Name="CriteriaGrid">    <TreeView ItemsSource="{Binding Criteria}" >      <DataTemplate DataType="{x:Type self:Leaf}">          <Button Command="{Binding Source={x:Reference CriteriaGrid}, Path=DataContext.DeleteLeaf}"                   CommandParameter="{Binding}">X</Button>       </DataTemplate>    </TreeView> </Grid>   ViewModel (again just a small extract):  public class ManageCriteriaViewModel : ViewModelBase {     public ManageCriteriaViewModel()     {         DeleteLeaf = new Command<Leaf>(OnDeleteLeaf, CanDeleteLeaf);     }      private bool CanDeleteLeaf(Leaf leafNode)     {         return (leafNode?.Parent as Group) != null;     }      private void OnDeleteLeaf(Leaf leafNode)     {         // Some code     }      public Command<Leaf> DeleteLeaf { get; private set; } }   The problem is that when the Tree is initially being constructed, the command parameter is always null, and my CanExecute test returns false if the parameter is null.  So when my tree initially displays, all my buttons are disabled.  However, if I click any of the buttons, all of them get re-evaluated and become enabled because now the command parameter is being passed correctly.  I have tried adding:  protected override Task InitializeAsync() {     CommandManager.InvalidateRequerySuggested();     ViewModelCommandManager.InvalidateCommands(true);     return base.InitializeAsync(); }   In an attempt to re-evaluate all the commands after the UI is loaded but this does not seem to work.  What am I missing here?

I have run into an issue with WPF and Commands that are bound to a Button inside the DataTemplate of an ItemsControl. The scenario is quite straight forward. The ItemsControl is bound to a list of objects, and I want to be able to remove each object in the list by clicking a Button. The Button executes a Command, and the Command takes care of the deletion. The CommandParameter is bound to the Object I want to delete. That way I know what the user clicked. A user should only be able to delete their "own" objects - so I need to do some checks in the "CanExecute" call of the Command to verify that the user has the right permissions.  The problem is that the parameter passed to CanExecute is NULL the first time it's called - so I can't run the logic to enable/disable the command. However, if I make it allways enabled, and then click the button to execute the command, the CommandParameter is passed in correctly. So that means that the binding against the CommandParameter is working.  The XAML for the ItemsControl and the DataTemplate looks like this:  <ItemsControl      x:Name="commentsList"     ItemsSource="{Binding Path=SharedDataItemPM.Comments}"     Width="Auto" Height="Auto">     <ItemsControl.ItemTemplate>         <DataTemplate>             <StackPanel Orientation="Horizontal">                 <Button                                                  Content="Delete"                     FontSize="10"                     Command="{Binding Path=DataContext.DeleteCommentCommand, ElementName=commentsList}"                      CommandParameter="{Binding}" />             </StackPanel>                                 </DataTemplate>     </ItemsControl.ItemTemplate> </ItemsControl>   So as you can see I have a list of Comments objects. I want the CommandParameter of the DeleteCommentCommand to be bound to the Command object.  So I guess my question is: have anyone experienced this problem before? CanExecute gets called on my Command, but the parameter is always NULL the first time - why is that?  Update: I was able to narrow the problem down a little. I added an empty Debug ValueConverter so that I could output a message when the CommandParameter is data bound. Turns out the problem is that the CanExecute method is executed before the CommandParameter is bound to the button. I have tried to set the CommandParameter before the Command (like suggested) - but it still doesn't work. Any tips on how to control it.  Update2: Is there any way to detect when the binding is "done", so that I can force re-evaluation of the command? Also - is it a problem that I have multiple Buttons (one for each item in the ItemsControl) that bind to the same instance of a Command-object?  Update3: I have uploaded a reproduction of the bug to my SkyDrive:


I have read most of the questions about it but nothing seems to work for me. I must be doing something wrong so here is what I have done.  I have made two server blocks in DigitalOcean hosting using Ubuntu and Nginx. I have uploaded all the website files to var/www/website-folder.   Now when I try to access the website then only one link works and redirects don't work. The website is yoalfaaz[dot]com   Working:   Not working:  Not    working:  Now working:     (this link is what I want for my website)   I am using SSL from Namecheap and it worked perfectly when I used Hostgator hosting so one thing is sure that I am somewhere wrong in the setup. Below is the file in which I made changes /etc/nginx/sites-enabled.  server {         listen 80 ;         listen [::]:80 ;           return 301 https://www.example.com$request_uri;          # Add index.php to the list if you are using PHP         index index.php index.html index.htm index.nginx-debian.html;          server_name www.example.com example.com;          location / {                 # First attempt to serve request as file, then                 # as directory, then fall back to displaying a 404.                 try_files $uri $uri/ =404;         }         location ~ \.php$ {         include snippets/fastcgi-php.conf;         fastcgi_pass unix:/run/php/php7.0-fpm.sock;         }          location ~ /\.ht {         deny all;         } }  server {     listen 443 ssl http2;     listen [::]:443 ssl http2;     root /var/www/example.com/html;     server_name www.example.com;      # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate     ssl_certificate /home/name/example.com.chained.crt;     ssl_certificate_key /home/name/example.com.key;     ssl_session_timeout 1d;     ssl_session_cache shared:SSL:50m;     ssl_session_tickets off;      # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits     #ssl_dhparam /path/to/dhparam.pem;      # intermediate configuration. tweak to your needs.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDH$     ssl_prefer_server_ciphers on;      # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)     add_header Strict-Transport-Security max-age=15768000;  # OCSP Stapling ---     # fetch OCSP records from URL in ssl_certificate and cache them     ssl_stapling on;     ssl_stapling_verify on;      resolver 8.8.8.8;  }   UPDATED: There was an issue with DNS lookup, I have fixed that and now 301 redirects are working fine (checked through curl -I). But still, the website isn't loading.   As nothing was working so, I tried to remove redirects and try to load website without SSL and surprisingly it loaded just fine. Now I am thinking that the issue might be due to SSL, as every other problem has been fixed (as pointed out by the community members).

I want to create a rule in nginx that does two things:   Removes the "www." from the request URI Redirects to "https" if the request URI is "http"   There are plenty of examples of how to do each of those things individually, but I can't figure out a solution that does both correctly (i.e. doesn't create a redirect loop and handles all cases properly).  It needs to handle all of these cases:  1. http://www.example.com/path 2. https://www.example.com/path 3. http://example.com/path 4. https://example.com/path   These should all end up at  (#4) without looping. Any ideas?


I have an install script that creates a user:  sudo useradd -c "My test user" -G users -m -p "passw0rd$" -K PASS_MAX_DAYS=-1 -s /bin/bash myuser   However when I try to log in via ssh I get the following error:  myuser@myserver's password: Permission denied, please try again.   But when I login as root and update the password to the same one specified in the original command:  passwd passw0rd$   I am then able to log in without any problem. What could be causing this problem?

I am using openSuse 12.3.  I have created a new user using:  linux-amvn:~ # useradd -m -G users,dev -s /bin/bash -p pass123 harbir-PC   The user harbir-PC is not able to login, when I try to log using ssh. I went ahead and looked into the /etc/passwd file and I see the following:  harbir:x:1000:100:harbir:/home/harbir:/bin/bash kdm:x:489:487:KDM Display Manager daemon:/var/lib/kdm:/bin/false harbir-PC:x:1001:100::/home/harbir-PC:/bin/bash   There is a difference between the user harbir and harbir-PC.  I have no problem with the user harbir (who I have created during installation), but I need to login using the user harbir-PC.  I also checked the /etc/shadow, and passwords are encrypted.


In his essay on the proof of the representability of the $\operatorname{Quot}$ functor, Nitsure proves that if $m\in\mathbb{N}$, $k$ is a field, $F$ is coherent over $\mathbb{P}^{n}_{k}$ and $m$-regular (meaning $\forall i\geq 1:H^{i}(\mathbb{P}^{n}_{k},F(m-i))=0$), then for $r\geq m$ and any $p\in\mathbb{N}$ the map $\phi_{r,p}:H^{0}(\mathbb{P}^{n}_{k},\mathcal{F}(r))\otimes H^{0}(\mathbb{P}^{n}_{k},\mathcal{O}_{\mathbb{P}^{n}_{k}}(1))\longrightarrow H^{0}(\mathbb{P}^{n}_{k},\mathcal{F}(r+p))$ is surjective. So far, so good. Nitsure then proceeds to claim that for $p>>0$ the sheaf $F(r+p)$ is generated by its global sections and from this and from the surjectivity of $\phi_{r,p}$ it follows that $F(r)$ is again generated by its global sections. QUESTIONS:  Why is $F(r+p)$ generated by its global sections if $p$ is large enough? Why does the surjectivity of $\phi_{r,p}$ imply that $F(r)$ is also generated by global sections?

I am reading the section on Castelnuovo-Mumford regularity from Lazarsfeld's Positivity in algebraic geometry. Theorem 1.8.3 in the book reads as follows: Let $F$ be an $m$-regular sheaf on $P^n$. Then for every $k \geq 0$ (i). $F(m+k)$ is generated by its global sections. (ii). The natural maps $$H^0(P^n, F(m))\otimes H^0(P^n,O_{P^n}(k))\rightarrow H^0(P^n,F(m+k))$$ are surjective. (iii). $F$ is $(m + k)$-regular. The proof claims (i) is a consequence of (ii): it says that, since for $l\gg 0$, $F(m+l)$ is globally generated, the surjectivities in (ii) imply that $F(m)$ itself must be globally generated. I am not able to understand this statement. Choose $l\gg 0$ such that $F(m+l)$ itself is globally generated. Now consider the morphism $$H^0(F(m))\otimes O_{P^n}\rightarrow F(m)\,.$$ We need to prove that this is surjective. Tensoring by $O(l)$, we get $$H^0(F(m))\otimes O_{P^n}(l)\rightarrow F(m+l)\,.$$ A priori we do not know the injectiveness or surjectiveness of the above morphism. But if we take global sections, by (ii), the global sections morphism is surjective. Does this mean $H^0(F(m))\otimes O_{P^n}(l)\rightarrow F(m+l)$ is surjective? If so, I can tensor back by $O(-l)$ and get my required result. Thanks in advance.


I wonder if anyone can explain how the System.double is different from System.Double and how these differences are constructed in code.  if one looks at the Class:  public struct Double : IComparable, IFormattable, IConvertible, IComparable<Double>, IEquatable<Double>   from:   There is no clarity between the double and Double Types.  Using Visual Studio 2015, it is recommended that one uses the double key word instead of Double as the conversion is less.  If I were to write a custom Data Type and derive from double, for example, would constructing it by dynamic be enough to get the ball rolling.  It baffles me at how .NET has derived the base Data Types.  EDIT: A search on the net shows there is a lot of confusion on this topic. For example:  using System;  public class QBit : IComparable, IFormattable, IConvertible {  internal _qbit  public string Value { get { return _qbit; }  public QBit() { _qbit = "1978"; }  }   In another class:  using System;  using qbit = QBit;  public class Spinstate {  internal _state  public string Value { get { return _state; }  public QBit() { qbit = new QBit (); _state = qbit.Value; }  }   Is not the same as a , this is an . How to declare a Keyword?  EDIT: A KEYWORD is defined as:     Keywords are predefined reserved identifiers that have special meanings to the compiler. They cannot be used as identifiers in your program unless they include @ as a prefix. For example, @if is a legal identifier but if is not because it is a keyword.   The  '' is defined as follows:     The double keyword signifies a simple type that stores 64-bit floating-point values. The following table shows the precision and approximate range for the double type.   The Type is as specified by the , which is a binary64 Double precision floating-point format - Still, we are no closer to Defining a Keyword in Code and more importantly "and how they are constructed"

Example (note the case):  string s = "Hello world!"; String s = "Hello world!";   What are the guidelines for the use of each? And what are the differences?


I copied and pasted one paragraph in mysql table. many other paragraphs from table display alright but this one paragraph has lot of black background question marks in place of Apostrophes or single &double quotes.i have utf-8 in meta tag. surprisingly str_replace is no working either.this quote mark ( ’ ) is causing a lot of trouble can't replace it with (') using str_replace. i'have tried $story=str_replace("’","'",$story); and $story=str_replace("\’","\'",$story);  .i have been searching through solutions but none of them seems working.

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


Let $f(x,y)$ be a $C^1$ function where $f(0,0)=0$. What conditions on f guarantee $f(f(x,y),y))=0$ can be solved for $y$ as a $C^1$ function of $x$ near $(0,0)$ Hello, I've been stuck on this problem for a bit and was wondering if anybody could help me out. I tried using the chain rule on the composed function to try and see when the implicit function theorem conditions will hold, but got stuck. Any help/hints are appreciated!

Assuming $F(0,0)=0$, can I solve $F(F(x,y),y)=0$ for $y=f(x)$ near $(0,0).$


I have tried T.SIZE/8 for this question, but gives me an error.  and I have also tried Integer.Size this gives me an correct solution 4 bytes.  so how can I find SIZE for Generic datatype T in JAVA?  MY PROGRAM:  class A<T> {   T a;   T b;   A(T a, T b) {     this.a = a;     this.b = b;   }   void s() {     System.out.print("size in byte is "+(T.SIZE/8)+"bytes");   } }  class Demo {   static public void main(String a[]) {     A<Integer> ob = new A<Integer>(10, 20);     ob.s();   } }

I have an application that reads a CSV file with piles of data rows.  I give the user a summary of the number of rows based on types of data, but I want to make sure that I don't read in too many rows of data and cause OutOfMemoryErrors.  Each row translates into an object.  Is there an easy way to find out the size of that object programmatically?  Is there a reference that defines how large primitive types and object references are for a VM?  Right now, I have code that says read up to 32,000 rows, but I'd also like to have code that says read as many rows as possible until I've used 32MB of memory.  Maybe that is a different question, but I'd still like to know.


So I was talking to a guy online & then we exchanged numbers. After a while he said he had got me something as a gift & would like to post it, so I gave him my postal address  After I gave it, he said that the gift was intact $30k USD! I said I cannot accept such a gift & he said no I deserve it, just donate 10% to a charitable organisation then keep the rest for myself What should I do? I don't want this money (if it comes) & aren't there laws regarding receiving such massive monetary gifts?!

I met a guy on a sugar daddy dating site and we talked, I told him my situation and he said he would help.   He asked for my bank account information and I told him you can use cash app or PayPal to go through. He said his account manager deals with his finances. So I set up an account with a bank that I don’t use so that my primary account isn’t used.  Eventually he was in the process of sending me money and we had agreed on a amount that wasn't crazy. But then he asked for my address and I asked why and he said just wondering. Then said he wanted to send me a surprise for being his baby. Which I didn’t give.  Then later on he sent the money and said he sent me a bonus and that I was supposed to use that to pay his mothers caregiver, which he didn’t mention until after.  I kept questioning him and he was saying that he works in construction and he’s trusting me to carry out the errand. Then he said don’t let him down and I asked him if he was threatening me and he kept saying I need this done but didn’t really answer my question.  Am I being scammed? I’m about to change my password but is this a scam?


I need a word to describe someone who lives a happy, purposeful life without needing a lot of resources. The words "light footprint" and "low maintenance" come to mind, but I'd like a word/adjectival phrase that doesn't sound so modern.

Mundane means ordinary.The word is mostly used in negative sense.Can the word "mundane" be used in positive sense too? Like"Mr.K is not a wasteful man.He leads a very mundane life."Another example can be"Miss ABC does not show off in front of others.She is a mundane girl."In the examples I am referring mundane to be "ordinary" and in positive sense.Can the examples be used? or is it wrong technically?


I really need some advice on creating historical street maps using GIS software (I have access to QGIS and Diva).   Basically, I want to upload a number of historic OS sheets, which I have downloaded from Digimaps in tiff format.   I then want to create dot density (or similar) maps focusing on specific districts, which will illustrate instances of prostitution. Many of the streets I want to map do not exist any more, hence the need for historic OS maps.   I've been fiddling around with the two software packages but I am a complete novice and cannot find out how to do what I need to do.  Could anyone help?   Many thanks in advance!   (Note that this question is not a duplicate as I am looking to stitch together historic OS maps - see my comments in the discussion below).

Is there a 'friendly' way to create dot-density maps, where a polygon attribute data defines the number of dots (e.g. 1 dot = 100 ) using QGIS 1.7+? I say friendly because after a couple of hours researching all the alternatives seem to require programming. Maybe I am not looking in the right place. I am already aware of the fTools 'Random Points' feature and it is not what I am looking for.      That is precisely what I am seeking. However every time I attempted to run this function. I received the following:   An error has occured while executing Python code:  Traceback (most recent call last): File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 118, in accept self.randomize(inLayer, outPath, minimum, design, value) File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 210, in randomize else: points = self.loopThruPolygons(inLayer, value, design) File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 256, in loopThruPolygons sExt = sGeom.boundingBox() AttributeError: 'NoneType' object has no attribute 'boundingBox'  Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:37:12)  [GCC 4.5.2]   QGIS version: 1.8.0-Trunk Trunk, exported


Today I decided to try out Fedora by booting it from USB. I liked the OS, and decided I wanted to install it to my hard-drive. I couldn't complete the installation because I needed to free up a partition.  I booted back into Windows to view my Disk Management and free up a partition. I decided to re-format a partition that had a linux OS in it that I no longer used. I used to boot into this OS using Grub.  However, when I reformatted the disk, it seems to have deleted most of the grub files, but when I power up my laptop, I'm getting an "Error 15" message which I think is because Grub cannot find the OS files to boot because I deleted them.  My problem now is that I can't boot back into Windows, I can only boot from USB ( I have no CD drive as I'm using a netbook ).  I read online that to remove the Grub bootloader I must boot into Windows and run a few commands in recovery mode to reset the bootloader. Since I can't boot into Windows, and have no CD drive, this option doesn't seem like it's going to work.  Any advice for me? I'm quite new to Linux, and currently my Netbook can only boot from USB and Windows ( 7 by the way ) is currently inaccessible.  I'm sorry if this isn't the right place to post this, but I'm really quite stuck!  Any suggestions are appreciated, I've been Googling for hours now!  Thanks   EDIT: To sum the question up: Is there a way to remove the Grub bootloader without entering Windows? For example can I boot something from USB and remove it from there?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I'm presently running Windows 7 and use the Guest account.  When I run the "Get Window 10" app (the app in the the System Tray) and click the link to the "View record" from the "This PC is compatible" it says "You won't be able to use the Guest account on Windows 10".  Right now a Guest account is used by one of my kids so there are a number links, etc I want to save.  What happens to a Guest account on upgrading from Windows 7 to Windows 10?

There's a lot of confusion on the Internet, including on SuperUser, about guest accounts in Windows 10. I've posted this question in order to post an answer based on my research on the subject.  I won't accept my answer right away, but will wait a while to allow others to weigh in, and if someone posts a better answer, I'll accept that.  The question is: What's up with guest accounts in Windows 10? Can I have one?


How do I mark a comment as an answer? The  and meta-overflow FAQ does not appear to cover the topic.  Arrowdodger's comment at  is the correct answer.

Question: What if the author of a question can accept a comment?   The problem:  Time and time again, answers are posted as a comment.  Usually, the person who commented has the best of intention (e.g. it was a trivial answer [to the answerer], and they weren't sure if the OP would immediately edit the question after the comment).  But this leaves the frustrating situation of an unanswered question with a perfectly good answer.  This problem accumulates over the years.     Candidate solution:  The OP can just "accept" the comment, after which a duplicate of the comment is made an accepted CW answer, with a preface indicating that it was originally a comment, e.g. This answer was originally a comment posted by [[blah]] that has been accepted by the author of the question.   Comments on this scheme:   The author of the comment has indicated they're not interested in gaining/losing reputation through their comment (thus CW answer). The original comment is still there. If desirable, the "author" of the accepted question could be a "bot", so the answer is not attributed to a genuine account.  (I suppose it would already be technically possible for Joe Blow to create a script for a bot that creates an answer from a comment in the proposed way.)     A similar question was asked before  (over 3 years ago), and in numerous other questions which have been deemed "duplicates" (,  and ; see also ), so there seems to be demand for such a feature.  The answers to these questions seem (to me, at least) quite weak:   "ask the commenter to add the comment as an answer"   The OP already did this by asking the question in the first place.  And what if the author of the comment doesn't respond (or takes a long time to respond)?  This also adds more chit-chat irrelevant to the question.   "add an answer of your own, referring to the comment, and accept it."   A hacky workaround.  How could this possibly be better than accepting a comment?  (Yet, this is the most up-voted response.)  Moreover, this adds to the user's list of "answers" (thus making the user's page harder to look through).   "When i leave a comment, i do so because i want to leave a comment."   Great; now what about everyone else?  In the immortal words of the FAQ: "Other people can edit my posts?!"  And it's not even an edit, it's copying the post from one box to another (a more hacky version of which is regarded as the "accepted" method).


Most bike lights seem to be the bar / seatpost mounted variety. Is it worth also having a headlamp for riding?  I go cycle touring, ride in the city and do mountain bike xc trail riding.  I've got a budget enough to buy something decent.

I am just curious, I use handlebar mounted lights, and since I have multiple bikes to switch, it's a lot of trouble changing the light from one to another. So, I am thinking of switching to helmet mounted lights.  Give me your point of view. Why or why not? Which is better suitable for which riding type?


Is there some smallest amount of neutrinos needed to create a black hole?  Note that this question is not at all the same as the question here .  The other question asks if one particle alone can be turned into a black hole and this question asks how many particles is needed to form a black hole. Now obviously from the other question we can deduce that one neutrino alone is not enough to create black hole but the question still remains: can we create black holes out of two particles, three, more, how many are required?

I'm a big fan of the podcast Astronomy Cast and a while back I was listening to a Q&A episode they did. A listener sent in a question that I found fascinating and have been wondering about ever since.   From the show :      Arunus Gidgowdusk from Lithuania asks: "If you took a one kilogram mass and accelerated it close to the speed of light would it form into a black hole? Would it stay a black hole if you then decreased the speed?"   Dr. Gay, an astrophysicist and one of the hosts, explained that she'd asked a number of her colleagues and that none of them could provide a satisfactory answer. I asked her more recently on Facebook if anyone had come forward with one and she said they had not.  So I thought maybe this would be a good place to ask.


Everytime I try to login on a remote server via SSH or try git pull/push on a git repository I get the prompt:  Enter passphrase for key '/home/th0th/.ssh/id_rsa':   I want to add my key to the keyring and I want the keyring to be unlocked when I login without being asked for passphrase (I think this was the default behaviour on gnome-shell on Arch Linux). I tried adding my key using seahorse but even my key is visible under Gnome2 Key Storage category in seahorse I get prompted for my passphrase on terminal. Is this a bug or am I missing a step here?  EDIT: Preventing seahorse from prompting for password is another issue. My problem is that, SSH key passphrases are not remembered by gnome keyring.  I am on 15.04 BTW.

I've set up my System to log me in automatically but for some reason I need to "unlock my keyring" x times, where x is a number much larger than one. I've read a few similar threads here and elsewhere but I've yet to find a solution to the problem.  How do I stop this from happening?  Seahorse screenshot  Note : The original title described the behaviour as "molestation" which I think is apt.


I am referring to CVE-2017-5753, CVE-2017-5715 and CVE-2017-5754 in relation to Ubuntu 16.04.3 which, if I am not wrong, has now the kernel 4.10 hwe for 64bit platforms.  I've seen the post on Dustin Kirkland blog but, in relation to 16.04, it only mentions kernel 4.4 and 4.4 hwe. Does anyone knows if the kernel 4.10  is going to be patched too?  I've also found this page of canonical people related to Meltdown (CVE-2017-5754):    but I am not able to understand it. Can someone explain me what package relates to my installed distribution and the meaning of "needs-triage", "DNE", "Pending" and so on?  Info about my platform:  uname -r 4.10.0-42-generic  lsb_release -a Distributor ID: Ubuntu Description:    Ubuntu 16.04.3 LTS Release:    16.04 Codename:   xenial  Thanks.

The following is a canonical post that attempts to cover a broad number of Meltdown and Spectre questions.  It is being maintained by Thomas Ward who is in contact with the Security and Kernel teams on this matter for other reasons as well.   I recently read about the  vulnerabilities.  I was wondering, will Ubuntu be patching against the vulnerabilities?  And is there an ETA on a fix?


In a bash sub shell I get the following error when running cd  sudo: cd: command not found   This is expected because I don't have a path. Usually to work around this I just provide the full path like so:  (/usr/local/bin/foo)  Much to my surprise, cd does not appear to be in any of the normal places.  which cd whereis cd ls /bin | grep cd   By comparison, ls is right where I would expect.   which ls /bin/ls   Where is the cd command located? And why is different from all the other commands?   Update  Another interesting tidbit, cd does not show up in hash  hash 0   /bin/ls 2   /usr/bin/find 2   /sbin/ip 1   /usr/bin/updatedb 1   /usr/bin/apt-get

I've always wondered why cd isn't a program, but never managed to find the answer.  Anyone know why this is the case?


I have run out of space in my virtual Ubuntu install, so I doubled the disk in Hyper-V and added 150GB of space. How can I use that unalocated space to extend sda5?

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


I am looking for some explanation of the schema for the .  Specifically I'd like to know the values for PostTypeId field (1=Questions?, 2=Answers?, 3=?, etc).  I have tried to look for it, I am sure it must be posted somewhere pretty obvious, but I seem to have a blind spot that I need help with.

Stack Exchange releases "data dumps" of all its publicly available content roughly every three months , and also makes that information queryable over the Internet at the  (SEDE) (updated weekly, on Sunday). Over time, as new features and other bits of data are introduced to Stack Exchange sites, the "anatomy" of the data dump is likely to change.


I am using DevC++.   when I write void main(), the compiler says main must return int. when I write main(), the compiler reports nothing. when  write int main(), the compiler asks me to return something.   My question is what is main() without int and void?why does compiler behave differently for int main() and just main()?

What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:


I was playing a very nice map that I liked in Civ V, but a bug in the turn system due to the war I was participating in unfortunately caused me to abandon that game save and world, forcing me to start a new world. That world had a very nice map layout which I loved.  I would like to restart that world using the same seed, but I can't find a way to. Does anyone know how to do this?  Sadly, I don't have a game save prior to when the game-breaking bug occurred.

I recently started a game on Civilization V and I really like the map I'm playing. I know it's possible to manually input a seed when creating a game but is there a way to display the seed of a game in progress?


I have the following for loop:  for user_id in new_followers:     try:             t.direct_messages.new(user_id=user_id, text="Thanks for following. Etc etc etc")         print("Sent DM to %d" % (user_id))         followers_old.add(user_id)   To avoid API limitations, I want to pause the loop for 600 seconds each time 100 direct messages are sent.  What's the best way to do it?

How do I get my Python program to sleep for 50 milliseconds?


When I do apt-show-versions samba on my Debian machine, I get something like samba:amd64/buster 2:4.9.5+dfsg-5+deb10u1 uptodate  Comparing this to the samba versions, which you can find at the official sources, I would assume, that samba 4.9.5 is installed. But what are the other numbers and letters? My guess is that these indicate Debian specific modifications. But would like to understand how to read them and what they mean. Especially if these change but the "base"-version (here 4.9.5) stays the same.

When I type dpkg -l | grep xserver-xorg, I get list of installed packages and their versions:  ii  xserver-xorg               1:7.7+3~deb7u1 ii  xserver-xorg-core          2:1.12.4-6 ii  xserver-xorg-input-evdev   1:2.7.0-1+b1 ii  xserver-xorg-input-kbd     1:1.6.1-1+b1 ii  xserver-xorg-input-mouse   1:1.7.2-3 ii  xserver-xorg-video-radeon  1:6.14.4-8   I am wondering what the number  infront of the colon means, ie the number 2 in 2:1.12.4-6


I have to setup logs in sftp, I found out some link online and i made the following changes in sshd.conf  Subsystem   sftp    internal-sftp -l info   and after that i restarted sshd services.   still there is no detailed entry for file upload and delete, only opne connections and close connection   Feb 13 14:12:31 ip-172-31-51-97 systemd[1]: Created slice User Slice of ubuntu. Feb 13 14:12:31 ip-172-31-51-97 systemd[1]: Starting User Manager for UID 1000... Feb 13 14:12:31 ip-172-31-51-97 systemd[1]: Started Session 736 of user ubuntu.   Machine is an ubuntu 16 instance in Amazon

I have an SFTP setup using the built-in sftp-subsystem of OpenSSH with chrooted users.  In the old days when I used to use FTP, I was able to see what files were accessed by users in the logs.  How do I achieve the same using OpenSSH/SFTP?  Relevant parts of my /etc/ssh/sshd_config:  Subsystem sftp internal-sftp Match group sftponly     ChrootDirectory /home/%u     X11Forwarding no     AllowTcpForwarding no     ForceCommand internal-sftp