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 .
|
|
I want to remove duplicate rows return from a SELECT Query in Postgres
I have the following query
SELECT DISTINCT name FROM names ORDER BY name
But this somehow does not eliminate duplicate rows?
Started by Roland on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at stackoverflow):
PostgreSQL is case sensitive, this might be a problem here DISTINCT ON can be used for case-insensitive search (tested on 7.4)
SELECT DISTINCT ON (upper(name)) name FROM names ORDER BY upper(name);
Maybe something with same-looking-but-different characters... .
|
|
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 .
|
Ask your Facebook Friends
|
We have a fairly complicated GUI in windows forms using C# and .Net 2.0. My problem is that whenever I drag any window over the GUI, it leaves artifacts over the form. I can't for the life of me figure out how to eliminate it. I've tried enabling double...
Started by Bearddo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Related to Jon B's answer, if your application is doing a lot of drawing using the Graphics... .
Off-loading some work to background threads will free the GUI up to process Windows messages more responsively .
You might be doing too much work on the GUI thread .
|
|
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($... .
|
|
Hello. I am trying to resolve a memory leak(s) in my app. I've downloaded and ran RedGate's ANTS Memory Profiler 5.0 and the memory profiler tells me the leak has to do with WeakReferences.
The problem I am running into is that I've never heard of a WeakReference...
Started by M Murphy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I have not worked the the Memory profiler but:
All my memory leaks in .Net application have to do with... .
It would cause an object to be collected, but you still have a last minute option to access it .
Using a WeakReference should not cause a memory leak.
|
|
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 .
|
|
They're eliminating tackling
Started by Hizmo on
, 20 posts
by 6 people.
Answer Snippets (Read the full thread at not606):
Originally Posted by Hizmo Sometimes a great tackle is better than a goal .
|
|
When you take photos witha UIImagePickerController on the iPhone, I and many internet denizens have found you need to run the images through this function to orient them properly (and scale them while you're at it).
There is a giant thread about it here...
Started by Andrew Johnson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Do you really need to do this operation instantly? The screen resolution of the iPhone is 320x400 - scale the image down to at least this, then apply the transformations (at least for displaying, then later if the user wants to do something with the image... .
|