I try to print a PDF which includes some TIKZ figures but the printing service has an issue to print them.  To find the cullprit we try to reduce our template to a minimum and found an problem with TIKZ shadows and the svg package.  We are not able to reproduce the error and the printing service has Acrobot Pro 9, which only complains when printing is started. It shows an error page content can not be shown.  So to get hold of the problem we found out that watching the files with an old adobe 8.3 reader does not render the files and show only a blank page.   following a MWE  \pdfminorversion=3 \documentclass[ border=5pt ]{standalone}  \usepackage{pgfplots} \pgfplotsset{compat=newest}  \usetikzlibrary{shadows}  % removing svg solves the problem \usepackage{svg}  \begin{document}%  \tikzstyle{abstract}=[ fill=black!15!white,  drop shadow, ]      \begin{tikzpicture}[node distance=1cm, auto]%     \node[abstract](iasPortObj){\textbf{MinimaTestObject}};%     \end{tikzpicture}% \end{document}%   Also enforcing pdf version 1.3 does not help.  When removing the svg packet the page also shows in acrobat 8.3.  When removing shadows it also works when svg is loaded.  It seems there is a issue with tikz produced figures and svg packet.     The problem is that all our PDF viewer show the PDF properly. We can print it on our printer.  The error is issued when the print service try to print this PDF.  We have this issue with multiple pdf.   Converting them with ghostscript solved the problem for some of them, but not all.  gs -dSAFER -dBATCH -dNOPAUSE  -sDEVICE=pdfwrite -sOutputFile=out.pdf in.pdf   1.) Is this a known incompatibility of svg and TKIZ or shadows?  2.) We search a proper way to ensure a finelizing process which garantees that the printing service will have no problem and the printed version looks like we see it.  Thanks in advance

When I print a report I get an error:     An error exists on this page. Acrobat may not display the page   correctly. Please contact the person who created the PDF document to correct the problem   After a lot of debugging, I've found that this MWE reproduces the problem. I've tried it on three different computers with the same error.   \documentclass{standalone}           \usepackage{tikz} \usepackage{ctable} \begin{document} \begin{tikzpicture} \filldraw[opacity=.5] (0,0) rectangle (1,1); \end{tikzpicture} \end{document}   When loading the ctable package, the image is changed (the opacity disappears), so it seems the error comes from some incompatibility between ctable and opacity in tikz. The error only appears when trying to print though, acrobat before attempting to print. (Printing either to a pdf file or to a real printer)  I have the following versions of tikz and ctable:      tikz.sty    2013/12/13 v3.0.0   ctable.sty    2014/04/25 v1.29   How can I fix this?    EDIT: I found the warning Transparency disabled: incompatible with tikz package from ctable so I guess this incompatibility can explain the error in the first MWE.  However, I continued digging and found that the spy library seem to be incompatible with ctable as well.   Here's an MWE that generates the same error when printing (either to a pdf file or to a real printer):   \documentclass{standalone}           \usepackage{tikz} \usetikzlibrary{spy} \usepackage{ctable} \begin{document} \begin{tikzpicture}[spy using outlines={size=2cm,connect spies}] \begin{scope} \spy on (-3,.25) in node at (2,0); \end{scope} \end{tikzpicture} \end{document}   There seem to be a serious problem with using tikz + ctable, can it be fixed?


So I just came back from Dunkirk, seen in IMAX, 70mm version.  I was digging around the internet with my question but only found religious answers (it's just better, can't describe it, you must see it), rather than technical.  So I just considered these statements, which are hopefully correct:   IMAX is screening films in 2K resolution According to IMAX, 35mm film has a digital equivalent of 6000 lines of horizontal resolution (6K), while 70mm film has the equivalent of 18,000 lines of digital resolution (more like 12,000 in reality).   => 35mm seems to be more than enough for IMAX screen, why 70mm then?  I'm familiar with the DSLR world. Full frame cameras are better than APS-C, because the sensor captures more light, the camera performs better especially in bad lighting conditions. So for example you don't have to use so high ISO and have less noise and stuff like that. I did some simple tests (nothing exact, just going out with both FX and APS-C camera) and I would say that with good lighting (like on a sunny day), the difference in output photos is almost non-existent.   Back to my question. My thoughts are that:   70mm is more about being commercially interesting. The main difference in IMAX is the aspect ratio Probably it gives the director (cameraman) some more space on what to do as the sensor is bigger and therefore captures more light. Some shots would probably look worst on 35mm.   Still not sure about: If they did shoot it on 35mm (even crop it to keep the IMAX aspect ratio), then screen it in IMAX on the same screen, would it look that much different?  edit: The question  is different. It just asks what 70mm is. My question is more about whether 70mm makes any difference in comparison to 35mm given screen sizes and the fact that 35mm is already more than enough to capture resolutions needed for big screens such as IMAX.

There has been a bit of controversy lately over the release of Tarantino's Hateful Eight movie. As I understand it, the movie was scheduled to play in a particular theater in Los Angeles that plays 70mm format. Disney chose to push/force/coerce/convince/whatever this theater into showing The Force Awakens instead.  This has caused a rather large uproar from both Tarantino, as well as many of his fans.  I will be honest, before I read this story I had never heard the term "70mm" before in my life; I only last week learned that there is a theater in my area that screens 70mm prints. Now I'm wondering what the big deal is, how these are any different from the versions shown at my usual theater, and why this format seems to have suddenly, out of nowhere (at least from my perspective) become a big deal.


How many automorphism are there in the field of $p$-adic?  % I suspect that there's only one automorphism, the Identity. But I stuck with the continuously of the automorphism in $\mathbb{Q}_p$.

Is an automorphism of the field $\mathbb{Q}_p$ of $p$-adic numbers the identity map? If yes, how can we prove it?  Note:We don't assume an automorphism of $\mathbb{Q}_p$ is continuous.


I have always been able to record computer sound and microphone input through stereo mix. I have done this on Windows XP and on Windows 7, but I re-installed Windows on my system and now I cannot figure out how to do this.  My recording software is Camstudio and sometimes I use Hypercam2. I can only select one recording device at once; that is why I need to put my mic and computer sound through one channel. One thing that worked was letting the speakers "listen" to the microphone but I hate the side effect of hearing myself through my speakers or headset.  I was hoping I could find the answer here. If not, I would like to hear some work arounds like other screen/sound recording software that can record sound from two devices at once. Perhaps I need one that can compress on the fly. Preferably free since I got really awesome video quality with the free programs I mentioned above.  -edit- I forgot to mention that if I default my microphone my stereomixer goes "currently unavailable" and vice versa. A lot of people have exactly the same problem as I do but no answers anywhere. First they could run stereo mix and a microphone alongside each other just fine and upon reinstalling OS problems start to happen.

I've tried using VAC virtual audio cable, as well as virtual audio streaming. Unfortunately, none of these solutions provide a way to send audio output to a microphone input. None of the virtual audio cable related posts on here or internets address this specific limitation.   The reason I want to do this is to stream audio to the microphone and set the microphone as input device for another program. This "other program" only allows microphone inputs to be used as its input device.  See how no mic's are listed as output devices:    There is a software called Solicall which actually allows this. But I would like to do this through VAC virtual audio cables because Solicall only allows one instance running. Thus, I can't do my audio routing method more than once simultaneously. I have yet to find a better solution however than Solicall.  Someone please post if you found a way to do this with virtual audio cables, or any solution more elegant than Solicall. Currently, all the virtual audio cable programs I've tried do not allow microphones (real or virtual) to be selected as output.


Would anyone be able to help me with the following question? Thank you.   Point 1: When there is 1 car passing the road, the average speed is 50km/h. Point 2: When there are 5 cars passing the road, the average speed is 45km/h. Point 3: When there are 12 cars passing the road, the average speed is 38km/h.   A traffic engineering company decides to model the average speed (shown by u) as a linear function of the number of cars (shown by n). So we want to have  u(n)=α+βn.  Use Point 1, Point 2 and Point 3 information: write a system of linear equations to calculate α and β using all three points; i.e. we will have three equations with two unknowns.

Does anyone know how I would go about answering the following question?  A traffic engineering company has installed some trac cameras along a one lane road to find a relation between the number of cars passing the road and the average speed at which the cars move. The cameras show that:   Point 1: When there is 1 car passing the road, the average speed is 50km/h. Point 2: When there are 5 cars passing the road, the average speed is 45km/h. Point 3: When there are 12 cars passing the road, the average speed is 38km/h.   The traffic engineering company decides to model the average speed (shown by $u$) as a linear function of the number of cars (shown by $n$). So we want to have  $$u(n) = \alpha + \beta n.$$   Using Point 1 and Point 2 information, write the system of linear equations to calculate $\alpha$ and $\beta$. Write a MATLAB code to calculate $\alpha$ and $\beta$.


I am flying from Mumbiai to Montego Bay via Dubai and Frankfurt as my final destination. Do i require airport transit visa at Frankfurt. i will be having invitation letter from husband and  even visa from Montego Bay.

Do I need an airport transit visa through Switzerland if I have no Schengen visa? Am traveling from Cairo to Moscow via Swiss Air


I'm trying to fetch an array of data from the MSSQL Database into spinner, but I'm unable to do so. I'm getting this exception: Exception due to Array adapter or 'Method invocation spnVnames.setAdapter(NoCoreAdapter) may produce java.lang.NullPointerException' Please help me find my error in the code below.  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);     currentDate = (TextView) findViewById(R.id.currentDate);     long date = System.currentTimeMillis();     SimpleDateFormat sdf = new SimpleDateFormat("  dd/MM/ yyyy");     String dateString = sdf.format(date);     currentDate.setText(dateString);     Spinner spnVnames = (Spinner) findViewById(R.id.spinner);      String query = " SELECT TaxName FROM tblTax "; //select query      try {         Connection con = connectionClass.CONN();         Statement stmt = con.prepareStatement(query);         ResultSet rs = stmt.executeQuery(query);         List < String > data = new ArrayList < > ();          while (rs.next()) {             String id = rs.getString("TaxName");             data.add(id);         }          String[] array = data.toArray(new String[data.size()]);         ArrayAdapter < String > NoCoreAdapter = new ArrayAdapter < > (MainActivity.this, android.R.layout.simple_list_item_1, array);         spnVnames.setAdapter(NoCoreAdapter);      } catch (SQLException e) {         e.printStackTrace();     } }

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


Lately, I start getting this message when not shooting at maximum aperture with a Canon 55-250mm lens:     Err 01 Communications between the camera and lens is faulty. Clean the   lens contacts.   I tried to fix the problem cleaning the contacts with a dry cloth but didn't work. Also tested with other cameras and the same result.  The error appears even if I have the lens at it's maximum aperture and change the zoom and that aperture is not the maximum for the new position.  Is there something else I can do other than sending it to the service center?

Ok, so the error message that is displayed on my cameras is "Err 01 Comunications between the camera and lens is faulty. Clean the lens contacts"   Gear:   Canon 7D Mark II (Brand new, have it for like 3 days now, latest firmware) Canon 700D (2 years old, latest firmware) Canon EF-S 17-55mm f2.8 IS USM (2 years old, no more warranty!)   When the problem/error happens Both of my cameras show this error only when I increase the aperture higher than f/2.8 and zoom the lens... if the aperture is at f/2.8 it works normally on any focal range. The lens also works if the aperture is set to a higher f-number but is at its widest focal length (17mm) but when I zoom in I get this error...  Note: I did try other lenses and they work just fine so it's not the cameras that are broken...   What I did to resolve the issue I went and googled the issue and didn't get any useful information on how to resolve this, there were some DIY videos but I'm not going to dissasemble my lens... I'll leave this task to the professionals... Yes, I did also clean the lens contacts...  So what I'm asking is: Has anyone had any simmilar issues or issue like this with this lens and does anyone know perhaps what's wrong with the lens and is it worth it to get it repaired and what would be the estimated price of the repair?


Since 18.04 LTS, Ubuntu has stopped providing installers for the 32-bit variant. Can I install 16.04 LTS, then upgrade it to 18.04 LTS instead?  I assume the correct command would be:  sudo do-release-upgrade   What will happen if I have unity-greeter installed before the upgrade? Supposedly I should end with the 18.04 version of it, but Ubuntu has discontinued Unity in 18.04. (I did actually use Lubuntu with Unity greeter). Or the whole ubuntu-desktop for that matter?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


From at least  to at least  (most likely Pie as well) we are forced by Google-Microsoft trust into using MTP as the only (?) files transportation method between Android-based device and Windows-based computer (if not count as pity, sad and dully methods as attaching files to e-mail messages).  For at least five years billions of users around the world are forced into using solution that is:   extremely slow (transferring large files collections or huge files takes hours even on USB 3.1), extremely unreliable (device can stop responding even after sending just a few files), not working at all most of the time (device that stoped working may not "restart" and may not allow you to copy files even after dozens of unplug cable-plug it again  sequences).     (I can see above message after each and every file that I copy; I have to unplug and plug the USB cable again after copying each single file)  Questions:   Supporting, OT and philosophic one: What am I missing? Why we are forced into using this madness? Why nothing had been done for five years to resolve it? Main and real one: Is there any other way? Any fast, reliable method of transferring files from Android-based device to Windows-based PC?   Described problem was tested on Windows 7 and Android 8.0, so not the newest ones, but still very widely used. And on the quite modern phone -- Motorola Moto Z2 Play -- but of course happnes on dozen other Android-based devices that I own and billions of Android-based devices other uses.  And, as stated in links given in first sentence, absolutely nothing had been done into resolving this problem for at least five past years. Is this some kind of sadistic way of understanding market and treating its customers, developed by Microsoft and Google or what?

Since the latest versions (ICS+?) no longer have mass storage, is there any viable alternative to MTP?  The protocol seems inherently broken and the decision to regress to this format seems like a very 'iphone-esque' move (dumb things down, take away power from the users).  There seem to be numerous problems  with files not showing and it seems to me that transferring a file should be simpler than requiring a system reboot - I am unreasonably demanding that way.  I'm aware of tools like Wi-Fi file transfer but often I find myself in areas without wifi, with just my laptop, phone and a usb cable. The other day, for example, I was one a plane, which is an environment decidedly non-conducive to using a wireless system.


Show that $\mathcal{O}_{\mathbb{P^1}}(-1)$ has no nonzero global sections.   I can cover $\mathbb{P}^1$ by two open sets $U_0[1: x_1 / x_0]= [1 :y_1]$ and $U_1[x_0/x_1 : 1] = [z_0 : 1]$   The transition function of the sheaf is given by $g_1 (z_0) = x_1 / x_0 f_o(y_0)$   To show that $\mathcal{O}_{\mathbb{P}^1}(-1)$ as no nonzero global sections, I need to show that there do not exists sections on $g_0 \in \mathcal{O}_{\mathbb{P}^1}(U_0)$ and $g_1 \in \mathcal{O}_{\mathbb{P}^1}(U_1)$ such that  $$ g_0 = x_1/x_0 g_1$$  How would one efficiently go about proving such a statement?   (There is a related question, however, the solutions to this question again states that this sheaf as no nonzero global sections but does next explain why.)

In chapter 2 section 7 (pg 151) of Hartshorne's algebraic geometry there is an example given that talks about automorphisms of $\mathbb{P}_k^n$. In that example Hartshorne states that $\mathcal{O}(-1)$ has no global sections. However, we know that $\mathcal{O}(1)$ is generated by global sections. This is stated at the first of the section that if $\mathbb{P}_k^n = Proj k[x_0,...,x_n]$ then the $x_0,...,x_n$ give rise to global sections $x_0,...,x_n\in\Gamma(\mathbb{P}_k^n,\mathcal{O}(1))$.  I guess I don't understand this twisted structure sheaf very well, or to be honest I don't think I understand structure sheaves in general as well as I would like. The twisting part seems simple at first- you shift the grading of Proj over and then take the structure sheaf.  Admittedly I don't feel comfortable using the structure sheaf other than using the basic facts about it that Hartshorne gives when it is introduced. If anyone could give some insight as to what's going on here or how I might be able to understand this better it would be much appreciated. Thanks.


I live in Italy (Emilia Romagna), and my house, seasonally in spring, is full of these guys, someone knows their name and if they could represent a problem? They are very tiny slightly less than 0,5 cm including the antennae.

I live in Chapel Hill, North Carolina, and recently started seeing a bunch of these little guys in my house. They're about 1/8" long (estimate), with brown/black zigzag stripes; it's possible they're babies, but over the last two weeks their size has remained consistent so this seems unlikely.


To be specific in that mess of a title, I broke my last Xubuntu install (writing to askubuntu as the two are very similar) so I wiped the drive in Gparted. I then installed Xubuntu with the something else option, added 8gb swap and the / mount. I selected SDB for GRUB to be installed on. Here are my drives:  SDA: 2tb hard drive that I use for Windows data (games, data). SDB: My Linux SSD. Completely wiped for this installation. SDC: Windows SSD.  My issue is that the OS doesn't show up in my BIOS boot and the GRUB menu doesn't show; to access my Xubuntu installation, I have to manually select the drive (Kingston:drive model) from the boot menu. After looking in SDB with Gparted (after the install), I noticed that there was no EFI; just the swap and the / .  Note: I intend to dual boot Windows and Xubuntu.  Is it possible to "install GRUB"? Thanks for any help :)

When the bootloader (GRUB) is broken, I cannot access neither Ubuntu nor Windows.  I heard that an easy solution to fix this is to use the Boot-Repair tool from an Ubuntu liveCD (or liveUSB).  What are the steps to do this?


we are using the following ISO file for rhel upgrade 4.2G    RHEL-7.6.iso  since we have problem to copy this ISO file between WIN to Linux machine and that because sometime network problem cause ISO file to be corrupted we are thinking if it possible to perform ISO file split as can be on tar.gz file with split command example RHEL-7.6.iso.part RHEL-7.6.iso.part RHEL-7.6.iso.part RHEL-7.6.iso.part  so each file will be ~1G and by this transferring of the ISO will be more better but after searching in google we not found option for ISO split , but I also want to ask here to be sure that I not miss an option to do split of ISO file reference -

If I have a large file and need to split it into 100 megabyte chunks I will do  split -b 100m myImage.iso   That usually give me something like  xaa xab xac xad   And to get them back together I have been using  cat x* > myImage.iso   Seems like there should be a more efficient way than reading through each line of code in a group of files with cat and redirecting the output to a new file. Like a way of just opening two files, removing the EOF marker from the first one, and connecting them - without having to go through all the contents.  Windows/DOS has a copy command for binary files. The help mentions that this command was designed to able able to combine multiple files. It works with this syntax: (/b is for binary mode)  copy /b file1 + file2 + file3 outputfile   Is there something similar or a better way to join large files on Linux than cat?  Update  It seems that cat is in fact the right way and best way to join files. Glad to know i was using the right command all along :) Thanks everyone for your feedback.


I answered a question on Mathematics Stack Exchange and gained around 80 reputation from it. This was the first time I gained points and earned a decent number of privileges.  But now that question was deleted and I lost so many points (almost 3/4 of my total). And so many privileges were gone too.  Is there something I can do?

Today I lost 25 reputation points and I'm just curious why? Apparently it was an upvoted and accepted answer and I thought that questions with answers can't be deleted easily. Talking about the general case, when a question gets removed by a Moderator, I'd think it'd be unfair to lose the points, because one still took the time to answer the question and probably invested a significant amount of work.   Unfortunately I don't have a link to the question. All I have is this:        but the "link" to the question is not clickable.  A syntax error question is a bad example for "probably invested a significant amount of work", I know, but again, I'm just curious what happened and want to know, why one does loose the reputation points ?


import sqlite3 connection = sqlite3.connect("vsearchlogDB.db") print("Opened database successfully")   cursor = connection.cursor() _SQL = """.tables""" cursor.execute(_SQL) print(cursor.fetchall())  Output >>>python3 dbconnect.py  Opened database successfully Traceback (most recent call last): File "/home/amrit/Documents/webapp/dbconnect.py", line 6, in <module> cursor.execute(_SQL) sqlite3.OperationalError: near ".": syntax error

For some reason I can't find a way to get the equivalents of sqlite's interactive shell commands:  .tables .dump   using the Python sqlite3 API.   Is there anything like that?


I know this an FAQ, but this is a little different. My primary disk fails to boot, so I have reinstalled Ubuntu 18.04 LTS on a new disk.  The old disk is still readable, so can I find a list of all ot the programs that were installed on it, so I can install them on the new disk?

I installed a plain Ubuntu 10.10 on my computer and installed some software via apt-get. Last week I managed to break everything and just started from scratch, and I need to reinstall my software. Is there some way to create a list with all the packages that I have installed manually?  So that it would give me a list like texlive, ... and not texlive, texlive-dep1, textlive-dep2, ... and all the standard packages removed?  If I could somehow figure out which programs out of the regular install I have removed, that would be awesome too!    Update 2015-05-23: I now use Ansible as configuration management on my systems. There I specify the packages to install. This serves the goal, installing all the programs on a fresh system, even better. So this question might be the entry into some light configuration management.


Suppose $V$ is a vector space over an infinte field $F$. Assume that $n<\infty$ and $W_i$ $(1<i<n \land i ,n\in\Bbb N)$ are proper subspaces of $V$.$(W_i\neq V \land W_i\neq \emptyset)$  Prove that we can't represent $V$ this way:  $V=\cup_1^n W_i=W_1\cup W_2\cup...\cup W_n$  I am spending my first course in linear algebra so i am not familiar with common concepts such as dimension or basis or... I am just starting this course and I only understand concepts like vector spaces or subspaces or fields or... please help me to solve this problem   thank you...

If $U_1$, $U_2,\ldots,U_n$ are proper subspaces of a vector space $V$ over a field $F$, and $|F|\gt n-1$, why is $V$ not equal to the union of the subspaces $U_1$, $U_2,\ldots,U_n$?


I have Ubuntu 16.04 and every time I try to install an app using the terminal (e.g. apt-get install git,) I get this message:  dpkg: error: requested operation requires superuser privilege W: Could not open file '/var/log/apt/term.log' - OpenLog (13: Permission denied) E: Sub-process /usr/bin/dpkg returned an error code (2)   So I executed sudo apt-get install git and I got this:  sudo: error in /etc/sudo.conf, line 0 while loading plugin 'sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins   How do I fix this?

Whenever I try to install or remove something using terminal it gives the following error message:  bluebird@bluebird:~$ sudo apt-get update sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins bluebird@bluebird:~$ sudo apt-get remove vlc sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins bluebird@bluebird:~$ sudo apt-get install apt-file sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins


I have an 8GB USB drive which is completely empty and I would like to copy  to it.   Is there a way I can copy to the USB so I can play it on another PC without Steam being required on the PC?

At my school programing class, our teacher encouraged us to gather other types of video game design software to allow us to make more complex games, instead of just the base Greenfoot and Bluejay games. I remembered I had RPG Maker VX Ace on my computer at home, so now I am stuck at how I would get it to school, seeing that the county blocks Steam (and everything else good on the internet (besides this site)).   Is there a way I could get it onto a USB drive and use it on the other computer without a direct way (from the school computer) to download Steam?


I connect my Samsung S3 to my Mac and Android File Transfer says "Try reconnecting or restarting your device". I have restarted my phone and computer numerous times, uninstalled and downloaded AFT numerous times too but it's not making a difference.   I uninstalled and re-installed and uninstalled Kies again and that's not made a difference either.  What can be done to solve this issue?

I saw some similar questions along these lines with newer Samsung devices, but I will post a question here anyway in case an answer for me ends up being an answer different than that for someone else. I have not seen a post concerning my particular phone, Mac hardware, and Mac OS.  Problem:  My Mountain Lion MacBook Pro (10.8.3) doesn't recognize my Samsung Galaxy S3 (4.1.1) for file transfer over USB. I am trying to use Android File Transfer, having been promised that it would solve all my woes.  The Situation:  I've downloaded Android File Transfer, and, when connected with my device, the app launches, but it just continues to demand that I attach the USB cable and or restart my device.  What I've tried doing:  Settings > Applications > Development > USB debugging  When set to on, nothing happens. When set to off, nothing happens either. I've turned it on, then on and off, then off, and restarted before, during, and after connection, and every combination possible. The result is the same: app launches and then gives error message.  USB Cable:  I've tried with two different new cables and the error message is the same.  Connected to a Windows device:  My phone is recognized just fine by my desktop PC running Windows 7. The phone is recognized and the SD card is recognized, and I can transfer files between them. However, my Windows device is not my primary computing device, and I am frequently away from home (otherwise, at this point, I would chuck the Mac and that would be that).  As with the person who posted a similar question about the Galaxy S2, please do not post answers suggesting the use of Kies, Bluetooth, Wireless, and the like unless they lead to me being able to use Android File Transfer via USB. I want my phone to work over USB and with AFT for a reason (speed, convenience, and better synchronization). Kies seems to be the default suggestion to solve this issue, but it is terribly buggy and it accomplishes file transfer much the same way that nuking my house would get rid of spiders. (Always good to have a little levity at this level of frustration.)


trying to compile qemu-stm32 I get this error message ERROR: glib-2.12 gthread-2.0 is required to compile QEMU  but sudo apt-get install gthread-2.0 (or just gthread)  resulted in E: Unable to locate package gthread-2.0 / gthread  Any help will be appreciated. M'

Simple enough question: is there some shell command (or GUI method) I can use that, given the path to a file on my system, tells me what package put it there? Assuming the file did in fact come from a package, that is.  Bonus question: what if it's a file that isn't installed on my system? Is there, say, a website that will let me look up a file and see what packages, if any, provide it?


Traditional English grammar teaches us that a well-defined function is a function that is well defined. With the hyphen in the adjective role before the noun and without the hyphen in the role of an adverb with a past participle after the noun. (E.g., see a question about , which is following the general rule, while the current one is about mathematical jargon.)  However, continuing an  of Mr. West, a function that is well defined is a function for which we have done a good job of giving a definition, but a function that is well-defined is an object that has been given a valid definition as a function, with every domain element given a unique image. Said that, in the second meaning (an object that has been given a valid definition as a function, with every domain element given a unique image), should the mathematicians use the hyphen in "well?defined" in the after-the-noun position?  PS. I asked the  at math.se, but they put it on hold, claiming that it could be off-topic there. Only one person gave his/her opinion, which I liked, but I'd like to hear other arguments, too.

Should I hyphenate the term 'well organised'? The context, if it matters, is the following sentence:     For this role you should be well organised and analytical with some research ability.   (I see there are other question here about hyphenation; do point me to one if this falls under a general rule, I just couldn't see it.)


I have a box, that runs Ubuntu 12.04. I connect it with a VNC client. It always go down to the default resolution because I don't have a monitor connected. Is there any way I can change the resolution to like 1440x990?  Thanks

I have an Ubuntu 14.04 server that has no external monitor connected.  I use NoMachine to remote control the machine.  When I do so, the Unity/Gnome interface doesn't see any monitors connected, so I can only use 800x600 when connecting with NoMachine.  If I plug in a monitor, I can set the resolution to whatever size the NoMachine window is on the remote computer.  Is there a way to create a "fake" monitor device on Ubuntu so I can set a desktop resolution in Unity/Gnome?


What is the difference between these two sentences: when will we eat? When are we going to eat?

I know several questions were asked about the difference between "going to" and "will". Based on several answers (see, for instance, ,  and ), I understood that "will" is more spontaneous and "going to" is used with more planned actions.  So, it seems that everything is pretty fine. However, in , Kosmonaut has an answer in which he states: "Let's say that tomorrow you will walk your dog from 7 - 8 AM".  On the one hand, you probably planned to walk your dog long before and thus I should use "Let's say that tomorrow you're going to walk your dog from 7 - 8 am".   On the other hand, since I'm saying "let's say...", I'm deciding right now (thus, unplanned) that you will walk your dog. So, even though in this hypothetical situation you made a plan, I'm in a more spontaneous mood deciding right now that that's what you will do tomorrow, and, thus, I should use "will".  Which one (if any) of the above explanations is right?


Should I allways use "a" article, when something is indefinite? And should I allways use "the" article, when something is definite?  Where can I ommit these articles?

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


I'm using Ubuntu 14.04. For some time I haven't been able to run more programs simultaneously. This is what df -h gives:  Filesystem      Size  Used Avail Use% Mounted on /dev/sda1        29G   25G  3.4G  88% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev             16G  4.0K   16G   1% /dev tmpfs           3.2G  724K  3.2G   1% /run none            5.0M     0  5.0M   0% /run/lock none             16G   59M   16G   1% /run/shm none            100M   40K  100M   1% /run/user /dev/sda2       438G  138M  416G   1% /scratch AFS             8.6G     0  8.6G   0% /afs   and of df -i:  Filesystem       Inodes   IUsed    IFree IUse% Mounted on /dev/sda1       1875968 1875968        0  100% / none            4106915      11  4106904    1% /sys/fs/cgroup udev            4103190     499  4102691    1% /dev tmpfs           4106915     524  4106391    1% /run none            4106915       3  4106912    1% /run/lock none            4106915     122  4106793    1% /run/shm none            4106915      27  4106888    1% /run/user /dev/sda2      29138944     709 29138235    1% /scratch AFS             9000000       0  9000000    0% /afs   I have also tried the suggestion here:  , does not help, actually it makes it worse. Now, if I enter the terminal and partially write the name of a folder ,I press Tab  and get:  cd Pybash: cannot create temp file for here-document: No space left on device   where I just wanted to write   cd Python   Edit: The output of sudo du -hxd1 / is :  1.5G    /var 22G /usr 18M /etc 16K /lost+found 36K /home 349M    /opt 68K /tmp 9.7M    /bin 4.2M    /libx32 12K /.config 2.5M    /root 4.0K    /mnt 4.0K    /lib64 13M /sbin 81M /boot 505M    /lib 3.5M    /lib32 12K /media 4.0K    /srv 25G /

I am experiencing some weird issue lately. I am using this machine as a web server. When I try to write a file in a directory it says there is no more space. I deleted some files and it worked for a little while. After few minutes I get the problem again:  root@web1:/home# mkdir test mkdir: cannot create directory ‘test’: No space left on device root@web1:/home# df -h Filesystem             Size  Used Avail Use% Mounted on /dev/mapper/web1-root   43G  4.5G   37G  11% / none                   4.0K     0  4.0K   0% /sys/fs/cgroup udev                   3.9G  4.0K  3.9G   1% /dev tmpfs                  798M  828K  798M   1% /run none                   5.0M     0  5.0M   0% /run/lock none                   3.9G     0  3.9G   0% /run/shm none                   100M     0  100M   0% /run/user /dev/sda1              228M   91M  126M  42% /boot /dev/sdb1              197G   75G  113G  40% /home   df -i reports a partition with 100% usage:  root@web1:/home# df -i | grep 100% /dev/sdb1 13107200 13107200 0 100% /home


Recently I've tried to open my profile, but there was a problem with a server. So I've been redirected to: .        According to , reloading the page should have redirected me to the profile page when it's up again, but that's not the case anymore, and I have to manually browse to the page.  Can you please either fix this bug, or instead include the original link which user has tried to open, to this error message so the user can retry easily?

During today's maintenance I've noticed an annoying side effect to certain error pages. I happened to end up on  when trying to navigate to The Workplace. An interesting side effect of that error scheme is that if you refresh that page, even after the error no longer occurs, you'll continue getting the error page, as if the site was still down. It's because the error redirects you to a URL that will always show you the error.  Since it's an aspx error not a "normal" error like the 404 pages I'm not sure it can be changed, but ideally if you hit an error page you shouldn't be "stuck" on that error page. The error was fleeting, but the error URL scheme isn't.


Will I get any visual benefit if I use CRF (Constant Rate Factor) values below 17/18 in x264 (FFmpeg)? Will there be any differences other than size?  CRF 17/18 are visually lossless.  CRF 0 means, every pixel of the frame will be determined by its own data. CRF 17/18 means, every pixel of the frame will be either determined by its own data or determined from the previous frame if they are identical.  So visually both will be same. Then what the lower value CRF (0-16) encoding is good for?  I have tested most of the usable CRF values (Including CRF 0). I encoded a 1080P Blu-Ray movie using "CRF 0". The output ended up 2.5 times larger (110GB) than the Blu-Ray source.  From what I have learned, I have not seen a reason to use CRF values below CRF17/18. And I am unable to find a reason anywhere that justifies the uses of lower CRF values. So what are lower CRF values good for?  Will there be more generation loss in CRF 17/18 and less generation loss in lower CRF value encodings?

When converting an array of jpegs to a video file (ogg format) I have been using the -crf option.  What are the valid ranges for -crf? Currently I am using 23.    I cannot find the bookmark I read to know what this flag does and I have spent some time Googling around.  These are the arguments I am using at the moment:  -f image2 -r 10 -i " + _sourcePath + @"\img%05d.jpg -crf 18  -y -r 10 " + _destPath + "\\" + _filename + ".ogg"


I currently have a ‘forwards to’ set up in my godaddy account, so email sent to richard@richardclunan.com goes to my gmail.  And I send email from my gmail so it looks like it’s sent from richard@richardclunan.com  My godaddy account is using a POP server.  I’m wondering about the reliability. It’s not an issue for me if some emails are delayed sometimes. But it is an issue if I don’t receive emails or if emails I send out don’t get to their destinations.  Is this an issue with a POP server?  I’m guessing any issue would be with me receiving email, rather than sending – since they’re sent from gmail, but received via a godaddy POP server.  – I have my domains registered with godaddy, hosting on hostgator, and using POP email server on godaddy. I could use the hostgator email server if that might be a better set up; though I don’t want to change it unnecessarily.  – Or I guess another option would be to use a Google Apps for business account, instead of my free gmail – would this mean better reliability? Would doing this mean I’d then not be using the godaddy POP server, or would I still be using a mail server at godaddy, since my domain is registered with godaddy?  Thanks.

When sending or forwarding emails using a personal or company domain using a  website or email client, how do I prevent the email from being incorrectly marked as spam?


Is the space $(\mathbb Q\times\mathbb Q)\cup$$(\mathbb R- \mathbb Q\times \mathbb R-\mathbb Q)$ connected? I am really stuck at it. Any hints?

Is the set of points in the plane whose coordinates are either both irrational, or both rational connected?


Now that  is , can we get the "close as belongs on" added for it to StackOverflow? See also: . I'm re-asking since that was apparently asked before the site got out of beta and was marked as a bug report (status-by-design).

Currently the migration path options from SO are:   Meta.SO Serverfault SuperUser Webmasters Programmers   If we are going to be limited to 5 options, shouldn't we periodically re-evaluate which sites are most appropriate?   (10k only) indicate that the top sites for the last 90 days are:   Superuser - 564 - 5% rejected ServerFault - 278 - 10% rejected Tex - 157 - 13% rejected DBA - 144 - 2% rejected Sharepoint - 127 - 1% rejected Programmers - 126 - 26% rejected CodeReview - 100 - 3% rejected Meta.SO - 81 - 18% rejected Wordpress - 75 - 14% rejected Webmasters - 58 - 8% rejected   All these migrations for sites out of the list required a flag and a moderator to process it.  This is just extra work for the mod team!  If we had the top 5 destinations by volume as the 5 options, we would have had a net savings of 160 flags to be processed.  I suspect we will actually see these numbers change quite a bit if it's easier for users to put questions in the appropriate spot without moderator intervention.  Can we have a review of the migration path list based on migration volume?  Think of the flags!


I am a non-EU national (with a non-EU passport) residing in the UK as a student. I applied for a single-entry Schengen visa for Denmark around 2 months ago. I was granted a multiple-entry visa that is valid for 6 months (visa Type C, duration of stay valid for 90 days).   I made my trip to Denmark and returned back to the UK (duration of stay in Denmark: one week). I would now like to travel through to my home country for Christmas, and stop to visit a friend in Geneva en route (for approximately five days).    Is it possible to use the recently-granted Schengen visa for this, especially as I do not plan to visit Denmark on this trip?

My wife was just issued a multiple entry visa by France, which is good for one year.  Our first trip will be to France, the issuing country.  My question is: after we leave the EU and return, must future trips also start in France? Or may we go directly to (say) Greece from the US on a later visit?


Im new on ubuntu, when I installed the drivers, it got stuck at the end of "Applying changes", at a point I rebooted and when I tried to login, it looped, I putted my password, it seems it worked, but then it goes back to the login page. I am able to use CLI and login through CLI, I also tried to install the drivers through CLI but at the end an error came up, and when I rebooted the same happend, Im trying to install drivers because Im stuck at 1024x768 resolution, I cannot change that. How can I change the resolution/ install the drivers without loop?  Thanks.

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


I am trying to create a process to be automatically started and maintained by Ubuntu's upstart (Ubuntu 12.04). I have been looking at  as well as on  and I am aware of the  and . Using especially the information from the first two likes, I did the following to incorporate such a process. First, I created a file /etc/init/testservice.conf with the following content:   # myservice - myservice job file  description "my service description" author "Me <myself@i.com>"  # Stanzas # # Stanzas control when and how a process is started and stopped # See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn  # When to start the service start on runlevel [2345]  # When to stop the service stop on runlevel [016]  # Automatically restart process if crashed respawn  # Essentially lets upstart know the process will detach itself to the background #expect fork  chdir /home/user/testcode  # Start the process exec python mycommand.py   with some simple dummy python code mycommand.py residing in the directory /home/user/testcode. Checking with initctl list or ps I see that the command is not yet running. Therefore, I tried to start it 'manually' according to  with   start testservice   which produced the following output  start: Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=1000 pid=9103 comm="start testservice ) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" estination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")   but did not start the process mycommand.py.   What am I doing wrong? How to tell ubuntu and/or upstart to run the command?

I need one process run before log in  to system. How to run it like services? how do I make services in Linux?  In Ubuntu and Fedora? The service is customized tomcat


I am facing a similar problem. I have to snippet details for the same URL means different title and different description for search keyword "PPC agency Dubai" and "pay per click" for the keyword search "Pay per click Dubai" 1.) Pay Per Click(PPC) - Example https://www.example.ae/pay-per-click.php PPC Agency Dubai: Example is one of the famous digital marketing agency in Dubai for pay per click & google Ads services. Call @ <number redacted>. for keyword search "PPC agency Dubai" 1.) PPC agency Dubai: Digital marketing agency Dubai - google ads https://www.example.ae/pay-per-click.php PPC Agency Dubai: Example is one of the famous digital marketing agency in Dubai for pay per click & google Ads services. Call @ <number redacted>. Plz, guide me on what I should do.

I'm just wondering how it is possible that IGN.com has this in its title tag:      Video Games, Cheats, Walkthroughs, Game Trailers, Reviews, News, Previews & Videos at IGN   while on Google its title is simply "IGN".   How can one achieve such a thing? Does it use some special meta tag I can't see?


So as you can see in the picture every object I create (in this case the default cube) doesn't have any content other than an outline when you select it and you can see this weird mirror effect instead of the colour. I have tried to reset all the settings, and adjust viewing distance. I've even reinstalled Blender but it is still the same. Everything used to work absolutely fine until recently when I started working on some advanced project way above my skill level and I changed some of the settings... Kindly ask for help.

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?


Why is it "runners-up", as opposed to the naïve "runner-ups"?   Is there a rule to remember for these situations?

This is purely a curiosity, but I'm fascinated by mid-word pluralization, even if the word in question is a compound word.  For example, passersby or standersby.  No others have occurred to me. Can you provide other examples, or a link to a resource that enumerates them?  I'm particularly interested in compounds that do not include spaces or hyphens.


I constantly have error message "Low disk space". According to my storage I have "C" drive 464 Gb.  So I ran TreeSize to get the details of what taking space and it seems like all my stuff occupies 127 GB. What takes the rest of 337 GB? How can I fix it?

How can I visualize which folders and files are taking up all of the space on my hard drive?  I'm getting some conflicting reports on the size of hard drive contents. Namely what is and isn't there and what folders are actually using the space.   I need to know which of the files or folders the culprits behind all this hidden bloat. Also there should be a print option to get it on paper.


As shown in my code, if int x = 100, int y = 50, I have to write 50 for loop to get the result. How can I use recursion to run the n nested-loop without typing it manually in Java?  public static void main(String[] args) {     // create a blank arrayList to store raw data     ArrayList < Integer > originalData = new ArrayList < > ();      // create a blank arrayList to store all combinations     ArrayList < ArrayList < Integer >> allCombinations = new ArrayList < > ();      // the length of the arraylist we just created.     // suppose it's 4 now.     int x = 4;      // generate elements     for (int i = 0; i < x; i++) {         originalData.add(i);     }      // how many elements we need in each combination.     // suppoer it's 3 now     int y = 3;      // the number of for-loop is y     for (int i = 0; i < originalData.size(); i++) {         for (int j = 0; j < originalData.size(); j++) {             for (int k = 0; k < originalData.size(); k++) {                  // create a new arrayList to store all elements in a single combination                 ArrayList < Integer > singleItem = new ArrayList < > ();                 singleItem.add(originalData.get(i));                 singleItem.add(originalData.get(j));                 singleItem.add(originalData.get(k));                  // store all combinations to an arraylist                 allCombinations.add(singleItem);              }         }     }     System.out.println(allCombinations); }

In other words, can I do something like  for() {     for {        for {        }     } }   Except N times? In other words, when the method creating the loops is called, it is given some parameter N, and the method would then create N of these loops nested one in another?  Of course, the idea is that there should be an "easy" or "the usual" way of doing it. I already have an idea for a very complicated one.


Is there a way to run a Gui application (X11) in background so that if I disconnect, I can resume the running app again?  I am using SmarTTY on windows to connect to remote CentOS. When I run a Gui application (e.g. gnome-help) it starts Xming server and displays its window.   I want to keep it running even if I disconnect, crash or close ssh connection. So that I can get back to running applicaition later.  I have tried 'screen' and '&' and combination of both but neither works. I can not connect again to the GUI application when SSH connection is closed.  --EDIT--    As answered by Anthon   Install both the VNC Server and VNC Viewer on the remote system (e.g. CentOS).   Start VNC Server on remote Xvnc -localhost :13  Start VNC Viewer so that it displays locally via X (e.g. on your Windows) Set display export DISPLAY=:13 Start a GUI application and it will be displayed in the VNC Viewer

I'm using X11 forwarding over ssh to run Linux apps on my Windows box, and when the network drops it loses everything that was running. Is there anything similar to screen for X11?


I use android java, I have two button, button A is run timer, it can change many vocabulary in 5 second, the Button B is stop timer, when I press button A ,timer run fine, press button B is fine too. But when I press button A->button B->button A, it will shut down,how can I slove this problem? thanks. this is my code:    private Button.OnClickListener handbtn=new Button.OnClickListener(){//ButtonB     @Override     public void onClick(View view) {                   if(timer != null) {             timer.cancel();             timer.purge();             timer = null;         }              url ="https://kei-sei.com/cram/n5.json";             level.setText("N5");                  String result = dbn5.executeQuery(url);         try{                           JSONArray array = new JSONArray(result);                          Random random=new Random();             int tmp=random.nextInt(array.length()-1);             JSONObject jsonObject = array.getJSONObject(tmp);             String word = jsonObject.getString("word");             jp.setText(word);         }         catch(JSONException e) {                      }     } }; public void begin() {       timer.schedule(new MyTimerTask(), SEC*1000, SEC*1000) ;  } public class MyTimerTask extends TimerTask {     public void run()     {              url ="https://kei-sei.com/cram/n5.json";             level.setText("N5");         String result = dbn5.executeQuery(url);         try{             JSONArray array = new JSONArray(result);              Random random=new Random();             int tmp=random.nextInt(array.length()-1);             JSONObject jsonObject = array.getJSONObject(tmp);             String word = jsonObject.getString("word");                           jp.setText(word);         }         catch(JSONException e) {                      }     } };  private Button.OnClickListener autobtn=new Button.OnClickListener(){//ButtonA     @Override     public void onClick(View view) {             begin();                  }               } };

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


It is somewhat well-known that matrices $AB$ and $BA$ have the same characteristic polynomial, but all the proofs that I have seen use some field-specific property to prove the result (some use the fact that a finite degree polynomial with infinitely many zeroes must be zero, and some use some kind of metric and limits), but the result should be true for all fields and should therefore have a purely algebraic proof. I would be very grateful if someone familiar with such a proof would post it here.

Let $ A, B $ be two square matrices of order $n$. Do $ AB $ and $ BA $ have same minimal and characteristic polynomials?   I have a proof only if $ A$ or $ B $ is invertible. Is it true for all cases?


I need to check whether the spelling which is given as input is correct or not, but it is not entering into my if statement.  I am able to verify the word variable is getting "RAINBOW" properly, but why it i snot entering into verification which is in if statement   import java.util.Scanner; class Character {     public static void main(String[] args)     {         String first;         String second;         String third;         String fourth;         String fifth;         String sixth;         String seventh;        String word;          Scanner sc=new Scanner(System.in);         System.out.println("Enter the first letter");         first=sc.next();         System.out.println("Enter the second letter");         second=sc.next();          System.out.println("Enter the third letter");         third=sc.next();          System.out.println("Enter the fourth letter");         fourth=sc.next();          System.out.println("Enter the fifth letter");         fifth=sc.next();          System.out.println("Enter the sixth letter");         sixth=sc.next();          System.out.println("Enter the seventh letter");         seventh=sc.next();         word =first+second+third+fourth+fifth+sixth+seventh;          if(word=="RAINBOW")             System.out.println(word);                 else          System.out.println("Wrong");       } }

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'm currently learning MSIL and wanted try, if I can "crack" an assembly only editing byte codes via Notepad++ (with Hex-Editor plugin). So I wrote a simple console application taking one argument, hashing it (SHA256), comparing it with an already set hash and writing "Right" or "Wrong" to the console. I opened this little application with ildasm.exe and saw that I only have to change 2 bytes to make my application say "Right" everytime. So I opened it in Notepad++, changed these two bytes and it worked. Now I wanted to try to protect my application against attacks like the one I tried. I came across strong name key files, but I was still able to change these to bytes two make my application say "Right" everytime.  So my question: Is there a way of protecting an .NET assembly from editing opcodes? I don't mean to protect it from opening in Notepad++, but I mean a mechanism that allows my application to detect changes made to the executable's file (without checking the file's modification date). I know that there is no full protection and there will be gaps everytime, but there have to be a way to give applications at least a little bit of modification protection.  For example: I could try to make a hash out of my application and compare to a given hash, but this can't work, because when I make a hash and put this hash into my application the application's hash will change.

I am implementing a "locking" system in my app which protects my app against being copied and used illegally. The system checks the signature of a hardware-based code and expects it to be signed with a Private Key that only my company owns. (The app has got the Public Key to validate the signature.)  I want to make sure that no one changes my locking mechanism in the app, so I want to sign my app's assembly and I think it makes sense.   Since I haven't seen the CLR ever talk about an assembly's signature being invalid, I want to make sure this system really works. Does it? What should I do to make it work? Can an attacker concentrate his efforts on the CLR to make it not care about my signature? That is, if he can't tamper with my code because I've signed it, can he tamper with CLR? Generally, I would like to know your experience about such safe-guards and protection technologies. Can any one suggest anything else?


Error JavaFX, I think its only a configuration or Java version problem. What do you think? This is the error: What is happening? Exception in Application start method java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)     at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$159(LauncherImpl.java:182)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException     at it.wunder.app.wmed.main.Utilities.getSelectedScaleName(Utilities.java:97)     at it.wunder.app.wmed.main.WMed.prepare(WMed.java:65)     at it.wunder.app.wmed.main.WMed.start(WMed.java:29)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$166(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$179(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at com.sun.glass.ui.win.WinApplication.lambda$null$152(WinApplication.java:177)     ... 1 more Exception running application it.wunder.app.wmed.main.WMed  Process finished with exit code 1  What should I do?


I using shell script to replace a number in the text file . Content of file is:  cat file 7.0.78 | 8.0 | 7.0.47   And I am using below command . This is working from command prompt but not from script.  Actual=8.0.44.0  sed -i -e "s/8.0/$Actual/g" file   I am getting output as | 7.0.478.0.44.0  from debug mode , I noticed that my variable become as:  + Actual=$'8.0.44.0\r' + echo $'8.0.44.0\r'   Please advise, how to fix this issue. Thanks

I use Cygwin on my laptop (DOS). I have a collection of scripts from my colleagues, and my own. I am not an IT person, not knowledgeable in Unix. I am following my colleagues' syntax and able to manage a few simple things. The scripts worked well on my old laptop. I just changed laptop and installed Cygwin. When I run my scripts, they do not work. Here is one example of the error message I get: line 1: $':\r': command not found line 5: syntax error near unexpected token `$'\r'' line 5: `fi  Here are the top 5 lines of my script : iter=1 if [ -f iter.txt ]    then rm ./iter.txt  fi    Can someone please explain how I can get around this problem?


My 11 mo twins are difficult to handle and I feel very sleepy. I am sleep deprived. I find it so hard to concentrate. Also my tiny baby constantly beats and pokes my other twin.

Sleep deprivation is a major problems for parents of a newborn child. Are there methods which could help young parents cope with sleep deprivation or reduce it? Have you tried any of them? What is your personal experience?


I was given this calculus problem and am very stuck on it and cant get an answer  The slope of the tangent line to the graph of $f(x)$ at each $x\neq 0$ is given by $e^{6x}+\frac{6}{x}$ and knowing that the graph contains the point $(1,e/3)$, find $f(x)$.  I know you need to integrate but I am stuck and cant get the right answer can anyone walk me through it?

I have a problem I am stuck on. its really confusing and I don't know where to start  The slope of the tangent line to the graph of $f(x)$ at each $x\ne 0$ is given by $e^{6x}+{6\over x}$ and knowing that the graph contains the point $(1,{e\over 3})$, find $f(x)$.   How do I start this?


Saludos.  ^^^ as you see, I just said hello in Spanish and nothing happened, despite "Saludos" means "greetings" in Spanish.  In Spanish Stack Exchange  that a post cannot start with something as normal as "Hay", which in English can be considered a greeting, but in Spanish just means "there are" and seems to be a perfectly valid word to start a post with :)  All of this comes from the  that Stack Exchange has in place, which performs some checks and removes those strings that match this regex:   ^                 # begins at start of body \s*               # possible spaces ( hii?(?![a-z])|    # any of these greeting words hello| h(e|a)y(?![a-z])| dear| greetings| hai| guys| howdy| h(i|e)ya| hola ) .*?               # followed by anything, up to... ( [.,;!-]+          # one or more bits of punctuation \s*               # possible spaces | (\r?\n)+          # one or more newlines )    At the same time, we seem to somehow know if a post is in English or not by using the .  All of this taken into consideration, could we have language specific automatic removal of salutations so clear greetings in other languages are removed, while perfectly valid non-greeting words are preserved? Of course, I mean this for the languages that currently have a site.

When saving posts, the first sentence is removed if it matches a regular expression. See . The purpose is to automatically remove salutations from posts.  The word “hay” is a very uncommon English salutation, but it is a quite important word in Spanish, meaning “There is”. It is also a common word in English. It is included in the above-mentioned regular expression.  Should it be removed from it, and therefore allow questions and answers to start with “hay”?  Advantages: you could start a question in the Spanish Stack Exchange with “Hay una palabra que...” (“There is a word that...”), or an answer with “Hay dos respuestas para tu pregunta” (“Your question has two answers”). You could start a question on Puzzles SE with the words “Hay weighs 8 pounds per cubic foot”. Etcetera. Basically, you can start a post with a valid sentence starting with “hay”, of which there are many in Spanish.  Disadvantages: Somebody could start a question with the very uncommon salutation “hay!” and that salutation will have to be deleted.


I'm trying to identify this series I read around 15 years ago. It was a fantasy trilogy, the first book had hints of Narnia to it, it started with a girl and her brother being sucked into another world through a portal in their basement (?) that generated alot of wind (the girl may have jumped in after the brother), and there was a mention of airplane models being thrown around. I think not long after she meets the Queen (or similar) of this world and her servant and the girl discovers she has abilities in this world such as being able to conjure a chocolate spread sandwich, however it tastes awful and when she creates it she has to visualise the taste as well. I'm sure the world had some sort of eternal winter deal as well. I can remember very little from this book other than I think the Queen wants the brother for something. I can't remember much of the second other than the brother starts developing some sort of powers, and in the third book he becomes similar to a scarecrow, living on a platform structure being fed by harpy like women while he somehow keeps the world safe. I think there were other children helping with this. This gets a bit confusing now as I was certain the second book had silver in the title and an orange background which fits exactly with "The Silver City" and some of the plot points do match, but not my strongest one which is the way magic worked in the first book (where she had to holistically conjure the whole object), there is a possibility these are two separate series!

I'm trying to identify a book I read in the mid-2000's in English, which I'm fairly sure was the first in a trilogy. I remember very little of the overall story-arc, but a few scenes stand out:   The main character was a young girl who somehow ended up in a world that wasn't her own When she first came to this new world she was in a massive room that at one point had enormous aquariums for walls, filled with colourful fish In this world you could create matter somehow, or reshape things, and she was told if she was hungry to visualise food and it would appear - she visualised a chocolate sandwich, and while it looked perfect, it tasted like nothing because she hadn't thought of the taste when she called it into being  There's a witch in the story, who has spiders in/around her mouth? And at one point the girl is terrified she's turning into the witch (her teeth are falling out and she's finding spiders in her mouth), but ultimately she realises it was her fear of turning into the witch that was causing this, as she was unconsciously transforming herself due to her fear, which only exacerbated the issue.    I've done a bunch of key-word searches in google but am finding it very difficult to track down.


I need to calculate the length of a line in (KM) in QGIS using the British National Grid as the Projection.  Can somebody explain to me how to do this?

I am using QGIS.   I would like to know if there is any way during the editing phase of a vector (line or polygon) to know the length of the line (total and partial) that is being created?


I was solving an algorithm problem using java and got this runtime error: Exception in thread "main" java.lang.NullPointerException     at java.io.FileOutputStream.<init>(FileOutputStream.java:203)     at java.io.FileOutputStream.<init>(FileOutputStream.java:101)     at java.io.FileWriter.<init>(FileWriter.java:63)     at Main.main(Main.java:50)  I don't have much experience with java so I am sharing my code here: import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*;  public class Main {      // Complete the breakingRecords function below.     static int maxXv(int[] gymXp, int strength) {         int temp = 0;         int xp = 0;         int max = gymXp[0];                  for (int i = 0; i < gymXp.length; i++){               if (gymXp[i] > max) {                  max = gymXp[i];              }         }         int digiSum = 0;         int num = 0;         for (int j = 0; j < gymXp.length; j++){             if (j == gymXp.length-1){                 xp += strength*gymXp[j];                 System.out.println("Battling Cuz im last, strength "+strength+ " xp="+ xp);                 continue;             }             if (gymXp[j]==max){                 xp += strength*gymXp[j];                 System.out.println("Battling Cuz im biggest, strength "+strength+ " xp="+ xp);                 continue;             }             num = strength;             digiSum = 0;             while(num!=0){                 digiSum = digiSum + num % 10;                 num = num/10;             }             strength += digiSum*digiSum*digiSum;             System.out.println("trained and now , strength "+strength+ " xp="+ xp);         }         return xp;     }      private static final Scanner scanner = new Scanner(System.in);      public static void main(String[] args) throws IOException {         BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));          int n = scanner.nextInt();         scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");                  int strength = scanner.nextInt();         scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");          int[] gymXp = new int[n];          String[] xpItems = scanner.nextLine().split(" ");         scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");          for (int i = 0; i < n; i++) {             int xpItem = Integer.parseInt(xpItems[i]);             gymXp[i] = xpItem;         }          int result = maxXv(gymXp, strength);          bufferedWriter.write(String.valueOf(result));          bufferedWriter.newLine();          bufferedWriter.close();          scanner.close();     } }   I don't understand what the error is about and when I run it on  it works just fine but it's giving me the above error on (which is where I was solving this problem). Please help me as I have been stuck for hours with this issue

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


My intention is to compare one existing excel cell value, a double called GRM with a newly generated value, a double called LRM and if the newly generated value (LRM) is greater than the pre existing value (GRM), reassign the value of GRM as LRM.   Trying to use .getNumericCellValue to locate my cell and get its numeric value throws a NullPointerException even though im sure the row and cell co-ordinates are correct.  To my understanding and trial and error the .getNumericCellValue starts from 1 and not 0.          double LRM = (((weight * reps) * 0.0333) + weight);         double GRM = w.getSheetAt(0).getRow(1).getCell(7).getNumericCellValue()          if (LRM > GRM)  {             Cell d1 = r2.createCell(7);             d1.setCellValue(LRM);             GRM = LRM;         }   Exception message:  Exception in thread "main" java.lang.NullPointerException     at com.company.WriteSquat.main(WriteSquat.java:63)


I plan on traveling to Taiwan soon. Trying to understand the scope of the travel ban. Flights have not been cancelled.

This community wiki explains the current restrictions by the United States of America on the entry of individuals who may pose a risk of transmission of the SARS-Cov2, the virus which causes the Covid-19 disease.


I am using a laptop with ATI Radeon 8650G. I am unable to install fglrx in Ubuntu 16.04. Can I install the fglrx found in package archives from 14.04?

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I performed some benchmarking to compare doubles and floats performance. I was very surprised to see that doubles are much faster than floats.  I saw some discussion about that, for example:      Most of them said that it is possible that double and float performance will be similar , because of double-precision optimization, etc. . But I saw a x2 performance improvement when using doubles!! How is it possible? What makes it worst, is that I'm using a 32-bit machine which do expected to perform better for floats according to some posts...  I used C# to check it precisely but I see that similar C++ implementation have similar behavior.  Code I used to check it:  static void Main(string[] args) {   double[,] doubles = new double[64, 64];   float[,] floats = new float[64, 64];    System.Diagnostics.Stopwatch s = new System.Diagnostics.Stopwatch();    s.Restart();   CalcDoubles(doubles);   s.Stop();   long doubleTime = s.ElapsedMilliseconds;    s.Restart();   CalcFloats(floats);   s.Stop();   long floatTime = s.ElapsedMilliseconds;    Console.WriteLine("Doubles time: " + doubleTime + " ms");   Console.WriteLine("Floats time: " + floatTime + " ms"); }  private static void CalcDoubles(double[,] arr) {   unsafe   {     fixed (double* p = arr)     {       for (int b = 0; b < 192 * 12; ++b)       {         for (int i = 0; i < 64; ++i)         {           for (int j = 0; j < 64; ++j)           {             double* addr = (p + i * 64 + j);             double arrij = *addr;             arrij = arrij == 0 ? 1.0f / (i * j) : arrij * (double)i / j;             *addr = arrij;           }         }       }     }   } }  private static void CalcFloats(float[,] arr) {   unsafe   {     fixed (float* p = arr)     {       for (int b = 0; b < 192 * 12; ++b)       {         for (int i = 0; i < 64; ++i)         {           for (int j = 0; j < 64; ++j)           {             float* addr = (p + i * 64 + j);             float arrij = *addr;             arrij = arrij == 0 ? 1.0f / (i * j) : arrij * (float)i / j;             *addr = arrij;           }         }       }     }   } }   I'm using a very weak notebook: Intel Atom N455 processor (dual core, 1.67GHz, 32bit) with 2GB RAM.

I'm writing an application which reads large arrays of floats and performs some simple operations with them. I'm using floats, because I thought it'd be faster than doubles, but after doing some research I've found that there's some confusion about this topic. Can anyone elaborate on this?


The reason salt water is so conductive is dissolved ions (e.g. $\mathrm{Cl^-}$ and $\mathrm{Na^+}$). If I put an anode and a cathode in water, will ions eventually build up and create an opposing voltage which would slow the current flow?  Does this make salt water is less a conductor, and more like a cell or a capacitor?

It is well-known that an aqueous ionic solution can conduct electricity. Let's take the electrolyte NaCl for example. In the diagram below, the circuit consists of a voltage source, a light bulb, and a concentrated NaCl solution.   Initially, the bulb will shine brightly. Assume the voltage source can source energy forever. My question is: will the NaCl solution allow current to flow forever, or will the conductivity of the NaCl solution degrade over time?


What is the proper way to set document class by providing the path to the custom class file? Something like this:  \documentclass{../myclass/myclass}   This kind of works but I'm getting an error that my myclass.cls is not exporting ../myclass/myclass but myclass.  I'm working on three projects for which I need a custom class and I want them to share it as well. I'm also working on that custom class and am changing it so I want it to be in the same directory as those three projects.  Here's my dir structure:  Main Project Folder  + MyClass -- myclass.cls + Project 01 -+ Code -+ Images -- Project 01.tex -- ... + Project 02 --+ Code --+ Images -- Project 01.tex -- ... + Project 03 --+ Code --+ Images -- Project 01.tex -- ...

I'm trying to set the documentclass type of a certain .tex file to be a class that is in the parent folder. However, I'm not sure how to include the path to the .cls file. I can write   \documentclass[letterpaper,12pt]{../foo}   But that complains that the imported class isn't the same as the provided class (in foo.cls I have \ProvidesClass{foo}. I know that this is just a warning and I could ignore it, or I could write \ProvidesClass{../foo}, but was wondering if there was a cleaner way to do the document class declaration.


I am using the below command to print the list of figures. But I would like to exclude the citations in the list of figures, though it should show in pdf.  \listoffigures\addcontentsline{toc}{chapters}{\listfigurename}     So I wanted to exclude the citatons in this image above.  Any help would be appreciated.

I have list of figures page. Some of these figures' captions have citation. How can I remove the citation from the list of figures page and keep the citation on the normal pages ? Regards  ::::::::::::::::::::::::: Addendum I am using the following command :   \newcommand{\munepsfig}[3][scale=1.0]{%     \begin{figure}[!htbp]         \centering         \vspace{2mm}         \includegraphics[#1]{figures/#2.eps}         \caption{#3}         \label{fig:#2}     \end{figure} }   Sample Usage:  \munepsfig[scale=0.5,angle=90]{barchart}{Population over time}


I want to take a screenshot with import, and save it into a file whose name is current time.  Here is what I've tried:  sunqingyao:~$ date '+screenshot-%y%m%d-%H%M%S.png' screenshot-170716-173336.png # OK  sunqingyao:~$ import screenshot-170716-173336.png sunqingyao:~$ ls -l screenshot-170716-173336.png  -rw-rw-r-- 1 sunqingyao sunqingyao 250556 Jul 16 17:35 screenshot-170716-173336.png # OK  sunqingyao:~$ date '+screenshot-%y%m%d-%H%M%S.png' | import import: missing an image filename `import' @ error/import.c/ImportImageCommand/1293. # Not OK   For some reason, I want this command to be a one-liner.  Background info:  Actually I'm trying to bind a key to screenshot taking with i3. Here is the relevant part of my ~/.config/i3/config:  # Take a screenshot upon pressing $mod+x (select an area) # https://i3wm.org/docs/userguide.html#keybindings bindsym --release $mod+x exec --no-startup-id date '+screenshot-%y%m%d-%H%M%S.png' | import   Seems that I can only bind a key to a command that can fit in only one line, which is why a one-liner is required.

I've a command that outputs data to stdout (command1 -p=aaa -v=bbb -i=4). The output line can have the following value:  rate (10%) - name: value - 10Kbps   I want to grep that output in order to store that 'rate' (I guess pipe will be useful here). And finally, I would like that rate to be a value of a parameter on a second command (let's say command2 -t=${rate})  It looks to be tricky on my side; I would like to know better how to use pipes, grep, sed and so on.  I've tried lots of combinations like that one but I'm getting confused of these:  $ command1 -p=aaa -v=bbb -i=4 | grep "rate" 2>&1 command2 -t="rate was "${rate}


In Bash, I want to call a command multiple times in parallel, while capturing all the processes exit codes.  I know how to start and wait for them, but wait will only give me the exit code of the last process exiting. I also need the exit code of the shorter lived processes.  Unfortunately I don't have bash 4.3, so wait -n is not an option, nor is gnu parallel as suggested in    pretty much asks the same question but no solution was offered there either.  The only way I can currently think of is writing a helper script that stores the exit codes in a file, but this doesn't sound like a clean solution.

How to wait in a bash script for several subprocesses spawned from that script to finish and return exit code !=0 when any of the subprocesses ends with code !=0 ?  Simple script:  #!/bin/bash for i in `seq 0 9`; do   doCalculations $i & done wait   The above script will wait for all 10 spawned subprocesses, but it will always give exit status 0 (see help wait). How can I modify this script so it will discover exit statuses of spawned subprocesses and return exit code 1 when any of subprocesses ends with code !=0?  Is there any better solution for that than collecting PIDs of the subprocesses, wait for them in order and sum exit statuses?


Based on , if a target is under the effect of an ongoing spell, and then the target changes such that it is no longer a valid target, the spell no longer effects them.  But does the spell end, or is it merely suppressed?  For example, suppose a human has been charmed by a dominate person spell. A friendly wizard casts polymorph on them; they fail their save and get turned into a sheep.  This makes their type change to Beast, which is an invalid target for the dominate person spell, and the charm effect ends. The next turn, the wizard chooses not to concentrate, so polymorph ends and the target pops back into human form.  Assuming the dominating caster has maintained their concentration (if possible), did the spell simply end when the target became invalid, or does being invalid just suppress the dominate spell, which reasserts itself once the target is once more valid, like it would in an antimagic field?

Does going outside the range of the spell or breaking line of sight between the caster and target break concentration or otherwise affect control over the spell?  For example, a Heat Metal spell has a range of 60 ft. If I cast the Heat Metal spell on a an armored foe, and that foe runs outside the range of the spell (60 ft), or around the corner, does that break concentration and end the spell? Heat Metal also allows you to use a bonus action to cause the 2d8 of damage — would exercising that option be prevented by being out of range or line of sight?


What is the use of this USB (mini-B) cable that forks to a "black" and "red" connection:    The cable was included with some product. I'm pretty sure it was a camera (which I no longer have and never used). So, my guess was always that you could get faster transfer rate if both the red and black ends are plugged into the laptop. But that sounds crazy. Is that technically possible? If not, why have a forked connection?

3 years ago I went volunteering and brought back this weird USB cable and in those 3 years i never could figure out how to use this USB cable and what is the purpose of its disposition. So... what do you use this cable for (I think those are 3 USB 2.0 connectors - I don't know how to differenciate USB 2.0 and older USB's...) ?


My iPad was recently destroyed. There were a lot of pictures on it I would like to retrieve. I did have iCloud turned on. How can I access that backup and retrieve my pictures?

I had an iPhone 4 stolen from me and there is an associated iCloud backup with tons of data I want. Is there any possible way to access this without the iPhone 4?  I also got an iPhone 5 recently but don't think the restore will work (but haven't tried).


I enjoy making different geoprocessing tools to practice Python and to become more familiar with the arcpy modules. I've just been using a Custom Toolbox and then importing the Python script and setting the parameters, but I'm wondering if I should be using a Python Toolbox instead.  Are there any distinct advantages of one Toolbox over the other?

I've written a few Python Toolboxes (which are new at ArcGIS 10.1), but am yet to decide whether/when I should write them rather than Python Script Tools in a standard toolbox.  I thought the  might enlighten me when it prefaces some dot points with:     Once created, tools in a Python toolbox provide many advantages   However, the five advantages listed all seem to be over not being able to use Python to write tools, and none seem to specify an advantage of Python Toolboxes over Python Script Tools.  The two advantages that I can think of are:   I can now write a "pure" Python tool in a single Python script without having to hook it up to a separately authored dialog with its Tool Validation looking like it was tacked on but I'm happy to be pragmatic rather than pure in this regard I could now use code (Python or any language capable of writing text files) to automate the writing of Python toolboxes but I am yet to come across a requirement to do this   Am I overlooking the compelling case that led Esri to provide the Python Toolbox capability and, if so, what is it?


Sometimes comments are too long to fit on the star wall, and are truncated with "...":    It would be nice if holding the mouse over these showed a tooltip or something with the full message text, or if some other way of expanding the message was provided.  The messages can currently be viewed by clicking the timestamp then viewing the whole thing in the transcript. Not difficult, really, but a little cumbersome.  (Unless this feature exists already, and I missed it, in which case: Oops.)

In chat, starred messages appear in the panel to the right but are truncated to a certain length. Rather than have to follow the link to a new page, it would be useful to be able to hover over a starred message and see the full text.  Would there be demand for this?  Would this be practical to implement?  Does anyone have reason to object to this?


This is my first question at stats.  I need to impute some factors and numbers in my data set in R. What are my best options regarding packages and also a source to read more about the theory.

Could you recommend up-to-date and well-supported references on the topic of data imputation?


I want to export the rotation of all objects to a .txt file, but I dont know the actual python ommands in Blender. Made some try with google's help:  import bpy  ob = bpy.context.object  for ob in bpy.data.objects:       f=open('output.txt','w')      f.write(ob.rotation.euler[0]) f.close()

Is there an option in blender to export (or list out) certain properties of all (selected) objects?  My case is: I have modelled a furniture using real size, metric measurements. Now I want to hand a list of sheet sizes over (x-y-z dimensions of objects in blender) to the carpenter so he would be able to cut the correct sheets for me.   I am looking for an option to do all inside blender, if that isn't possible, an option of some kind of export would be acceptable.


When enter my site in google like this site:mywebsite.com I have seen this below image.    I have 169 total urls in my sitemap.xml file. It says 102 results found. But, when I go to next page (second page) I have seen this below image.    Now it shows only 12 results found. I have checked in webmaster tools also. It displays 169 urls submitted & 4 url indexed. I'm really confused. Googlebot index my site urls and didn't show up in Search results.   Why it displays like this 102 results found and then I go to next page it display 12 results only found?

In Google webmaster tools it shows that I have 309 pages indexed, but when I search using "site:site.com" appear about 180 only (On the first page appears "about 608 results," something near the total number of posts).  I have also noticed that some pages that were indexed before have simply disappeared from Google. In Google webmaster tools there is no error message or anything to indicate any punishment by Google.  According to Google webmaster tools, daily new pages are indexed, but for some reason they are not displayed in the search.  Am I really affected by some punishment by Google or this is some kind of bug?  How can I solve this problem and have all pages indexed normally?


I am a bit confused because everyone says to reduce the swappiness to about 10; but if I have only 4GB RAM than how much swappiness would be the best? and also If I had 8 and 16GB ram?  and also I am not talking about swap partition/file size I am talking about swappiness.  [Edit]: I don't want to know that what swappiness does, instead I want how much I need. According to a suggestion below I am listing some common tasks and apps I use. I am a programmer so apps like: VScode, Pycharm are neccesary for me and also some heavy tasks like virtualization (most of the times of android or windows) are in my usual work. And I also do video editing and graphics design, but, for those I use light programs (I think they are because they feels so fast) like: Shotcut, Inkscape.  So, I think this info would help in answering the question Will appreciate an answer!:))

Per the kernel documentation:  This control is used to define how aggressive the kernel will swap memory pages.  Higher values will increase aggressiveness, lower values decrease the amount of swap.   However this is kind of vague. I'm trying to figure out exactly what the parameter ultimately controls. I know it adjusts how aggressively the kernel tries to swap out pages, but what decision making process in the kernel code does it affect?  Does it adjust how long ago a page must have been accessed before the kernel swaps it out? If so what does the default value of 60 represent? And how much is changed by a increment/decrement of 1 (a formula would be nice)? Or does it swap out pages based on their access frequency? Or something else?


I assume I should find $n \le 100$ such that  $$2^{10000}\equiv n\! \pmod {100}$$ I can see that  $$2^{10000}= \left(2^{2}\right)^{5000}\equiv 0 \! \pmod {4}$$ and since $\phi (25)=20$ and $gcd(2,25)=1$ we also get  $$2^{10000}=\left(2^{20}\right)^{500}\equiv 1\! \pmod {25}$$  But since i get different remainders i dont know how to proceed

To find last two digits  of $2^{100}$  I have just learned about modular arithmetic and I wanted to solve this problem. I only know about equivalence classes and about  $a=b \pmod n$. I have also learned about multiplication and addition of classes.  Can someone explain to me step by step on how to apply modular arithmetic to this problem?  Thanks


In the following proof we harness properties such as: For all set $A$, (i) $A = A - \varnothing$ (ii) $A \cap\varnothing=\varnothing$ Proof: Let $A$ and $B$ be arbitrary sets and suppose $( A \cup B ) - B = A$. Given (i) then $$( A \cup B ) - B = A - \varnothing.$$ So then, $( A \cup B ) = A$ and $B = \varnothing$. That being so, $$A \cap B = ( A \cup B ) \cap \varnothing = \varnothing$$ If we apply (ii) to the foregoing equivalence relation. Therefore $$A \cap B = \varnothing$$ Is this proof right? if it is I would like to see alternative ones.

In the next proof we avail ourselves of the next lemma: For all sets A and B, ( A ∪ B ) - B = A. Proof: Let A and B be arbitrary sets and let x ∈ ( A ∪ B ) - B. x ∈ ( A ∪ B ) - B ⇔ x ∈ ( A ∪ B ) ∧ x ∉ B ⇔ ( x ∈ A ∨ x ∈ B ) ∧ x ∉ B ⇔ ( x ∈ A ∧ x ∉ B ) ∨ ( x ∈ B ∨ x ∉ B) For p ∧ ~ p ≡ F and p ∧ q ⇒ p where p and q are prepositions, ( x ∈ A ∧ x ∉ B ) ∨ ( x ∈ B ∨ x ∉ B ) ⇔ x ∈ A ∨ F By modus tollendo ponens, x ∈ A ∨ F ⇔ x ∈ A So then, x ∈ ( A ∪ B ) - B ⇔ x ∈ A And ( A ∪ B ) - B = A Therefore, the statement for all sets A and B, A ∩ B = ∅  implies ( A ∪ B ) - B = A is true trivially. Is this proof right?


I want to go through each number in the range 1-1000, but I need my program to be 3 digits. So 001, 002, 003,...,999. How can I do this?

Given: a = 1 b = 10 c = 100  How do I display a leading zero for all numbers with less than two digits? This is the output I'm expecting: 01 10 100


I have been trying to send String to my mainActivity from a fragment. I don't know if I done this right, but I start new mainActivity Intent after user presses button in fragment.  What I want to do is when application is opened fragment needs to be loaded instead of mainActivity if there is no String message sent from fragment. At the start of the main Activity I tried to check if the message is not null but I get an error and application don't want to start because I'am trying to access null object      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.audriusalekna.camerapht/com.example.audriusalekna.camerapht.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object referenc   Should I take a different approach on doing that?  Here is my code   Intent intent = getIntent();     if(intent.getExtras().getString("tagsText") == null){         Fragment fragment = TagsFragment.newInstance(tagsText, "blah");          FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();         transaction.replace(R.id.fragment, fragment).commit();         cameraBtn.setEnabled(false);         cameraBtn.setVisibility(View.GONE);         firstTime = false;     }     else{         tagsText = intent.getExtras().getString("tagsText");         Log.v("MESSAGE", tagsText);     }

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


In my web app I need to store JSON in one of the database fields (just one field). On the backend side (PHP) I am converting array to json via json_encode().  The output of the above is:  [{"przyczyna":"Niezgodno\u015b\u0107"}]   Which is encoded:  [{"przyczyna":"Niezgodność"}]   And this is correct.  Then I am sending this string to my database via mysqli (standard $mysqli->query()).   And when I go to my database I can see that the field has value:  [{"przyczyna":"Niezgodnou015bu0107"}]   The backslashes are gone and I can't properly decode it. How can I upload this to my database without backslashed being stripped? On the PHP side and database (MySQL) I am using utf8 coding. I tried to use utf8mb4 but the result was the same.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I was sitting in my bed and left my computer to the side, and I accidentally knocked over a cup of tea I was drinking earlier, I'm pretty sure everything on my computer works except the touchpad. The touchpad won't work; it won't move my mouse or click on anything! My computer is an HP Laptop and Windows 10 and is Model 14-cf0006dx.

I'd love some advice in repairing a water-damaged laptop.  My girlfriend spilled a glass of water on her Sony Vaio and now it doesn't turn on...at all...dead! What steps should I go through to work out where the problem is and which part(s) I'll need to replace?  I can't seem to find out what has happened by just looking at the circuit boards. I'm new to electronics but could buy relevant volt-meters etc. I'm just looking for a decent trouble-shooting guide.


Inside a zip I have one more zip file  I want a command to extract all at once.

I have a folder ExampleFolder which contains many zipped folders. These zipped folders also contains multiple zipped folders. How to go through ExampleFolder and extract all of its zipped folders recursively?   Note that ExampleFolder itself, is not zipped, it's just a normal folder  Okay now I know what's happening Rinzwind and nux answers are both correct (except that I have to keep pressing Y or A forever)  But it's seems that some of the zipped files, contained zipped files and rar files as well, the rar files will not be extracted by   while [ "`find . -type f -name '*.zip' | wc -l`" -gt 0 ]; do find -type f -name "*.zip" -exec unzip -- '{}' \; -exec rm -- '{}' \;; done    or whatever  Edit 2 Some files are named .r00 and r01, .r02 up to r14, they are rar files, but not .rar


What this is the following command doing? I'm new, and still learning.  $ sh < foo > bar   How to interpret it step by step so that I can get clear understanding more question like this.

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .