Posts

xamarin.android - How to use Google Maps v2 API with MVVMCross -

i'm trying google maps v2 api working mvvmcross v2 (vnext) , have run problems. the example have using google maps mvvmcross has view inherits mvxbindingmapactivityview. trouble uses mapview google maps v1 api, api deprecated , google no longer issuing license keys. i have code adapted xamarin google maps v2 example works great: https://github.com/xamarin/monodroid-samples/tree/master/mapsandlocationdemo_v2 but don't understand how working mvvmcross v2. uses fragments, , i'm not sure whether supported current version of mvvmcross? i can google maps v2 activity working fine outside of mvvmcross framework firing off intent mvvmcross view, , option, wondering if there support inside mvvmcross google maps v2 or whether hackery involved more trouble it's worth. thanks! matthew the maps code in v1 ( master ) , v2 ( vnext ) mvvmcross both relied on google maps v1 api - no longer option new apps. meanwhile, master , vnext firmly rooted in android ...

CSS <button> Reset: Vertical Label Position? -

Image
i want reset button 's inherited css behaves other inline-block element. however, i've run problem text of button forever stuck vertically-centered. in fiddle (and screenshot) below, button , div have exact same styles according chrome developer console, yet button's text vertically-centered, while div's not: http://jsfiddle.net/rgthree/vt3a7/ anyone know of property or selector reset button, including label position? answer there's no way in browser other chrome ~25. reached out chromium project not working in chrome 27 (see @winterblood answer & comments). said this: the issue use margin:auto on anonymous block inside button centering inside button in order safe-centering. so, unfortunately, there's no way style css. able control behavior before implementation detail leaking out. so, true answer cannot style in browser, except chrome ~25 -webkit-box-align inadvertently exposed to, @winterblood answered. for webkit nee...

eclipse - Using flamingo ribbon in e4 application -

started application using flaming ribbon technology ( http://insubstantial.github.io/insubstantial/flamingo/ ) , looks nice. because software package growing fast, want use more flexible way handle code , application. looking around, found e4 (eclipse rich client platform) fit needs. plug-in technology , wondering, if there way integrate flamingo ribbon technolgy e4 applications. not bounded eclipse rcp, need plugin-framework, moveable , dockable windows , flamingo ribbon bar. have recommendation or hints how integrate flamingo e4? cheers carsten

oracle - select to get null value rows for concatination -

here table (table_1) select * table_1; pk_1 pk_2 pk_3 pk_4 pk_5 col_1 col_2 col_3 ---- ---- ---- ---- ---- ----- ----- ----- aaa bbb ccc ddd 1 1 2 3 aaa bbb ccc ddd 2 4 5 6 aaa bbb ccc ddd 3 7 8 9 i want output this: pk_1 pk_2 pk_3 pk_4 aggregate ---- ---- ---- ---- ------------------- aaa bbb ccc ddd 123 456 789 000 000 so have tried far: select pk_1 ,pk_2 ,pk_3 ,pk_4 , listagg (col_1 || col_2 || col_3 , ' ')within group (order pk_1 ,pk_2 ,pk_3 ,pk_4 , pk_5) "aggregate" table_1 group pk_1 ,pk_2 ,pk_3 ,pk_4 ; pk_1 pk_2 pk_3 pk_4 aggregate ---- ---- ---- ---- ----------- aaa bbb ccc ddd 123 456 789 the problem not getting 000 000 output because data missing 4th , 5th rows. need query output aggregate column in format xxx xxx xxx xxx xxx having 000 if respective rows missing according pk_5 . help please.. thinking needs with clause have no clue implement. ...

java - Android app says the file does not exist but it does. I need to install it -

here code: string dir = getfilesdir().getabsolutepath(); file myfile = new file(dir+"/file.apk"); if (myfile.exists()) { textview.settext("file exists."); } else { textview.settext("file not exist."); } myfile.exists() false. not know why. file exists , located in directory. when solve problem, i'll try this: intent intent = new intent(intent.action_install_package); intent.setdata(uri.fromfile(myfile)); intent.putextra(intent.extra_not_unknown_source, true); intent.setflags(intent.flag_activity_new_task); startactivity(intent); can help? why not see file? update: it's strange. if use code: if (myfile.exists()) { textview.settext("it exists"); } else { textview.settext(myfile.getabs...

c# - Not supported MySQL source of file -

i've been looking hours solution, literal string @ , changing picture box image etc. in result i'm still stuck , here's problem i'm trying change picture box image image.fromfile, here's code string filepath = picturesource.tables[0].rows[0][0].tostring(); pbtile.image = image.fromfile(filepath); pbtile.invalidate(); picturesource dataset (select bla bla bla) , returns sources of image for ex : ‪d:\my project\semester 3\software development\untitled.png and in breaks @ pbtile.image line giving me error : "the given's path format not supported" is there wrong code or source? i've been looking hours , didn't find solution thanks guys edit 1 well seems this has solved problem don't know makes colon(:) on 3rd place made windows unsupport path, did retype path again on database , it's fine, seems there's hidden character between them. thanks well seems has solved problem don't know makes colon(:) on ...

haskell - Pattern matching in instances of Tofu [LYAH example] -

i'm playing weird tofu example lyah. i've little bit simplified eliminating record fields frank constructor, here it: class tofu t tofu :: j -> t j data frank m = frank (m a) deriving (show) instance tofu frank tofu x = frank x it's working , rather clear. want make value of type a modified tofu function. i've started expansion of value of x in instance declaration: instance tofu frank tofu (m y) = frank (m y) as result i'm getting: tofu.hs:13:15: parse error in pattern: m ok, next i've tried actual pattern matching inside instance declaration: instance tofu frank tofu (just y) = frank (just y) as result i'm getting: tofu.hs:16:15: couldn't match type `j' `maybe' `j' rigid type variable bound type signature tofu :: j -> frank j @ tofu.hs:16:9 expected type: j actual type: maybe in pattern: y in equation `tofu': tofu (just y) = frank (just y) in inst...