Best way to search colors

Hi there,
Please some help with my problem.
What I am doing is saving records in a sqlite db. Each record has some data and a color.
In that color field i save 6 colors like this: 66ffff^0^66^0^ff00^0
So on my screen i have 6 color pickers and i save the selected colors in the db with a special character between them. (In my case the ^)
Now my problem;
I want to create a search by color.
But when i give the user a color picker.. and he/she selects red to search for, i have numerous color nuances that could define as red.
something like this:
f37575 = red
f03737 = red
a31a1a = red
Is there a nice solution to get all items that have a red like color? (of course not only red, but lets say the main colors red, yellow, green, blue, purple)
Or perhaps another solution to achieve this?
please some help,
Greets, jacob

Colors are not subjective in a sense, but when you are dealing with numbers that introduce slight variations in colors, you are forced to more deeply understand how those colors are represented using the numbers.
In this case, you need to determine what range of colors you consider red, blue, green, etc. because one person may say a given number represents red, but another may say at the far end of the spectrum, it is less like red and more like orange.
Is the last VBox background in the following app red or orange?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:VBox width="100" height="100" backgroundColor="0xf37575"/>
  <mx:VBox width="100" height="100" backgroundColor="0xf03737"/>
  <mx:VBox width="100" height="100" backgroundColor="0xa31a1a"/>
  <mx:VBox width="100" height="100" backgroundColor="0xFF0000"/>
  <mx:VBox width="100" height="100" backgroundColor="#E86C2E"/>
</mx:Application>

Similar Messages

  • Best way to flatten colored art into line art?

    Hi All! Not sure how to properly explain this ... but if I have an illustration that I created where objects are overlapping eachother, what is the best way to get just the oulines with out a lot of copy/paste/knock out? It takes a while and to me it seems there should be an easier way. I've attached a pic to help explain what I'm talking about.
    Using CS5 on windows 7
    Thanks!

    Select All
    Object > Expand Appearance (if avaialble)
    Object > Expand
    Pathfinder > Merge
    Draw a no fill, no stroke rectangle and then choose Select > Same > Fill & Stroke
    Hit Delete
    [ At this point the artwork should look identical to where you started, even though it's constructed differently. ]
    Select All
    Apply stroke, and fill (or remove fill if desired)

  • Best way of removing color from image

    Hey Adobe Community,
    I'm Aaron. I have this image here: https://www.dropbox.com/s/zjpjq5mf8t02pn9/chimera1-Recovered.jpg
    What I'm trying to do is create an outline for a pattern, something like the hot dog in the pattern here: https://m1.behance.net/rendition/modules/59556275/disp/36d76e9e0f33274e8a75ea77fd69b731.jp g
    Anyone know if this is possible and what is the best way of doing it? I'd like to keep the outline throughout the whole design of the chimera. Doesn't matter how tedious , I just need some ideas.

    I know of no good way to do this in Photoshop.
    The quickest way I know is to place the original photo in Illustrator, reduce the opacity of it somewhat, and use the pen tool on another layer to draw what you want. Depending on the nature of the image, it can be tedious, but you don't mind that.  :+)
    Good luck.

  • What is the best way to search for tags in Finder?

    There are a lot of articles out there written about Tags in Mavs. All of them cover how to apply tags, but there is hardly anything written about searching and finding files.
    Now, does anyone here actually use tags in Finder? How do you search for them? Did anyone ditch folders or stytematic file-naming?

    I am currently using and experimenting with Tags. Searching, finding, and managing your tags is pretty straight forward. On the far left side of any Finder window, you have a selected number of Tags predetermined and an option for "all tags." If you click on this link, it will take you to a menu where ALL tags in use are listed. Change the name and color for them just as you would any other file name (I have a usb mouse, so it's a right click for me).
    If you used the "labels" feature (color-coding documents and folders), you have used tags; its the same idea, but now you define a word as what you are sorting by.
    To search for a tag, I either use the in-Finder search or Spotlight (which may be the same, but I am not sure--I am also a newer Mac convert and am still learning the ropes). I have started to organize my schoolwork solely by tagging it, but I have run into issues where I have "Exam 01" for one class and need to make a second "Exam 01" file for another class (I created different tags for each class).
    I will say that, since I started to only use the minimum amount of folders, I have noticed somewhat significant speed improvements in startup times and normal use. However, this coincided with the release of Mavericks so I do not know truly whether the folders help or not.
    One of the things I both love and hate about tags is that you can search across multiple folders (or drives in my case) for documents matching the tag in question. When I download classwork from our school's website, I tag with the appropriate class name, and then move to external hard drive (yeah, I am paranoid). Unfortunately, if I then don't delete the copy inside the "downloads" folder, the document will show up if I try to list all of my "Class" tags.
    Best of luck,
    ~Zach

  • Best way to get color / picture in FCE

    I'm looking for something to help me get the best picture quality in FCE.
    I've looked at Colorista and others, but they're all for FCPro.
    Tony

    I totally agree, the lighting was bad there. I have lighting, but I wanted to try and learn how to work with poor lighting because I'll be shooting in situations where I have no control over the lighting. But your point is good. I bought the HV30 because it has a manual focus wheel, which I'm finding a bit difficult to nail the focus.... oh well....
    I've since used the color adjustment filters and have gotten things to pop a bit more. This will just take some time to tweak.
    Have you all tried this > http://www.noiseindustries.com/products/fxfactory/index.html
    They have some color correction and other filters.
    And this one > http://www.kafwang.com/EUREKA/EurekaMain.html
    They have some pretty slick filters and color correction stuff as well.

  • What is the best way to search in a CLOB, in batch operation ?

    Hi All,
    My application runs batch for searching 'text' into clobs and accordingly inserts into another table-
    code snippet is like this -
    FORALL i IN 1 .. l_snme_sn_temp.COUNT
    INSERT INTO snme_rmanotes_out
    (report_request_id, serial_number, scrubbed_sn, product_id, pk1_value, last_update_date, event_date, event)
    SELECT pi_report_request_id
    , l_snme_sn_temp_orig (i)
    , l_snme_sn_temp (i)
    , '' product_id
    , pk1_value
    , TO_CHAR (last_update_date, 'DD-MON-YYYY') last_update_date
    , TO_CHAR (last_update_date, 'DD-MON-YYYY') event_date
    , 'IN RMA NOTES' event
    FROM c3_rma_notes
    WHERE contains (notes, l_snme_sn_temp (i)) > 0; **
    here - l_snme_sn_temp contains the text that the query searches ( also evident from the where clause, marked **), and is a variable of a TYPE.
    I am populating l_snme_sn_temp in a chunk of 500 +( using bulk collect limit 500)+ from a table having at least 1 million records +(and the upper cap will not be more than 1.5 M)+.
    The procedure that does this, takes 24+ hours to complete.
    If you guys have any better way to do this or any idea to tune to reduce time kindly suggest.
    I'd appreciate you kind response.
    regards,
    Raj Pandit

    Hi Herald,
    Thanks for writing.
    Oracle text index is there on 'notes' column. This table is part of petty big application of a huge company,
    so though I dont have access to it data dictionary tables, I can expect that the indexes are analyzed regularly.
    insert with HIT takes 2 mins
    insert with MISS takes less than 1 sec
    select with HIT takes minimum 2 mins and maximum 3 mins
    select with MISS takes less than a minute.
    It is expected that there would be more MISS then HITs ( HITs are not desirable)
    This source table is huge+(count in billions)+ and most of the clobs would be bigger. +(in most cases entire email conversation is stored in it)+.
    However there are many restriction on access, they have given us provision to see currently running query in a session ..
    when checked I found most of the time spent in executing insert+select only. As the entire query involves insert+select so I don't know which part is taking time.
    As much I know select + insert would be faster. The destination table+(having just one index)+ is merely used for this operation+(and have no other use in the application)+ only so there is no way insertion would be taking time. Also this procedure is just for insertion+(into that dest. table)+ no other operation is done
    Storage optimization is beyond my domain of discussion as we are just developers and organization is huge. There is no way DBA would listen to us unless there is an acute urgency hampering business operations. However in dev environment I analyzed the index but it didn't help.

  • What's the best way to display color-coded telemetry?

    I have an array of up to 64 name-value pairs -- one for each sensor channel (thermocouple, pressure transducer, etc.).  I would simply use an array of clusters with the name and value, but I also want to be able to flag when a particular value goes out of limit.  I want to change the background color of the value to yellow or red depending on the value.  As I understand it, I cannot change the properties of individual items in an array.  :-(  So I'm forced to explicitly lay out 64 string and numeric indicators (even if I'm not using them all)!  Yuck.
    Surely I'm not the first LabView user who wants to color-code a telemetry array display!  Is there a better way to do this?  I've looked at the multicolumn list box but that seems to be aimed at allowing the user to select something from a list -- not strictly display things.  Besides, I don't see a way to change the colors of an individual cell for the listbox either.
    Please help!
    Keith.

    OK, I added defer panel updates and it did speed up the table and listbox significantly (down to around 3 ms) but still not as fast as the cluster array.  (BTW, replacing the active cell read with a constant had no effect.)  But here's what's weird: with the defer, the cluster array is incredibly slow -- around 7 ms!  Not sure what to make of this other than avoid property nodes at all costs -- even if it means using an ugly transparent indicator hack so I can change the BG color ...
    Attachments:
    Telemetry.vi ‏56 KB

  • Best way to match colors

    I am editing in Premiere Pro CS3.  This was a two camera shoot.  The film camera had very pleasant color, the digital camera had rather flat looking colors.  What is the best means to trying and bring the viberance of the film clips to the digital clips.
    I realize now that I should have tested both of these together before shooting the event.
    Thanks in advance, a very disappointed digital video camera purchaser.
    Medaris

    You could use a Reference Monitor, with the Clip to match in the Program Monitor, and the Clip to adjust in the Reference Monitor. Then apply the Fast Color Corrector to the Clip that you wish to adjust. Manipulate the attributes available, until you have a match.
    Good luck,
    Hunt

  • Best way to search audit logs in cDOT

    .. Title says it all.. i'm having trouble searching audit logs in CDOT... In 7-mode I used a powershell cmdlet, i'm not finding one in cdot

    Hi, Please refer, file access and protocols Management Guide,
    https://library.netapp.com/ecm/ecm_download_file/ECMP1196891  Thanks

  • Best Practice for Searching HTML Source

    Hello
    What is the best way to search the content of html files?
    These would be files I create.
    I have tried to use SpotLight but it's not up to it.
    The best thing I have found thus far is Multi-File Search in BBEdit.
    There I find my annotations under '/* NOTES:'
    Thanks

    Thanks for the response, but unfortunately the provided links are not much help:
    - The first link is about an article I don't have access to (i'm not a registered user)
    - The second link is about Integration Services. This is nice for Integration stuff, but I need to have a functionality within a frontend. 
    - The third link is for use in Excel.
    Maybe I'm looking for the wrong thing when wanting to create an extra column with "cleaned" up data. Maybe there's another solution from within my frontend or business layer, but I simply want a textbox on a form where users can type a search-value like
    "BAKKER". The result of the search should return names like "DEBACKER", "DE BEKKER", "BACKER", "BAKRE", ...
    I used to work in a hospital where they wrote their own SQL-function (on an Interbase database) to do this: They had a column with the original name, and a column with a converted name:
    => DEBACKER => Converted = DEBAKKER
    => DE BEKKER => Converted = DEBEKKER
    => BACKER => Converted = BAKKER
    => BAKRE => Converted = BAKKER
    When you searched for "BAKKER", you did a LIKE operation on the converted column ...
    What I am looking for is a good function to convert my data as above.
    Greetz,
    Tim

  • What is the best way to store and search 2D data

    Hi,
    There is a set of data (~10k records ) in 2D dimension.
    like this :
    Col 1, Col 2, Col3....
    What is the best way to store and search those records ?
    Thanks in advance
    Wilson

    Hi,
    Either userObjet[][] if you know how much data you have, and the data size is fixed, or use a list of lists. E.g. A Vector of Vectors (some will probably say that you should use an ArrayList instead, and that could be the case, but it sounds like you would want to display the data later on, and a DefaultTableModel (for JTables) uses a Vector as data holder).
    Kaj

  • What is the best way to create a search help in wen dynpro java?

    Hi experts,
    In web dynpro java I want to create a search help which could guide user to search a job (also a position and a organizational unit) just like in transaction ppome. So which technique could be the best way to reach that quickly and simply?
    Thanks!

    HI,
    Refer the following links.
    EVS Valuehelp
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/391ee590-0201-0010-1c89-f1193a886421
    Web Dynpro Valuehelp
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a1564
    sample application
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8

  • Best way to go from Final Cut to DVD preserving Color Corrections

    What is the best way to take my video project from Final Cut and burn it on a DVD (using DVD Studio), I need to preserve the color corrections I have made (used an external video monitor)? Also my camera shoots at black level IRE 0 and I have edited it that way, but as we all know NTSC TVs use IRE 7.5 is there anyway DVD Studio or FCP can convert the IRE so it matches?

    from FC; export to compressor
    In compressor, choose appropriate preset (i.e. best quality, >90 minutes, 16x9)
    encode the sound as dolby 2 (if you choose "all" you'll get an extra aif file)
    take the 2 files (video and audio) into dvd studio to encode.
    Not sure about your IRE 7.5 question, I always assumed it was automatically converted but now you have me thinking...

  • Best way to implement dynamic search criteria

    I was recently showing a group of developers some of the Toplink basics. As an example I showed a way to build a Toplink expression for an object search where the search criteria are determined at runtime. Doing this in raw SQL is a bit tricky because you need to place the 'AND' statements between the criteria, but I found a simple method to do this with an expression (or at least I think I did). I simply used and() to add each criteria expression, including the first one. Toplink seemed smart enough to derive the SQL without the additional AND statement.
    My question to the Forum is, is this the best way to build the expression and is it flawed? Here is my code snippet and the generated SQL.
    public Expression createExpression(ExpressionBuilder builder, Object[] parameters) {
    // Build expression for a Dealer Search
    String name = (String)parameters[0];
    String location = (String)parameters[1];
    String email = (String)parameters[2];
    Expression searchExpression = builder;
    // NAME = 'name'
    if (name != null) {
    searchExpression =
    searchExpression.and(builder.get("name").equal(name));
    // LOCATION = 'location'
    if (location != null) {
    searchExpression =
    searchExpression.and(builder.get("location").equal(location));
    // EMAIL = 'email
    if (email != null) {
    searchExpression =
    searchExpression.and(builder.get("contactInfo").get("email").equal(email));
    return searchExpression;
    Toplink generated SQL with location="Mt. Prospect, IL", email=null, and name=null:
    SELECT VERSION, LOCATION, ID, NAME FROM DEALER WHERE (LOCATION = 'Mt. Prospect, IL')
    Thanks.

    All JPA strategies require something (like a table or sequence object) be in the database, with table sequencing being the most portable, though EclipseLink does allow custom sequence stratgies where you could use something else, such as the UUID. Sequencing is described here described here http://wiki.eclipse.org/EclipseLink/Examples/JPA/PrimaryKey with a custom UUID example shown here http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomSequencing .

  • Have a picture scanned from a negative, the whole picture is off-color. Whats the best way to fix it

    I scanned an old negative and the resulting picture is off-color (as was the negative). What are the best ways to correct this?

    Trevor - Here it is.

Maybe you are looking for