Basicly I'm origination an app in that we hunt for items. So we have a
background, and there are items/stuff on it. You have to click on a
equipment that are applicable to win. The problem is, we don't know how to
make this support all devices. I'm now controlling relativelayout. Do we
have to make a opposite plans for each fortitude or is there an easier
proceed to understanding with this problem? we now place a buttons this
way:On tip of an item.Even if we use a right fortitude to way it,
infrequently there is a slight flaw to a left/right/up/down. (I do
invalidate a movement bar, though in xml it is still displayed).Extra
information:People don't seem to know what my doubt is. we basicly have a
background, let's say, of a forest. we wish a user to click on a flower
that's on my timberland background. So we place a symbol on a plcae of a
flower, make a symbol invisible. So if people click on a flower it will
give a "correct" pointer or something. But a problem is, if we make a
symbol overlie on a flower so it works for my phone for example, a symbol
won't be overlapping on a same plcae on a tablad.
Tuesday, 8 April 2014
Friday, 4 April 2014
Spock throwing a NoSuchMethodError when contrast a slight that throws an exception
I'm perplexing to exam a groovy slight that throws an difference
controlling Spock. Actually this slight already had a flitting exam before
though we only recently total a throws difference to a slight construction
now. Now spock is observant that there is no such method.This is how my
slight looks like:public def generateFoo(List files) throws FooException {
// code}This is how my exam looks like:given: def record = new
GrailsMockMultipartFile("My File",
getClass().getResourceAsStream("resources/file_size_20b.txt")) def files
= [] files.add(file)when: def retVal = generateFoo(files) then: retVal
instanceof java.util.ArrayListBut when we run a tests it gives me this
error:java.lang.NoSuchMethodError:
generateFaxPreviews(Ljava/util/List;)Ljava/lang/Object;
controlling Spock. Actually this slight already had a flitting exam before
though we only recently total a throws difference to a slight construction
now. Now spock is observant that there is no such method.This is how my
slight looks like:public def generateFoo(List files) throws FooException {
// code}This is how my exam looks like:given: def record = new
GrailsMockMultipartFile("My File",
getClass().getResourceAsStream("resources/file_size_20b.txt")) def files
= [] files.add(file)when: def retVal = generateFoo(files) then: retVal
instanceof java.util.ArrayListBut when we run a tests it gives me this
error:java.lang.NoSuchMethodError:
generateFaxPreviews(Ljava/util/List;)Ljava/lang/Object;
Tuesday, 1 April 2014
create array from array php
There's my array :`$horaire[] = array( 'Title' => 'Title_value',
'Day' => 'Day_value', 'Hour' => 'Hour_value', '1erDiff'
=> 'yes');`Let's contend i have 50 entries.. (pull from EE channel
entries.. )Day_value are from 0 - 6I wish to emanate new arrays from this
array if a value of Day is ex.:$Sunday[] = array ('Title' =>
'Title_value', 'Day' => 'Day_value', /**ALL VALUE HERE WILL BE 0/
'Hour' => 'Hour_value', '1erDiff' => 'yes');$Monday[] = array
('Title' => 'Title_value', 'Day' => 'Day_value', /**ALL VALUE HERE
WILL BE 1 / 'Hour' => 'Hour_value', '1erDiff' => 'yes');and
so on...ORSecond questionIs it illusory to arrange a initial array
$horaire as it's arrange from 0-6 (day_value) though inside this also
arrange hour_value (without changing a Day_value sorting.. )ex,:[o] =
array (DAy => 0, Hour => 5)[1] = array (Day => 0, Hour => 9)[2] = array
(Day => 1, Hour => 3) [3] = array (Day => 1, Hour => 10)and so on...
Thanks everyone!Ben
'Day' => 'Day_value', 'Hour' => 'Hour_value', '1erDiff'
=> 'yes');`Let's contend i have 50 entries.. (pull from EE channel
entries.. )Day_value are from 0 - 6I wish to emanate new arrays from this
array if a value of Day is ex.:$Sunday[] = array ('Title' =>
'Title_value', 'Day' => 'Day_value', /**ALL VALUE HERE WILL BE 0/
'Hour' => 'Hour_value', '1erDiff' => 'yes');$Monday[] = array
('Title' => 'Title_value', 'Day' => 'Day_value', /**ALL VALUE HERE
WILL BE 1 / 'Hour' => 'Hour_value', '1erDiff' => 'yes');and
so on...ORSecond questionIs it illusory to arrange a initial array
$horaire as it's arrange from 0-6 (day_value) though inside this also
arrange hour_value (without changing a Day_value sorting.. )ex,:[o] =
array (DAy => 0, Hour => 5)[1] = array (Day => 0, Hour => 9)[2] = array
(Day => 1, Hour => 3) [3] = array (Day => 1, Hour => 10)and so on...
Thanks everyone!Ben
Subscribe to:
Comments (Atom)