I'm working on application that causes me many problems when working   file1 = "src\\sga\\facturation\\data.ser"; FileInputStream fis = new FileInputrStream(file1);//this works fine on NetBeans   I tried  file1 = "data.ser"; InputStream fis = ClassLoader.getSystemClassLoader().getResourceAsStream(file1);   But nothing; I tried also to change the repertory's path, it told me file not found, I tried even to force the repertory in C:\Folder; where I put my files but nothing works. I tried to delete those lines to see if FileOutputStream works, but it's not the case :( Here's which works on NetBeans   ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file2));   This is my repertory    Thanks for helping  RELATED POSTS NEVER TOLD ME A SOLUTION WHICH WORK, SO IF YOUR ATTENTION WAS TO PUT A -1 ON BEGINING, DO IT AND LEAVE !
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 want something similar to "preview" in macs.  For example: I want an image editor that ONLY does simple adjustments like increase/decrease contrast, saturation, exposure, color tinting.... rotate, flip vertically, flip horizontally, make black and white, change size or format, crop.  THATS IT.  I know gimp can do all those things but its a bit overkill.  I just want to right click an image, open it with this magical program i just described, do a few quick adjustments, and then save and exit.  Nothing really fancy.  Anyone know of anything like this?  Btw I am using ubuntu 12.04 :) It rocks and I am glad I switched from mac, i just need to replace this one piece of software. So there are several types of transistors:   BJT JFET MOSFET   Combine all that with the various flavors of each (NPN, PNP, enhancement mode, depletion mode, HEXFET, etc) and you've got a wide array of parts, many of which are capable of accomplishing the same job.  Which type is best suited for which application?  Transistors are used as amplifiers, digital logic switches, variable resistors, power supply switches, path isolation, and the list goes on.  How do I know which type is best suited for which application?  I'm sure there are cases where one is more ideally suited than another.  I admit that there is some amount of subjectivity/overlap here, but I'm certain that there is a general consensus about which category of applications each of the transistor types listed (and those I left off) is best suited for? For example, BJTs are often used for analog transistor amplifiers and MOSFETs are generally used for digital switching.  PS - If this needs to be a Wiki, that's fine if someone would like to convert it for me Problem. Assume that $U$ is an open and connected subset of $\mathbb R^2$, and $\gamma :[0,1]\to U$ is a closed curve, which is not null-homotopic in $U$ and not necessarily simple closed. Show that there exists a simple closed curve, which is not null-homotopic in $U$.  I am sure that this is a standard problem, and I am looking for an elegant, if possible, solution or a reference. I have in mind the following sketch of proof:  a. Construct a polygonal closed curve $\tilde\gamma$ which is homotopic with $\gamma$ in $U$.  b. Construct $\tilde\gamma$ so that it intersects itself in finitely many points, and not whole segments.  c. Use induction on the number of self–intersections of $\tilde\gamma$, in order to show that $\tilde\gamma$ is written as a product (in the fundamental group's sense) of simple closed polygonal curves. Produce an explicit bijection between rationals and naturals? What are useful websites for scouting GIS related jobs? Is there any way to ensure that a specific USB key always gets the same drive letter? Why does lightning emit light? What exactly is causing the electric discharge coming from the clouds to emit light while traveling through the air. I've read and thought about it a little but with my current knowledge I cant really figure what is happening at a subatomic level. In other words, what causes the emission of photons during lightning. What I want to know is, is there some sort of collisions taking place that produces the photons we see, or is it some other interaction that is causing it?. I don't know too much about particle physics, I've only read a couple of pages in the Introduction to Elementary Particles by Griffihts. So if you could keep the answer simple then that would be great. Windows 10 stuck in install loop I was having a time getting my bootable USB 3, 32GB W10 install USB to be recognized. It recognized one time but I had to restart for something and it never came up again. I eventually removed all other boot up options to make it easier and faster to try again (no F12 needed).  Finally I gave up and tried another drive (16GB this time FWIW) and then it worked.  HOWEVER, it's stuck on a reboot loop now. I can choose to install, then to select the right disk, then it says it's loading file and then next thing I know it's saying do you want to install or upgrade. I consistently have more than one terminal open. Anywhere from two to ten, doing various bits and bobs. Now let's say I restart and open up another set of terminals. Some remember certain things, some forget.  I want a history that:   Remembers everything from every terminal Is instantly accessible from every terminal (eg if I ls in one, switch to another already-running terminal and then press up, ls shows up) Doesn't forget command if there are spaces at the front of the command.   Anything I can do to make bash work more like that? MySQL strip non-numeric characters to compare How do I uninstall Pandoc in Ubuntu 19.10 (and install most recent version) I have an old version of Pandoc installed, but I'd like to install the latest version of Pandoc.   To begin I've run the following to get rid of the old version:  sudo apt-get autoremove --purge pandoc  But when I check that everything is uninstalled by running: pandoc --version Then pandoc 2.2.3.2 pops up.  I can't seem to get rid of this old version of pandoc so that I can install a new one.  Could you advise me on how I can get rid of the old version and install the new one please. Powershell auto complete settings. I was wondering if there was anyway to change the way the current powershell autocomplete works. I have been using bash and had changed them to offer a few features that I'd like in my powershell experience.   Currently powershell as I'm writing a command with a folder it will tab autocomplete and also cycle through my folders. This works how I like but one feature that I miss is using partial matching of a command and hitting the up key and it would find that command that matches the rest of what I do.   So Id write 'echo test'  Then id write other commands and try 'ec' and tap up and 'echo test' would complete and not the last command I typed  Just wondering if there is anyway anyway to get this back? Which personal pronoun is appropriate in single-author papers - 'I' or 'we'? Could the use of 'I' be considered egotistical? Or will the use of 'we' be considered to be grammatically incorrect? I'm currently working on building a predictive model for a binary outcome on a dataset with ~300 variables and 800 observations. I've read much on this site about the problems associated with stepwise regression and why not to use it.  I've been reading into LASSO regression and its ability for feature selection and have been successful in implementing it with the use of the "caret" package and "glmnet".   I am able to extract the coefficient of the model with the optimal lambda and alpha from "caret"; however, I'm unfamiliar with how to interpret the coefficients.    Are the LASSO coefficients interpreted in the same method as logistic regression? Would it be appropriate to use the features selected from LASSO in logistic regression?   EDIT  Interpretation of the coefficients, as in the exponentiated coefficients from the LASSO regression as the log odds for a 1 unit change in the coefficient while holding all other coefficients constant. Shutdown Cause -128 Distinguishing whether "up" is a preposition or a part of a phrasal verb in this case In the sentences below, “bill” and “hill” are both nouns.    He ran up a big hill. He ran up a big bill.   Can someone explain how one distinguishes whether “up” is a preposition or a part of a phrasal verb? Where can I find some guidance on index strategies? Shuffling questions in exam Discoveryd Alternative to Replace mDNSResponder Argument? This is a direct follow-on to . , I'd add the "-AlwaysAppendSearchDomains" argument to the mDNSResponder plist file so that all local resolver lookups added the search domains, regardless of whether there was a period in the label to be looked up. For example, whether I try to ssh to hostname foo.bar or foo, the search domain of baz.com should be tried, not only for the latter case, as was (and is) the default behavior.   Now, it looks like the mDNSResponder is gone, replaced with discoveryd. I cannot find a similar option to get it to always appending the search domain. Suggestions? I'd rather not go the route of using a non-default local resolver, but I'd consider it as an option. For now, I'll just type in the long FQDNs, but I'd really rather not.  Thanks, Pete Projection on the hyperplane $H: \sum x_i=0$ Consider the hyperplane $H: \sum_{i=1}^n x_i=0$. Let $P$ denote the orthogonal projection onto $H$. What exactly is the matrix $P$ and how do we find it?