In Flot, is it possible to eliminate or hide grid ticks without eliminating the corresponding label?
The Flot API documentation describes the library's extensive hooks for customizing the axes of a graph. You can set the number of ticks, their color, etc. separately for each axis. However, I can not figure out how to prevent Flot from drawing the vertical...
Started by Greg Borenstein on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Starting....
View source shows the whole uglyness.
Nevertheless, if you get really dirty, you could do it - I have published a modified version of one example which does it .
After some digging around, I'm quite sure that it is not possible through the Flot API .
|
|
The attached screenshot is from OS X/Firefox 3. Note that the center tab (an image) has a dotted line around it, apparently because it was the most-recently selected tab. Is there a way I can eliminate this dotted line in CSS or JavaScript? (Hmmm...the...
Started by Doug Kaye on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You can start by looking at the :focus and :active pseudo classes, although you probably shouldn't be completely removing any formatting from these cases, since they are an... .
In your onclick event, this.blur()
or, specifically set focus somewhere else .
|
|
How can I eliminate duplicate in an array using PHP, array looks like below
[1] => Array ( [name] => Dean [s_id] => 1 [surname] => [id_nr] => 84934568321 [student_nr] => 0 [createdate] => 0000-00-00 [enddate] => 0000-00-00 [count...
Started by Roland on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Use array_unique($array) in PHP
you can also iterate over array and compare manually
array_unique
http://php.net/manual/en/function.array-unique.php
$input = array("a" => "green", "red", "b" => "green", "blue", "red"); $result = array_unique($... .
|
Ask your Facebook Friends
|
Hi,
I have a large number of Enums that implement this interface:
/** * Interface for an enumeration, each element of which can be uniquely identified by it's code */ public interface CodableEnum { /** * Get the element with a particular code * @param...
Started by Don on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
It seems like you....
Sorry.
Otherwise, get used to duplicating that code.
Your best bet would pro ably be to give up in emums altogether and use conventional class extension and static members .
Unfortunately, I don't think that there is a way to do this .
|
|
When pre-compiling JSPs with the Jasper compiler (using Tomcat), and then the Java compiler I see javac warnings like this (I have javac 's -Xlint flag enabled):
warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List ...
Started by Greg Mattes on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
My current solution to this problem is....
I'm using an Ant-based build.
See here.
Disable the warnings you know are there and don't care about with:
-Xlint:-xxx
Disable warning xxx, where xxx is one of the warning names supported for -Xlint:xxx, below .
|
|
I'd like to reduce actual database hits when working in django so I've created this artificial example to outline the problem. The model looks like this:
class Car(models.Model): name = models.CharField(max_length=10) user = models.ForeignKey(User)
In...
Started by Mike Bannister on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Take advantage of the saved development....
Are you actually running into performance issues at this point or are you just concerned about the future scalability of your application?
As Tim Wardle stated very well previously , don't try to prematurely optimize .
|
|
How do you prevent ASP.NET from creating too many temporary files? My website creates gigabytes of temporary files, and that overflows the main partition on the server. How do I prevent this from happening?
Started by gersh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Where are these temp files beeing generated?
If it's in the "Temporary ASP.NET Files" folder, it's a result... .
I have no idea why this is not done by the OS (or by the creator of those files) .
Setup a task in the task scheduler to clean up temporary files .
|
|
I've seen discussions go back and forth on this on several sites, so maybe we can come up with something definitive here.
I have 8 GB memory on my Vista x64 workstation. Do I need a page file (that is, System Properties > Advanced > Performance ...
Started by Daniel on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
That said, there are some applications that don't work well without a page file, photoshop... .
Personaly, I haven't run with one for quite some time now, i've never used enough memory that its become neccassery so its of, and its not caused me any problems .
|
|
I have the types Rock , Paper , and Scissors . These are components, or "hands" of the Rock, Paper, Scissors game. Given two players' hands the game must decide who wins. How do I solve the problem of storing this chain chart
without coupling the various...
Started by wilhelmtell on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I think the winning strategy is not really a property of the hand, but of... .
The win method takes a list of Hands, and returns either a Hand -- if there is a winner -- or null if the game was a tie .
Have a GameStrategy class that implements a Win method.
|
|
Sadly, a project that I have been working on lately has a large amount of copy-and-paste code, even within single files. Are there any tools or techniques that can detect duplication or near-duplication within a single file? I have Beyond Compare 3 and...
Started by Jon on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Resharper does this automagically - it suggests when it thinks code should be extracted into a method, and will do the extraction for you
Check... .
If you're using Eclipse, you can use the copy paste detector (CPD) https://olex.openlogic.com/packages/cpd .
|