Rectangle 27 93

I had exactly the same problem, and these two lines fixed the problem:

y_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False)
ax.yaxis.set_major_formatter(y_formatter)

@DanZimm you can upvote now...

ax.get_yaxis().get_major_formatter().set_useOffset(False)

for noobs like me dont forget the from matplotlib.ticker import ScalarFormatter for @Gonzalo 's code to work or simply use @Dataman 's solution above

python - matplotlib: format axis offset-values to whole numbers or spe...

python matplotlib
Rectangle 27 45

I had exactly the same problem, so for people looking for the quick answer, try

File
Invalidate Caches / Restart

This didn't work for me :(

Worked for Idea 13.0 in ubuntu

IntelliJ Ultimate 14 find usages not working - Stack Overflow

intellij-idea intellij-14
Rectangle 27 499

It is a bug in Eclipse. I had exactly the same problem, also on Ubuntu with Eclipse Java EE Juno.

Here is the workaround that worked for me:

{workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs

Works on Ubuntu 14.10 and Eclipse 4.4.1. But strange, the bug exists in Eclipse for such a long time...

java ee - Eclipse add Tomcat 7 blank server name - Stack Overflow

eclipse java-ee tomcat
Rectangle 27 19

Had exactly the same problem, and here's the solution:

#!/bin/bash

# IMPORTANT: Source RVM as a function into local environment.
#            Otherwise switching gemsets won't work.
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"

# Enable shell debugging.
set -x

rvm 1.9.2@gemset_a
rvm gemdir
gem env gemdir

rvm 1.9.2@gemset_b
rvm gemdir
gem env gemdir

What I've found out is that your interactive shell has got rvm() and its helpers, whereas script's environment has not got them. rvm binary is executed instead, partially working and thus causing some confusion.

Thanks! This was killing me with my Jenkins/Capistrano deploy! I was soooo confused! Cheers.

Thanks! This also helped fix an issue where switching Ruby version (e.g. "rvm system") didn't work inside a script.

#!/bin/bash --login
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"

bash - Cannot change RVM gemset from shell script via `rvm gemset use`...

bash rvm
Rectangle 27 19

Had exactly the same problem, and here's the solution:

#!/bin/bash

# IMPORTANT: Source RVM as a function into local environment.
#            Otherwise switching gemsets won't work.
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"

# Enable shell debugging.
set -x

rvm 1.9.2@gemset_a
rvm gemdir
gem env gemdir

rvm 1.9.2@gemset_b
rvm gemdir
gem env gemdir

What I've found out is that your interactive shell has got rvm() and its helpers, whereas script's environment has not got them. rvm binary is executed instead, partially working and thus causing some confusion.

Thanks! This was killing me with my Jenkins/Capistrano deploy! I was soooo confused! Cheers.

Thanks! This also helped fix an issue where switching Ruby version (e.g. "rvm system") didn't work inside a script.

#!/bin/bash --login
[ -s "$HOME/.rvm/scripts/rvm" ] && . "$HOME/.rvm/scripts/rvm"

Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

bash - Cannot change RVM gemset from shell script via `rvm gemset use`...

bash rvm
Rectangle 27 5

The exception message tells you exactly what the problem is:

You don't have propertyFileName bean defined any where. You just have property propertyFileName defined inside bean propertyFacade. This won't work if you have no setter.

propertyFileName
test-properties.inf
propertyFacade
@Autowire

@Autowire with fields can be used when you want to inject a (somewhere defined) <bean> into a particular field. This shouldn't be mixed with using <property>.

Only if the setter is un-commented. <property> requires a setter.

Another option is constructor injection, which can be either autowired or specified in the bean configuration: <bean id="propertyFileName" class="java.lang.String"><constructor-arg value="test-properties.inf" /></bean>. This can of course also be applied to the propertyFacade to enable you to create a class with a real, usable constructor that you can use for testing, but can also use within a CDI container

java - Autowired property not working, but autowired setter is? - Stac...

java spring
Rectangle 27 13

I struggled with exactly the same problem, for hours tonight. After adding

config.assets.initialize_on_precompile = false

to application.rb, remember to do a

git commit

right afterwards. I forgot to do this, and Heroku had no idea I'd changed application.rb. They don't have this extra line on their troubleshooting page.

ruby on rails - Error pushing to heroku - aborting my rake assets:prec...

ruby-on-rails heroku
Rectangle 27 26

Had exactly the same problem. This thread points out the reason behind it, and this one actually shows what to do.

  • in Android Studio uninstall Android SDK Tools
$ cordova platforms remove android
$ cordova platforms add android

This is totally different, the question is from 2015 and this problem is new. The questions you link are for the new problem and your fix too.

You are indeed correct about it. So anyone who is looking for a fix for 2015 problem, should keep looking, others may find relief here.

for those who don't have android studio but just the sdk manager tool, type in "sdkmanager tools" what you need will be installed

Missing Gradle in Android SDK (using cordova + ionic) - Stack Overflow

android cordova gradle ionic
Rectangle 27 4

I had exactly the same problem. My environment was:

The symptoms of the problems were:

  • There was a red error flag on my PM file. and the description of the error was as described in the original question asked here.
  • There were known compilation problems in the several Java files in the project, but eclipse still was not showing them flagged as error in the editor pane as well as the project explorer tree on the left side.

The solution (described above) about updating the m2e extensions worked for me.

Better solution (my recommondation):

  • Select the m2e extensions, accept the license.
  • After update, you will be asked for restarting STS. The problem goes away after STS comes back up.

eclipse - m2e error in MavenArchiver.getManifest() - Stack Overflow

eclipse maven maven-3 m2e maven-jar-plugin
Rectangle 27 25

I had exactly the same problem and solved using the following C# method, found here!:

public void DisableUnwantedExportFormat(ReportViewer ReportViewerID, string strFormatName)
{
    FieldInfo info;

    foreach (RenderingExtension extension in ReportViewerID.LocalReport.ListRenderingExtensions())
     {
        if (extension.Name == strFormatName)
        {
             info = extension.GetType().GetField("m_isVisible", BindingFlags.Instance | BindingFlags.NonPublic);
            info.SetValue(extension, false);
        }
    }
}

and on the page_load:

DisableUnwantedExportFormat(ReportViewer1, "PDF");

Hello I used your and it work with PDF and WORD only. How can I try it with Excel??

asp.net - ReportViewer - Hide PDF Export - Stack Overflow

asp.net reporting-services reportviewer
Rectangle 27 2

what exactly is the problem here?

and for adding it to all pages you can do this:

require 'prawn'

Prawn::Document.generate('hello.pdf') do |pdf|
  pdf.text("Hello Prawn!")
  pdf.start_new_page
  pdf.text("Hello Prawn!")
  pdf.start_new_page
  pdf.text("Hello Prawn!")
  pdf.page_count.times do |i|
    pdf.go_to_page i
    pdf.image "image.jpg", :at => [pdf.bounds.right - 100, 0], :align => :right
  end
  pdf.number_pages "<page> in a total of <total>", :start_count_at => 0, :page_filter => :all, :at => [pdf.bounds.right - 100, 0], :align => :right, :size => 14
end

there might be better alternatives, but i never used prawn before.

The issue is that your pdf.image method doesn't have a :page_filter => :all parameter on it, and this method is not an option for pdf.image. I need to the image to be placed on every page.

That's creative, .go_to_page is a new one for me and will be helpful in other scenarios as well. Thanks for the tip.

ruby - Prawn - Place image in footer on each page - Stack Overflow

ruby prawn
Rectangle 27 104

EDIT: I've found the root of the problem and have a workaround:

The problem seems to be triggered by OpenGL ES Frame Capture in XCode; I'm guessing this problem started when Apple added Metal to the mix as of XCode 6.4/iOS 8.3, perhaps somehow adversely affecting the entire frame capture debugging system.

  • Select the "Run" Tab on the left.
  • Select the "Options" sub-tab on the top.
  • Change "GPU Frame Capture" from "Automatically Enabled" or "OpenGL ES" to either "Metal" or "Disabled".

Not sure if this issue is Apple's or Google's but I'll be posting bug reports to both. Happy coding!

Some further info (would make this a comment but don't have the rep quite yet) as I'm experiencing this too; as best I can tell:

  • The issue is apparent in XCode 6.4 as well as XCode 7 beta 3
  • It doesn't manifest on iOS 8.1.2 but it does on iOS 8.3.
  • It happens with both Google Maps 1.9.X (imported as a Framework file) as well as 1.10.X (imported as a CocoaPod, including the latest)
  • I can't verify this completely yet but it hasn't shown up in XCode 6.3.2 for me; this might be because I can't compile for 8.3 in that version.

I'll likely miss the deadline for the swag bounty but I'm spending all day tomorrow digging deeper and will report back.

I had exactly the same problem, spent all day chasing it down until I saw this. Fixed the problem for me. Awesome!

objective c - Adding google maps as subview crashes iOS app with exc_b...

ios objective-c xcode google-maps
Rectangle 27 8

I have exactly the same problem. What I found after duffys quality setting adjustion:

My Notebook runs both an Intel HD 4000 and a NVS 5200M. Running Swing applications with Java 7 is fine on both cards. With Java 8 Swing GUIs rendered by the Intel card (regardless of quality settings) look crumbled (as in duffys Screenshot), using the NVS 5200M they look as they used to.

Could not find anything on the java bug tracker, on the otherhand it is hard to describe this bug.

I wonder if this is going to be fixed in a newer version of java 8. I have this on my dell laptop which has the intel HD and a NVS as well. :(

java - Swing rendering appears broken in JDK 1.8, correct in JDK 1.7 -...

java swing rendering nvidia java-8
Rectangle 27 8

I have exactly the same problem. What I found after duffys quality setting adjustion:

My Notebook runs both an Intel HD 4000 and a NVS 5200M. Running Swing applications with Java 7 is fine on both cards. With Java 8 Swing GUIs rendered by the Intel card (regardless of quality settings) look crumbled (as in duffys Screenshot), using the NVS 5200M they look as they used to.

Could not find anything on the java bug tracker, on the otherhand it is hard to describe this bug.

I wonder if this is going to be fixed in a newer version of java 8. I have this on my dell laptop which has the intel HD and a NVS as well. :(

java - Swing rendering appears broken in JDK 1.8, correct in JDK 1.7 -...

java swing rendering nvidia java-8
Rectangle 27 8

Show them that the base-10 system suffers from exactly the same problem.

Try to represent 1/3 as a decimal representation in base 10. You won't be able to do it exactly.

So if you write "0.3333", you will have a reasonably exact representation for many use cases.

But if you move that back to a fraction, you will get "3333/10000", which is not the same as "1/3".

Other fractions, such as 1/2 can easily be represented by a finite decimal representation in base-10: "0.5"

Now base-2 and base-10 suffer from essentially the same problem: both have some numbers that they can't represent exactly.

While base-10 has no problem representing 1/10 as "0.1" in base-2 you'd need an infinite representation starting with "0.000110011..".

Floating point inaccuracy examples - Stack Overflow

floating-point floating-accuracy
Rectangle 27 8

I have exactly the same problem. What I found after duffys quality setting adjustion:

My Notebook runs both an Intel HD 4000 and a NVS 5200M. Running Swing applications with Java 7 is fine on both cards. With Java 8 Swing GUIs rendered by the Intel card (regardless of quality settings) look crumbled (as in duffys Screenshot), using the NVS 5200M they look as they used to.

Could not find anything on the java bug tracker, on the otherhand it is hard to describe this bug.

I wonder if this is going to be fixed in a newer version of java 8. I have this on my dell laptop which has the intel HD and a NVS as well. :(

java - Swing rendering appears broken in JDK 1.8, correct in JDK 1.7 -...

java swing rendering nvidia java-8
Rectangle 27 8

I have exactly the same problem. What I found after duffys quality setting adjustion:

My Notebook runs both an Intel HD 4000 and a NVS 5200M. Running Swing applications with Java 7 is fine on both cards. With Java 8 Swing GUIs rendered by the Intel card (regardless of quality settings) look crumbled (as in duffys Screenshot), using the NVS 5200M they look as they used to.

Could not find anything on the java bug tracker, on the otherhand it is hard to describe this bug.

I wonder if this is going to be fixed in a newer version of java 8. I have this on my dell laptop which has the intel HD and a NVS as well. :(

java - Swing rendering appears broken in JDK 1.8, correct in JDK 1.7 -...

java swing rendering nvidia java-8
Rectangle 27 8

I had exactly the same problem. I will present the way I worked around it.

Changed relevant code to include a null check for the entity object that is passed as an argument.

private boolean containsFoo(Foo foo) {
    EntityManager mgr = getEntityManager(); 
    boolean contains = true;
    try {
        // If no ID was set, the entity doesn't exist yet.
        if(foo.getID() == null)
            return false;
        Foo item = mgr.find(Foo.class, foo.getID());
        if (item == null) {
            contains = false;
        }
    } finally {
        mgr.close();
    }
    return contains;
}

This way it will work as supposed, although I'm confident that more experienced answers and explanations will appear.

The containsFoo method makes use of the Entity Manager's find() method, which in the context of the original question takes a null ID and crashes, not even being able to tell if the datastore contains or not that entity. My question is: if new entities don't have an ID, how can they be checked for existence requiring a valid ID?

google app engine - Nullpointerexception throws when inserting entity ...

google-app-engine google-cloud-endpoints
Rectangle 27 8

I have exactly the same problem. What I found after duffys quality setting adjustion:

My Notebook runs both an Intel HD 4000 and a NVS 5200M. Running Swing applications with Java 7 is fine on both cards. With Java 8 Swing GUIs rendered by the Intel card (regardless of quality settings) look crumbled (as in duffys Screenshot), using the NVS 5200M they look as they used to.

Could not find anything on the java bug tracker, on the otherhand it is hard to describe this bug.

I wonder if this is going to be fixed in a newer version of java 8. I have this on my dell laptop which has the intel HD and a NVS as well. :(

java - Swing rendering appears broken in JDK 1.8, correct in JDK 1.7 -...

java swing rendering nvidia java-8
Rectangle 27 8

I have exactly the same problem. What I found after duffys quality setting adjustion:

My Notebook runs both an Intel HD 4000 and a NVS 5200M. Running Swing applications with Java 7 is fine on both cards. With Java 8 Swing GUIs rendered by the Intel card (regardless of quality settings) look crumbled (as in duffys Screenshot), using the NVS 5200M they look as they used to.

Could not find anything on the java bug tracker, on the otherhand it is hard to describe this bug.

I wonder if this is going to be fixed in a newer version of java 8. I have this on my dell laptop which has the intel HD and a NVS as well. :(

java - Swing rendering appears broken in JDK 1.8, correct in JDK 1.7 -...

java swing rendering nvidia java-8