How should I connect 2 ISPs to a single LAN?

I have the following equipment, which I want to connect as described to two ISPs.  1 internet server - ubuntu 16.04 - to ISP 1  2 content creator - win7 - to ISP 1  3 HTPC - ubuntu 16.04 - to ISP 2  4 Sony BluRay player - to ISP 2  5 admin - ubuntu 16.04 - to ISP 1 -- needs to mount drives from computers 1, 2, and 3, admin both routers, and be a file server to HTPC.  I think what I may need is to connect it all to a switch, but I don't have one to test. Another possibility might be extra lan cards, or wireless cards.  What would be best, and are there any pitfalls I need to avoid in the topology?  If I need to supply any more info I'll be happy to do so.  Speaking of which, as a pre-edit if you will, everything is in one 16x16 room, mostly on one wall.  ISP 1 is suitable for the server, whereas ISP 2 will not provide a properly formatted reverse DNS. AOL and Comcast mail servers insist on that.  ISP 2 gives me more bandwidth, so that Netflix etc. don't detract from our customers' experience.  Both routers are set to 192.168.0.1, but that can change, of course.


Is there a command-line wrapper providing history etc. to dumb CLIs?

I regularly have to use certain command line tools like smbclient or sqlplus which offer rudimentary or no command line editing capabilities. I.e., the aforementioned programs offer you a prompt, and typing commands there is the primary or only way of interacting with them, but they provide no history, you cannot scroll up or even move the cursor to left on the current line. This is often in docker containers where I control the Dockerfile; i.e. I could install small further tools. Is there a generic unix tool which wraps such a dumb command line tool, providing the more modern capabilities comparable to, say, readline? I would at the very least wish to use the cursor keys, and preferably even a persistent history. The program would sit between the terminal and the dumb CLI and translate. This is in contexts where TERM etc. are all set correctly; i.e. on a bash in that same environment, or in more modern CLIs, everything works fine. Instead of sqlplus myschema@db  ... I would type... good_editing_wrapper sqlplus myschema@db  and as if by magic, the command line of that tool would work great. As comparison, Emacs has a shell-mode which does exactly that - it controls the inferious program, while presenting "good" editing to the user. I am now looking for a standalone version of that, in cases where I am in places where there I cannot easily install Emacs.


In this code:  protected static void HandleExceptions(Exception E) {     switch (E)     {         case MongoWriteException _ :         {   what does the discarded variable ('_' here) is supposed to be?


Trying to make a sign give me diamonds if i press it with 64 stone

I'm trying to use this command to give me the sign with the right "click" command: /give @p minecraft:oak_sign{BlockEntityTag:{Text1:"{\"text\":\"ex\", \"clickEvent\":{\"action\":\"run_command\", \"value\":\"execute as @p[nbt={SelectedItem:{id:"minecraft:stone", Count:64b}}] run give @p minecraft:diamond\"}}"}}  But Minecraft comes with a error msg that says "Expected '}' at position 175: ...Item:id"<--[HERE]". What is the problem here? If I use this it runs fine: execute as @p[nbt={SelectedItem:{id:"minecraft:stone", Count:64b}}] run say hi


How to disable and re-enable an (wireless) network device?

I know I can enable and disable my network Devices in Control Panel > Network and Internet > Network Connections. I use the context menu and click on "Disable" and then "Enable".     Because I have to do this regulary - I don't know why - I want to do this using the shell and create a Batch-program or with powershell or something.  Is there any way to restart using the command line this particular device?


How to prevent fresh peaches from sinking to the bottom of a buttermilk pound cak?

I baked a buttermilk pound cake which was a very thick batter.  The recipe said to dice 3-4 fresh peaches and put them on top of the batter just before it went into the oven.  I did as directed and all the peaches sunk to the bottom and stuck to the bundt pan.  It was delicious but very ungl.  Help!


How to install driver for TP-Link TL-WN722N(EU)V2 on Ubuntu 17.04 Kylin

I can not install the TP-LINK WN722N V2, which includes a 8188 EUS chip. Then I tried to install the backports v4.4.2,but   do not want to recognize either.  The TP-Link driver installation errors thrown out:  man@kman-livve:~$ cd '/home/kman/Documents/Tplink 722 N V2/rtl8188EUS_linux_v4.3.0.8_13968.20150417' kman@kman-livve:~/Documents/Tplink ...$ sudo make  "******************************************" "NO SKRC,we will use default KSRC" "******************************************" make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-15-generic/build M=/home/kman/Documents/Tplink 722 N V2/rtl8188EUS_linux_v4.3.0.8_13968.20150417  modules make[1]: Entering directory '/usr/src/linux-headers-4.10.0-15-generic' arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support make[1]: *** No rule to make target '722'.  Stop. make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-15-generic' Makefile:1367: recipe for target 'modules' failed   A method to know him, I do not know about. Thanks  Model:TL-WN722N(EU)_V2_161112_Linux.zip Chipset:rtl8188EUS_linux_v4.3.0.8_13


Inverting $a+b\sqrt{2}$ in the field $\Bbb Q(\sqrt{2})$

I have been reading through my notes and I came across this example and I found it hard to understand so I need some help in explaining how the inverse of this is found.  The set $\mathbb Q(\sqrt 2)=\{a+b\sqrt2$: $a,b$ in $\mathbb Q \}$ is a field. The inverse of an element $a+b\sqrt 2$ in $ \mathbb Q(\sqrt 2$) is  $$\frac{1}{a+b\sqrt{2}}=\frac{a}{a^2-2b^2}+\frac{-b}{a^2-2b^2}\sqrt{2} $$  Can anyone explain  to how the inverse was found? Appreciate your help.


Problem about points on an equilateral triangle

Suppose that $A$, $B$, and $C$ are three points in a plane, such that $AB = AC = BC = 1$. At each point in time, $A$ is moving toward $B$, $B$ is moving toward $C$, and $C$ is moving towards $A$, all with speed $v = 50$.  At what time $T$ will all the points reach the center of the triangle?


update-alternatives --install says it needs link name path priority?

I typed:  sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/ jdk1.8.0/bin/java" 1   It's says alternatives --install needs link name path priority


How to switch from IDE to AHCI after installing Windows Vista

Background  Advanced Host Controller Interface (AHCI) is a technical standard defined by Intel that specifies the operation of Serial ATA (SATA) disk controllers. When it is supported by your operating system and PC hardware, you will get the benefits of features such as native command queuing and hot swapping. For an older OS like Windows XP which does not support AHCI mode out of the box, without OEM-supplied drivers, it is possible to turn on the legacy (IDE) mode in the BIOS to get it to install properly. If your installed your Windows 7 or Windows 8 accidentally in the legacy IDE mode, and want to switch to the AHCI mode, Windows will not boot after you switch from IDE to AHCI in the BIOS.  Goal  This question aims on solving this problem with Windows Vista 32-bit installed on a SATA drive in BIOS IDE mode, as to how exactly to proceed when one wants to switch to AHCI without OS re-installation.


I have had this idea for years now and would finally like to fulfil it! I was always bothered by text-heavy travel blogs. Therefore, I aim to have a Web-GIS based travel blog in two years time. The idea is to start the homepage with a user-friendly map showing my travel routes worldwide linking it to photo albums and text. The map itself would show major information like the actual travel route and highlight places with recommendations linked to further texts.  Unfortunately I have no idea about how such a process could possibly start. I know I need way more info on how to create a homepage. So far I'm only experienced in desktop GIS versions. I hope you can give me some first hints and links. Things I haven’t thought about to start the project.


C++ if statements: first condition superseding the second - UB or well defined?

Being a moderate time coder, I saw things like the following many times:  if (a != nullptr && a->data != nullptr) {   // do something good with a and a->data }   However, I never really referred to documentation regarding such a simple case.     To my mind, the following is happening:   First, a != nullptr is checked Second, a->data != nullptr is checked   The thing now here is: if a != nullptr returns false and we have a conjunction via && then there's no point to check the second statement a->data != nullptr being true or false:  since the first statement results in a false expression, the code inside the if-statement will not be executed, we don't need to check the second expression    But recently I have returned to the question yet again:  Is if safe to have a construction like this: if (a != nullptr && a->data != nullptr) {}? Can it happen so that both* statements are checked and what I get is the nullptr dereference?  *- no multi-threading involved    What I'm asking is: is the above situation has a well defined behavior (and where can I find documentation for that) or this is generally UB that must be avoided? Is the behavior any different depending on the operating system (say, Windows vs. Linux-based)?


How to fill or Paint bucket in Inkscape without white space between two paths?

In inkscape I imported a jpg map file and by using trace bitmap utility I created a set of paths. Now I am trying to fill the regions between maps using paint bucket tool( More specifically the boundaries of area are traced as black. And they are paths not single object with black color filled in it and with no strokes.). But it is not filling completely. I tried variying the threshold and others.     But no luck. How to fill the space between boundaries without leaving white space.   Or  How to trace a map boundary as an object not as a path with black color fill in it.   Or   How to fill area between black color without using this paint bucket tool.    Answers of  question partialy addresses the problem. Even though the question is somewhat same but answer is not clear.


A question related to property of Isolated Singularity

I am trying assignment questions of my complex analysis course and could not prove this particular question. So, I am asking for help here.  Let f(z) has an isolated singularity at $z= z_0$ and that limit $ z \to z_0 f(z)(z- z_0)^m = M \neq 0 , \infty$ . Prove that $m$ must be an integer.  I am really confused on which result I should use to even start the solution. Kindly provide some hints for the problem. I would like to complete the solution by myself. Thank you!!


Remove OTA downloaded (but not installed) iOS 8

I've downloaded the new iOS 8 update on my iPhone 5 but am getting second thoughts about actually installing it.  Is there a way for me to delete that download or am I at the point of no return?


How does one identify the antecedent of a relative pronoun?

I am always confused with multiple attribute clauses. For example:   ... a complete virtual system composed of virtualized hardware components onto which an unmodified operating system can be installed.  For the "onto which an unmodified operating system call be installed." clause, does the which point to hardware components or a complete virtual system?  Does the attribute clause always modify the nearest noun?


The light doesnt going through glass and create a solid shadow and here the link for the file

For some reason the glass meterial create a solid shadow, im not sure wheter its shadow setting problem or another problem which I havent figure it out. Appreciate it if someone can point out my problem or fix it for me.


Is the following statement $$\frac{\partial^2 f}{\partial x \, \partial y}=\frac{\partial^2 f}{\partial y \, \partial x}$$ always true? If not what are the conditions for this to be true?


What is the easiest way to strip a desktop edition to a server edition?

We have installed Ubuntu desktop edition on our development server. Now that we have it in a data center we would like to strip it down to a server edition.  Is there an easy way of doing so rather than just going in and uninstalling packages by hand?


How do I generate a range of consecutive numbers (one per line) from a MySQL query so that I can insert them into a table?  For example:  nr 1 2 3 4 5   I would like to use only MySQL for this (not PHP or other languages).


How to supplement or update deprecated `mysql_real_escape_string`

I'm a PHP novice, trying to validate HTML form submission via PHP learned in a tutorial.   Code uses mysql_real_escape_string which PHP.net  is deprecated.  Here's an excerpt of that entire section:  /*Cleans an array to protect against injection attacks.*/ function f_clean($array) {     return array_map('mysql_real_escape_string', $array); }   What, if anything, should I add or change in the PHP in order maintain this security measure?


How to highlight elements of a matrix in a formula?

I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts inside the [AB] matrix. I've uploaded a picture to give you an idea. My code so far:  \documentclass[11pt,twoside]{report} \usepackage{amsmath} %helps with mathematics \usepackage{amssymb} %helps with mathematical symbols \numberwithin{equation}{section} %numbers the equation like (2.1) \begin{document} \begin{equation} \begin{Bmatrix} N_x \\ N_y \\ N_{xy} \\ M_x \\ M_y \\ M_{xy} \end{Bmatrix} = \begin{bmatrix} A_{11} & A_{12} & A_{16} & B_{11} & B_{12} & B_{16} \\ A_{21} & A_{22} & A_{26} & B_{21} & B_{22} & B_{26} \\ A_{61} & A_{62} & A_{66} & B_{61} & B_{62} & B_{66} \\ B_{11} & B_{12} & B_{16} & D_{11} & D_{12} & D_{16} \\ B_{21} & B_{22} & B_{26} & D_{21} & D_{22} & D_{26} \\ B_{61} & B_{62} & B_{66} & D_{61} & D_{62} & D_{66} \\ \end{bmatrix} \begin{Bmatrix} \epsilon_x \\ \epsilon_y \\ \epsilon_{xy} \\ \kappa_x \\ \kappa_y \\ \kappa_{xy} \end{Bmatrix}  \end{equation} \end{document}   If I try to work with tikzpictures I face the following problems: - not able to arrange the matrices as meant. They will be placed below eachother - with tikzpictures the equation number will be not aligned half the height of the equation Preferably I would like to have a filled area behind the to be highlighted part of the matrix.   Can someone help me?  Thank you in advance, Lisa


Dependent names template question from Stroustrup example

Stroustrup C++ 4th Ed Page 748 has an example of dependent names with regards to member templates.  Does anyone know what the dependent name is in this example?  Is it all based on the template parameter Alloc? Thanks! class Pool {  public:     template<typename T>     T∗ get();     template<typename T>     void release(T∗);  };  template<typename Alloc> void f(Alloc& all) {     int∗ p1 = all.get<int>();     int∗ p2 = all.template get<int>(); }  void user(Pool& pool) {      f(pool); }  Also Stroustrup states that "Compared to the use of typename to explicitly state that a name is assumed to name a type, the use of template to explicitly state that a name is assumed to name a template is rare.".  Curious, why would this example be so rare?


How to get a single input property of a node to draw in the UI panel directly in the panel?

I saw , but I'm not going to draw the whole XYZ (In my case), I just want to take the input properties individually, but I don't understand how  nodes = context.object.active_material.node_tree.nodes map = nodes.get('Mapping') if map:     layout.prop(map.inputs[1],'default_value[0]',text='Position X')


Why is the K silent in 'know' and 'knotty' etc?

Why don't we read ''k'' here?  Know → /nəʊ/   Knotty → /ˈnɒt.i/   Knockout → /ˈnɒk.aʊt/


Here's the thing I own a small business and currently my emails are being managed by some regular hosting using cpanel and that  I bought a small server and installed windows server and exchange   Can you tell what I did wrong here   Installed and configured my current existing domain Configured all email address Installed noip in case my public address change In the cpanel of the domain I've added an MX record to the noip domain of the server with priority 0 so now emails are being received by my own server   Now whenever I send an email to anyone gmail hotmail etc I get a response that cannot be delivered since may be junk  This didn't happen when I sent emails from the hosting   What's missing what did I do wrong  heres the code  mx.google.com rejected your message to the following e-mail addresses: Joan J. Guerra Makaren (joanjgm23@gmail.com) mx.google.com gave this error: [186.88.202.13 12] Our system has detected that this message is likely unsolicited mail. To reduce the amount of spam sent to Gmail, this message has been blocked. Please visit http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for more information. cn9si815432vcb.71 - gsmtp  Your message wasn't delivered due to a permission or security issue. It may have been rejected by a moderator, the address may only accept e-mail from certain senders, or another restriction may be preventing delivery.  Diagnostic information for administrators: Generating server: SERVERMEGA.megaconstrucciones.com.ve joanjgm23@gmail.com mx.google.com #550-5.7.1 [186.88.202.13 12] Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for 550 5.7.1 more information. cn9si815432vcb.71 - gsmtp ## Original message headers: Received: from SERVERMEGA.megaconstrucciones.com.ve  ([fe80::9096:e9c2:405b:6112]) by SERVERMEGA.megaconstrucciones.com.ve  ([fe80::9096:e9c2:405b:6112%10]) with mapi; Thu, 29 May 2014 11:32:19 -0430 From: prueba <prueba@megaconstrucciones.com.ve> To: "Joan J. Guerra Makaren" <joanjgm23@gmail.com> Subject: Probando correos Thread-Topic: Probando correos Thread-Index: Ac97V1eW4OBFmoqJTRGoD7IPTC2azg== Date: Thu, 29 May 2014 16:04:35 +0000 Message-ID: <000f4249.4487966276f7b241@megaconstrucciones.com.ve> Accept-Language: en-US, es-VE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative;     boundary="_000_000f42494487966276f7b241megaconstruccionescomve_" MIME-Version: 1.0


Counting number of vertices of polygons and lines in QGIS?

In QGIS, is there a way to count the number of vertices of polygons and lines in a given layer, and create a separate field containing these values?   I suspect it's a function somewhere in the field calculator but I can't find it.


Homomorphism extensions over finite ring extensions

Let $A \subset B$ be a finite ring extension. Fix a ring homomorphism $\nu : A \to \Omega$, where $\Omega$ is an algebraically closed field.   I want to show there exists a non-zero homomorphism $v : B \to \Omega$ of $A$-modules.  I want show that the space $V$ of all the homomorphisms $v$ in (i) is a non-zero finite dimensional vector space over $\Omega$. Show that the algebra $B$ acts on this space. Show that eigenvectors of this action correspond to homomorphisms of algebras $\lambda : B \to \Omega$ that extend the homomorphism $\nu$. Deduce that the set of such homomorphisms $\lambda : B \to \Omega$ is finite and non-empty.    We can assume that $B = Ab_1 + ... + Ab_n$ where $b_1,...,b_n \in B$. The chose $v(b_i)=\omega_i \in \Omega-\{0\}$ and then define $$ v( a_1 b_1 + ... + a_n b_n ) = \nu(a_1) v(b_1) + ... + \nu(a_n) v_n = \nu(a_1) \omega_1 + ... + \nu(a_n) \omega_n \ .$$ This is an $A$-module homomorphism. Am I correct? For the second part, that $V$ is not-zero follows from the first part. That it is finite dimensional follows from the fact that $v_i(b_j)=\delta_{i,j}$ (Kronecker's delta) with $i=1,...,n$ spans $V$ and hence $\dim V \le n < \infty$. I define the action of $B$ over $V$ to be $$b \bullet v = \left( x \mapsto v(b)v(x) \right) \mbox{  for all } b,x \in B \ .$$ This seems to be the natural action to define. Am I correct? However, I haven't managed to solved the rest (the eigenvector stuff and the relation to $\nu$).


Update Panel content after hotkey is pressed?

I have a checkbox in a panel. I have assigned a toggle hotkey to it. But when i press the hotkey then the checkbox does not change its state until you move with the mouse over the checkbox.  How can i force a redraw at the checkbox when i press the hotkey?  To reproduce, add keymap item with wm.context_toggle and the Context Attribute window_manager.deselect_bool  The script:  import bpy from bpy.props import BoolProperty  class LayoutDemoPanel(bpy.types.Panel):     bl_label = "Demo Panel"     bl_space_type = 'VIEW_3D'     bl_region_type = 'UI'      def draw(self, context):         layout = self.layout          wm = context.window_manager # Our bool is in the windows_manager         layout.prop(wm, "deselect_bool") # Our checkbox  def register():     bpy.types.WindowManager.deselect_bool = bpy.props.BoolProperty(     name="Checkbox", description="A checkbox", default = False)     bpy.utils.register_module(__name__)  def unregister():     del bpy.types.WindowManager.deselect_bool # Unregister our flag when unregister.     bpy.utils.unregister_module(__name__)  if __name__ == "__main__":     register()


Hardware requirements for a SharePoint 2013 Production environment

I'm having trouble finding some concrete information on what the minimum hardware requirements are for a production SharePoint 2013 environment.  I'm talking number of servers in the farm. I see the   but the details are skewed to me.  It says  Web server or application server in a three-tier farm Pilot, user acceptance test, or production deployment of SharePoint Server 2013 or SharePoint Foundation 2013. 12 GB 64-bit, 4 cores 80 GB for system drive  Well, that's IF I have a 3 tiered environment.  What if I have a 2 tiered environment? Common sense would tell me that if I am running a heavy amount of services and a large user base, I should consider upgrading to a 3 tier.  However, I have a customer who is arguing with me saying that performance is not "optimal" and that Microsoft technically supports a 2 tier environment so it should be fast. Is there somewhere where Microsoft definitively says "You must have 3 servers in a production environment"?  Or how can I tell a customer that they need a 3rd server without so much push back on it?


SQL exclude a column using SELECT * [except columnA] FROM tableA?

We all know that to select all columns from a table, we can use  SELECT * FROM tableA   Is there a way to exclude column(s) from a table without specifying all the columns?  SELECT * [except columnA] FROM tableA   The only way that I know is to manually specify all the columns and exclude the unwanted column. This is really time consuming so I'm looking for ways to save time and effort on this, as well as future maintenance should the table has more/less columns.


So I created a jar file in IntelliJ and tried to move it, but it said I needed administrative permission to do it. So, as administrator, I clicked ok, but it didn't work. I then attempted to delete the file, but it wouldn't let me. So I pulled up command prompt (ran it as administrator) and entered del "". It said access is denied. I then right clicked on it, opened properties, clicked security, clicked advanced, and under owner, it said "unable to display current owner" and next to it, it said change. I clicked change, and it told me "You do not have permission to view or edit this object's permission settings" What should I do to delete it?   This is a permission error for a single file, not a folder. It is not a duplicate.


Shadow glitch using compton; "glass" rectangle showing around Nautilus' windows

I'm using compton on my xubuntu 16.10 beacause this way my system is tearing free. When i use Thunar the windows shadows are OK, but if i use Nautilus (which i prefer) the windows' shadows appear glitched like in the image.    This happens even if I disable shadow completely from the compton.conf.  Here's my compton.conf:  # Compton Configuration, courtesy of Xubuntu Developers # Please note that Compton is not supported by Xubuntu and may not work # correctly for you. This file is provided as a set of sane defaults and is in # no way endorsed by the Xubuntu team. # # About Compton: https://github.com/chjj/compton # Heavily based on: http://bit.ly/1l5OrzL # Sample settings: https://github.com/chjj/compton/blob/master/compton.sample.conf  # --- Backend (OpenGL used by default) # Related Links # https://github.com/chjj/compton/wiki/perf-guide # https://github.com/chjj/compton/wiki/vsync-guide  backend = "glx"; paint-on-overlay = true; glx-no-stencil = true; glx-no-rebind-pixmap = true; unredir-if-possible = true; vsync = "opengl-swc";    # --- Shadows (Disable with shadow = false;) # The shadow exclude options are helpful if you have shadows enabled. # Due to the way compton draws its shadows, certain applications (Such as # shaped windows, custom popups, non-standard toolkits) will have visual glitches.  shadow = true;              # Enabled client-side shadows on windows. no-dock-shadow = true;      # Avoid drawing shadows on dock/panel windows. no-dnd-shadow = true;       # Don't draw shadows on DND windows. clear-shadow = true;        # Zero the part of the shadow's mask behind the window (experimental). shadow-radius = 10;         # The blur radius for shadows. (default 10) shadow-offset-x = -15;      # The left offset for shadows. (default -15) shadow-offset-y = -12;      # The top offset for shadows. (default -12) shadow-opacity = 0.4; shadow-exclude = [  "! name~=''",              # "Unknown" windows, including xfwm4 alt-tab  "n:e:Notification",  "n:e:Plank",  "n:e:Docky",  "g:e:Synapse",  "g:e:Kupfer",  "g:e:Conky",  "n:w:*Firefox*",  "n:w:*Chrome*",  "n:w:*Chromium*",  "class_g ?= 'Notify-osd'",  "class_g ?= 'Cairo-dock'",  "class_g ?= 'Xfce4-notifyd'",  "class_g ?= 'Xfce4-power-manager'",  "class_g ?= 'Xfwm4'",      # For the "new" xfwm4 alt-tab  "_GTK_FRAME_EXTENTS@:c",   # GTK+ 3 CSD windows https://github.com/chjj/compton/issues/189  "class_g ?= 'Nautilus'",  "WM_CLASS@:s *?= 'Nautilus'" ];   # --- Fading (Disable with fading = false;)  fading = true;              # Fade windows during opacity changes. fade-delta = 5;             # The time between steps in a fade in milliseconds. (default 5). fade-in-step = 0.03;        # Opacity change between steps while fading in. (default 0.03). fade-out-step = 0.03;       # Opacity change between steps while fading out. (default 0.03).   # --- Additional Settings detect-client-opacity = true;   # --- Window type settings wintypes: {   tooltip = { fade = true; shadow = false; opacity = 0.9; focus = true; }; };   To note that i'm using Adapta-nokto as gtk theme. Any ideas? Thank you  UPDATE: so executing compton --shadow-exclude '_NET_WM_OPAQUE_REGION@:c' solve the problem but i get Another composite manager is already running  Also adding '_NET_WM_OPAQUE_REGION@:c' to the shadow exclude section of compton.conf doesn't work after reastart


printbibliography with only a part of references

I am making a presentation in LaTeX using \mode<presentation>, which gives me a slide-show format, which is exactly what I want to get. Unfortunately, using slides means that in my bibliography I can fit only 4 references per slide. When I use \printbibliography with tens of references I cannot fit them all on one slide.  Hence I was wondering- is there a way of printing references 1-4 on the first slide, then references 5-8 on the second etc.?


Understanding Plurality Voting in Ensemble Methods

I'm reading  by Rokach, and i've got to a chapter about ensemble methods (using multiple classifiers) and this is where I can't wrap my head around this concept of Plurality Voting (PV).    $$\operatorname{class}(x) = \operatorname{argmax} \left (\sum g(y_k(x), c_i)  \right)$$  Where $$g(y_k(x), c_i) = \begin{cases}1 &\text{if } y = c\\                                 0 &\text{if } y \neq c\end{cases}$$  Most of the other metrics in the chapter weight classifiers, yet this seems to just essentially pick the one which has the highest chance of returning the class you want.  Which seems useless? If thats the case how would this be helpful?


I know this is more of a general question,  I would like to get some details on the websites that I could use to do automation testing for learning purpose. I'm looking to a website which have complexity.


.empty() not executing under $('#xxxx').click(xxx but works fine called from straight js function

I have a following HTML code:

    Upload photo    <input type="file" name="image" id="image-upload1">

   and  $('#image-upload1').change(function() {   $('#buttonPlace1').append("<button id='closeBtn1' onclick='btnRemove1()' class='btn deleteButton'>X</button>"); })  function btnRemove1(){   $('#buttonPlace1').empty();  }   This works fine. Button is added and removed on click.. But when I remove onclick event from <button> and change btnRemove() to:  $('#closeBtn1').click(function() {   $('#buttonPlace1').empty(); })   button removing on click stops working. I'm at very beginnig of JS an jQuery and i can't figure it out.  Help please >:|


Parent to child SOQL query is not working

SELECT      Id,     CurrencyIsoCode,      ExpirationDate__c,     (SELECT           Id,          Regional_Starting_Price_2__c       FROM           SBQQ__QuoteLine__c)  FROM      SBQQ__Quote__c   WHERE      Id ='quote_Id'


how to free up space from deleted open file?

Possible Duplicate:          I deleted an open file and the disk usage was not reduced.  Will it free up the space if I deleted the link in /proc/PID/fd/N ? what will happen to the process (in general)?  To be specific: The server is running Zimbra and the sync.log just gone crazily big occasionally (it's Zimbra's bug)


How to construct a relational database in latex for beginners

I would like to do an neat scheme of my database to pin down ideas, particularly I would like to do something like in the attached picture. Even though I have looked in internet thoroughly, I have not been able to find something similar that serves me as template in latex.  Any help, specially that regarding templates, tutorials and manuals in order of importance, would be much appreciated.  KR


Sylvester rank inequality: $\operatorname{rank} A + \operatorname{rank}B \leq \operatorname{rank} AB + n$

If $A$ and $B$ are two matrices of the same order $n$, then   $$ \operatorname{rank} A + \operatorname{rank}B \leq \operatorname{rank} AB + n. $$   I don't know how to start proving this inequality. I would be very pleased if someone helps me. Thanks!  Edit I.  Rank of $A$ is the same of the equivalent matrix $A' =\begin{pmatrix}I_r & 0 \\ 0 & 0\end{pmatrix}$. Analogously for $B$, ranks of $A$ and $B$ are $r,s\leq n$. Hence, since $\operatorname{rank}AB = \min\{r,s\}$, then $r+s\leq \min\{r,s\} + n$. (This is not correct since $\operatorname{rank} AB \leq \min\{r,s\}$.  Edit II. A discussion on the rank of a product of $H_f(A)$ and $H_c(B)$ would correct this, but I don't know how to formalize that $\operatorname{rank}H_f(A) +\operatorname{rank}H_c(B) - n \leq \operatorname{rank}[H_f(A)H_c(B)]$.


LWC Tree Grid Won't Display Relationship Fields From SOQL!

Strange, but it seems the LWC Tree Grid component will only display fields on the object(s) queried, and not any values retrieved through a relationship (__r). I can't imagine why this would be - the values returned are parsed in JS anyway, and I don't see how they are any different from other fields. Anyone else discovered this? This makes it virtually impossible to use them with junction objects! <template>     <lightning-card title="Success Criteria with Adapters">          <div class="slds-m-bottom_small">             <lightning-button                 label="Expand All"                 onclick={clickToExpandAll}>             </lightning-button>             <lightning-button                 label="Collapse All"                 onclick={clickToCollapseAll}>             </lightning-button>         </div>                  <lightning-tree-grid              columns={gridColumns}              data={gridData}              key-field="Id"             hide-checkbox-column="true">         </lightning-tree-grid>              </lightning-card> </template>  JS import {LightningElement, wire, api} from 'lwc'; import getSCsWithAdapts from '@salesforce/apex/OppTrackTree.SCsWithAdapts';  export default class SCsWithAdapts extends LightningElement {          @api recordId;      gridData;     gridColumns = [{             type: 'text',             fieldName: 'Use_Case__c',             label: 'Use Case',                      },         {             type: 'text',             fieldName: 'Use_Case_Status__c',             label: 'Use Case Status',                      },         {             type: 'text',             fieldName: 'Sales_Engineer__r.Name',             label: 'Sales Engineer',         },         {             type: 'text',             fieldName: 'Use_Case_Category__r.Name',             label: 'Category',                      },         {             type: 'text',             fieldName: 'Adapter__r.Name',             label: 'Adapter',                      },     ];      clickToExpandAll(e) {         const grid =  this.template.querySelector('lightning-tree-grid');         grid.expandAll();     }      clickToCollapseAll(e) {         const grid =  this.template.querySelector('lightning-tree-grid');         grid.collapseAll();     }      @wire(getSCsWithAdapts, {OppID: '$recordId'})         SCsWithAdapts({data, error}) {             if (data) {                 let parseData = JSON.parse(JSON.stringify(data));                  for (let i = 0; i < parseData.length; i++) {                     parseData[i]._children = parseData[i]['POC_Success_Criteria_Adapters__r'];                     delete parseData[i]['POC_Success_Criteria_Adapters__r'];                 }                  this.gridData = parseData;              } else if (error) {                 console.log('error ====> ' + JSON.stringify(error));             }         } }  Apex public with sharing class OppTrackTree { @AuraEnabled(Cacheable=true) public static list<POC_Success_Criterion__c> SCsWithAdapts(String OppID){          String strSOQL = 'SELECT Use_Case__c, Use_Case_Status__c, Sales_Engineer__r.Name, Sales_Engineer__c, Use_Case_Category__r.Name, Use_Case_Category__c, (SELECT Adapter__r.Name, Adapter__c FROM POC_Success_Criteria_Adapters__r) FROM POC_Success_Criterion__c WHERE Opportunity__r.Id = \''+OppId+'\'';          return Database.query(strSOQL);   }  }


How do I disassociate Microsoft account credentials from an account in Windows 10?

I set up Windows 10 and have been using it for months on a spare laptop.  When installing, I did not use a Microsoft account to enable all of the app connectivity because I don't need that functionality.  I do not want these features active on this device, and I used a simple user name during the install.  Everything was going fine until I read about the Linux/bash features that are available in the anniversary update.  I decided to try them out and entered my Microsoft Insider credentials to enable the features in the developer options of the Control Panel.  I didn't realize the primary account on this device would now become linked to that Microsoft account.  Is there a simple way to disassociate the Microsoft account from the local account, or are they now linked forever in an unholy union?  I can set up a new local account, but I'd rather not lose all the settings and folder preferences prior to my gaffe.


Why is there an upper energy limit on the photoelectric effect?

I feel like I'm missing something really fundamental regarding the cross section of the photoelectric effect. I'm looking at this chart, and it seems that the lower the energy of the incident photon, the more likely a photoelectric interaction is to happen. Higher energy interactions get less likely, until a cut-off point, at which they no longer occur.   If the energy of the ejected electron is equal to the incident photon energy minus the binding energy, I understand why a lower limit exists (since there must be enough energy to eject the e-), but why should there be an upper limit? Why does the cross section reduce with energy at all?


Problem with Singular Value Decomposition

I have a very trivial SVD Example, but I'm not sure what's going wrong.  The typical way to get an SVD for a matrix $A = UDV^T$ is to compute the eigenvectors of $A^TA$ and $AA^T$. The eigenvectors of $A^TA$ make up the columns of $U$ and the eigenvectors of $AA^T$ make up the column of $V$. From what I've read, the singular values in $D$ are square roots of eigenvalues from $AA^T$ or $A^TA$, and must be non-negative.  However, for the simple example $A = \left[\begin{matrix} 1 & 0 \\ 0 & -1 \end{matrix}\right]$, $A^TA$ and $AA^T$ are both the identity, and thus have eigenvectors $\bigg\lbrace \left[\begin{matrix} 1 \\ 0 \end{matrix}\right]\ ,\ \left[\begin{matrix} 0 \\ 1 \end{matrix}\right]\bigg\rbrace$. Clearly, the eigenvalues are 1 and 1, so our decomposition ought to be: \begin{align}  \left[\begin{matrix} 1 & 0 \\ 0 & -1 \end{matrix}\right] = \left[\begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix}\right]\left[\begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix}\right]\left[\begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix}\right] \end{align}  What has gone wrong?


I'm sorry if this is obvious but I forgot the proof. I don't know where else to ask this.


Is it possible to get a path in tikz that looks like \rightsquigarrow?


"How do I look?" vs. "What do I look like?"

The earrings were screwed in. "How do I look?" We said, "Beautiful."   This sentence is from"Dreams do come true" by Jim Bishop.  In this sentence,I want to know the sentence "how do I look?"  is the same in meaning "what do I look like?.


Let $V$ be a finite-dimensional vector space over $k$ and $A = \text{End}_k V$. Is $V$ a simple $A$-module?


Metadata / notes / comments in .blend files?

I was wondering - what options are there to include metadata, copyright information, and/or comments/notes in a .blend file?  I realized late that in the main dropdown (where 3D view is), one can select "Text Editor", and then do Text / Create Text Block (these are then shown under Outliner > Datablocks / Texts). I'm guessing these are for scripts, but when I see, say :     make visible upon loading one small text file which lists layers and objects   ...   make your licensing expectations clear: artistic license, creative commons, etc.   ...   sign your work, stable email address or website url if possible   ... I simply cannot see where else could I add this information, but in a "text block" as described above. The Outliner / Datablocks view looks like it might contain some metadata, but seemingly it is not editable.   So my question is - what is the preferred way to enter metadata (e.g. key/value combinations like author, license, date, etc), and to enter notes/comments in a .blend file?


Can't login with Stack Exchange OpenID when HTTPS-Everywhere plugin is active - apparent protocol mismatch

I can't seem to log in with my Stack Exchange OpenID. When I try, I get the error message:     Unable to log in with your OpenID provider:      The openid.return_to parameter (.) does not match the actual URL (.) the request was made with.   It works if I disable the HTTPS-Everywhere plugin in Firefox, but if I then re-enable the plugin and go to a site on which I am not logged in (in which case login is normally nearly seamless), it fails again with the same error message, or at least something very similar.  I'm not aware of having done anything that might have caused this, although I will admit I don't recall seeing https:// in the address bar on Stack Exchange before (I do now, and that's a good thing IMO!). I was using the site  and it worked fine then, but not now...


I am thinking on a system, where /etc were tracked on a remote git repository. I am thinking on a git workflow, where every host machine where a different branch.  Every previous versions on every machine could be easily tracked, compared, merged.  If a /etc modification had to be committed on many machines, it could be easily done by some merging script.  In case of an "unwanted" /etc change, this could be good visible (even alarm scripts could be tuned to watch that).  Anybody used already a such configuration? Are there any security problems with it?


Why does Twitter limit tweets to 140 characters? Why this number? What are pros and cons of this design?

I am developing an educational website in which students can share luthier learning tips with their classmates. It is important for me to make the posts as small as possible. However, I don't know how small they should be. How can I impose a similar limit on videos or images they upload? I was wondering Why Twitter limits tweets to 140 characters? Why this number? What are pros and cons of this design?


Just wondering if someone can give me an explanation for this capacitor layout - what is it's function? The chip to the right is an ADC.  Circled in blue.    I'm guessing it is well known but i don't know how to search for it.


String Comparison returning false while they have same value

I have strings stored in SQLite database which are shown in an Activity. the problem is if I compare the text of the button with a string value it returns false while equals show it matches. I am curious to know who it is returning false while they are both the same.  I have tried and tostring methods.   while (result.moveToNext()) {   Button btn = new Button(this);  btn.setWidth(100);  btn.setHeight(40);  //    btn.setSingleLine(); //keep text in single line don't break big words  //    btn.setAutoSizeTextTypeUniformWithConfiguration(1, 15, 1,  //          TypedValue.COMPLEX_UNIT_DIP);  messageReceived = result.getString(1).trim();  btn.setText(result.getString(1).trim());    String btnText = btn.getText().toString().trim();    String Value = Boolean.toString(btnText == messageReceived);  Toast toast = Toast.makeText(this, Value, Toast.LENGTH_LONG);  toast.setGravity(Gravity.CENTER, 5, 5);  toast.show();   if (messageReceived.equals(btnText)) {   Toast toast2 = Toast.makeText(this, "matched", Toast.LENGTH_LONG);   toast2.setGravity(Gravity.LEFT, 0, 0);   toast2.show();  } else {   Toast toast2 = Toast.makeText(this, "Not Matched", Toast.LENGTH_LONG);   toast2.setGravity(Gravity.LEFT, 0, 0);   toast2.show();  }    Toast.makeText(this, "A: " + btn.getText() + " B: " + messageReceived, Toast.LENGTH_LONG).show();   btn.setOnClickListener(this);  grid.addView(btn);   //messageReceived="pungi";   if (btnText == messageReceived) {   btn.setBackgroundColor(Color.YELLOW);  }   }


Why does Ubuntu only support versions for a limited time (and what does it mean)?

Why is it that Ubuntu only support a version for a limited time? Since I have been on this site I have seen many references to particular versions not being supported. What does it actually mean? After this time must a user just use the OS in the state it is in at the date that support ends? Does this mean no more package updates are available?   Or when this support date has elapsed, should the user then abandon the version and install a newer version instead? I am slightly confused with the difference between Ubuntu and Linux here (with Windows you use it until you buy the latest version) and would be grateful if someone could explain the Ubuntu 'lifecycle' (if that is a suitable word). Thanks in advance for your help.


Looking for system specifications for a modern GIS workstation

My current employer has given me the opportunity to design my own GIS workstation. The problem is I have no idea what is important when it comes to hardware! I have been given a datasheet from Fujitsu which includes the latest CELSIUS M720 series workstations but the configuration includes about 30 different processors, graphics cards, and hard drives.  I will be working a lot with the ESRI desktop suite (spatial analyst and 3D analyst) and doing a fair amount of raster processing (DEMs, visibility analysis, etc.), but I also use the GDAL library, SAGA-GIS, Quantum GIS and others.  Does ArcGIS 10 actually use multiple cores?  I have the choice from 4 cores with 8 threads up to 8 cores with 8 threads - 16 threads?  Is SSD SATA III better than HDD SATA III?  The Celsius R920 supports up to 512 GB RAM. But what do I need?  It will probably be the last time I get a new workstation for the next 5 years, so I am curious what others have ordered or feel will be necessary for the coming years. Obviously the cloud isn't taking over as quick as they say!


How do I incorporate .tmx files into my game?


How to prove that we are living in a 3+1D world?

Is there any scientific experiment that can lead us to conclude we live in 3 spatial dimensions without the premise of the conception of limited dimensions?  Thank you all who helped in the improvement of this question (which was not clear at first).   EDIT:  I know that this can be a little philosophical, but it is also a scientific question.  Let's consider the scenario where the mankind was not ever able to see.  Let's also consider that this limitation could be surpassed thus not limiting us to reach a scientific and technological knowledge "similar" to what we have today.  Would this civilization of blind people reach the conclusion that they are living in a 3D spatial world?  Is the sense of touch enough to reach that conclusion? Is there any scientific experiment that can lead us to that conclusion without the premise of the conception of limited dimensions?  Would it be easier, harder, or just different to reach a conclusion predicted by the M-Theory? (please do not focus only on this last question)


What was Obi-wan doing/checking when he puts his hand over Luke's face?

When Obi-Wan Kenobi first appears in Star Wars IV - A new Hope he scares a bunch of sand people away and then he proceeds to check Luke Skywalker, first by checking his pulse and then he sticks his hand on Luke's face as if he's checking something else. What was he doing?   Picture for added reference.


Locating kernel module from device node major, minor number

My understanding is that device nodes in Linux have major and minor numbers that help the kernel identify the device driver module.   I am trying to understand how is the major/minor number used to locate the kernel module used for device driver.   For instance, following block nodes are setup by udev for my hard-drive  sshekhar1980@:~$ ls -l /dev/sd* brw-rw---- 1 root disk 8, 0 May 29 07:43 /dev/sda brw-rw---- 1 root disk 8, 1 May 29 07:43 /dev/sda1 brw-rw---- 1 root disk 8, 2 May 29 07:43 /dev/sda2 brw-rw---- 1 root disk 8, 3 May 29 07:43 /dev/sda3 brw-rw---- 1 root disk 8, 5 May 29 07:43 /dev/sda5 brw-rw---- 1 root disk 8, 6 May 29 07:43 /dev/sda6   Now I would like to use the major device number 8 above to find what kernel module device driver maybe used to talk to this hard-drive? Can I give this number to some program like modinfo or lsmod to find the device driver module being used?


order of finit group which has even elements

I have a question,  prove that a finite group has an even number of elements, if and only if the group consists of an element of order $2$.


How is evolution possible in contemporary humans?

I would like to know if evolution is continuing to happen in modern humans, assuming things like existence of the nuclear family structure, fidelity to one partner, etc. It seems to me the answer would be NO because evolution depends on differential reproductive rates, but in the modern world, all male humans have roughly 2.5 (or whatever the number) kids. Add in the process of culturally modified selection pressure, and it seems to me that even an "unfit" male would end up having a couple of offspring. The fittest male (or female) is no better off than his or her contemporaries because of this "leveling" effect.   However, the impression I get from the popular science media is that scientists think evolution is continuing to happen. I would like to know what the actual scientific consensus is, and why. Thanks.


How to remove white background from multiple images?

So I received approximately 70 or so images from a customer and apparently they were all scanned. They are 4x6 prints but each one has a white background the size of a paper. How can I get rid of them en mass?


What does unwrapping a model do and why is it important?

I am trying to learn how to make small games, and every time I watch a video it says that we need to unwrap it, but they never fully explain what unwrapping does or why we do it.  Is it necessary when exporting to UDK?


For example birth rate, death rate in population modelling. Correct me if I'm wrong, but does this mean a certain number of births or deaths over a period of time?   Aslo, rate of change in calculus when dealing with derivatives. Does this mean infinitesimal change with respect to another quantity. How much y changes when we change x quantity. Can someone please give me some laymen term examples to confidently understand this.   I've looked elsewhere online for clarification, but nothing seems to be resolving my Confusion.


List not correctly append updated dictionary

I make  dictionary in python and append it into a list,after that I updated my keys value and then append it into my list but it remove my previous record and overwrite with the new record. How can I get out of it please guide me.  dic={ "name":"karan",  "password":"karan123" }  List1=[]  List1.append(dic)  dic.update({"name":"Zakir","password"="Zakir123"  List1.append(dic)   Result:  [{"name":"zakir","password":"zakir123"},{"name":"zakir","password":"zakir123"},]   But I want it like this:  [{"name":"karan","password":"laran123"},{"name":"zakir","password":"zakir123"},]


Lost many reputation points because my answer was deleted - what to do now?

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?


I am trying to create a page on where i try to let the footer stick at the bottom of the page. It will stick but the problem is that if the browser will be minimized that the footer will go through the content of the page, but actually i want that it stays at the bottom of the page and when the browser is minimized that there will be a scroll bar.   A picture what happens when browser is minimized:    If the browser is big enough then it is ok:    This also happens with the menu:    Can anyone hint me which settings are wrong? I use this setup:

   This is the code:    Thanks for help


He who must not be named? (aka Anyone can ping everyone in chat)

For some or other reason, typing @ᔕᖺᘎᕊ in a chat room pings everyone who's been in that chat room for the last 7 days...    Seems to work in all chat rooms (I only tested 2 as I don't want to upset too many people...)  How should we proceed?


What is the largest number k < 100,000 such that k has an odd number of factors?

so i do not know how to solve this problem and is confused on a method to find odd number of factors. How can I find the odd number of factors for a number that high?


Multiple regression or partial correlation coefficient? And relations between the two

I don't even know if this question makes sense, but what is the difference between multiple regression and partial correlation (apart from the obvious differences between correlation and regression, which is not what I am aiming at)?  I want to figure out the following: I have two independent variables ($x_1$, $x_2$) and one dependent variable ($y$). Now individually the independent variables are not correlated with the dependent variable. But for a given $x_1$ $y$ decreases when $x_2$ decreases. So do I analyze that by means of multiple regression or partial correlation?  edit to hopefully improve my question: I am trying to understand the difference between multiple regression and partial correlation. So, when $y$ decreases for a given $x_1$ when $x_2$ decreases, is that due to the combined effect of $x_1$ and $x_2$ on $y$ (multiple regression) or is it due to removing the effect of $x_1$ (partial correlation)?


How can I prevent URLDownloadToFile from retrieving from the cache?

I am using URLDownloadToFile to retrieve a file from a website. Subsequent calls return the original file rather than an updated version.  I assume it is retrieving a cached version.


Can I keep downloaded games on a 3ds XL after a system delete?

December 2014 I decided to buy a Nintendo 3DS XL off of eBay, and found one with hard copies of games, and Ocarina of Time 3D installed onto the device, so when it arrived at first I was super happy as I had these games, but soon realized that I wanted to make the 3DS my own, by factory resetting it so I can create my own profile and change the settings to my choosing. However, I was told that by doing this it will delete the system installed games, as a game is linked with the previous owner's account or something. So long story short, I want to know if there is a way to keep these games after a factory reset. If there isn't a way then I wasted money on a game that I can't even keep. Update - January 2015 I decided to perform a factory reset on my 3DS as I wanted a new NNID more than I wanted the downloaded games. I removed the SD card and began the process. After I did this I fully expected for the titles to no longer be on my 3DS. So I set it up, and they weren't there. No surprise there. But, I made an account on e-shop, and decided to check on the re-downloadable software thing, just in case the games happened to be there. AND THEY WERE! I downloaded them and they work perfectly fine! I have no idea how this happened! So so shocked, but happy. Can anyone explain why this happened? As the games should have been linked to the previous owner's NNID, so how did I get them back when I made my own NNID on a factory reset console?


I want to add nepali fonts like kantipur in Ubuntu 12.04.How can I do this.


Are both sentences are correct or only the second one is idiomatic, but the first one must be "They were eating."?     They were eating their dinner.       They were having their dinner.


Blue background on Nominee comments only when expanded

This is similar to , except it's a bug report, not a feature request.  Currently, the nominee's comments on his/her own post are not highlights, unless you click "add / show more comments"  When the page is loaded it looks like:    AfterI click "add / show more comments", it becomes:    Could we have the blue highlighting on the post owner's comments there all the time? It becomes difficult to see the nominees responses to questions, especially on nominations where there aren't enough comments to enable the "add / show more comments" features, like Matt's.


A module $M$ whose submodules and factor modules are semisimple but not semisimple itself

An $R$-module $M$ is said to be a semisimple module if it is a direct sum of its simple submodules.  I've proved the following equivalent characterization for semisimple modules:  $M$ is semisimple iff every submodules of $M$ is a direct summand.  From the above proposition we can easily show that every submodule and factor module of a semisimple module $M$ are alosa semisimple.But the converse is not always true.  I want to find a module $M$ whose proper submodules and nonzero factor modules are semisimple but $M$ is not semisimple.


Find the minimal polynomial for $\sqrt[3]{2} + \sqrt[3]{4}$ over $\mathbb{Q}$  I havent covered galois theory, this is an exercise from the chapter algebraic extensions in gallian.  I can see that $\sqrt[3]{2} + \sqrt[3]{4}$ $\in \mathbb{Q}(2^{1/3})$, after this I am clueless.  Need hints will finish the proof.


Sendmail (by postfix) is not working on Ubuntu

For about 2 days I'm trying to configure Ubuntu so that I can send an email, but when I type in:  echo "Subject: sendmail test" | sendmail -v my@email.com   I'll get:  postdrop: warning: unable to look up public/pickup: No such file or directory Mail Delivery Status Report will be mailed to <andreigbr>.   Even if I change my@email with mine, the inbox will be empty. Can somebody help me, please? I watched about 5 tutorial about how to send an email fom the command line but still doesn't work.


I'm having problems with my (javascript) API. When I use the coinmarketcap API (). As for "max_supply" for bitcoin, it gives me "16865112.0" in text. This is a problem. I want to automatically put comma's in the number like 16,865,112.0 normally I use toLocaleString() but it is marked as text and it doesnt work.  $.get("https://api.coinmarketcap.com/v1/ticker/", function(data, status) {   for (var i = 0; i < data.length - 1; i++) {     if (data[i].id == "bitcoin") {      $("#total_supply").html(data[i].total_supply.toLocaleString());        }   } });    Any suggestions?


What's the difference between "go meet" and "go to meet"?

Reading the book on which I'm learning English, I've come across a weird (for me) omitting the "to" in sentence: "I'd better go meet with him then."  Say, if it were "I'd better go to meet with him then.", would there be any difference between the two sentences? When I should prefer using one instead the other?  P.S. Sorry for my bad English. If I made a mistake somewhere, please correct me.


How to deal with "java.lang.OutOfMemoryError: Java heap space" error?

I am writing a client-side Swing application (graphical font designer) on Java 5. Recently, I am running into java.lang.OutOfMemoryError: Java heap space error because I am not being conservative on memory usage. The user can open unlimited number of files, and the program keeps the opened objects in the memory. After a quick research I found  and others saying on Windows machine the JVM defaults max heap size as 64MB.  Given this situation, how should I deal with this constraint?  I could increase the max heap size using command line option to java, but that would require figuring out available RAM and writing some launching program or script. Besides, increasing to some finite max does not ultimately get rid of the issue.  I could rewrite some of my code to persist objects to file system frequently (using database is the same thing) to free up the memory. It could work, but it's probably a lot work too.  If you could point me to details of above ideas or some alternatives like automatic virtual memory, extending heap size dynamically, that will be great.


As I recall there was something like netsend on windows that allowed simple messages to be sent over the local network. I especially like this because one doesn't need to install extra client soft (hello skype).   Is there something dead simple like this on Linux?  Just to clarify  I'm looking for a bash command or simple CLI script/tool, not a GUI app.


I just purchased a Windows 8 laptop, and use Speedfan to monitor temperatures. I would like to have Speedfan start with Windows, so I placed a shortcut to the application in the following folder:   C:\Users\Erik\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"  There are several other application shortcuts in there that all start with Windows, but for some reason, Speedfan doesn't want to. This is important to me because I have Rainmeter widgets that, in turn, use Speedfan to display temperatures, and having to manually start it up is a real pain.  How do I make Speedfan start up with Windows 8? Placing it in the startup folder obviously did nothing, so is there a better way?


Finding specific records of US WW2 veterans?

My grandfather enlisted in the US Army in 1942.   How can I find more details about his service?


Why is gravitational potential energy negative? How is it different from other forms of energy? I recently saw a video by Dr. Michio Kaku, he said that the total energy content of the universe is zero, since gravitational potential energy is negative, thus balancing all the positive energy. Can anyone help me out here?


Are tile bonuses counted twice if 2 new words are formed?

An example:    O  O?   There is a triple letter tile to the right of the bottom O, indicated with a ?.  If I place an X on it, making the words OX (vertical) and OX (horizontal), do I score 50 points (scoring the tile twice) or 34 (scoring it once)?


Find all continuous functions that satisfy the Jensen inequality(?) $f(\frac{x+y}{2})=\frac{f(x)+f(y)}{2}$

Find all continuous functions that satisfy the Jensen inequality(I don't know why the problems states ''inequality'') $$f(\frac{x+y}{2})=\frac{f(x)+f(y)}{2}$$  I've checked around stackexchange and google a bit, but none of the questions related to this problem gave me any hints on what I should do. The expression ''find all continuous functions'' confuses me. Am I supposed to determine some kind of a property that applies to all continuous functions that satisfy the property above or? Likewise there is a problem asking to find all continuous functions that satisfy$$f(x+y)=f(x)+f(y)$$ I'm sorry if this is a duplicate question, but even after reading all of those answers I've failed to find an adequate one. Also, another problem is that I'm not allowed to use derivations, and hence anything more complex than that.


Let $f: X \longrightarrow{Y}$ a continuous surjective and closed function between topological spaces such that $f^{-1}(y)$ it is compact for all $y \in Y$. Prove that $Y$ is compact if and only if $X$ is compact My attempt: If $X$ is compact then for every collection $C$ of open subsets of $X$ we have: $\displaystyle\bigcup_{x \in C}^{}{X }$ Thanks


I applied for a Schengen visa via the Spanish embassy. The visa was refused for two reasons:  (1) Justification for the purpose and conditions of the intended stay was not provided.  (2) information submitted regarding the justification for the purpose and condition of the intended stay was not reliable.  My question is if I appeal, what documentation do I need to provide. Also do I need to translate my write-up for the consulate to Spanish?


Unwanted spaces being placed in shapefile text fields by ArcGIS Desktop?

I have a table with a row Page_Number_N some of the rows have values and others just have a space. For example record 4 is just a space. Field values are Strings.  1 2 3  5   When I start an edit session and delete the space it deletes it. However, as soon as I save edits, the space in the data returns.  I have tried removing the space in the field calc without edit session turned on and the result is the same.  I need this record to equal "" ie. No spaces or null and I can't seem to get ArcGIS Desktop to cooperate.  Does anyone know how to fix this?


Could we obtain free electrical energy from the Earth's magnetic field?

If there exists a natural magnetic field due to the metallic core of the earth... could we then extract and get free energy from the earth core ??


Referring to Title of Document in Hypersetup

I started a document like this to avoid having to write the title and author twice:  \title{The Document's Title} \author{My Name}  \hypersetup{     colorlinks,     citecolor=black,     filecolor=black,     linkcolor=blue,     urlcolor=black,     pdftitle={\@title},     pdfauthor={\@author},     bookmarks=true }   I read about using \@title to insert the document's title. However, it doesn't work. Instead, my PDF's title (the text in the window bar of the PDF viewer) is now "title".  If you want a complete document which exhibits the problem for testing, you can use this:  \documentclass{report} \usepackage{hyperref}  \title{The Document's Title} \author{My Name}  \hypersetup{     colorlinks,     citecolor=black,     filecolor=black,     linkcolor=blue,     urlcolor=black,     pdftitle={\@title},     pdfauthor={\@author},     bookmarks=true }  \begin{document} Some text. \end{document}


Is belonging not defined in axiomatic set theory?

In Naive Set Theory, Halmos states the following:     The principal concept of set theory, the one that in completely axiomatic studies is the principal primitive (undefined) concept, is that of belonging.   I'm surprised. Is $\in$ really not defined in axiomatic studies?


flushleft adds empty page when used for bibliography

I have a small problem in my thesis:  I need the Bibliography to be left-justified and used a simple \begin{flushleft} command to realize that:  \bibliographystyle{unsrtnat}  \lhead{\emph{Bibliography}} \begin{flushleft} \bibliography{Bibliography}  \end{flushleft}   I realized though, that when adding this flushleft command, that a blank page gets created in front of the Bibliography. Any idea as to why that is happening?  I am using:  \documentclass[a4paper, 11pt, oneside]{Thesis} \usepackage[square, numbers, comma, sort&compress]{natbib}


Does a character with a permanent True Polymorph effect reverts to their normal form upon reaching 0 HP?

The wording on true polymorph seems to imply the change back upon reaching 0 HP:     The target assumes the hit points of its new form, and when it reverts to its normal form, the creature returns to the number of hit points it had before it transformed. If it reverts as a result of Dropping to 0 Hit Points, any excess damage carries over to its normal form. As long as the excess damage doesn't reduce the creature's normal form to 0 hit points, it isn't knocked Unconscious.   This wording is almost the same as wild shape:     if you revert as a result of dropping to 0 hit points, any excess damage carries over to your normal form. For example, if you take 10 damage in animal form and have only 1 hit point left, you revert and take 9 damage. As long as the excess damage doesn’t reduce your normal form to 0 hit points, you aren’t knocked unconscious.


Prevent harmful call to database on string

Say I have this class:  public class MyObject {     public string Name { get;set;} }   When making db calls to see if there's any items with a name, I do this:  public List<MyObject> ListObjectsByName(string _myObject) {     var objectQry = from object in db.MyObject             where object.Name == _myObject             select object;      if(!objectQry.Any())     {         return null;     }      return objectQry.ToList(); }   I would like to block any harmful attempt to my database by parsing the _myObject string, so that if a clown tries to get all *DELETE MyObjects, my app won't crash. I'm using MVC 4. Is there any way to do that?


How to apply a bevel modifier, so that it affects only specific edges?

I am trying to apply a bevel modifier to a box with some additional buttons, however, I am struggling to apply the bevel modifier only to the top face and the edges that are connected to that face. In a nutshell, I am trying to bevel the top of the box without affecting the bottom and the buttons.  Here is an image of what I get upon applying the bevel modifier:


Writing to two or more data extensions at once

I'm quite a newby at this (green)  I'm creating custom subscription center. I have two data extensions which I need to insert/upsert data to.    Newsletter_Subscribers (EmailAddress, FirstName, LastName, Gender, DateOfBirth, OptIn, DateSubscribed, DateModified, DateUnsubscribed Newsletter_Subscriber_Topics (NST_EmailAddress, NST_TopicID, NST_OptIn, NST_DateSubscribed, NST_DateUnsubscribed)   I've created a 4 connected cloud pages: a) Form - collects data (Email, FirstName, LastName, Gender, DateOfBirth, TopicID) b) Process - (insert)  c) Settings d) Process2 (upsert)  Everything works fine if I use only one DE, but in that case when customer unsubscribes it unsubscribes from all, so here is when the second DE comes in handy, but I just can figure out how to write some data in one and the rest in the second DE.  Is there an option to do it with ampscript or just with automation?  Tnx.


One of the plot points of Iron Man 2 is that Tony Stark is being slowly poisoned to death by the palladium that powers his chest arc reactor; and he can't just do without the reactor, because that is the only thing that prevents the shrapnel in his chest from entering his heart. Within this movie, the problem is resolved by creating a new arc reactor powered by a nontoxic unnamed element.  But then, at the end of Iron Man 3, Stark decides to undergo surgery to remove the shrapnel from his chest, thus eliminating his need for a chest arc reactor. Why wasn't this option entertained in Iron Man 2? I appreciate that the surgery might be risky, but if the alternative is death by palladium poisoning, you might be willing to take the risk (and that's not even counting the fact that Stark, being the genius he is, could have devoted time to devise ways to lower the surgical risk).


I have an BibLaTeX entry which causes in \printbibliography command a overful hbox. How can I tell BibLaTex that a line break is allowed without a minus symbol?  In my case I have a text like ABC.learning. I want to allow BibLaTex to break the line after the dot.


Faulty SSD, name of drive has weird symbols, appears to be larger than it should be

I had a 500gb ssd which went bad today. I removed it and connected it to another computer. The name of the drive appears to have weird symbols. And the drive appears to have 11TB memory.    Can this drive be fixed. Can I recover data from it?


How can ı fix this?  "when ı approach the object,camera is slowing"   (Sorry i didnt upload the example video to this website)


Show that for all integers n ≥ 1 applies that $5|2^{3n} - 3^{n}$    can anyone help?


Find the sum of an infinite series for the following series

$$\sum_{n=1}^{\infty} \frac{n}{4^{n+1}}$$  Can someone help me find the sum of the series? I keep getting the sum to be  $ {\frac{1}{12}}$ but the answer is $ {\frac{1}{9}}$.  Very detailed explanation will be greatly appreciated.


Loading Ubuntu on to old netbook running Windows XP

I am new to Ubuntu. I have an old Samsung netbook with a 1.6GHtz processor and only 0.99GB RAM. Can I run last desktop version on this machine?


How to choose a suitable transistor for switching

I am building a circuit that involves switching 1000 LEDs via IC drivers. Each IC output has 10 LEDs connected to it, and these are grouped together by their cathodes, in groups of 100, such that only one group is enabled at once. To acheive this cathode switching, I use another IC output, and want to switch it via a transistor that can sink enough power comfortably. Allowing a maximum of 20mA per LED, I need an NPN transistor that can sink 2 amps of current. My circuit runs at 5 volts.  I'm not sure how to get about searching for an appropriate transistor, with so many available. Does anyone know of a parameterised search engine that would allow this? I have come across a couple, but they were overly complicated for someone such as myself who has a relatively basic knowledge of electronics.  If there is no such thing, then a suggestion for my particular use case would also be appreciated. This transistor will be switched by an IC that can supply around 10mA.


Rademacher functions form an orthonormal system but not an orthonormal basis

I would like to know how to show that the functions  $$r_n(t)=\operatorname{sgn}\big(\sin(2^n \pi t)\big)$$ (where $\operatorname{sgn}$ is the sign function) form an orthonormal system but not an orthonormal basis from $L_2([0,1])$.    Progress: I pick two different variables $i,k$ and show that $\langle r_i (t),r_k (t)\rangle =0$, so I can take the integral $\int_0^1  r_i (t) r_k (t)\,dt$, but I do not know how to show that this is 0.


What is the form of rhetoric called which involves posing questions and answering them oneself?

Donald Rumsfeldt had a way of speaking in public, where to make his point more forcibly he would pose questions and answer them. Has Saddam Hussain bombed his own people? Yes. Has he begun the manufacture of weapons of mass destruction? Yes Are we prepared to see him terrorise his neighbours? No (This is not necessarily an accurate quotation, but just an example of the sorts of things he said).  But what interests me is this form of rhetoric which involves posing loaded questions and providing answers that make your point. Another exponent of this was Josef Stalin. In his case it has been seen by some historians as a technique he learned during his childhood education in a religious seminary. It was a form of catechism.  So what is the rhetoric called? Is it catechismic?  The word does not exist (at least not in the OED) as an adjective.   Edit. I have briefly looked at .It is not entirely a parallel example - the OP complains that his wife does it in the course of everyday conversation. I am primarily interested in the development of an argument through this process. But the former question did bring out some interesting words - e.g. sermocinatio,- @Sven Yargs - which unfortunately does not have an OED entry. But I am also fascinated by the link to catechism, which I believe may be the provenance of this in some politicians. Someone has now come up with a suitable adjective - below.    Answer. I think the closest answer has been supplied by @Old English Lapdog. It seems to be the case that there are two distinct elements to this. One is that it follows the religious practice of teaching by question and supplied answer.  In that sense it relates to catechism. But in building an argument it is rhetorical. The word catechetical in its OED (sense 3) includes a reference to Socrates. 1711   J. Addison Spectator No. 239. ¶3   Socrates introduced a Catechetical Method of Arguing. He would ask his Adversary Question upon Question, till he had convinced him out of his own Mouth that his Opinions were wrong. So I am prepared to accept catechetical as the answer.


Stack Overflow Syntax Highlighting Bug on Android Application

Update I am now seeing that the text is being coloured correctly on my PC system and the issue seems to be only with the Android application. Either the issue is an intermittent one or I was simply mistaken  I edited  with a syntax highlight hint like this  <!-- language: lang-none -->   with the intention of removing all highlighting from something that is essentially plain text  On both my tablet and my Linux PC, despite a forced reload, I can still see some words highlighted in a dull green. At the time of writing, the words Homo and RefSeq are highlighted in green if they appear in code blocks with a lang-none tag  Perl highlighting has always been dreadful, and deserves a bug report of its own if it doesn't have one already, but I have never known the highlighter to ignore hints like this  Can someone please confirm that they see the same thing as I do, and perhaps explain why it is like that?  This screenshot from my tablet shows the problem clearly


Proving that ${\rm Aut}(G)=\{{\rm id}\} \implies |G| \in \{1,2\}$.

The exercise asks to prove that if $G$ is any group with ${\rm Aut}(G) = \{{\rm id}\}$, then $g^2=1$ for all $g$ in $G$, $G$ is abelian, and if $G$ is finite, we'll have $|G| = 1$ or $2$.  I managed to do everything up to the last part (and so far, we can find good answers on this site), but I don't know how to prove that if $|G|>1$, then $|G|=2$. I just know that $|G|$ is even. Can someone give hints? Thanks.


How to make ubuntu install avoid bad blocks?

I know this may be a duplicate, but I think my case is unique enough to warrant another question. I have a 320gb 7200 rpm hdd with the last half of the disk basically perfect, but the first half has (I think) some physical surface imperfections from being knocked around in a car while running. I checked the disk after that incident, and it said the disk was failing. I continued after that, and while it still said the disk was failing, it didn't change, nor did I have any problems with anything other than the first half of the disk. I have some screenshots taken a few minutes ago of what the disks application says about the disk from the SMART data. I switched the disk from an old 32 bit computer to a 64 bit one, and want to install 64 bit ubuntu without wiping out the 32 bit zorin os on the second to last partition. The ubuntu installer fails when I try to install on the first half of the disk, where part way through installation it says I/O error, and the installer crashes. I want to know how I can make the installer avoid the bad spots and install regardless. Here is a bit of what the smart data says: reallocated sector count: 0 sectors, threshold 5, worst 1, normalized 1, reallocation count: 4459, normalized 9, worst 9, threshold 0, uncorrectable sectors: 0


Computer noob needs help with video format conversion

I need to convert 2 movies from the .MKS format to a .MP4 or .AVI file. How would I do that? I would prefer doing this in a GUI as I am not comfortable with the Command Line Interface.


Cardinality of a set of all subsets of $P(\omega)$ with cardinality $\omega$

I am stuck on this one, do not know where to start. Any hint would be appreciated.  What is the cardinality of $[P(\omega)]^{\omega}$? Is it equal to $|P(w)|$? How do I show that?


I have the following problem. I want to center a listing, I tried this approach:   It works but when I try to set frame or numbers specifically for each listing I get errors. Here´s the M(Not)WE:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{listings} \begin{document}  \begin{figure}[thp]  \begin{tabular}{c}   \begin{lstlisting}[numbers=left] % Here lies the problem without the numbers=left it works    My Code   \end{lstlisting}  \end{tabular}  \centering  \caption{Bla} \end{figure}  \end{document}   Is there another way to center the listings and captions or how could I fix this approach?


Anyone can optimized this code for better explanation and easy to understand?

The function of this apex code is when Account has no Contacts the first contact created become the primary contact and when there is existing primary contact it cannot assign a other primary contact on account. Please help to optimized my code to easy understand.Thanks for the help.  public class CreatePrimaryContactHandler {     public static void createPrimary(List<Contact> contactList)     {        Set<Id> accountId = new Set<Id>();         for(Contact c : contactList)         {             accountId.add(c.AccountId);         }         List<Contact> allContact = [SELECT Id, Account.Id, Primary_Contact__c FROM Contact WHERE (Account.Id IN : accountId)];         Map<Id, List<Contact>> acctContactMap = new Map<Id, List<Contact>>();             for(Id aId : accountId)             {              List<Contact> conList = new List<Contact>();                 for(Contact allcont : allContact)                 {                     if(allcont.AccountId == aId)                     {                     conList.add(allcont);                     }                 }                 acctContactMap.put(aId, conList);             }             for(Id accId : acctContactMap.keySet())             {                 Integer count = 0;                 for(Contact c : contactList)                 {                     if(c.AccountId == accId && c.Primary_Contact__c)                     {                         count++;                     }                 }                 if(count <= 1)                 {                     List<Contact> cList = acctContactMap.get(accId);                     Contact primary;                     Boolean isPrimary = false;                     for(Contact cont : cList)                     {                         if(cont.Primary_Contact__c)                         {                             isPrimary = true;                         }                     }                     for(Contact cont : contactList)                     {                         if(cont.AccountId == accId)                         {                             if(cont.Primary_Contact__c)                             {                                 if(primary != null)                                 {                                     primary.Primary_Contact__c = false;                                      isPrimary = false;                                 }                                 else if(isPrimary)                                 {                                 cont.addError('Invalid Primary Contact. This Account has already an existing Primary Contact.');                                 }                                     else                                     {                                         cont.Primary_Contact__c = true;                                         isPrimary = true;                                     }                             }                                    else if(!isPrimary)                                 {                                     cont.Primary_Contact__c = true;                                     isPrimary = true;                                     primary = cont;                                 }                         }                     }                 }                 else                 {                     contactList.get(0).addError('Invalid Primary Contact. This Account has already an existing Primary Contact.');                 }         }       } }   This is the Trigger  trigger CheckPrimaryContact on Contact (before insert,after update,before update){     if(trigger.IsInsert && trigger.IsBefore){         CreatePrimaryContactHandler.createPrimary(trigger.new);     }     if(trigger.IsBefore && trigger.IsUpdate){         CreatePrimaryContactHandler.createPrimary(trigger.new);     } }


Why is it that the product of first N prime numbers + 1 another prime?

Recently I came across this proof for fact that primes are infinite.  It's a proof by contradiction. The proof assumes that primes are finite and there is a prime M which is larger than any prime out there. Then you basically take the product of all primes up to and including M and you add one to it, which the source where I read this proof claims is a prime obviously larger than M hence a contradiction to our assumption that primes are finite.  So why is it that product of first N primes + 1 another prime?


Start a new process without blocking the terminal

Is it possible to do this? For example if I run "gedit tifatul.txt" via the command line, my terminal becomes blocked and I can't enter other command in this terminal before I quit gedit. Can I start a program (like gedit) without blocking the terminal? In windows I think this can be done like "start notepad tifatul.txt"


How to creat a loop ans stay at the same line without spaces in python 2.7?

for example, I want to print 01234567 so I know I need to write  for i in range(8)  print(i),   and it will print 0 1 2 3 4 5 6 7 instead of change the line for every number but I want it whithout spaces


Where is the "logout" option in the Applications menu of gnome shell?

Please take a look at this screenshot:    I have been using this desktop for a week but till now I can not find where "logout" option is in the Applications menu. So my question is:  (1) Is this gnome shell, to be more specific, gnome 2's shell? Or is it called unity because the tip says "Get help with Unity"?  (2) Is there any "logout" menu item in the Applications menu (or any part of the screen) of this shell? If yes, where is it, or how to make it appear in the Applications menu?  Thanks a lot.  PS: This shell is obtained by the following commands:  metacity & gnome-settings-daemon & gnome-panel &


Is there any way to check field dependency in salesforce

let say i have a field abc__c in account object and i want to check where this field has been used then i can do following things   1) retrieve all org metadata through ant or workbench or eclipse and do a text search in that data - (it is ineffective as it will just search the field name and there can be many field with same name or there can be code commented which will also come in search)  2) delete the field in salesforce org, if there is any dependency of it then the references will come in next page (Effective but more manual work)  Here in this question the thing that i want to find out is that, is there any function in salesforce which is available in metadata Api through which we can get the field dependency that salesforce find out during field deletion


Looking for a short story, where a few people are sent on a spaceship and become geniuses

The thing is, Earth is doomed because of strife and lack or resources, so the government sends a few (six? I think) people on a voyage toward "a new home for mankind", but actually there isn't any habitable planet at the destination, and the whole thing is an experiment by the government, trying to make the astronauts find clever and innovative solutions to, because people with fewer resources get better ideas, or something like that.  Eventually it backfires on the government, because the people on the spaceship become super-smart. It's all delivered by messages that Earth receives from the spacecraft.  Rings a bell?


Getting Run time error while setting up search interface for my app

I am designing a search feature for one of my screens in my app. I followed exactly according to android official documentation for setting up search interface  When I run my app I always get runtime error stating that:     `AndroidRuntime: FATAL EXCEPTION: main  Process: com.honey.crickapp_project, PID: 31509  java.lang.NullPointerException: Attempt to invoke virtual method  'void android.support.v7.widget.SearchView.setSearchableInfo (android.app.SearchableInfo)' on a null object reference at  com.honey.crickapp_project.Clubs_List.onCreateOptionsMenu(Clubs_List.java:41   Here is my Clubs_List.java file  public class Clubs_List extends AppCompatActivity {   Toolbar toolbarC;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.cricket_clubs);     toolbarC = (Toolbar) findViewById(R.id.toolbarC);     setSupportActionBar(toolbarC);     getSupportActionBar().setDisplayShowTitleEnabled(false);  } @Override public boolean onCreateOptionsMenu(Menu menu) {     MenuInflater inflater = getMenuInflater();     inflater.inflate(R.menu.search_menu,menu);     SearchManager searchManager =     (SearchManager) getSystemService(Context.SEARCH_SERVICE);     SearchView searchView = (SearchView)      menu.findItem(search).getActionView(); // this is where it throws null      searchView.setSearchableInfo( searchManager.getSearchableInfo(getComponentName()) );        return true;     } }   Here is my menu.xml file   <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">>  <item android:id="@+id/search"     android:title="search"     android:icon="@drawable/ic_menu_search"     app:showAsAction="collapseActionView|ifRoom"     android:actionViewClass="android.widget.SearchView"       /> </menu>   Here is my searchable.xml file        <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/app_name" android:hint="@string/search_hint" />   And here is the part of my manifest file     </activity>       <activity android:name=".SearchResultsActivity"  >        <intent-filter>          <action android:name="android.intent.action.SEARCH" />       </intent-filter>     </activity>


Russian Title with Strange Character Substitutions (in particular, Capitalization)

I am helping an author typeset his paper in Russian.  Using the babel package is mostly working, except with the title.  An example, where the text is "Placeholder title" as translated by Google Translate:  MWE:  \documentclass[11pt]{amsart}  \usepackage[utf8]{inputenc} \usepackage[T2A,T1]{fontenc} \usepackage[english,main=russian]{babel}  \begin{document} \title{Название заполнителя} \maketitle  Название заполнителя  \end{document}   The result is    As a comparison, if I read in the Russian alphabet, with a capitalized А and the rest lowercase (to be exact:Абвгдеёжзийклмнопрстуфхцчшщъыьэюя), I get:    This makes it clear that the issue is the first half of the alphabet (except ё) is forcibly capitalized, regardless of context or position in a word.  It is not the same as , as I'm loading the title after the language rules.  Adding a \foreignlanguage{russian}{...} wrapper does nothing, and for some reason, a \begin{otherlanguage}{russian}...\end{otherlanguage} wrapper inside the title (starred or unstarred) is causing an error in compilation, as the compiler claims that the command does not exist.    Question:     How do I get the title Unicode to display correctly?   Configuration: Mac OS X, TeX Live 2018.  (No admin access)


Why is the marginal pdf of $x$ constant? $x$ is the coordinate of the points uniformly distributed on the surface of a sphere

Consider a sphere of radius $R$ centered at the origin with points uniformly distributed on the surface. What is the marginal pdf of the x-coordinate of these points? Apparently the answer is $$ f_X(x) = \frac{1}{2R} $$ This is very unintuitive for me because I would think this $f_X$ would be dependent on $x$, and would be largest at $x = 0$ tapering off as x increases/decreases.


Making Flash work on Firefox Quantum 57 (PPAPI, NPAPI, pepper), Ubuntu 16.04

In this post I look rather for clarification than technical solution (the problem is already solved, see below).  I just upgraded from 14.04 to 16.04 and installed a fresh Firefox, which happened to be Quantum 57.0.3 (64 bit). Flash didn't work, thus I installed flashplugin-installer, which has in its description:     The Adobe Flash Player plugin will work with a range of web-browsers >including, limited to:    * Firefox   Unfortunately it didn't help. What helped was the installation of browser-plugin-freshplayer-pepperflash instead. The description of the latter package states:     The main goal of the project is to get PPAPI (Chrome) plugins   working in Firefox (and any other web-browser supporting NPAPI plugins   I wanted to understand why the former package didn't work, thus I started to read and found out  that Firefox since ver 52 does not support NPAPI plugins, except for Adobe Flash. Therefore, it seemed that having adobe-flashplugin installed should be enough and one does not need to deal with the NPAPI/PPAPI issues. Indeed, after I removed browser-plugin-freshplayer-pepperflash and sticked to adobe-flashplugin, everything worked fine. Thus, I suspect that the crux was in one of the packages required by browser-plugin-freshplayer-pepperflash, not that package itself.   Would the conclusion be that Firefox in 16.04 ships without Flash support, even when adobe-flashplugin is present (I wonder why)?  If so, some users might bump at this problem, just as I did.


Can we export TAB delimited file from Salesforce

I have a requirement to export the tab delimited file from SFDC. Can we do it apex dataloader. I believe, there is no way to do it ? let me know if there is a workaround.  has anyone used some good free tools to convert the CSV into TAB delimited ? Thanks .


Can't switch between previous command in terminal

As in the past I installed Lubuntu but I installed a light one so many things weren't installed. Today, I noticed that when I use the up arrow key to retype the previous command, instead of showing the previous command as expected it just shows ^[[A. What could be the problem?


iPhone 4 died and need to know how to retrieve data on flashed phone

My iPhone 4 completely died. I got one of my fathers old iPhone 4's and had it flashed at Cleartalk. How can I retrieve all of my data that was backed up on the icloud?


What caused this pattern of lines (moire?) in this picture I scanned from a book?

I have scanned this photo from a book that's printed with color ink, but the picture is a black and white one. When I scanned it with Vuescan as a color photograph I get vertical lines like    I think it's called a Moire pattern, but I haven't seen one like this one. How can i prevent them or how can I get rid of them in Photoshop or other software?


Remark from baby Rudin about continuous function

"We defined the notion of continuity for functions defined on a subset $E$ of a metric space $X$. However, the complement of $E$ in $X$ plays no role whatever in this definition (note that the situation was somewhat different for limits of functions). Accordingly, we lose nothing of interest by discarding the complement of the domain of $f$. This means that we may juct as well talk only about continuous mappings of one matric space into another, rather than of mappings of subsets."  I have one question:  Why $E^c$ in $X$ plays no role in definition of continuous function but it's material in definition limit of function?


How to ask someone (outside the department) to be on the thesis committee

I have to request a faculty member outside of my department to be on my thesis committee and I was wondering how I should go about doing this. To be frank, I don't really see why someone would be willing to be on the thesis committee for someone outside their department and even field - apart from the altruism of wanting to help others in academia and all, but I assume professors are busy! Therefore, I imagine that it's hard to convince someone to do this?   In any case, I was wondering:     what information about myself should I aim to include in an email request to a potential thesis committee member outside my department?    In addition, while I need to find someone to file my candidacy papers, but I have only a vague idea of what my final thesis will look like (I know the field, but not the particular question it will address.)  Some things I have come up with include:   a rough description of the subject area  'expected' graduation date and number of years spent in graduate school so far if they have been on the thesis committee for someone else with a similar thesis (by looking at the thesis committees of former students who worked with my advisor)


What is a metaphorical equivalent for "incidental positive results" or "unexpected positive outcomes"

I read what was offered as an antonym for "camel's nose" and found "toehold" as the best fit but I'm hoping to get even better ideas. However, if the camel's nose could be used for positive outcomes, it would work for me. Please try not to suggest words from economic jargon. The text I'm translating is actually a literary one.   Context: You take a trip to enjoy yourself but you happen to find your ultimate goal there: you get something that originally was not supposed to be gained, you could have hoped for it though..  PS: English is not my language of fluency and I appreciate you bearing with the possible mistakes I make.


How to define number of spaces after '\n' in c

I want to print this:      printf("please Choose: 1-For Checking what is the most popular number in the array\n               2-To sort your array from the smallest number to the biggest\n               3-To sort your array that even will be to your left and odd to the right\n               *Any other number will exit the program\n");   there is a way to define number of spaces after '\n' instead of typing lot of spaces?


How to make blocks in spawn unbreakable in survival?

So on my multiplayer server on Minecraft Education Edition I can't seem to figure out how to make the blocks in spawn unbreakable. I know adventure mode fixes that but it's a survival world. I don't want them in adventure, so how do I make the blocks in spawn unbreakable?


NullPointerException is occuring and I really don't have any clue of what I am doing wrong. Please help me. And I'm also a newbie

SessioManager.kt class SessionManager(context : Context) {      private var PRIVATE_MODE = 0     val PREF_NAME = "LoginLogout"      val KEY_IS_LOGGEDIN = "isLoggedIn"     var pref = context.getSharedPreferences(PREF_NAME, PRIVATE_MODE)   //---------error     var pref_editor: SharedPreferences.Editor = pref.edit()      fun  setLogin(isLoggedIn: Boolean) {                            //use to login or logout         pref_editor.putBoolean(KEY_IS_LOGGEDIN, isLoggedIn)         pref_editor.apply()          if(!isLoggedIn) {             pref_editor.clear().apply()         }     }      fun isLoggedIn() : Boolean {                                             return pref.getBoolean(KEY_IS_LOGGEDIN, false)     } }  HomeActivity.java public class HomeActivity extends AppCompatActivity {  private SessionManager sessionManager = new SessionManager(HomeActivity.this);  //-------error private SharedPreferences sharedPreferences = sessionManager.getPref();   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference


Regex only contain binary number and not more than 8 digit

I expect true return value that match condition below :   Only binary number (0 or 1) Length not more than 8   I'm new to regex, i have googling and read JS RegExp from  but still i don't get it.  I've tried  /[0-1]$/   but still didn't match the condition above  I expect boolean return from regex test if there is contain no other number except 0 or 1 and length not more than 8.  data: {   binRegExp: /[0-1]$/,   isBinary: false,   binNum: '', // get value from user input }, computed: {   inputCheck(){     return this.isBinary = this.binRegExp.test(this.binNum)   } }   code above is vue js  If there is solution, please answer below. Thank you


In bash, how can I convert a Unicode Codepoint [0-9A-F] into a printable character?

I have a list of Unicode codepoints, but I don't know of a "simple" way to convert these hex values into the actual characters they represent...    I've heard that zsh has echo -e '\u0965', but I use bash 4.1.  Is there something as simple as the zsh method, for bash?


#include<stdio.h> void fun(int a[]) {         int m=sizeof(a)/sizeof(a[0]);     printf("m=%d\n",m);  }  int main() {     int arr[]={1,2,3,4,5,6};     fun(arr);     int n=sizeof(arr)/sizeof(arr[0]);     printf("n=%d\n",n);     return 0; }   Output: m=2 n=6  Why is m not also 6? How to find the size of an array passed as a function argument?