Posts

module - Trying to get params from list in joomla -

i have joomla 3 module. works great. want add parameters in administration section can use in tmpl->default.php file, i'm struggling find out how it. i have in xml file: <config> <fields name="params"> <fieldset name="basic"> <field name="show_category" type="list" label="what display" description="what display" default=""> <option value="0">day/time/event</option> <option value="1">day/time/event/description</option> </field> </fieldset> </fields> </config> and in default.php file: <?php defined('_jexec') or die; $module = jmodulehelper::getmodule('mod_calendar_ajax_google'); $moduleparams = new jregistry(); $moduleparams->loadstring...

c# - Add new row to DataGridView using textboxes -

i trying add textboxes datagridview code doesn't work datagridview1.rows[0].cells[0].value = textbox6.text; datagridview1.rows[0].cells[1].value = textbox5.text; datagridview1.rows[0].cells[2].value = textbox7.text; datagridview1.rows[0].cells[3].value = datetimepicker3.value; here suggest knowing indeed in forms project. see person has suggested already, adding in assertion if of textbox controls empty row not added. if ((!string.isnullorwhitespace(textbox6.text)) || (!!string.isnullorwhitespace(textbox5.text)) || (!string.isnullorwhitespace(textbox7.text))) { datagridview1.rows.add(new object[] {textbox6.text,textbox5.text,textbox7.text,datetimepicker3.value }); }

IntelliJ launches internet explorer in no addons mode which disables my gwt plugin -

i'm developing gwt application , hate using super dev mode i've still been using ie still supports npapi plugins. problem when have intellij launch browser part of run configuration, opens in ie (no addons) mode disables gwt plugin. now, can take url , open normal ie , paste in works fine, it's horribly annoying can't have launch without work. so far, in intellij can setup browsers, i've pointed ie 1 shortcut know launches in normal ie, yet still somehow opens in no addons mode when intellij launches it. any , appreciated! edit: know other people have used ie while developing gwt app in intellij , never ran issue, it's possible it's ie issue , not intellij related when setting browser setting path ie executable or shortcut website ("launches in normal ie" doesnt make clear). under tools > web browsers, internet explorer path iexplore? if go run, via start menu , enter in path box in intellij, correct ie start?

augmented reality - 3D object detection -

i need able recognise 3d objects. the objects - simplicity consider objects pen, coin , mug. the environment - objects placed on assembly line. camera placed above them @ fixed distance(so angle should same). light should more or less same. the goal - camera spends few seconds scanning object x , has able whether pen, coin or mug. ideally device android tablet question more on theory , best approach in general. although objects 3d objects real world, static during scan. you can use available tools (e.g. vuforia) capable of 3d object recognition i'm quite sure don't need 3d object recognition capability if camera fixed , real objects recognized same angle (more or less). few images deal, if light changes within limits.

c# - Got error during make a setup for win app using VS 2012 -

after finishing c# application had make installer. when want choose sql express in prerequisites section error appear : "error 3 enable 'download prerequisites same location application' in prerequisites dialog box, must download file 'sqlexpress2008r2\sqlexpr32_x86_enu.exe' item 'sql server 2008 r2 express' local machine. more information, see http://go.microsoft.com/fwlink/?linkid=239883 ." i use installer extenssion visual studio 2012. i had same problem, though files in c:\program files (x86)\microsoft sdks\windows\v8.1a\bootstrapper\packages\sqlexpress2008r2 directory. this worked me - not sure if it's "correct" solution did job: i copied 2 files sqlexpr_x64_enu.exe , sqlexpr32_x86_enu.exe \en subdirectory within above path. en subdirectory unlike of other packages. imagine different language code depending on local culture, or there possibly more one? i have windows 7 professional visua...

r - Apply a function on multiple columns in each row -

below data frame have. column 2 days expiration of nearest contract, column 3 days expiration of next nearest contract. i'm trying create vector gives me percentage of column 2 needed give me weighted average days expiration of 28 days each row. date daysxone daysxtwo 1 2006-01-03 15 43 days 2 2006-01-04 14 42 days 3 2006-01-05 13 41 days 4 2006-01-06 12 40 days 5 2006-01-09 9 37 days 6 2006-01-10 8 36 days i've tried: f <- function(x){ df$daysxone*(x) + (df$daysxtwo*(1-(x)) -28} and i've tried few things uniroot(), i'm stuck thanks! or go data.table : library(data.table) df <- data.frame(daysxone = c(15,14,13,12,9,8), daysxtwo = c(43, 42,41,40, 37,36)) setdt(df)[,perc := (28-daysxtwo)/(daysxone - daysxtwo),] daysxone daysxtwo perc 1: 15 43 0.5357143 2: 14 42 0.5000000 3: 13 41 0.4642857 4: 12...

Is it OK if I sign Android debug and production builds with the same key? -

i ran sha-1 messed-up situation (i guess) firebase config. so, decided sign both debug , and production builds same key (my own key, not default debug key). cause problem in future? tks it's ok. long keep key not publicly available. easiest way assign signing config both debug, , release profile in build.gradle