Posts

javascript - MongoDB emits HTML as plain text -

why isn't html being rendered whenever output result query. this how save document: data = { title: "article title", body: "<b>this</b> content!!" }; var article = new article(data); article.save(); and how display it: h2.articletitle(style="font-style: italic;") #{article.title} p.articlebody(style="margin-top: 20px;") #{article.body} the out of article body should be: this content!! but instead outputs everything, including html tag: <b>this</b> content!! i reading similar question asked told me add dash (-) before article.body. tried: h2.articletitle(style="font-style: italic;") #{article.title} p.articlebody(style="margin-top: 20px;") - article.body but didn't output when tried way. appreciated. thanks. ok problem how outputting jade, template engine i'm using. managed fix replacing # ! symbol. h2.articletitle(style="font-style: ital...

javascript - How to open iframe popup in parent window -

is there way open popup (which in iframe) in parent window (the iframe , parent in diferent domains) using js/jquery the browser security checks enforce couple of interactions iframes different origin/domain host page blocked. to unblock, need use sandbox attribute on iframe value "allow-popups" relax restrictions. there other possible values can set see here: https://developer.mozilla.org/en/docs/web/html/element/iframe be careful values set here except trust iframe domain.

boot2docker - Slow network performance in Docker container -

i'm running latest docker/ docker-machine on osx yosemite , virtualbox , i'm trying connect lein ring server running in container host loading slow in load time on 1 min following configuration docker 1.12.0 docker machine 0.8.0 virtualbox 5.0.24 my docker machine "configversion": 3, "driver": { "ipaddress": "192.168.99.100", "machinename": "default", "sshuser": "docker", "sshport": 49478, "sshkeypath": "/volumes/nasmac/vms/.docker/machine/machines/default/id_rsa", "storepath": "/volumes/nasmac/vms/.docker/machine", "swarmmaster": false, "swarmhost": "tcp://0.0.0.0:3376", "swarmdiscovery": "", "vboxmanager": {}, "hostinterfaces": {}, "cpu": 1, "memory": 1024, "disksize": 20000, "natnictype": "82540em", ...

git pull --rebase not yeilding deseired outcome -

i lost changes did files after doing git pull --rebase. have absolutely no clue happened here , in end , ended checking out changes ( backing them in seperate folder ) pasting before commiting. here entire terminal showdown. thisuser@desktop-ens2652:/mnt/c/sites/application$ git status changes not staged commit: (use "git add <file>..." update committed) (use "git checkout -- <file>..." discard changes in working directory) modified: gemfile.lock modified: app/controllers/application_controller.rb modified: app/uploaders/pdf_uploader.rb modified: lib/card/print_manager.rb no changes added commit (use "git add" and/or "git commit -a") thisuser@desktop-ens2652:/mnt/c/sites/application$ git add -u thisuser@desktop-ens2652:/mnt/c/sites/application$ git status on branch card_application branch up-to-date 'origin/card_application'. changes committed: (use "git reset head ...

git - Automated heroku deploy from subfolder -

i know can deploy automatically heroku github, haven't found way push subfolder github heroku. from command-line know possible with: git subtree push --prefix <subfolder> heroku master however, know if there way use github integration heroku make pull specific subfolder automatically when commit added branch. i able make work. have server subfolder python flask app , wanted deploy automatically using github integration. heroku uses buildpacks detect language & framework of project. more here . i found source code buildpack here . need @ detection script. python checks requirements.txt file, made symlink using ln -s server/requirements.txt requirements.txt . my procfile looks this: web: gunicorn --pythonpath server/api app:app . everything works now!

html - Space after footer is white? -

hello im trying make there lot of white space after footer(if can call that) picture : after "sponzori" there lot of white space u can see here html code <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>heroic features - start bootstrap template</title> <!-- bootstrap core css --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- custom css --> <link href="css/heroic-features.css" rel="stylesheet"> <!-- html5 shim , respond.js ie8 support of html5 elements ...

java.lang.IllegalArgumentException kafka console consumer -

we using kafka 2.10-0.9.0.2.4.2.0-258 in our environments. getting below exception kafka console consumer on few topics. aware times messages coming these topics big not exceed message.max.bytes. ./kafka-console-consumer.sh --zookeeper xxx:2181,xxx:2181,xxx:2181 --topic test-topic {metadata.broker.list=xxx:9092,xxx:9092,xxx:9092, request.timeout.ms=30000, client.id=console-consumer-76015, security.protocol=plaintext} [2016-08-28 21:27:54,795] error error processing message, terminating consumer process: (kafka.tools.consoleconsumer$) java.lang.illegalargumentexception @ java.nio.buffer.limit(buffer.java:275) @ kafka.message.message.slicedelimited(message.scala:237) @ kafka.message.message.key(message.scala:224) @ kafka.message.messageandmetadata.key(messageandmetadata.scala:30) @ kafka.consumer.oldconsumer.receive(baseconsumer.scala:84) @ kafka.tools.consoleconsumer$.process(consoleconsumer.scala:109) @ kafka.tools.consol...