Do I use the Brdige pattern for this problem ?

Hello
I'm making a music mixer for mobile phones. For the canvas, i divided it up in tiles, to fill
up with .png images if you want to place a sample in that specific tile. But if you have a phone with no colors and your screen is not big enough, the image is almost all black. So I want to create a different class, to only show a letter or a simple symbol if you can't handle the .png well.
I read about the bridge pattern, where you encapsulate the implementation in an abstract class and seperate it from the base class with the abstractions. Should I use this pattern for my problem ? I have some doubt because I have multiple implementations (color vs non-color) but I don't have multiple abstractions (a tile to fill up with a symbol or picture).
Are there other patterns that are more suited for my problem ?
What about the implementation? Should I see the implementation as only producing the image or symbol, or should i see it as the whole canvas, with the tile system?
For example, now the tiling looks good on most of the targeted phones. But what if the next generation of mobile phones has a screen with very different dimensions. Wouldn't it be better to incorporate this also in the implementation ?
Thanks

What are you trying to do when you say "When I put the password for my apple ID into icloud- it keeps reverting to another password"?
Where are you doing when you try to enter your password?

Similar Messages

  • TA24002 My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know which erase option would be the best solution for this problem.

    My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know what option would be the best solution for this problem?

    You appear to have two issues: 1) a hard drive that is not working properly and 2) files you wish to recover.
    Re 1) you need to answer Kappy's questions.
    Re 2) does the drive load and can you see your photo files? If so can you copy them to another drive?
    Do you not have a backup of the photo files?

  • I have problems in the initiation of the Encore process when opening presents the following error message : "Encore CS6 Cannot Run in Non-Royalty Serialized".... What is the best solution for this problem ?

    Help Me.
    What is the best solution for this problem ?

    Encore is activated when you activate Premiere Pro... so, as Stan asked, how did you install P-Pro?
    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    -and a fix for Encore http://forums.adobe.com/thread/1421765?tstart=0 in reply #7
    -plus more Encore http://helpx.adobe.com/encore/kb/cant-write-image-fie-larger1.html

  • Is Structured FM12 the right solution for this problem?

    I've been tasked with solving a tricky problem at my office. Briefly: We've got a technical manual that needs to be printed each time we sell a piece of equipment. Currently, the manual is produced using a combination of MS Access DB and a convoluted Word doc that uses Mail Merge to pull data from the Access DB into the appropriate fields. The DB has a hundred tables or so, and some of the tables are "calculated" values - i.e. the value in the fields is calculated based on values entered in other tables within the DB. The Word doc uses some kind of "if-then-else" logic to determine which tables to use for which fields when building the doc. This whole setup is currently maintained by the engineering, sales, and marketing departments.
    We currently use FM11 (unstructured) in the Technical Writing department, and my boss is asking me to figure out a way to migrate the Access/Word doc described above to a format we can use so we can take ownership of the documentation process for this particular line of equipment. I suspect the variables involved here go way beyond what we can do with conditional text and variables within FM, but I'm wondering if Structured FM (either 11 or 12) is more suited to this project, either by using some sort of conduit between FM and an SQL DB, or directly within FM using conditinal text, variables, or some other organizational function present in either FM11 or FM12.
    Any guidance here would be appreciated. I'm not even sure what questions to ask at this point to get a proper shove in the right direction.

    I love this line: Get that SQL queries into XML directly or into CSV and transform the CSV into XML via XSLT. Reminds me of that bit in "Good Morning, Vietnam" where Robin Williams goes through the routine about the Vice President: "Well, sir, since the VP is such a VIP, shouldn't we keep his ETA on the QT? Otherwise, he might get KIA and then we'd all be on KP." And now, back to work...
    I'm going to try to answer all of the questions above, in order, and add a little info where appropriate.
    TW dept may or may not take over all maintenance of the doc. That's one of the recommendations I'm tasked with providing. My current thinking is, engineering should remain in charge of entering relevant tool data to the data repository, sales should provide TW with a "spec sheet" of what was sold, and TW should then use the specs to "build" the document for customer release.
    Will a DB still be used? Unknown. That seems the best way to catalog and access the data, but I'm open to alternatives if there are any that make sense.
    I am totally unfamiliar with structure, XML, DITA, HTML, etc. Literally 100% of my experience with FM has been in the unstructured workspace. This whole structured FM inquiry was inspired by a blurb in my "Unstructured FrameMaker 11" book (from p474: "If you need to use complex combinations of condition tags, consider setting up a workflow in the structured interface of FrameMaker. Structured documents allow you to create versions based on attributes, which are easier to use and more powerful than expressions.") A quick Google of this blurb didn't turn up much useful information, but this seems to jive with Lynne's input above re: attributes.
    Data is not currently in SQL - it's in Access DB. We can migrate to SQL if necessary - that's one of the answers I'm supposed to be providing.
    The reason this is all currently being done in Word is because that's what the Sales & Engineering departments understand, and currently they're responsible for these docs. I'm sure this started out as a simple, nerdy solution to a small problem - some engineer didn't want to maintain two separate Word docs when he could create a database and then use mail merge to automagically build the same thing. Since then, it's grown to hundreds of tables and thousands of possible permutations.
    We already have FrameMaker installations in the department. If we can do this with FM11, great, but if not, no big deal - boss has already said he wants to move to FM12 as soon as possible. In other words, purchasing software - unless it's something additional needed to make all this work - isn't really a budgetary consideration.
    As mentioned, I have no skills with using FM for any kind of structured project, but I'm willing to learn if it seems like a good solution. Just need to figure out how to proceed.
    Thanks for your input - looking forward to hearing what else you folks have to say.

  • What is the best design pattern for this problem?

    No code to go with the question. I am trying to settle on the best design pattern for the problem before I code. I want to use an Object Oriented approach.
    I have included a basic UML diagram of what I was thinking so far. 
    Stated simply, I have three devices; Module, Wired Modem, and Wireless Modem.
    In the Device Under Test parent class, I have put the attributes that are variable from device to device, but common to all of them.
    In the child classes, I have put the attributes that are not variable to each copy of that device. The attributes are common across device types. I was planning to use controls in the class definition that have the data set to a default value, since it doesn't change for each serial number of that device. For example, a Module will always have a Device Type ID of 1. These values are used to query the database.
    An example query would be [DHR].[GetDeviceActiveVersions] '39288', 1, '4/26/2012 12:18:52 PM'
    The '1' is the device type ID, the 39288 is the serial number, and the return would be "A000" or "S002", for example.
    So, I would be pulling the Serial Number and Device Type ID from the Device Under Test parent and child, and passing them to the Database using a SQL string stored in the control of the Active Versions child class of Database.
    The overall idea is that the same data is used to send multiple queries to the database and receiving back various data that I then evaluate for pass of fail, and for date order.
    What I can't settle on is the approach. Should it be a Strategy pattern, A Chain of Command pattern, a Decorator pattern or something else. 
    Ideas?

    elrathia wrote:
    Hi Ben,
    I haven't much idea of how override works and when you would use it and why. I'm the newest of the new here. 
    Good. At least you will not be smaking with a OPPer dOOPer hammer if I make some gramatical mistake.
    You may want to look at this thread in the BreakPoint where i trie to help Cory get a handle on Dynamic Dispatching with an example of two classes that inherit from a common parent and invoke Over-ride VIs to do the same thing but with wildly varying results.
    The example uses a Class of "Numeric"  and a sibling class "Text" and the both implement an Add method.
    It is dirt simple and Cory did a decent job of explaining it.
    It just be the motivation you are looking for.
    have fun!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is an array the best solution for this problem?

    Hi there,
    I'm working up a demo where a couple of little games would show up in a  panel. There is a main menu that you bounce around to select things (the  games as well as other apps.)
    When a single game is running, it takes up the whole panel. When two or  more are running, they run in a "mini" format. Also, when a game is  running, a special "return to game" button appears in the main menu.
    This is a click through dog and pony show demo. It's not a production  app, but it has to work well enough to be played around with by internal  clients. So it has to work well.
    Right now I have some variables set up like so:
    var gameActive:Boolean = false;
    var gameDual:Boolean = false;
    In my launch game and menu function, I am checking these (and one or two  other) variables to see if I should do things like show a mini version  of the game or show the return to game button. As I add features though,  this is becoming slightly unwieldy.
    The key issue is the games. Let's say I have only two. I could make an  array, and then load in the game name when a game is launched. I could  check this array in my functions to see not only if games are launched,  but which game is launched so I can use the full or mini games as  appropriate.
    Is this a good approach, or is there a better way? I'm rusty with my  coding and not super comfortable making objects right now. But I could  go that way if it was the best.

    there's not much to it.  here are the only 3 things you're likely to need to do with your associative array:
    var yourAA:Object={};
    function addAAItem(aa:Object,o:DisplayObject){
    aa[o.name]=o;
    function removeAAItem(aa:Object,o:DisplayObject{
    aa[o.name]=null;
    function aaLength(aa:Object):int{
    var i:int=0;
    for(var s:String in aa){
    i++;
    return i;

  • How can I use the join condition for this query?

    Hi, i am using a query which has a sun query in it, wen i am running tat query it is giving 9332 records, I changed the sub query logic and given an inner join, but it is giving only 4476 records. So, I changed it to left join but it is giving more records
    than usual now, say 10033 records.
    This is the code which is giving records 9332, which is correct
    select      distinct 
          b.SRC_PROV_ID
          ,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
    INTO  TINtoSystem
    from 
          RARE.dbo.EDW_MASTER a 
          Inner Join RARE.dbo.EDW_PROD_ID_XREF b 
                on a.SMG_ID = b.SMG_ID 
      where SRC_PLATFORM_CD = 'TX' 
          and a.SMG_ID in 
                select distinct 
                SMG_ID 
                from RARE.dbo.EDW_PROD_ID_XREF 
                where SRC_PLATFORM_CD = 'TX' 
                and SRC_PROV_ID in (select q.PROV_TAX_ID from PACT.dbo.SQS_EDW_Source q) 
    I have changed this code by giving inner join as, but its not giving the exact records of 9332, 
    select distinct
    b.SRC_PROV_ID
    ,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
    INTO TINtoSystem
    from
    RARE.dbo.EDW_MASTER a
    Inner Join RARE.dbo.EDW_PROD_ID_XREF b
    on a.SMG_ID = b.SMG_ID
    Inner Join Pact.dbo.SQS_EDW_Source q
    on b.SRC_PROV_ID = q.PROV_TAX_ID
    where b.SRC_PLATFORM_CD = 'TX'
    Can anyone tell, where it is missing, I used left join also but its giving more records then, need help

    Hi, If you insist inner joins then please try
    SELECT DISTINCT
    b.SRC_PROV_ID
    ,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
    INTO TINtoSystem
    FROM
    RARE.dbo.EDW_MASTER a
    Inner Join RARE.dbo.EDW_PROD_ID_XREF b
    on a.SMG_ID = b.SMG_ID
    inner join
    select distinct
    c.SMG_ID
    from RARE.dbo.EDW_PROD_ID_XREF as c
    where SRC_PLATFORM_CD = 'TX'
    and exists (select * from PACT.dbo.SQS_EDW_Source q where c.SRC_PROV_ID=q.PROV_TAX_ID)
    ) as d on a.SMG_ID = d.SMG_ID
    where b.SRC_PLATFORM_CD = 'TX'

  • Char arrays is it the right soultion for this problem

    I've got enumerated types with each enum constant a different behavior for some method. (+, - , /, *)
    I take a string i.e "(5 + 4) * (4 - 2)"
    and place each string char into this array
    String expression = "(5 + 4) * (4 - 2)" ;
    char[] c = express.toCharArray();
    I've been trying figure out how inow apply my enums method to the char array. Taking boldBODMAS*bold* in account.
    enum Operation {
    PLUS { double eval(double x, double y) { return x + y; } }
    What fristly was spliting the string at brackets
    String[] temp = express.split("[()]");
    This trunt out not to work weel for nested mathematical
    expressions ie. (4 + (2 * (2 - 1))) * 1.2
    I'm quite new to java programming, any ideas/direction on what i should do would be great guys, thanks.

    Anthony42 wrote:
    A while back I had to write an excel-type spreadsheet application, and we had to evaluate expressions and functions.
    The easiest way we found to do it was to use a binary tree created from reverse polish notation.
    http://en.wikipedia.org/wiki/Reverse_Polish_notation
    It should be fairly easy to do with a stack as well.Reverse Polish is a stack implementation. But first he will need to translate the infix operator precedence based notation into a postfix notation.
    If this wasn't homework the OP would be able to choose something other than the traditional grade school arithmetic model he describes as BODMAS.

  • Best way to use JAXB for this problem?

    I have an input XML which is very large and complicated. It comes with it's own schema
    I only need to extract a few parts of the data contained in that XML, scattered throughout the document. I care not about most of the XML file but I do care about performance and overhead so would like to perform a Special Ops mission where I go in without anyone noticing, grab the data I need, and get out before the thing becomes a mess.
    Can I do this simply with JAXB?
    If so, what is the best approach, from a high level perspective?
    I am totally new to JAXB.

    I agree with gimbal2 because, as far as I can see, jaxb is intended for "mapping" a xml tree to a very similar structure of classes.
    When you say that your xml is complex I assume that it has many nesting levels. This means many jaxb classes (say about one-per-level) ... in order to retrieve few elements.
    An Xpath approach requires only one line of code per element.
    I usually use the library dom4j for this kind of job.
    bye

  • Regex Pattern For this String ":=)"

    Hello All
    True, this isn't the place to ask this but here it is anyway, if you can help please do.
    Can anybody tell me the regex pattern for this String:
    ":=)"
    Thanks
    John

    Yep, cheers it's ":=\\)"
    public class Test {
         public static void main( String args[] ) {
              String s = "one:=)two:=)three:=)four";
              String ss[] = s.split( ":=\\)" );
              for( int i=0; i<ss.length; i++ )
                   System.out.println( "ss["+i+"] = {" + ss[i] + "}" );
    }resulting in:
    ss[0] = {one}
    ss[1] = {two}
    ss[2] = {three}
    ss[3] = {four}

  • My itunes account is not recognising my ipad when I connect it to my computer. I have followed the Apple troubleshooter for this but with no success.

    My iTunes account is not recognising that I have plugged in my iPad to the computer. Other devices, such as my iPhone, are being recognised, but not the iPad. I have tried the Apple troubleshooter for this problem but it didn't help. ie I've restarted itunes, restarted iPad, reinstalled iTunes, etc. Any ideas?

    http://support.apple.com/kb/ts1567
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • I have used the same laptop for all three of my iPhones but awhile back this laptop had a virus so my husband wiped it out and now when I sync my iPhone I no longer get my entire music library ( including purchased songs) on my iPhone. How do I fix this?

    I have always used the same laptop for all of my iPhones but awhile back this laptop had a virus so my husband wiped out the laptop and now when I sync my iPhone I no longer receive my entire music library (including purchased songs) on my iPhone. How do I fix this?

    kimberlyfromtopeka wrote:
    Ok,thanks but, I should be able to something so that I am able to sync the entire library again not just the purchased songs.
    If the non purchased music is not on your computer, how can it Sync to your iPhone...

  • My iPod touch was stolen and recovered.  I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly

    My iPod touch was stolen and recovered.  I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly appreciate

    If the thief enabled activation lock on the device, then there is nothing that can be done.  Only the password for the Apple ID that it is locked with can disable activation lock.

  • I am using photoshop cc 2014.2 And when I use save for Web it gives me a dialog box that says it is using Latin characters I've never seen this before. Does anyone have an answer for this problem or do I need to go back to the older version of Photoshop.

    I'm using Photoshop cc 2014.21 I you save for Web and dialog box comes up that says that Photoshop is using Latin characters and that servers cannot recognize Latin characters in webpages and you may have trouble viewing these pages does anyone have an answer for this problem?

    What Firefox version is currently installed on the computer?
    You can find the full version of the current current Firefox release (37.0.2) in all languages and all operating systems here:
    *https://www.mozilla.org/en-US/firefox/all/
    If you have a very old Firefox version then you could consider to uninstall that version to clean up existing registry keys (especial the uninstall key).
    Make sure NOT to remove "personal data" when you uninstall Firefox, because that will remove all profile folders and you lose personal data like bookmarks and passwords including data in profiles created by other Firefox versions.
    Check the Firefox program folder and remove the Firefox program folder if there are still files left in it.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure NOT to remove personal data when you uninstall Firefox as that will remove all Firefox profile folders and you lose your personal data.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Trying to purchase trial period in different email address - error message "Error in Your Order The account was registered for a different country. Please sign out and sign in using an existing account for this country. Ok"

    Trying to purchase trial period in different email address - error message "Error in Your Order The account was registered for a different country. Please sign out and sign in using an existing account for this country. Ok"@

    Hi boags2014,
    Please refer this link and know the work-arounds for the same:
    How do I complete a purchase when I get an incorrect "country" error?
    Regards,
    Anubha

Maybe you are looking for

  • How to add a new user so it have the same access with restricted usertime

    When i made a new useraccount to my daughter,with restricted usertime,she have probl.to get into the interned. How can i make it possible to have the same look on her useraccount as mine as admin.but only with restricted usertime? Brgds O.Knutsen

  • Idoc for Down Payment Requests/Noted Items in FI

    Hi Experts, I have a sspecific requirement of creation of noted items/down payment requests in SAP FI. Could any one suggest the an IDOC and the values to e keyed in.... Ramana

  • Unable to install microsoft office for mac

    I want to download Microsoft Office for Mac v.X to my new MacBook, however, when I try to install I get an error message saying "Powerpc applications are no longer supported".  Anyway around this as I still have a user key on this software available

  • Is it possible to get speedometer and maps on imovie??

    I bought a Contour+ camera with GPS, this is used in my sons cart... I prefer using my macbook pro and imovies, but i would really like to add the GPS data to the films, shoving speed, maps, g forces... there is a program called dashware that does th

  • Table Of Object  - collections

    Hi, I need to dynamically add (append) value to the "list_name" variable. How should I achieve this. I am using 10g. ================================================ create or replace TYPE OBJ_NAME AS OBJECT NAME VARCHAR2(30) create or replace TYPE T