Posts

java - best online tutorials for J2EE and J2ME -

i new j2ee , j2me familiar core java. have started learning j2ee , j2me. request suggest best online tutorials both (pdf , videos) j2ee , j2me. please guide me how start learning mvc frame works,which should start first , best? thank quora it j2ee - https://www.quora.com/what-is-the-best-and-quickest-way-to-learn-j2ee j2me - https://www.quora.com/how-can-i-learn-j2me-from-basic even can find better articles.

php - Symfony : why am I not allowed to combine "type" with "defaults" in routing.yml -

short version of question : symfony's error message explains cannot use type key in conjunction defaults , can use resources (see details below). why ? how can fix ? detailed version : here exact sequence of did in symfony : composer create-project symfony/framework-standard-edition sym-book/ '~2.5' php app/console generate:bundle --namespace=middleman/bookbundle --format=yml edit contents of src/middleman/bookbundle/resources/config/routing.yml to middle_man_book_example: path: /example defaults: { _controller: middlemanbookbundle:lucky:number } type: annotation in directory src/middleman/bookbundle/controller , rename defaultcontroller.php luckycontroller.php , , edit contents to namespace middleman\bookbundle\controller; class luckycontroller { /** * @route("/lucky/number") */ public function numberaction() { $number = rand(0, 100); return new response( '<html>...

php - Unable to get page name in wordpress -

i customizing wordpress plugin used popup email subscribing. when user submits email gets confirmation email in iam sending custom html him. have 5 different pages on web site , every page has popup. iam doing want name of page according want send html in email. did same thing other plugin , worked in popup plugin iam unable page name called. have tried following things failed. global $post; /* worked perfect on other plugin */ $pagename = $post->post_name; if($pagename=="page1") { // html page1 // } else { // html page2 // } just tried this $slug = basename(get_permalink()); if($slug=="page1") , on here go, need title this, as $post = get_post( $post ); $pagename = isset( $post->post_title ) ? $post->post_title : ''; hope helps.

bash - Tripwire Silent Installation on Ubuntu -

i trying install tripwire non-interactively doing following, still getting window screen inserting local , site keys. code in bash file written below. can advise solution ? thanks tripwirelocalpassword=something tripwiresitepassword=something sudo echo "postfix postfix/main_mailer_type select internet site" | sudo debconf-set-selections sudo echo "postfix postfix/mailname string `hostname`" | sudo debconf-set-selections sudo echo "tripwire tripwire/local-passphrase password ${tripwirelocalpassword}" | sudo debconf-set-selections sudo echo "tripwire tripwire/local-passphrase-again password ${tripwirelocalpassword}" | sudo debconf-set-selections sudo echo "tripwire tripwire/site-passphrase password ${tripwiresitepassword}" | sudo debconf-set-selections sudo echo "tripwire tripwire/site-passphrase-again password ${tripwiresitepassword}" | sudo de...

javascript - Markdown to HTML w/ syntax highlighting using Gulp -

Image
i'm using gulp-markdown package render markdown file html partial. (it uses npm marked package actual rendering.) renders fine, except code blocks!! how gulp put out correctly formatted html? here gulp: var gulp = require('gulp'); var markdown = require('gulp-markdown'); markdown.marked.setoptions({ renderer: new markdown.marked.renderer(), gfm: true, tables: true, breaks: false, pedantic: false, sanitize: true, smartlists: true, smartypants: false }); // turn md files html partials gulp.task('blogposts', function () { return gulp.src('src/blog/blogone.md') .pipe(markdown()) .pipe(gulp.dest('src/partials')); }); and here markdown: ```javascript app.controller('displaycontroller', ['$scope', 'clogsservice', function($scope, clogsservice){ $scope.clogs = []; $scope.getclogs = function() { clogservice.getclogs() .then(function(response){ clogss...

android - MPAndroidChart: Different xValues for each zoom level -

consider chart years xvalues. want change xvalues months when user zoom in or double tap. , change xvalues days next zooming level. possible great mpandroidchart? i play function float displayed = totalitemcount/30; mchart.setscaleminima(displayed, 1f); i've set show 30 values, can set show whatever need changing values, , changing tags when user doubletouchs screen.

crash - Error on startup android application (Titanium framework) -

i've problem titanium android application. app works correctly in ios, not in android. i following error: v8object: (krollruntimethread) [88,88] runtime disposed, cannot set property 'useragent' [info] : dalvikvm: not find method android.app.activity.checkselfpermission, referenced method ti.modules.titanium.media.mediamodule.hascamerapermission [info] : dalvikvm: not find method android.app.activity.checkselfpermission, referenced method ti.modules.titanium.media.mediamodule.hasstoragepermission [warn] : dalvikvm: vfy: unable resolve virtual method 27: landroid/app/activity;.checkselfpermission (ljava/lang/string;)i [warn] : dalvikvm: vfy: unable resolve virtual method 27: landroid/app/activity;.checkselfpermission (ljava/lang/string;)i [info] : dalvikvm: not find method android.app.activity.checkselfpermission, referenced method ti.modules.titanium.media.mediamodule.hascamerapermissions [warn] : dalvikvm: vfy: unable resolve virtual method 27: landroid...