Posts

android - Cannot resolve symbol 'TitleProvider ' for ViewPagerIndicator -

i'm taking on old android project uses viewpagerindicator. i've updated latest version (2.4.1) import statement com.viewpagerindicator.titleprovider not resolving , there code have implements titleprovider. idea methods in titleprovider got moved to? can't seem find documentation. they comment @adrbtk lead me solution. method overriding in titleprovider gettitle(). support library's latest revision has method called getpagetitle() got rid of "implements titleprovider" on method , made code change below. change this @override public string gettitle(int index) { return ((myfragment)getitem(index)).gettablename().touppercase(locale.us); } to this @override public string getpagetitle(int index) { return ((myfragment)getitem(index)).gettablename().touppercase(locale.us); }

c# - Exporting Template Project VS2015 -

i have solution 4 projects: data, ui.controls, application , visoft visoft referencing 3 other projects through "references->projects-> solutions". referencing both mvvm ligth , entity framework through nuget package manager. now want create project template of visoft application third party user. i tried "file->export template->project template" when go try newly created templates , build project, nuget packages loaded references data, ui.controls , application missing. how can create template assemblies bundled template? this wpf app if mathers.

regex - How to capture whatever is between an integer and its successor -

how can capture whatever content between integer , successor? example, suppose capture b3c , between 1 , 2 in a1b3c2d . code below gives b3c2d . 'a1b3c2d' =~ / (\d+) (.+) (?{ $1 + 1 }) /x; print $2, "\n"; you need two question marks in construct. 1 puts value of code $^r , returns match 'a1b3c2d' =~ / (\d+) (.+) (??{ $1 + 1 }) /x; print $2, "\n"; output b3c

ios - How to upload data (text, images) to Parse.com with Java program? -

i'm building ios app in swift on parse.com , data calculated real-time java program (using eclipse). how can upload these data parse database? since tutorial , sdk on parse.com android, can't use work java code. there no native java sdk parse use rest api , httpurlconnection class or other http framwork connect parse api.

javascript - Captions appear out of position in image slider -

Image
i have been working on js slider webpage. there off in format. cannot seem figure out is. when displays picture caption below, there space below caption, , on fifth picture, caption appears @ top of slider , there no picture displayed. here code js slider, along index.html file used implement it. bottom of image has grey space after images appear slider this //slider js var cssslidy = function(newoptions) { var options = (function() { var mergedoptions = {}, defaultoptions = { timeonslide: 8, timebetweenslides: 1, slidycontainerselector: '#slidy-container', // name of slider container slidyselector: '#slidy', // name of slider slidydirection: 'left', // options: left, right fallbackfunction: function() {}, cssanimationname: 'slidy', captionsource: 'data-caption', // options: data-caption, alt, none capti...

intellij idea - Deploying Grails WAR project to Tomcat 6 server -

i have grails project, , use intellij, , project runs fine intellij. i can create war using intellij build then, make grails web archive. i have virtual box running ubuntu 14.04, tomcat 6 on it. ok issue. i'm running chain of commands /etc/init.d/tomcat6 stop; rm -rf /var/lib/tomcat6/webapps/root*; cp root.war /var/lib/tomcat6/webapps/.; /etc/init.d/tomcat6 start; tail -f /var/lib/tomcat6/logs/catalina.out and getting these errors info: validatejarfile(/var/lib/tomcat6/webapps/root/web-inf/lib/servlet-api-2.3.jar) - jar not loaded. see servlet spec 2.3, section 9.7.2. offending class: javax/servlet/servlet.class - sanitizing stacktrace: java.lang.illegalargumentexception: malformed \uxxxx encoding. @ java.util.properties.loadconvert(properties.java:568) @ java.util.properties.load0(properties.java:391) @ java.util.properties.load(properties.java:341) @ java_util_properties$load.call(unknown source) @ org.codehaus.groovy.runtime.callsite.calls...

c++ separate files? -

my question is, when compile c++ program, why put 1 exe file? file become large. use dll libraries shrink size, or there other files can make? want know how make program uses separate files run. (edit) don't want in single file. files become large computer handle it, right? there must way separate files. in java, in class file, seems easier , more efficient. drives fat32 can't have file bigger 4 gigabytes, need more broken down program. looked @ game called portal, exe 100kb , has 100 dll files! to answer question, yes. absolutely can split program separate dll files if you'd like. i've seen developers compile utility functions separate common dll files can included in other projects references. way objects , methods can be called it. in hindsight, compiled code relatively small. binary data consumes space: videos, images, models, sounds, etc. although possible , common smaller programs pack these resources directly executable, isn't idea many obv...