Posts

Showing posts from January, 2015

android - Edit colors xml values on runtime -

i have seen similar questions here. know cant edit packaged *.apk files, cannot edit res/values/colors.xml . however, can design in way can change colors (one shot) entire application code or referring colors.xml sd card. example have colors.xml, <resources> <color name="tableborder">#ff000000</color> </resources> on runtime want tableborder color local database (or server) , apply ever tableborder referred, expected color applies. any way accomplish above ? instead of assigning colors in xml file store in sharedpreference files. can change values runtime whatever server.

foreach - Neo4j: Split string and get position -

i need split field in different values , store each value in different node. each created node want store position. example: sentence words car red my;car;is;red using: foreach (w in split(line.twords, ";") | merge (wd:word {word: w}) i can split field , store different words, i'd store position on relationship. my car red -[has_word {position:1}]-> my car red -[has_word {position:2}]-> car car red -[has_word {position:3}]-> car red -[has_word {position:4}]-> red how can this? solution using periodic commit load csv headers 'file:///output_2016-05-06_0203_neo4jimport.csv' line fieldterminator "\t" merge (s:segment{text: line.source}) merge (ta:segment{text: line.target}) split(line.swords, ";") swords, line, s, ta unwind range(0, size(swords)-1) merge (s)-[r:has_word {position:i+1}]->(w:word {word: swords[i]}) split(line.twords, ";") twords, line, ta unwind range(0, si...

matlab - How many iterations should you make for the simulation to be a 'Monte Carlo simulation' for BER calculations? -

edited question how many iterations should make simulation accurate 'monte carlo simulation' bit error rate calculations ? what minimum value? if want repeat simulation exponentially growing number 5 times? should start 1e2 thus>> iterations = [1e2 1e3 1e4 1e5 1e6] or 1e3 >> [1e3 1e4 1e5 1e6 1e7]? or else? common practice? additional info: used [8e3 1e4 3e4 5e4 8e4 1e5] before not enough according prof. because result not satisfactory. simulations take long time on computer cannot keep changing iterations based on result. if there common practice this, please let me know. thanks @billbokeey helping me edit question. what professor propose strikes me qualitative, not quantitative way estimate convergence of simulation. frankly, don't know how ber computed, deal lot integral calculations mc. in such case sample x i on interval , compute f mc = s i f i / n, s denotes summation. know f mc converge true value variance of sigma 2 /n...

multidex - Android - UNEXPECTED TOP-LEVEL EXCEPTION: -

i facing error while adding payumoney in app. here error - unexpected top-level exception: `com.android.dex.dexindexoverflowexception: method id not in [0, 0xffff]: 65536 @ com.android.dx.merge.dexmerger$6.updateindex(dexmerger.java:484) @ com.android.dx.merge.dexmerger$idmerger.mergesorted(dexmerger.java:261) @ com.android.dx.merge.dexmerger.mergemethodids(dexmerger.java:473) @ com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:161) @ com.android.dx.merge.dexmerger.merge(dexmerger.java:188) atcom.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java0) @ com.android.dx.command.dexer.main.runmonodex(main.java:334) @ com.android.dx.command.dexer.main.run(main.java:277) @ com.android.dx.command.dexer.main.main(main.java:245) @ com.android.dx.command.main.main(main.java:106)` here build.gradle(app) file code apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion ...

wso2 - CarbonUIServiceComponent Mgt Console URL not open at local host -

when starting wso2server.sh, carbonuiservicecomponent mgt console url not open @ local host i didn't question url trying hit? open carbon ui, have hit https://ipaddress:9443/carbon if want admin services available, go /repository/conf/carbon.xml , make hideadminservicewsdls tag false.

animation - Android animating a compound component on a loop -

i quite new android have fair amount of experience in xaml space when comes ui , mobile devices. i want create scene when user clicks button/types command, add new compound component scene, not want animate x/y coordinates desired positions onto screen. compound component made of imageview , textview , around 125x125 in size. my question is, best/common method creating looping thread in android such can iterate on x number of compound components in scene , incrementally change x/y coordinates? i have seen people extend thread these seem in conjunction surfaceview hoping avoid using (for simplicity).

sslerrorhandler - Reoccurred. Webview avoid security alert from google play upon implementation of onReceivedSslError -

webview avoid security alert google play upon implementation of onreceivedsslerror we have done steps written in above link. , have confirmed alert removed on march. on april 22nd, got same alert google play. have confirmed our apk still showing ssl alert correctly on device. has google changed policy? sorry we've found out our apk had webview, not using. , did not have ssl alert, problem.

c# - Registry CreateSubKey not working and no receiving error -

i did before , simple code. here code private void button1_click(object sender, eventargs e) { var k1 = registry.localmachine.opensubkey("software", true).createsubkey("test"); } im looking regedit hkey_local_machine-software , wow6432node. cant find test key in there. my user administrator. i didnt receive error. maybe has easy solution im working 45 minutes , cant solve problem. thank helping. are sure you're looking right thing? registry can fickle thing.. i ran registrykey k1 = registry.localmachine.opensubkey("software", true).createsubkey("test"); k1.setvalue("my value","here"); nothing shows yet in regedit - somethings dont show because depends when read. however ending app, , running registrykey k1 = registry.localmachine.opensubkey("software", true).createsubkey("test"); console.writeline(k1.getvalue("my value")); shows value there.

linux - Shell script translate single into multiple lines based on a parameter -

i try write shell scrip following data input file page.txt content: enter first page title<br><div style="margin-left: 40px;">enter first point <br></div><div style="margin-left: 80px;">enter second point<br></div><div style="margin-left: 120px;">enter third point<br></div><div style="margin-left: 80px;"><br></div><div style="margin-left: 40px;"><br></div><div style="margin-left: 40px;"><br></div> algorithm : read pages file replace <br> newline replace <div style="margin-left: 40px;"> 1 tab replace <div style="margin-left: 80px;"> 2 tab replace <div style="margin-left: 120px;"> 3 tab replace <div style="margin-left: 160px;"> 4 tab i trying use tr '<br>' '\n' < page.txt expected output file enter fir...

javascript - Add css properties to a collection from an object -

i need add css properties on each element of collection jquery. suggestions? var jsoncss = { "color": "#555555", "font-weight": "bold", "text-align": "left" }; var $tdcollection = $("tr:first-child").find("td:nth-child(2)"); //a collection of <td> elements $.each($tdcollection, function(k, v){ v.css(jsoncss); }) you don't need use each() here, can apply css settings elements within jquery object: var cssobject = { "color": "#555555", "font-weight": "bold", "text-align": "left" }; var $tdcollection = $("tr:first-child").find("td:nth-child(2)"); $tdcollecton.css(cssobject); also note object define holds css rules nothing json @ - it's object - hence why changed name.

c# - Why isn't this Quartz schedule repeating? -

the job executes once right away doesn't repeat. doing wrong here? using system; using system.collections.generic; using system.diagnostics; using system.linq; using system.text; using system.threading; using system.threading.tasks; using quartz; using quartz.impl; namespace quartzconsoleapplication1 { class program { static void main(string[] args) { var schedulerfactory = new stdschedulerfactory(); ischeduler scheduler = schedulerfactory.getscheduler(); scheduler.start(); var jobdetail = jobbuilder .create<samplejob>() .withidentity("myjob", "mygroup") .build(); var trigger = triggerbuilder .create() .withidentity("mytrigger", "mygroup") .withsimplesch...

jquery - AJAX request in for loop returns results out of order -

i'm trying append 10 images #container , in same order they're being requested reasons don't understand they're being returned out of order. i'm getting urls via for loop , passing them ajax request per below: for (i = 0; < $links.length; i++) { link = $links.eq(i).attr('href'); // appends anchor #container $('#container').append('<a href="' + link + '" class="tile"><p>' + $links.eq(i).text() + '</p></a>'); $.ajax({ type: 'get', url: link }).done(function (data) { var $data = $(data); $('#container').append($data.find('img').eq(0)); }); }; any insight how fix or better great! thanks! this expected behaviour because requests asynchronous. may fired in order require, response time entirely @ mercy of server , how long takes process each request. for example, make 3 requests. #1 ta...

ActiveMQ enqueued message java servicemix karaf command -

i m working activemq servicemix , want have enqueued message count / dequeued message count etc... in java. want value showed in activemq console name number of pending messages number of consumers messages enqueued messages dequeued views operations consumer.id-10-147-244-247-15461c6c293-38-0.vir... 0 2 13 13 consumer.id-10-147-244-247-15470570c61-108-0.vi... 0 2 13 13 i want messages enqueued columns :) my program start session consumer , listener's. work fine. but monitoring have wrote karaf command call subscription object (subscription containt session/connection/queue etc...) in subscription try : activemqconnection activemqconnection = ((activemqconnection) connection); activemqqueue activemqqueue = getqueueconnection(queuename, activemqconnection); activemqtopic = advisorysupport.getconsumeradvisorytopic(activemqqueue); but next don t know how destinationstatistics information queue/topic... i try : qu...

installation - neo4j errors "files was unexpected at this time" while starting -

i using neo4j 1.9 version. neo4j errors files unexpected @ time while installing neo4j in windows 8. "files" refers "c:\program files...". space in path may causing error. reinstall libraries search system environment variables contain "program files", , set them blank before running command find error is. execute following command blank out path variable. c:>set path=

mpi - Determine total CPU count after qsub within PBS script -

for pbs script called qsub, want know how many total cpu's have been allocated in case number defined in pbs file overwritten inputs command line. example following pbs script file: jobscript.pbs: #!/bin/bash #pbs -n test_run #pbs -l nodes=32 #pbs -l walltime=06:00:00 #pbs -j oe #pbs -q normal #pbs -o output.txt cd $pbs_o_workdir module load gcc-openmpi-1.2.7 time mpiexec visct this script run 16 cpu's (instead of 32) using following command line: $ qsub -l nodes=2:ppn=8 jobscript.pbs so robust method determining how many cpu's available within script. i able answer own question following solution using $pbs_nodefile environment variable contains path file listing information available nodes: jobscript.pbs: #!/bin/bash #pbs -n test_run #pbs -l nodes=32 #pbs -l walltime=06:00:00 #pbs -j oe #pbs -q normal #pbs -o output.txt # finds out number of nodes have np=$(wc -l $pbs_nodefile | awk '{print $1}') echo "total cpu count = $np...

android - MediaCodec is crashed in the configure function during the h265 setting.How to correctly use the mediacodec to decode h265? -

my code following: mediaformat format = mediaformat.createvideoformat("video/hevc",480, 560); decoder.configure(format, null, null, 0); my device supports h265 decoding:omx.amlogic.avc.decoder.awesome types:video/hevc and crash log: 05-09 16:32:16.670: e/xdance(14899): format:{durationus=0, max-input-size=0, height=560, mime=video/hevc, width=480} 05-09 16:32:16.670: e/acodec(14899): [omx.amlogic.avc.decoder.awesome] configurecodec returning error -1010 05-09 16:32:16.670: e/mediacodec(14899): codec reported error. (omx error 0x80001001, internalerror -1010) 05-09 16:32:16.670: w/dalvikvm(14899): threadid=11: thread exiting uncaught exception (group=0x41696ba8) 05-09 16:32:16.680: e/androidruntime(14899): fatal exception: thread-300 05-09 16:32:16.680: e/androidruntime(14899): process: com.clientgroup.server, pid: 14899 05-09 16:32:16.680: e/androidruntime(14899): java.lang.illegalstateexception 05-09 16:32:16.680: e/androidruntime(14899): @ android.media.media...

javascript - Directive for add new contact -

this custom directive, var directiveprovider = angular.module('appdirective',[]); directiveprovider.directive('addnewcontact', function() { var custom_template = '<div id="" class="edit-box"><h4>contact</h4><div class="form-group">' + '<label class="col-sm-2 control-label" for="inputemail3">first name </label><div class="col-sm-4">' + '<input type="text" placeholder="enter ..." class="form-control"></div>' + '<label class="col-sm-2 control-label" for="inputemail3">last name</label><div class="col-sm-4">'+ '<input type="text" placeholder="enter ..." class="form-control"></div></div>' + '<div class="form-group"...

asp.net mvc - How to change the background of a cell dynamically in a Kendo MVC UI Grid? -

i need change backgroundcolor of kendo grid. code looks follows : @(html.kendo().grid<tegelcheckermodel>() .name("grid") .cellaction(cell => { if (cell.column.title.equals("tegelzones")) { if (cell.dataitem.tegelzones.contains("extern")) { cell.htmlattributes["style"] = "background-color: red"; } } }) .columns(columns => { columns.bound(p => p.tegelnaam); columns.bound(p => p.tegelactief).headerhtmlattributes(new { style = "background: #800000;" }).clienttemplate("#if(tegelactief){# ja #}else{# nee #}#"); columns.bound(p => p.tegelzones).headerhtmlattributes(new { style = "background: #800000;" }); }) .autobind(true) ...

php - How can I (best) convert Excel to MySQL? -

Image
i have excel worksheets , need capture data database tables in mysql. best db/table structure can capture of content on excel worksheet. image 1 : image 2 :

EXCEL VBA to add blank rows to make them them a set of number -

hi need add blank rows 3 set od data make them 92 each. for example have data a1:a85, a86:a167, a168:a248 wan make them 92 each set adding remaining blank rows. can has vba this. (first set 85 data points want add 7 blank rows make 92, second set 82 data points wan ad 10 blank rows wise) your question little difficult understand, think know trying ask. range object less 92 rows, think want add additional blank rows, "padding" current region, 92 rows long. don't seem care columns. can add additional rows range object using it's .resize property. say, range("a1:a85") has 85 rows. somewhere inside procedure, use like set myrange = range("a1").currentregion 'work 1 specific data set set myrange = myrange.resize(92-myrange.rows.count, 0) 'add rows count adds 92 'but 0 columns you can view page on range.resize property more information. select...case routine add r...

c# - Installing from Nuget adds reference to bin directory -

i'm installing avsan (2.1.0) package using nuget package manager. expecting reference path to packages directory, like: c:\app\packages\avsan.dll but reference bin directory added: c:\app\namespace\bin\avsan.dll confusingly happening packages not others (i.e reference path packages folder, expected) what i've tried uninstalling , reinstalling package googling similar (i've been unable find anything) we found different projects within same solution using different versions 1 another. additionally, single project might have version listed in <reference> element version listed in hintpath . we went through each .csproj file , manually edited them in sync. find line begins <reference includes information dll in question. this line should indicate version. example: <reference include="someassembly, version=4.0.54"> . there may additional text after such culture and/or publickey , etc. we're intereste...

c++ - boost python with template class -

i created ring buffer , want import class python using boost. when trying getting error. ring.cpp: in function ‘void init_module_ring()’: ring.cpp:130:16: error: wrong number of template arguments (1, should 4) class_<ring>("ring").please me. in advance. here code: #include <boost/python/def.hpp> #include<iostream> using namespace std; using namespace boost::python; template <class t> class ring { public: class iterator; public: unsigned int m_size; unsigned int pos; t *val; ring(): m_size(0),pos(0),val(null){}; ring(int size):m_size(size),pos(0){ val=new t[m_size]; }; ring(const ring &other) { this->m_size = other.m_size; this->pos= other.pos; this->val = other.val; } ~ring() { delete[] val; } void insert(t data) { val[pos]= data; pos++; if(pos==m_size) pos=0; ...

python - Greek characters in html forms and storing to variables -

i trying make html page have interaction sql database.i using python language , bottle+pymysql . want form accept greek characters , can put them variables , later use them database.i using accept charset in form not sure , does't work , too. for example,i name = 'ΟΝΟΜΑ' surname = 'ΕΠΙΘΕΤΟ' my code works english input , database contains greek it's real need. @app.route('/b1') # or @route('/login') def b1(): return ''' <form action="/b1" method="post" accept-charset="foobar utt-8" > name : <input name="name" type="text" /><br> surname : <input name="surname" type="text" /><br> birth year-from: <input name="from" type="text" /><br> birth year-to : <input name="to" type="text" /><br> ...

git - What is the logic of auto generated comments behind Bitbucket? -

i try understand logic of auto generated comments behind bitbucket. explain... when go branch click "merge" button commit message generated like: merged hotfix/my-hotfix-name staging when go branch click "create pull request" system create title pull request don't generate commit message yet. when, pull request, click "merge" button commit message generated like: merged in hotfix/my-hotfix-name (pull request #113) why in first case system generate commit message into , second case message use in . don't logic. when i'm merging pull request i'm merging branch into something. have problem word merged in . grade? me in should from or there don't understand. you correct, semantics. nothing lose sleep over.

javascript - add double click action in html using jquery -

i adding double click action every li in ol . code is: <style> li:hover { cursor: pointer; background-color: yellow; } </style> <script> $(function() { $('#myol li').dblclick(function() { alert($(this).text()); }); }); function myclick() { $("#myol").append("<li>item</li>"); }; </script> </head> <body> <ol id="myol"> <li>item 1</li> </ol> <button type="button" onclick="myclick()">button</button> </body> it works after page loading. click button add new line in ul . style works double click action cannot work in added new line. there way add double click action adding style ? or there way this? try using on() in jquery $('body').on('dblclick','#myol li', function() { ale...

Zabbix 3.0 MySQL database i cannot find databases/mysql schema.sql -

i trying build zabbix server 3.0, encountered issue: need create zabbix database guide: shell> mysql -uroot -p<password> mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant privileges on zabbix.* zabbix@localhost identified '<password>'; mysql> quit; shell> cd database/mysql shell> mysql -uzabbix -p<password> zabbix < schema.sql # stop here if creating database zabbix proxy shell> mysql -uzabbix -p<password> zabbix < images.sql shell> mysql -uzabbix -p<password> zabbix < data.sql but when cd database/mysql don't know should go, tried /var/lib/mysql when step mysql -uzabbix -p<password> zabbix < schema.sql there no schema.sql , can't find anywhere. how can find/create or new name. if installed source, should source directory. if installed package repositories, depends on distribution , repository. example, if insta...

php - selecting the rows in mysql with arrays -

in db, have table, timetable 1 field subject. hold value this. example. 1,2,3,4 now, need compare field array named $mysubs=array('1','3','5'); i have tried this. select * timetable subject in (".implode(',',$mysubs)."); but if have 1 value in subject field working. if holding 1,2,3 not working. possible match using 'like'. plz me try thing if subject field value comma separated. $mysubs = array('1','3','5'); $wheresubclause = ''; for($i=0; $i < count($mysubs); $i++){ $wheresubclause .= 'find_in_set($i,subject) or '; } // remove last or $wheresubclasue = substr($wheresubclause,0,-3); // query select * timetable $wheresubclause; but if not comma separated this: $values = implode("','",$mysubs); "select * timetable subject in('".$values."');"

stored procedures - Storing DATABASE_PRINCIPAL_ID in sql server table -

we're using stored procedures restrict access of of our database users. need access specific parts of database (not tables/views, specific rows), , sproc should check if user allowed see table rows he's requesting. to store authorization rules, we're planning use table dbo.authrules that: |id|userid |accessfrom |accessto | ... =============================================== | 1| 1| 01.01.2013 | 31.12.2013 | ... | 2| 2| 31.05.2012 | 31.12.2015 | ... the stored procedure query table check if current user has access requested data. to make clear: cannot use grant permission because need fine-grained access rules down rows in db. we're not sure userid column. best solution kind of foreign key system view sys.database_principals , there no foreign keys views. should store principal_id column of sys.database_principals , without constraint? would better store name column instead of principal_id ? are there other options store reference ...

Android SQLite sending query as an email -

i wondering if possible send query via email created through app text file, or similar format can viewed on pc. query want send public cursor getexpirydata (){ sqlitedatabase db = this.getwritabledatabase(); cursor expiry = db.rawquery("select * " + table_name + " " + col_4 + " between datetime('now', 'localtime') , datetime('now', '+30 days')", null ); return expiry; } to retrieve data cursor, use piece of code: if (cursor.movetofirst()){ do{ string data = cursor.getstring(cursor.getcolumnindex("data")); // ever want here }while(cursor.movetonext()); } cursor.close(); i don't know name of columns. can add table data in list of object , follow link send email tutorial. thanks!

seo - Delphi 'duplicate content' library or example -

as need test texts check duplicate content seo purposes. for have 2 texts (in 2 strings s1 & s2) , need determine percentage of similarity between 2 strings. first code ok, determine % (nbr of common words in s1 & s2)/100x(nbr of words in shorter string in s1 & s2). but not sure algorythm. do have experience code example share ? what trying finding percentage of similarity of 2 strings. some algorithm out there solve exact same problem. been using mainly: levenshteindistance ngramdistance i had quick search in delphi code source. found source code lenvenshtein in delphi lenvenshtein algorith trying find in "how many change" can rollback original string. ngramdistance comparing words splitting them. lenvenshtein string "abc def | klm mno" see very different "klm mn | abc def" ngramdistance see them 100% similar. so depend if want order of string account. couldn't find source code ngramdistance. can...

Is there a way to match directory for regex via gradle like we have for files? -

i see there couple of ways file list , match files against regular expression via gradle listed here: filter file name regex . there way similar matching directories well?, i.e. whether directory regular expression exists in specific folder via gradle? , if directory matches regex, directory name set system.properties in build.gradle ? file('the/containing/directory').eachdirmatch(~/<your regexp here>/) { // set system property it.name }

Need single XSD for multiple large XML files -

my question creating 1 xsd (xml schema file) various similar, not identical, xml files. please note, files not contain own xsd's. first have determine every file's schema. want create single schema catering variations. single schema used nested file format in sap ds in order load data 1 table. i need proper tool conversion xml xsd if aware of (free) tool grateful. an xml file underspecified xsd. multiple xml files reduce space still underspecify set of xsds used validate xml files. since tool recommendations off-topic on stack overflow, here's generic approach recommendation instead: create xsd first xml document. initially, can manually or automatically jump-start process. for each xml document, attempt validation against current xsd. 2.1. repair validation errors updating xsd. 2.2. continue until no validation errors remain.

Branch.io Track Referral without rewards -

scenario : user(primary) sends out app download link friend & friend downloads app using same link. when primary user opens app again, how can know referral successful (true or false enough). question : how can using branch.io? my assumption : createbranchuniversalobject generateshorturl & share friend (now friend installs) whenever user open app use “getfirstreferringparams” track referral correct me! alex branch.io here: great question. our referral feature designed handle credit tracking out of box, can add bit of custom handling implement identity tracking way describe. the prerequisite work using branch setidentity() method of users @ point when register unique account in app. flow looks this: user downloads app. user registers unique account in app , trigger setidentity() method. user creates sharing link , sends user b. branch automatically records user a's identity info in data link. user b opens link , downloads app. data link (in...

r - Plotting crop calendars -

Image
i have csv file ( crop_calendar.csv ) containing information on development stages of crop in particular region. each row has following structure: crop_name sowing_dat emergence_date flowering_date maturity_date harvest_date which gives example: winter_wheat 18.08 28.08 24.06 30.07 3.08 winter_rye 18.08 28.08 15.06 23.07 29.07 spring_wheat 27.04 10.05 1.07 4.08 7.08 spring_barley 27.04 12.05 27.06 1.08 5.08 now, i'd put information in graphic looks that: any idea how lots of crop (rows) , @ different locations? here example assuming have day.of.year() of sowing , duration (in days) of 3 periods each crop , each country. #making random numbers reproducible set.seed(12345) rawdata <- expand.grid( crop = paste("crop", letters[1:8]), country = paste("country", letters[10:13]) ) #day.of.year of sowing rawdata$sowing <- runif(nrow(rawdata), min = 0, max = 365) #number of days...

Spring Session security config and multiple contextLoaderListener classes exception -

i trying integrate spring session 1.2.0 existing spring mvc project configured spring security. i have done configuration according these: http://docs.spring.io/spring-session/docs/1.2.0.build-snapshot/reference/html5/guides/security.html http://docs.spring.io/spring-session/docs/1.2.0.build-snapshot/reference/html5/guides/httpsession-jdbc.html however, cannot deploy app on tomcat since keep getting exception: severe: exception sending context initialized event listener instance of class org.springframework.web.context.contextloaderlistener java.lang.illegalstateexception: cannot initialize context because there root application context present - check whether have multiple contextloader* definitions in web.xml! @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:277) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:112) @ org.apache.catalina.core.standard...

css - Shiny Dashboard: Sticky Footer in dashboardSidebar -

i trying build shiny dashboard footer in dashboardsidebar , sticky bottom of viewport. this, trying use custom css styling suggested here (one of many search results when googling "footer bottom bootstrap") : # create example question on sticky footer library(shiny) library(shinydashboard) # sidebar so_sidebar = dashboardsidebar( sidebarmenu( menuitem( text = "some text." ) ), # footer here tags$footer( tags$p("footer message here."), style = " * { margin: 0; } html, body { height: 100%; } .wrapper { min-height: 100%; height: auto !important; /* line , next line not necessary unless need ie6 support */ height: 100%; margin: 0 auto -155px; /* bottom margin negative value of footer's height */ } .footer, .push { height: 155px; /* .push must same height .footer */ } /* sticky footer ryan fait http://ryanfait.com/ */" ) ) # compose dashboard so_u...

Lotus Notes 7 - Auto-calculation for one column from an editable view - InViewEdit event -

i have problem gives me headaches lately. hope can find solution help. i have view : "vwtest" embedded on form. editable view. view has 3 columns: number , cost , difference. 3 columns have default values field names exist on form called "fmtest", field names are: number , cost , difference. on main form ( contains view ) there field ( computed ) called: totalvalue. the view has 2 actions: addline , deleteline. what want is: let totalvalue = 5000 user complete first line of view: number | cost | difference 1 | 50 | 4950 => 3rd column value calculated automatically difference between 5000 ( totalvalue ) , 50 ( value of 2nd column ) user complete second line of view: 2 | 60 | 4890 => 3rd column value calculated automatically difference between last 3rd column value view , 60 ( current value of 2nd column ) i think that's recursive algorithm. the value of totalvalue exists, number type field. hope find...

Limit Processing of Async MSMQ Message -

i'm receiving messages msmq in async fashion. how can limit processing of messages upto n messages , reenable event start processing again? (i don't want limit thread numbers) you can't msmq. either have implement behavior in sending application or receiving application.

Bash (via Jenkins) regex if/else -

i'm trying extract jira story number branch name in jenkins (1.617 on ubuntu 12.04), maven deploy (of web application) can use jira number tag application name. if there no jira story number, branch tagged "bugfix". e.g., check in branch abc-123_some_feature . jenkins picks there has been checkin , builds project. extracts "abc-123" part , deploys application http://my-dev-server/abc-123 . i have of working fine, except regex. , specifically, regex when running via jenkins. to vastly simplify problem, on ubuntu 12 machine on our jenkins instance hosted, via command line, can this: xxx@yyy:/$ [[ abc_abc-123_def =~ (abc-[[:digit:]]*) ]] && echo "match" || echo "no match" match xxx@yyy:/$ [[ abc_xxx-zzz_def =~ (abc-[[:digit:]]*) ]] && echo "match" || echo "no match" no match however, when use same script in "execute shell" build command in otherwise empty jenkins job, "console outp...

java - ListView based on own class -

im new in android developing, have problem dynamic list. i have habit class , habitmemorydao class , want make listview in main class habits. can wrote main class listview show habits. thanks public class habit { private string name; private date startdate; private int duration; private int frequencyinweek; // 1 7 private string awardtext; public string getname() { return name; } public void setname(string name) { this.name = name; } public date getstartdate() { return startdate; } public void setstartdate(date startdate) { this.startdate = startdate; } public int getduration() { return duration; } public void setduration(int duration) { this.duration = duration; } public int getfrequencyinweek() { return frequencyinweek; } public void setfrequencyinweek(int frequency) { this.frequencyinweek = frequency; } public str...

ios - NSUserDafaults null value? -

i have code [[[nsuserdefaults standarduserdefaults] valueforkey:@"identificator"]isequaltostring:@""] [[[nsuserdefaults standarduserdefaults] valueforkey:@"identificator"] iskindofclass:[nsnull class]]) how can verify value key, or not. because code return no this though..... nsuserdefaults *values = [nsuserdefaults standarduserdefaults]; if([[[values dictionaryrepresentation] allkeys] containsobject:@"yourkeytocheck"]) { //return yes ...... or stuff here... }

objective c - Video view is not full screen in landscape mode iPhone -

i using code autolayout view controller , playing video in view called videoview not playing video in fullscreen. nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *documentsdirectory = [paths objectatindex:0]; nsstring *path = [documentsdirectory stringbyappendingpathcomponent:savefilename]; nsurl *url1 = [[nsurl alloc] initfileurlwithpath: path]; videoplayer = [avplayer playerwithurl:url1] ; self.avplayerlayer = [avplayerlayer playerlayerwithplayer:videoplayer]; avplayerlayer.frame = self.videoview.bounds; [self.videoview.layer addsublayer: avplayerlayer]; [videoview sethidden:no]; [self.videoplayer play]; use mpmpmovieplayerviewcontroller, mpmovieplayerviewcontroller *mpvc = [[mpmovieplayerviewcontroller alloc] initwithcontenturl:url1]; nserror *_error = nil; [[avaudiosession sharedinstance] setcategory: avaudiosessioncategoryplayback error: &_error...

jsDoc typedef property reference -

i using @typedef define custom types, @property items. when doing same class can use {@link myclass#property} reference property. but reasons {@link mytype#property} not resolve. is bug or there different way reference such properties? my usage example: /** * @typedef helpers.column * * @property {string} name */ /** * 1 resolves correctly: {@link helpers.column} * * 1 not resolve: {@link helpers.column#name} */

schema - How do I reproduce Relax NG rules in C++ objects? -

at momemet working on part of application need parse relax ng schema , reproduce rules within file in c++ objects. start example code can explain better. <!-- property.element --> <define name="property.element"> <element name="property"> <attribute name="type" /> <interleave> <zeroormore> <ref name="resource.class" /> </zeroormore> <ref name="literal.class" /> </interleave> </element> </define> i want create object can store information like: [define] name, element name, attribute names, allowed child elements associated rules (zero or more, 1 or more). then want display possible elements in gui can add valid (in terms of relax ng schema) elements tree-like structure. example - can add resource.class or literal.class property.element, every other possible element ...

What approach/methodology are you using for one-man software development -

you can find thousands of questions out there how develop software , methodology best one. these targeting medium large teams, people having different roles , responsibilities. i'm interested in methodology using one-man-shows? steps doing, documents creating things want develop clear , document well, share community? especially, i’m interested in following questions: _are using structured approach you’re developing on own or no @ all? _what phases using? _which documents writing before , after coding? and if have “your” standardized approach, can share templates using? thanks in advance, cheers gerry personally think matter of making decisions when comes development process (solo). in case wouldn't recommend setting massive development process pick elements prevent problems have earlier had. approach small applications (in right order): always write down going make , not going make (define scope) - think of functional requirements (functional design) ...

grails - grails3 Ajax Request Breaking after render as JSON -

i migrating application grails 2.4.4 grails 3.1.5 grails security plugin. i using grails ajax request plugin make ajax calls getting error after calling ajax. i returning arraylist of pojo , not pogo objects gotten api call state/stateforcountry - parameters: countryname: ghana stacktrace follows: java.lang.reflect.invocationtargetexception: null @ grails.plugin.springsecurity.web.filter.grailsanonymousauthenticationfilter.dofilter(grailsanonymousauthenticationfilter.groovy:53) @ grails.plugin.springsecurity.web.authentication.logout.mutablelogoutfilter.dofilter(mutablelogoutfilter.groovy:62) @ grails.plugin.springsecurity.web.securityrequestholderfilter.dofilter(securityrequestholderfilter.groovy:58) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: java.lang.nu...

spring-boot MyBatisBatchItemWriter Cannot change the ExecutorType when there is an existing transaction -

i'm use spring boot , mybatis mybatisbatchitemwriter. using demo write data(mysql) database when no problem. used in project org.springframework.dao.transientdataaccessresourceexception: cannot change executortype when there existing transaction @ org.mybatis.spring.sqlsessionutils.getsqlsession(sqlsessionutils.java:91) ~[mybatis-spring-1.2.2.jar:1.2.2] @ org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke(sqlsessiontemplate.java:353) ~[mybatis-spring-1.2.2.jar:1.2.2] @ com.sun.proxy.$proxy45.update(unknown source) ~[na:na] this demo: @bean public mybatisbatchitemwriter<hfbank> writer() { mybatisbatchitemwriter<hfbank> writer = new mybatisbatchitemwriter<hfbank>(); writer.setsqlsessionfactory(sqlsessionfactory); string statementid = "com.springboot.dao.hfbankdao.insertselective"; writer.setstatementid(statementid); compositeitemwriter compositeitemwriter = new compositeitemwriter(); list dele...

vb.net - Authenticating Google Contacts v3 (can't I use my Google Calendar token)? -

i have seen few topics on issue maybe overlooking something. this current vb code authticate calendar: private function doauthentication(byref rstrtoken string) boolean dim credential usercredential dim secrets = new clientsecrets() secrets.clientid = m_strclientid secrets.clientsecret = m_strclientsecret m_scopes.add(calendarservice.scope.calendar) try credential = googlewebauthorizationbroker.authorizeasync(secrets, m_scopes, "user", cancellationtoken.none, new filedatastore("xxxxx.calendar.application")).result() ' create calendar service using initializer instance dim initializer new baseclientservice.initializer() initializer.httpclientinitializer = credential initializer.applicationname = "public talks , meeting schedule assistant calendar" ...

Pipeline with thread vectors and queues C++ -

here code, works after few iterations stop without error, because of race or deadlock. the goal of code model encoding application: after creation of fake random frames, stages of pipeline first give type frames , encode random operation. to i've used 2 different thread vectors (one each stage) used concurrently shared queues, once 1 thread have pushed frame, popped in other vector , "encoded". #include <iostream> #include <vector> #include <algorithm> #include "safequeue.h" using namespace std; const int data_mag = 256; struct frame { int num; char type; bool encoded; vector<vector<int>> grid; }; void do_join(thread& t) { t.join(); } void join_all(vector<thread>& v) { for_each(v.begin(),v.end(),do_join); } void create_input (queue<frame>& stream, int num_frames, int height, int width) { (int = 0; < num_frames; i++) { vector<vector<i...