w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
GWT Gin 2.1 Unsupported major.minor version 51.0
The enforceBytecodeVersion Enforcer Rule should be able to help you with these kind of issues. It'll go through all the dependencies to check if they match the required class version.

Categories : Java

App Engine 1.8.2 unsupported major.minor version 51.0
I've faced the issue few times and the key thing is to find which class has been compiled with wrong version. It might be e.g. one of the dependencies. You can use snippet from Java API to find out the JDK version a class file is compiled for? which you run against all the class files the application use. These are the ones in webappdir/WEB-INF/classes and you also need to unpack all JAR files from webappdir/WEB-INF/lib.

Categories : Google App Engine

Unsupported major.minor version 51.0 while executing JSP
I believe com/usct/db/DBConnect is not a class provided by Java. And hence the reason of your error is not the version of jdk and jre on both your coding and execution environment. It seems the jar you used for the class DBConnect on your client and environment are of different java versions.

Categories : Java

Eclipse on mac: Unsupported major.minor version 51.0 error
Perhaps you want to check Installed JREs: Preferences > Java > Installed JREs If the JDK7 is not in the list, you should add it by clicking Add... button. Click Add... button Select Standard VM in the list and click Next button Specify the JRE home: by clicking Directory... button Specify the JRE name: properly and click Finish button In Preferences dialog, make JRE7 as default

Categories : Java

Controlling both the major and minor grid lines on the y axis
It's just breaks: ch1 + theme(panel.grid.minor = element_line(colour="white", size=0.5)) + scale_y_continuous(minor_breaks = seq(0 , 100, 5), breaks = seq(0, 100, 10)))

Categories : R

What could be reason for "Prism-ES2 Error : GL_VERSION (major.minor) = 1.4"?
Which version of JavaFX are you using? Please, note FX2.x is not supported on RedHat/OEL. But FX8 is, you may want to try dev releases of FX8: https://jdk8.java.net/download.html Regarding FX8: Prism-ES2 Error : GL_VERSION (major.minor) = 1.4 message is not an error but notification message. It will be removed in jdk8 release: https://javafx-jira.kenai.com/browse/RT-29273 GThread-ERROR from samples is another story. It's an issue which may be not yet fixed. See https://javafx-jira.kenai.com/browse/RT-32436 and https://javafx-jira.kenai.com/browse/RT-28580#comment-358413

Categories : Java

Minor ticks with only major tick labels are shown
I don't really understand why is it difficult to use MultipleLocator in your example. By adding these lines in your code from matplotlib.ticker import MultipleLocator, FormatStrFormatter majorLocator = MultipleLocator(5) majorFormatter = FormatStrFormatter('%d') minorLocator = MultipleLocator(1) ax.xaxis.set_major_locator(majorLocator) ax.xaxis.set_major_formatter(majorFormatter) ax.xaxis.set_minor_locator(minorLocator) You'll get this image, which I understood it is what you want (isn't it?): In case you don't want the ticks to show below your range of data, define your ticks manually using the FixedLocator: from matplotlib.ticker import FixedLocator majorLocator = FixedLocator(np.linspace(20,40,5)) minorLocator = FixedLocator(np.linspace(19,41,23)) And you'll get th

Categories : Python

Runnable JAR file error: Unsupported major.minor version 51.0
Yes, that is the error when you try to run Java bytecode with an older version that the version you build it with. You will find more information in this question.

Categories : Java

Unsupported major.minor version 51.0 for generated web services in maven
The usage page seems to indicate that the JAX-WS plugin uses the standard source and target settings from maven-compiler-plugin.

Categories : Java

Finding the radius of an ellipse based on its angle from major or minor axis
In the simple case where the ellipse is centered at the origin, and the major and minor axes are parallel to the x and y axis respectively, then the ellipse can be parameterized by the equations x = a cos(t) and y = b sin(t), where a and b are the major and minor axes, and t is the angle which varies from 0 to 2pi. So in this case, to answer your question, the radius at angle t is r = sqrt( x^2 + y^2 ) = sqrt( a^2 cos^2(t) + b^2 sin^2(t) ) Now, this can be made more complicated in the following ways (i) The ellipse is not centered at (0,0) (ii) The major and minor axes are not parallel to the x and y axes, say because the major axis forms an angle t0 from the positive x axis. (iii) a combination of (i) and (ii). However, the solution above can also be applied to these case

Categories : Algorithm

Minor version difference in gacutil and environment causing major headaches
The problem was that the policy assembly is being compiled for .NET 4.x. There is an al.exe in %PROGRAMFILES(X86)%Microsoft SDKsWindowsv7.0ABin and another in %PROGRAMFILES(X86)%Microsoft SDKsWindowsv7.0ABinNETFX 4.0 Tools. They both have the same version number, but the first is for .NET 2.x and the latter is for .NET 4.x. You should specify the full path to make sure you are using the right one.

Categories : C#

Plotting a 3D tube composed of ellipses of varying major and minor axes
What you want to do is quite similar to standard uses of meshgrid and surf, except that here, your meshed surface is wrapped around a tube. I think the code below does what you are looking for: NX=80; 'number of X values X=1:NX; 'replace with actual X vector Y=5+cos(X/4); 'replace with actual Y vector Z=10+sin(X/4); 'replace with actual Z vector Nth=100; %number of points around each ellipse theta=linspace(0,2*pi,Nth); y=Y'*cos(theta); z=Z'*sin(theta); x=repmat(X',1,Nth); surf(x,y,z);

Categories : Matlab

Need to find solution to route major traffic via LAN internet and minor traffice via dialup network
Try Fiddler 2 The free web debugging proxy for any browser, system or platform Features: http://fiddler2.com/Features/http-https-traffic-recording

Categories : Windows

Unsupported major.minor version 51.0 error after moving from IntelliJ IDEA JBoss to MyEclipse Tomcat
This happens when you compile the code in a higher version of the JDK than you are using at runtime. You can set the compiler version here: Project -> Properties -> Java Compiler

Categories : Java

Error in Play on Get: java.lang.UnsupportedClassVersionError: controllers/routes : Unsupported major.minor >version
I failed to recompile my Play/Scala app under the JDK1.6 environment which I had backed down to, from JDK 1.7. Down-versioning to JDK1.6 and blowing away / recreating my Play/Scala project in JDK 1.6 environment solved the errors.

Categories : Java

matplotlib: draw major tick labels under minor labels
You can use axis method set_tick_params() with the keyword pad. Compare following example. import datetime import random import matplotlib.pyplot as plt import matplotlib.dates as dates # make up some data x = [datetime.datetime.now() + datetime.timedelta(hours=i) for i in range(100)] y = [i+random.gauss(0,1) for i,_ in enumerate(x)] # plot plt.plot(x,y) # beautify the x-labels plt.gcf().autofmt_xdate() ax = plt.gca() # set date ticks to something sensible: xax = ax.get_xaxis() xax.set_major_locator(dates.DayLocator()) xax.set_major_formatter(dates.DateFormatter('%d/%b')) xax.set_minor_locator(dates.HourLocator(byhour=range(0,24,3))) xax.set_minor_formatter(dates.DateFormatter('%H')) xax.set_tick_params(which='major', pad=15) plt.show() PS: This example is borrowed from moooeeeep

Categories : Python

java garbage collection does a <(major collection:mark and sweep> every time it does a
I would try removing all the settings you have so that you have the absolute minimum and you are less likely to get a strange interaction between settings Try just -Xmx16g -XX:+UseConcMarkSweepGC and monitor it using jstat

Categories : Java

Confusion between C++ and OpenGL matrix order (row-major vs column-major)
matrix notation used in opengl documentation does not describe in-memory layout for OpenGL matrices If think it'll be easier if you drop/forget about the entire "row/column-major" thing. That's because in addition to row/column major, the programmer can also decide how he would want to lay out the matrix in the memory (whether adjacent elements form rows or columns), in addition to the notation, which adds to confusion. OpenGL matrices have same memory layout as directx matrices. x.x x.y x.z 0 y.x y.y y.z 0 z.x z.y z.z 0 p.x p.y p.z 1 or { x.x x.y x.z 0 y.x y.y y.z 0 z.x z.y z.z 0 p.x p.y p.z 1 } x, y, z are 3-component vectors describing the matrix coordinate system (local coordinate system within relative to the global coordinate system). p is a 3-component vector describing th

Categories : C++

Magick.NET-x64 is throwing a "dll not found" exception when deployed
Oh... I fixed this by installing the following, http://www.microsoft.com/en-us/download/details.aspx?id=30679 Hope that helps!

Categories : Asp Net Mvc

screen saver application when deployed in C:WindowsSystem32 throws exception
The problem is that the screensaver was compiled for 32bit cpu. Only 64bit exes are allowed in the %WINDIR%System32 folder on a 64bit OS. Which in fact, i was using Windows7 64bit. The correct place to put 32bit screensavers is in %WINDIR%SysWOW64 or compile using 'AnyCPU' option in Visual Studio then you can install into the %WINDIR%System32 for all.

Categories : Wcf

how to refactor a manually deployed single instance app into a client deployed multi-instance or multi-tenant app
I count 3 questions here, and you might find it valuable to split them into separate threads. At any rate: 1) What test to determine the correct architecture? Well, a hard-assed look at how much it's going to cost to support each architecture vs. how quickly each can be implemented & how many waiting customers you have seems in order. Hard-assed because, frankly, you probably already have a preference, and unless you're willing to set that aside the answer I give here is moot. If this is for a business, remember that revenue rules -- without revenue even the most beautiful & elegant architecture is unimportant. With revenue, you can fix most architecture mistakes in time. 2) What are good design patterns for multi-tenant, embed-able applications? I'm not sure that design pat

Categories : Javascript

JVM - Are WeakReferences collected in minor GC?
Why do you want that? Your program shouldn't care much about major vs minor GC cycles, and in fact that sort of differentiation won't even exist in all JVMs / GC configurations. WeakReferences are collectable as soon as there are no strong references to the object. This could include minor GCs. If you want the object to stick around for a while until there is actual memory pressure, try SoftReference instead.

Categories : Java

Minor issues in program
You haven't tried googling the error message, have you... this is a linker error telling you that there's no function defined with the name If. Maybe you wanted to write a branch statement with the if keyword instead... C is case sensitive. Sidenote: after you fixed this, remove the semi-colon from after the if, because that's an empty statement. Then, indent and format your code because it's an unreadable utter mess currently. You don't only have minor problems with your code, you have major problems with the basics.

Categories : C

ToggleMe Script minor issue
.style.display is different from just checking whether the item is displayed. It's actually checking the style="something" attribute on the HTML - which overrides the CSS you've setup in the stylesheet. So - when you start out, your elements do not have style.display = 'none'. In fact, style.display is not set. To solve this, I'd just set the selected tab to style.display='block' regardless of what it's already set to: ... for (var i = 0; i < allIds.length; i++) { if (allIds[i] != a) { document.getElementById(allIds[i]).style.display="none"; } } e.style.display="block"; return true; }

Categories : Javascript

Emacs org-mode, minor details
Please post two separate questions next time. It's more productive. First question This isn't an issue in the newest org-mode Second question I've been playing around with code that does exactly that. I've published it just now at https://github.com/abo-abo/tiny. The default global binding for tiny-expand from that code is C-;. Here are some expandable templates: m10 m5 10 m5,10 m5 10*xx m5 10*xx&x m5 10*xx&0x&x m25+x?a&c m25+x?A&c m97,122stringx m97,122stringxx m97;122stringxupcasex m10+3*100x m 10expx You just enter these (sometimes) few chars, and C-; with the cursor at the end of the expression. The expressions are replaced accordingly to 0 1 2 3 4 5 6 7 8 9 10 5 6 7 8 9 10 5,6,7,8,9,10 25 36 49 64 81 100 19 24 31 40 51 64 0x19 0x24 0x31 0x40 0x51 0x64 a b

Categories : Emacs

Virtualenv cannot specify minor Python version
Just download/make/install/apt-get/synaptic python 2.7.5 and point at it's path like so when creating a virtulenv: virtualenv test/test -p /usr/bin/my_2.7.5_directory/python2.7

Categories : Python

Modify minor changes to patch series in git
You can edit individual commits in a series by using interactive rebase (git rebase -i). However, note that if you have already published the commit series, rebasing can have significant consequences, since it rewrites history. As long as you've kept the patch series private so far, however, it shouldn't be a problem to rebase it. You can use the "edit" action, which will cause the interactive rebase to stop before a given commit to allow you to modify it (after which you can continue with git rebase --continue). For more details, see git help rebase.

Categories : GIT

How to force a minor compaction to start
In between one of your write/delete phases, issue an 'nodetool flush' to create a couple of different SSTables. Compaction will only be eligible after min_compaction_threshold SSTables exist. See http://www.datastax.com/documentation/cassandra/1.2/webhelp/index.html#cassandra/configuration/configStorage_r.html#reference_ds_zyq_zmz_1k__min_compaction_threshold Play with min_compaction_threshold with the settings you already have above to see what happens. This should change your results to be more inline with what you expect.

Categories : Database

Why minor ticks disappear on pylab subplots
I was facing the same problem. I think what you need to do is: ax1.xaxis.set_minor_locator(AutoMinorLocator()) instead of ax1.xaxis.set_minor_locator(minor) You are passing the same object to each of your axes. This object's contents are modified when you plot on ax4 based on the range on that subplot. Hope it helps.

Categories : Python

How can I fetch a "particular minor version" of an artifact in Maven
These are what Maven would consider SNAPSHOT builds, which usually are intermediate versions in between proper releases. If you specify your version as 4.0.0.BUILD-SNAPSHOT Maven retrieves the most recent one. Note that in general these should be consider development versions, not necessarily fit for general use.

Categories : Maven

Get n points along ellipse given endpoints & minor axis
This takes the two vertices on the major axis and the half length of the minor axis (as b) along with the number of points. halfEllipse <- function(v1, v2, b, n = 100){ x1 <- v1[1] y1 <- v1[2] x2 <- v2[1] y2 <- v2[2] xc <- mean(c(x1,x2)) yc <- mean(c(y1,y2)) A <- sqrt((xc-x1)^2 + (yc-y1)^2) myangle <- atan((yc-y1)/(xc-x1)) # Construct half ellipse with desired # major and minor axis length ts <- seq(0, pi, length.out = n) X <- A*cos(ts) Y <- b*sin(ts) # Rotate to get to desired angle Xp <- X*cos(myangle) - Y*sin(myangle) Yp <- X*sin(myangle) + Y*cos(myangle) # Shift back to desired center Xp <- Xp + xc Yp <- Yp + yc cbind(Xp,Yp) }

Categories : R

Matplotlib: show labels for minor ticks also
You can use set_minor_tickformatter on the corresponding axis: from matplotlib import pyplot as plt from matplotlib.ticker import FormatStrFormatter axes = plt.subplot(111) axes.loglog([3,4,7], [2,3,4]) axes.xaxis.set_minor_formatter(FormatStrFormatter("%.2f")) plt.xlim(1.8, 9.2) plt.show()

Categories : Python

AS3 - minor platformer class binding error
You need to have an instance of each classes JAJEBIE and setupStage, so that you will have a specimen of your platformer level and player. Your code says that JAJEBIE is a static class, as it does not have a constructor, so you are right about addressing it via class name - unless error 5000 is thrown against JAJEBIE, in that case your code is PLAIN WRONG. var jajebie:JAJEBIE; function initialize(main_event:Event):void{ jajebie=new JAJEBIE(); addChild(jajebie); addChild(jajebie.granica); // while neither is added to stage, they // cannot reach the stage! You have to point them to actual stage. jajebie.granica.drawMap(); // now, as we have stage access, draw the map jajebie.wrzut(); stage.removeEventListener(Event.ENTER_FRAME,initialize); } Also, you hav

Categories : Actionscript

Minor styling tweaks to Trustpilot widget
CSS from the parent document will not be able to have any effect on anything loaded in the iframe, for a number of reasons. Any attempt to modify the styling of the content within the iframe will violate same origin policy. The content within the iframe is not physically in the same document (page) as the surrounding HTML that makes up the iframe. Short answer: No, these styles cannot be overridden.

Categories : Javascript

Why do minor errors crash my SproutCore application?
Web developers are used to being able to let minor errors go unnoticed. This is appropriate: since short-lived websites often have minimal local state to maintain, many minor errors won't impact the user experience, so it may not be worth the development time required to fix them. Application developers, on the other hand, are used to having to carefully handle errors. In desktop .NET or Cocoa, for example, the operating system will proactively crash an application that throws an unhandled error. This is because applications generally assume that they are long-lived, and have to manage an internally-consistent state. An error is a sign that this internal state has likely become unmanaged & unstable, and in order to prevent unexpected (or worse) behavior, the application must be termin

Categories : Misc

Checking user agent in cookies, minor changes
I'm just gonna throw this out here. User-Agents are a bad security measure. But there's not a lot of other alternatives. So! To get the user agent string... $_SERVER['HTTP_USER_AGENT']; Now if your encrypting and setting it to cookies, and worried by small changes (which should only happen if the browser changes or gets updated). I would suggest stripping this info down and using basic info like OS, Hardware, and Browser Brand. There are PHP libraries available to help facilitate the parsing of these strings. You can also salt this with the users IP address if your really worried. You can get the IP with... $_SERVER['REMOTE_ADDR']; But remember, both of these values can be faked EASILY and are not to be trusted.

Categories : PHP

Array.Copy always row-major?
I suspect it is merely trying to convey that an array is not a rectangle - it is a single linear space. Any concept of "row" or "column" is actually the invention of the user. There are no rows and no columns; any convention along the lines of arr[x,y] is "row x, column y" or "column x, row y" is purely that: a convention; part of our imagination in conceptualizing something. The only real order is which index is navigated first. The first? or the last? Whether you call that "rows" or "columns" is up to you, and there are examples of both in use in the wild.

Categories : C#

Major issue with running d3.v3.js
I believe you need to add a charset attribute so that the utf-8 characters in d3.v3.js are decoded correctly by your browser. This is the script tag recommended at http://d3js.org: <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>

Categories : Javascript

What is the major scenario to use Socket.IO
Libraries like socket.IO are needed when we need real time in our app. Let me explain this in little more detail. lets assume that you are developing a game, which is multiplayer and 2 or more users can play that simultaneously. Then in that case you won't be making HTTP or HTTPS calls because of many reasons and one of them is that their packet size is large and other is that these calls are very slow. In such scenarios we use libraries like sockets to send and receive data to and from server. sockets are really fast and are capable of sending only those data packets which are needed. using HTTP programming you can never create any multiplayer game or any app which will be interacting with server on realtime basis. lets take another example. lets assume that you are working on a chat app

Categories : IOS

How can I improve this sticky footer code & fix one minor issue?
While calculating height of any element, we also need to consider padding and border if any. In jQuery we use outerHeight to get the height of any element including padding and border. So, in your case, we are using only height and that's why some text is clipping. Use the following code to properly calculate the height and update the footer class. JavaScript Code $(function(){ //When Window is Resized $(window).resize(makeFooterSticky); //Run once on page load mkaeFooterSticky(); }); function makeFooterSticky() { $('aside[role="sidebar"]').height($(window).height()); if( $('section[role="main"]').outerHeight() <= $(window).height() - $('.footer').outerHeight() ) { $('.footer').addClass('sticky'); } else { $('.footer').removeClass('sti

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.