Do you know Randa WH, Rameesa Rami and 8 others?
|
|
On Fri, Jan 25, 2013 at 8:44 PM, sagar p. <lists@ruby-forum.com> wrote:
Thank you both of you.
Thank you, Jordon and Dave.
Hi,
On Fri, Jan 25, 2013 at 9:44 PM, sagar p. <lists@ruby-forum.com> wrote:
On Fri, Jan 25, 2013 at 8:44 PM, sagar p. <lists@ruby-forum.com> wrote:
Part of the Rails application, I want to let the client keep the
I was looking for a consistent and error-free deployment as I switch
If both hosts are Linux, you can use "rsync -avuzr source destination". Option -z enables compression
Hi there, if I want to move a Django website to another host, is it as simple as copying across all the site files and DB (and changing config files)? If so, is there some kind of tool to create a zipped folder of the website so that FTP does not take several hours! Sorry if this seems a very basic question, but I just wanted to check before I proceed with it. They are fairly simple, small sites, but still there are thousands of files.--Many thanks!John
here's what i'm trying now - in my theme file
having trouble setting it.
Thanks for responding. I can see the reasoning. Just seems weird that the behavior isn't documented, and that there's no way for me to override it. I'll file a bug for updating the Javadoc.
--You can always do the dns lookup yourself and log an error if it's invalid. The DNS cache will ensure it's not wasted effort.On Fri, Jan 25, 2013 at 2:39 PM, Robert Greenwalt <rgree...@google.com> wrote:
I think the log was getting quite full of these exceptions (mobile devices often don't have a network and apps aren't so good at checking that first) so we stopped logging them. If you look at the blame for this code you can see the reasoning.On Fri, Jan 25, 2013 at 2:31 PM, Boris Burtin <bbu...@gmail.com> wrote:
I was racking my brain, trying to figure out why one of my users was having trouble connecting and nothing was in the logs. Finally I looked at the Android source and realized that the logging code explicitly ignores UnknownHostException. Even worse, the Javadoc doesn't specify this behavior.
Does this sound like a bug to anyone, as opposed to a feature? In my case, the user enters the hostname, so it's possible to get this exception while the user has a network connection.
/**
* Handy function to get a loggable stack trace from a Throwable
* @param tr An exception to log
*/
public static String getStackTraceString(Throwable tr) {
if (tr == null) {
return "";
}
// This is to reduce the amount of log spew that apps do in the non-error
// condition of the network being unavailable.
Throwable t = tr;
while (t != null) {
if (t instanceof UnknownHostException) {
return "";
}
t = t.getCause();
}
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
tr.printStackTrace(pw);
return sw.toString();
}
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
It sounds like you will want to use the HashMap class with the German word as the key and the English word as the value.
i am dealing with a mobile application where it should perform a translation of words which works offline-(not online using any api -bing/google). how can we perform any translation of words (like german--->english). just like WORDLENS/any offline translator works.--thanks in advancesam jeck.
Im trying to wrap my head around utilzing some functionality at all levels of MVC. Right now, I'm writing a component that performs several date functions for my app (the date utility is insufficient for what Im doing). The problem is I need the these functions in both my models and views as well. I'd imagine writing my own Utility is the best option as it can be used anywhere but they seem "off limits" as they are only contained within the Lib. I also cant find any information on writing a Utility. Yes, I could just go write one and add it to Lib/Utilities but I'm looking for some feedback on this issue as I've faced it several times. If you need to share functionality between all layers of the MVC, is using utilities the only way to do it without having to load a component/helper/behavior on the fly?
Hello, folks!
def i_upload_to(instance, filename): return '/'.join([strftime('i/%y%m/%d'), filename]) def t_upload_to(instance, filename): return '/'.join([strftime('t/%y%m/%d'), filename]) class Image(models.Model): image = models.ImageField(upload_to=i_upload_to, blank=True) thumbnail = models.ImageField(upload_to=t_upload_to, blank=True)
It works as expected, but it's really ugly, terrible code. Let's try to make it a little better:
def upload_path(p): return lambda instance, filename: '/'.join([p, strftime('%y%m/%d'), filename])class Image(models.Model): image = models.ImageField(upload_to=upload_path('i'), blank=True) thumbnail = models.ImageField(upload_to=t_upload_path('t'), blank=True)In this case 'image' will be uploaded where expected (e.g. 'i/1301/26'), but thumbnail will be uploaded to directory like 't/1301/25/i/1301/26/' instead of 't/1301/26'.Any opinions? Where do I make a mistake?Thank you in advance for any advice.
I've done many things exactly like that, worked fine for me. You can always just assign a specific height to the parent, it will prevent any child from expanding it. And can always just implement you own view that matches its size to its parent.
Because if I changed the two "inner" image views to match_parent, they will expand the background imageview and its parent (RelativeLayout). It did not work.What I would like to do is let the inner imageviews resized automatically to "exactly match" the background. If it is smaller, it will stretch to the height of the background. If it is bigger, it will shrink to the height of the background.By the way, I think the "match_parent" attribute in Android is literally misleading because it will make its parent bigger to "match_parent".2013/1/25 Piren <gpi...@gmail.com>
if every imageview's height is wrap_content, why are you expecting them all to be the same (when all their sources are different sizes)? AdjustViewBounds isnt a magical property :)the two "inner" imageviews should be match_parent.it's also a good idea to define scaleType since it has the most relevancy when talking about keeping the image ratio.
Hi,
On Fri, Jan 25, 2013 at 7:07 AM, LDSign <frank@lamozik.de> wrote:
On Thu, Jan 24, 2013 at 9:14 PM, Advantage+ <movepixels@gmail.com> wrote:
IIRC, there's an issue open in the tracker with a workaround (a system property to ignore the gwtar files)
On Thu, Jan 24, 2013 at 7:38 PM, Tomas Neme <lacrymology@gmail.com> wrote:
--
I'm new to this whole thing about being a developer but, if you think making your app hack safe and, your app's are not going to lose you your user base. Then say a hello to the new world order of android. Stop bitching and think of it as contributing to your community. I don't steel but I don't look a gift horse in the mouth either so shut up and programme like your told and stop helping to force the world in to a new world police globe or pay the hundred and move to iphone.
I have a ListView with a ListAdapter.
Bill has a point, I assumed both were VPSs that had the same services,
Hi everybody,
I know in the U.S. you can get credit cards at the grocery store and load and re-load them.
There are minor convenience fees, but it should work.
i have not credit card so if have then plz help me--
Hi everybody.
For our project e-cidadania it was like that, we only had to make a
Unfortunately that isn't a real possibility with the way our project is setup. What we ultimately need to do is something along the lines of "Find the first column in the table at the row where the second column has the text ______". If the cell and/or column elements could use the UIObjects debugId stuff, that would be very easy as the cell's have access to the actual object that is put into the row.
What about using XPath and combining different attributes,e.gdriver.findElement(By.xpath("//div[contains(@class,' menuTitle') and contains(.,'Register Menu')]")) We are using it and are quite happy as it is panel/layout-structure independent. The performance is not as good as with By.id, but acceptable.
Am Donnerstag, 24. Januar 2013 15:16:08 UTC+1 schrieb jacob....@gmail.com:Hi,I'm trying to setup Selenium unit testing for my project, and I'm wondering if there is any equivalent to UiObject.ensureDebugId() for elements in a CellTable, such as Column, Header, or any of the various Cell types. What I have been doing is override the Column.render() method to dynamically insert a div with an ID that I can find later, but this seems very hacky and counter-intuitive. I can't seem to find any way to do this for the Header element though.Using xpath to find elements in the table is not an option, as our unit tests can't be tied to the structure of the GUI staying exactly the same. For the same reasons, trying to find elements by text or tag name (etc. etc.) wouldn't work either.Is there something I'm missing here, or do the CellTable elements not provide this functionality?