Posts

Showing posts from September, 2013

attributes - Identifying meta tag standards across commonly used meta vocabularies -

while attempting identify various standards concerning meta-tags (and data) have had little (to no) luck in doing so. fundamentally, aim identify area, organization, or site throughout internet offers comprehensive listing of of current ( i.e., non-deprecated ) meta-attribute types , keywords ( i.e., name, http-equiv, itemprop, etc… ) in conjunction individualized data-types, format, , delimiter tokens, whether tag (in question) should self-closed or not. example: tag: <meta name="keywords" content="key0,key1,key2"> ---------------------------------------------------------------------------- breakdown: <meta name= <= attribute-type ”keywords” <= “keyword” content=“ <= attribute-value key0 <= string data-type , <= comma delimiter key1 <= string data-type , <= comma delimiter "" <=

css - Vertical allign text in div (browser proof) -

in wordpress, trying yellow title of news items ( http://www.projectarthouse.nl/vvruurlo/over-ruurlo/nieuws/eerste-training-obbink-voetbalschool/ ) in vertical center of black div in featured image (always - when 1 line / 3 lines of text). in same way slider on homepage, text in slider navigation on right ( http://www.projectarthouse.nl/vvruurlo/ ). here uses display: table , vertical-align: middle on parend div , display: table-cell , vertical-align: middle on text inside of div. however, doesn't work @ all. text stays alligned top. going wrong here? you can use display inline-block in combination pseudo element this: .headertitletext { display: inline-block !important; vertical-align: middle!important; } .headertitle:after { content: ""; display: inline-block; vertical-align: middle; height: 100%; width: 1px; margin-right: -1px; } /* make sure remove float on .unskew */ .unskew { -webkit-transform: skew(10deg); -moz-transform:

ecmascript 6 - Is it possible to use Typescript and ES6 in extension development in Visual Studio Code? -

when set target es6 , seems alright - until point use feature requires --harmony flag, default parameters. it seems way fix pass e.g. --harmony-default-parameters node process... don't think there node process. attempted pass --js-flags="--harmony-default-parameters" electron process, putting following in launch.json: "runtimeargs": ["--js-flags=\"--harmony --harmony-default-parameters\""], ...but didn't work, either. is possible?

architecture - Why are OS's referred to 64-bit instead of 8-byte? -

why operating systems referred 64-bit , 32-bit instead of 8-byte , 4-byte? wouldn't easier once os's high? this more era in architectures created - the 1980's . @ time fastest thing slower smart phone right now, why call 4 byte, when unrealistic expect 16 byte computer in life time. it have been called 4 byte chipset if next version 8 byte, year or 2 later, followed 16 byte shortly after - was, engineers did not foresee incredibly fast growth of microchip, , computer - why name after non-base unit (bits, not bytes) it similar reason why (have) run out of ipv4 addresses, because group created them (interestingly enough, ipv4 addresses 32 bits long) did not believe there need more in foreseeable future.

javascript - Add/remove class to video element -

i'm working on kiosk-style web page display menu of options. clicking on title opens fullscreen video closes menu when video ends. to keep page clean, i'd hide video element until video called click. did css class. video opens fullscreen , when finished, closes , adds hide class again. working script $(document).ready(function() { $('.cell').on('click', function() { var element = this.getelementsbytagname('video'); var m = element[0].getattribute('id'); console.log(m); var v = document.getelementbyid(m); if (v.webkitrequestfullscreen) { v.classname = ""; v.webkitrequestfullscreen(); } v.play(); $("#" + m).on("ended", function() { this.webkitexitfullscreen(); this.classname = "hide"; }); }) }) i'm running problem of video not hiding if user exits full screen video on own. tried using $("#" + m).on("ended"

html - Custom Font not displaying in my webpage -

i have particular set fonts want implement on web application building class project. right now, have hosted on github via github pages . index page uses 4 css files, 1 animate.css , general css file whole application, bootstrap's css file, , css file it. on general web app css file, named custom.css, have following code: @charset "iso-8859-1"; @type-face { font-family: futurastd-heavyoblique; src: url('fonts/futurastd-heavyoblique.otf'); } @ type-face { font-family: couture bold; src: url('fonts/couture-bold.ttf'); } .body { background-color: black; color: white; height: 100%; } and here index.css file: body { background-image: url('../images/flyknit.jpg'); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-attachment: fixed; -webkit-background-size: cover; } .indextitle { font-family: futurastd-heavyoblique;

Ruby Syntax error only says "unexpected '\n', expecting => -

i desperately need understand problem code is, , usual somehow getting syntax error message nobody has ever gotten before when trying code simple while loop conditionals in it: syntax error, unexpected '\n', expecting => i know there question asked that, issue other code involved hashes , things not using - i'm trying here read in number , generate 1 of set of responses based on input. never in life has program , refused specify need do! this code, : #!/usr/bin/ruby time=-1 while (time < 0) print "enter total number of minutes spend per week reading/studying: ", time => gets.to_i if (time >= 120) { puts => "congratulations! pass course." } elsif (time > -1) { if (time > 60) { puts=>"ok...you may still pass course." } else { puts=>"i have grave concerns study habits." }end en

jquery - Scrollmagic timelineMax duration offset -

i have pretty simple scrollmagic event. involves section wipes, explained here - scrollmagic section wipes example . so taking put following scrollmagic setup. var ctrl = new scrollmagic.controller({ globalsceneoptions: { triggerhook: 'onleave' } }); var animationevents = new timelinemax() .fromto($('#show .elem1'), 0.5, {opacity: '1'}, {opacity: '0', ease:power1.easeinout}, 0) .fromto($('#show .elem2'), 1, {x: '0%'}, {x: '-100%', ease:power1.easeinout}, 2) .fromto($('#show .elem3'), 0.5, {opacity: '0'}, {opacity: '1', ease: back.easeout}, 2.4) .fromto($('#show .elem4'), 1, {opacity: '0'}, {opacity: '1', ease:power1.easeinout}, 3); new scrollmagic.scene({ triggerelement: '#wrapper', duration: '400%', }) .setpin('#wrapper') .settween(animationevents) .addto(ctrl); so did created scrollmagic controller, made t

ruby on rails - Includes with only certain attributes -

is there way like: book.includes(authors: {only: :first_name}) i want attribute, not whole author model. nope, can't. if don't want load data can load books , run separate query on authors bring names alone: books = book.where(something_here) author_ids = books.map(&:author_id) author_names = author.where(id: author_ids).pluck(:id, :first_name)

How can I make this object mapping more dry and reusable in Go? -

i have created object mapping in go not relational, simple. i have several structs looks this: type message struct { id int64 message string replyto sql.nullint64 `db:"reply_to"` fromid int64 `db:"from_id"` toid int64 `db:"to_id"` isactive bool `db:"is_active"` senttime int64 `db:"sent_time"` isviewed bool `db:"is_viewed"` method string `db:"-"` appendto int64 `db:"-"` } to create new message run function: func new() *message { return &message{ isactive: true, senttime: time.now().unix(), method: "new", } } and have message_crud.go file struct looks this: to find message unique column (for example id) run function: func byunique(column string, value interface{}) (*message, error) { query := fmt.sprintf(` select * message

Regarding how browser interprets HTML/CSS/Javascript -

i pretty green web development. in 1 of courses have been told following things happen when browser reads web page. at high level assume basic flow. 1.browser pulls html page. 2.browser understands document structure using html tags. 3.after step 2, browser understands css selectors/properties. 4.browser builds dom model now. 5.after this, javascript interpreter within browser interprets .js script questions 1.is above flow correct ? 2.i aware html tags can manipulated javascript. are css selectors part of dom , can manipulated javascript ? not correct. it's complicated process. javascript isn't run after entire page loaded, why you'll see lot of junior programmers make mistake of trying manipulate html, without checking if page has loaded. when browser reaches element such <script> or <link> attempt pull resource, , if successful, execute resource. meaning javascript code, instance, run before dom has loaded, if <scri

java - Eclipse can't find or load main class -

Image
this question has answer here: what “could not find or load main class” mean? 36 answers ahhhhhh! messing eclipse trying run c programs , after giving along way screwed of java projects.the error message states so, after alot of research , searching around, looked needed add classpath , project files build path, did please tell me didn't ruin of java projects. appreciated, thanks! the .classpath , .project files neither jars nor class folders tab mentions (leave jre there, maybe change selected execution environment more correct one). you need make sure src folder listed in source tab, , not project itself. otherwise actual .class file won't created , found java runtime.

javascript - Angular have an element show up when not in a angular template -

i have input box class directive on it. within input box delement, want have element ng-show. how make scope variable available on inner element? <div class="medium-2"> <label>age:</label> </div> <div class="medium-10"> <input type="text" class="form-control pop-up-variables" name="age" error-message="ageerrormessage" required> </input> </div> the block want able add this: <input ng-show="showinnerblock" class="variable-dropdown" type="text" uib-typeahead="number number number in numbers | filter:$viewvalue" ng-model="selectedattribute" placeholder="choose variable"> </input> i don't want return template in directive because dont want replace block directive on, don't know how add correctly dom. the simple js looks like: app.directive('popupvariables', function()

Rename HID - USB GamePad -

Image
i'm trying find out if there way rename devices shown in game controllers screen. they cheap hid devices, , seem share same hardware id (if relevant information) vid_0e8f&pid_3013 i able change names in device manager following guide: http://www.eightforums.com/customization/15321-tutorial-how-change-device-names-device-manager.html however, cannot life of me figure out how change names shown in image above. plan on adding 8 game controllers pc, , gets extremely confusing when share same name. any appreciated. the game controller itself tells windows name: the name cannot modified, unfortunately, commercial usb game controllers.

Include META-INF resources in a javadoc jar in gradle -

i have gradle project , create regular classes jar, , javadoc , sources jar. in 3 need include meta-inf folder includes license , notice file. i have folder files under src/main/resources/ the classes jar , sources jar work correctly need them added javadoc jar. how can fix javadocjar task include meta-inf folder? // custom tasks creating source/javadoc jars task sourcesjar(type: jar, dependson:classes) { classifier = 'sources' sourcesets.main.allsource } task javadocjar(type: jar, dependson:javadoc) { classifier = 'javadoc' javadoc.destinationdir } // add javadoc/source jar tasks artifacts artifacts { archives sourcesjar archives javadocjar } i did needed adding copy task if select meta-inf directory in case add more directories under resources. // custom tasks creating source/javadoc jars task sourcesjar(type: jar, dependson:classes) { classifier = 'sources' sourcesets.main.allsource } task copyresour

Android app crashing only on Galaxy SIII -

my team has encountered strange error our android application crash when try run app on our galaxy siii test phone. works fine on our other 2 test phones (an s6 , droid). the app crashes @ runtime unhandled exception because not able locate of classes referenced in joda-time -- project dependency declare in our build.gradle. again, error only happens on our s3, , working until 2 weeks ago. with type of issue there many ways can move forward figure out what's wrong. i'm starting hit wall, though, , love ideas/suggestions on issue. edit2: identified issue. not correctly instantiating multidex support , class not loading. edit: logcat below w/dalvikvm: vfy: unable find class referenced in signature (lorg/joda/time/format/datetimeformatterbuilder;) w/dalvikvm: vfy: unable find class referenced in signature (lorg/joda/time/format/datetimeformatterbuilder;) e/dalvikvm: not find class 'org.joda.time.format.datetimeformat$styleformatter', referenced method org.j

qt - QML C++ Signals-Slot not overloaded -

i have spent whole day on code , couldn't figure out problem. this error: * iso c++ forbids declaration of 'cppreturnanswer' no type [-fpermissive] * 'int handletextfield::cppreturnanswer(qvariant)' cannot overloaded * 'void handletextfield::cppreturnanswer(qvariant)' and code: //handletextfield.h class handletextfield : public qobject { q_object public: signals: void cppreturnanswer(qvariant data); // error here public slots: std::string text; qstring color = qstring::fromstdstring(text); emit cppreturnanswer(qvariant(color)); // error here }; which used respectively in program // in .. handletextfield.cpp ... void handletextfield::handlesubmittextfield(const qstring &in) { qdebug() << "c++: handletextfield::handlesubmittextfield:" << in; text="green"; qstring color = qstring::fromstdstring(text); emit cppreturnanswer(qvariant(color)); } // in main.cpp ... qobject *top

Why compiled and installed gstreamer plugin from boilerplate code is not found by gst-inspect -

i followed instructions in gstreamer plugin writer's guide (1.7.1.1): http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/index.html in order build new gstreamer plugin. ran make_element , edited makefile.am described. amazingly make , make install worked , ended with: /usr/local/lib/gstreamer-1.0/libgstframe_grabber.la /usr/local/lib/gstreamer-1.0/libgstframe_grabber.so as understand it, gst-inspect should find plugin automatically. guide says /usr/local/lib/gstreamer-1.0 needs added gst_plugin_path in order plugins in directory found. document states directory searched automatically. tried , without environment variable, no luck. now should have started use gstreamer , suffering total information overload. have read many documents, yet don't know whether building gstreamer1.0 or gstreamer0.10 plugin (i think guide gstreamer1.0, since guide's version 1.7.1.1 can't sure). can give me clue here ? there many possible reasons c

mongodb, how to find in array other array -

i need help. trying find array in array. records: { "_id" : objectid("56b7e6966213e8d142ef55b7"), "users" : [ objectid("56b0e547a838b5a45b4d0100"), // 0 objectid("56a7e16e37e5adf32b97cc3d") // 1 ] }, { "_id" : objectid("56b7e6966213e8d142ef55b7"), "users" : [ objectid("56b0e547a838b5a45b4d0100"), objectid("56a7e16e37e5adf32b97cc3d"), objectid("56b7e6b96213e8d142ef55b8") ] } i'm trying find first record "_id" : objectid("56b7e6966213e8d142ef55b7") , i'm using query: db.collection.find({"users" : { $in: [ objectid("56b0e547a838b5a45b4d0100"), objectid("56a7e16e37e5adf32b97cc3d") ]}}) or db.collection.find({ $and: [{ "users": objectid("56b0e547a838b5a45b4d0100") }, { "users": objectid("

mysql - .mysql_history not being saved automatically -

i've been unable mysql command-line history working user, though works fine other users on same machine (mysql 5.5 on debian "wheezy" distro.) i'm @ wit's end, , hoping here can me... whenever start mysql, have no history scroll (it gives visual bell alert when try up-arrow example). however, i'm using it, history works fine (within single session). i.e., can go earlier commands since started mysql. but, second quit mysql, lose history , have start on again next time. needless say, extremely frustrating! to troubleshoot, did 3 things, none of made difference @ all: (1) explicitly set environment variable (using bash): % mysql_histfile=~/.mysql_history % echo $mysql_histfile /var/home/userx/.mysql_history ... , double-checked permissions set correctly (both on file , on directory -- note, created empty file sure wasn't having trouble creating itself): drwxr-xr-x 53 userx userx 4096 jan 24 15:26 /var/home/userx -rw------- 1 userx u

Run a powershell script on a remote system with elevated permissions to enable remoting -

i trying use following code copy powershell script remote windows 7 machine; run elevated privileges on machine enable remoting on system. it copying script file remote system not executing command in remote powershell session because of empty $command variable (the second line in script below not working). copy-item -path c:\users\user1\myscript.ps1 -destination \\some-computer\c$\myscript.ps1 $command = powershell.exe -noprofile -command "& {start-process powershell.exe -argumentlist '-noprofile -executionpolicy bypass -file ""c:\myscript.ps1""' -verb runas > c:\ps-result1.txt}" $cmd = "cmd.exe /c "+$command invoke-wmimethod -class win32_process -name create -argumentlist $cmd -computername "some-computer" start-sleep -s 8 get-content \\some-computer\c$\ps-result1.txt is possible accomplish this? thanks, using wmi call cmd call powershell call start-process call powershell again? seems little co

swing - Java 'Background' opens to small to see anything -

i making game , game window open size of title. please let me know changes need make "b.setsize(900,885)" work. change or add amount of code if needed. import java.awt.color; import java.awt.font; import java.awt.graphics; import java.awt.image; import java.awt.rectangle; import java.awt.window; import java.awt.event.actionevent; import java.awt.event.actionlistener; import java.awt.event.keyevent; import java.awt.event.keylistener; import javax.swing.*; public class background extends jframe implements keylistener, actionlistener{ int platform1x = 300, platform1y = 555, platform2x, platform2y; image image; public boolean isjumping = false; int playerx = 100, playery = 585, velx = 0, vely = 0; public boolean[] keydown = new boolean[4]; private int fallingspeed = 0; private int gravity = 5; private int jumppower = -30; public background(){ addkeylistener(this); setfocusable(true); setfocustraversalkeysenabled(false); keydown[0] = false;

Segmented multiple regression in SAS -

i segmented multiple regression fixed effects (with , without interactions). sas has procedures handle task. i've read proc nlin can segmented regression, can find tutorials on segmented regression on single predictor. i'll appreciate if point me samples on issue. links tutorials nice too. i'm working sas eg 6.1. many thanks, mai

javascript - Using Promises / Node -

i'm trying find way/best way use promises in node application. i'll honest, don't 100% understand promises, i'm getting better more practice. what i'm looking after logs in: get facebook access token access users profile, update user document in mongodb or create new user document if don't exist access facebook friends list , cross reference "friends" document in mongodb. problem have point 3, require access token point 1 , user document either existing or newly created in point 2 pass third function. my chain of functions looks like: getaccesstoken(req) .then(function(accesstoken){ getuserprofile(req, accesstoken) .then(finduser.bind(null, req, res)) .then(...) }); getaccesstoken returns "accesstoken" facebook. getuserprofile returns user facebook. finduser finds existing or creates new user document in mongodb. how return existing or newly created user object , pass through coupled accesstoken in form of promis

scala - How to pattern match with dependent type without using it? -

this hard phrase, please, let me show example: trait cache trait querylike { type result } trait query[a] extends querylike { type result = def exec: result } trait cachedquery[a] extends querylike { type result = def execwithcache(cache: cache): result } def exec(query: querylike)(implicit cache: cache): query.result = query match { case q: query[query.result] => q.exec case cq: cachedquery[query.result] => cq.execwithcache(cache) } this compiles , runs fine pattern matching done on different types ( query , cachedquery ) instead of relying on generics this question . but still compiler warning : warning:(18, 12) abstract type result in type pattern a$a4.this.query[query.result] unchecked since eliminated erasure case q: query[query.result] => q.exec since don't work on dependent type query.result directly in anyway (like casting different operations), it'd ideal erase , away warning. unfortunately, using wildcard doesn't w

java - Implement iterator in Doubly-Linked List -

how implement class provides iterator iterating on doubly-linkedlist? should implemented private inner class within doubly-linkedlist class. private class iterator<t> iterator(){ for(i = 0; list.size() > 20; i++){ system.out.println("using iterator approach (numbers > 20) list is: ") } i don't know doubly-linkedlist class. may this. public iterator<t> iterator() { return new iterator<t>() { node<t> node = head; @override public boolean hasnext() { return node != null; } @override public t next() { t value = node.value; node = node.next; return value; } }; }

php - Acces legacy class from twig view -

we re-writing part of web portal , need bitwise compare in twig view. have value(integer) in view passed controller , need make decision on image display. used bitwise compare against values in class somewhere in /opt folder. i can bitwise (b-and) compare in twig how access legacy php class comparison? within twig template don't have access regular php methods. so, include legacy class, need write custom function , twig extension. here example: class stepoutextension extends \twig_extension { public function getfunctions() { return array( 'inspect' => new \twig_function_method($this, 'step_out', array('needs_context' => true)) ); } public function stepout($context) { // access class here } public function getname() { return 'legacy_class'; } } and register service: services: my_namespace.step_out: class: acme\demobundle\extensions

sql - Subquery returned more than 1 value. VB6 -

hi i'm trying select value of movementline.qty if movements.movementscode equal rw if not put 0.00 select levelfield1.description, products.reportuom, products.productcode, products.description, isnull(sum(receivingline.qty), 0.00) [b.delivery], movements.movementcode, isnull((select qty movementline movementcode = 'rw'), 0.00) [b. returned] products left join levelfield1 on levelfield1.levelfield1code = products.levelfield1code left join receivingline on receivingline.productcode = products.productcode left join movementline on movementline.productcode = products.productcode left join movements on movements.movementid = movementline.movementid group levelfield1.description, products.reportuom, products.productcode, products.description, movementline.qty,

Convert feet into inches in the angularjs -

i have 2 columns: feet , inches. need convert feet column value inches. how can create feet-to-inches calculation (calculator) in angularjs? multiply number of feet x 12 give number of inches. has nothing angular...

c++ - Finding Xth term of a series -

Image
i have simple problem. i having array a[] of n numbers. have perform operarion: for(i = 2; i<=n; i++) a[i] = a[i] + a[i-1] to array a[] k times. , after performing operation k times, have output xth index element. doing brute force, lead tle. i searching pattern, but, came solution not perfect needs be. can please me, find more efficient solution problem. i have example, clear question. let's array a [1,2,3] , need perform above operation 3 times then: array after 1st turn: a=[1,3,6] array after 2nd turn: a=[1,4,10] array after 3rd turn: a=[1,5,15] so, if required find 2nd element of array now, 5. i pascal's triangle (as @mbo say) may notice after k times number of times each number added in final result equal square in triangle following diagonals. let see example here: this image correspond iterate 4 times first 3 elements. so, can see if have input k equal number of times , n equal index of element return, have multiply each

Elasticsearch partial update vs full update? -

question : i've got application change document should persisted elasticsearch after it's validated against full document. have retrieve full document! partial update better full update in regards performance there other benefits ? elasticsearch documentation partial update mentions documents immutable , internally partial updates full update reindex full document. externally, appears though partially updating document in place. internally, however, update api manages same retrieve-change-reindex process the documentation mentions following assume "benefit of partial update on full update" don't understand. if there document in shard , full update on or partial update in total 1 request. multiple request mean here ? the difference process happens within shard, avoiding network overhead of multiple requests as mentioned above both partial update , full update use retrieve-change-reindex process make updation. but difference : pa

javascript - Two text inputs, one submit button. When submitting the form, value of first input appears in the other input with jQuery or JS? -

<form action="" id="form2"> <div> <input type="text" id="third"> <input type="submit" id="submit_form"> </div> </form> <div> <input type="text" id="fourth"> </div> two text inputs, 1 submit button. when submitting form, value of first input appears in other input in jquery or js? after submitting form input value displayed in input field. how can make work using javascript or jquery only? use button instead of submit input type, here go: $('#submit_form').click(function(){ $('#fourth').val($('#third').val()); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <form action="" id="form2"> <div> <input type="text" id="third">

ios9 - how to share content on facebook, twitter and instagram using SLComposeViewController swift -

i want share content , images on social media using slcomposeviewcontroller in swift. have done in objc new in swift development.please suggest me if there common class or library share content on social media in swift. there no need of library. need is: 1) import social framework. 2) code post on facebook let vc = slcomposeviewcontroller(forservicetype: slservicetypefacebook) vc.setinitialtext("picture text") vc.addimage(detailimageview.image!) vc.addurl(nsurl(string: "http://anyurl.com")) presentviewcontroller(vc, animated: true, completion: nil) 3) code post on twitter let vc = slcomposeviewcontroller(forservicetype: slservicetypetwitter) vc.setinitialtext("picture text") vc.addimage(detailimageview.image!) vc.addurl(nsurl(string: "http://anyurl.com")) presentviewcontroller(vc, animated: true, completion: nil)

authentication - Android AccountManager :Which account is being used? -

i using android account manager app. allows multiple accounts , every account has it's own specific data. what want know is; how determine account being used account manager is there way set specific account in account manager current one i'll using content provider (single class multiple tables) syncadapter upload/download data laravel rest api. based on information , clarification @rocketrandom , clear account manager provides service. user/app developer should work out proper way handle accounts. for specific problem (multi user login), present user selection list(custom) allows me pass on specific user data syncadapter, in turn load account related sqlite db (i using separate db each user).

scala - memory error in standalone spark cluster as "shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[Remote]" -

i got following memory error in standalone spark cluster, after 140 iterations of code. how shall run code without memory fault? i having 7 nodes 8gb ram out of 6gb allocated workers. master having 8gb ram. [error] application - remote calculator (actor[akka.tcp://remote@127.0.0.1:44545/remote/akka.tcp/notebookserver@127.0.0.1:50778/user/$c/$a#872469007]) has been terminated !!!!! [info] application - view notebook 'kamaruddin/psoaann_breastcancer_optimized.snb', presentation: 'none' [info] application - closing websockets kernel 6c8e8090-cbeb-430e-9d45-5710ce60b984 uncaught error thread [remote-akka.actor.default-dispatcher-6] shutting down jvm since 'akka.jvm-exit-on-fatal-error' enabled actorsystem[remote] exception in thread "thread-36" java.lang.outofmemoryerror: gc overhead limit exceeded @ java.util.jar.attributes.read(attributes.java:394) @ java.util.jar.manifest.read(manifest.java:199) @ java.util.jar.manifest.<init>(

c# 4.0 - Cannot Run application from shared path -

i can run application local machine working fine, when share , run same on shared folder giving nhibernate exception shown here that iscrossrefinformed code not committed shared folder in local machine

oop - Is it bad to use a lot of polymorphism? -

i've heard using lot of polymorphism bad , it's better code design avoid polymorphism ever possible. true? no, quite few design patterns implemented using polymorphism. factory pattern 1 of more common patterns use it. it fundamental part of object oriented programming.

Toolbar takes full screen in Android Navigation Drawer -

i made toolbar: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="80dp" android:background="#ff5722" > </android.support.v7.widget.toolbar> the problem when include in main_activity.xml below: <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawerlayout" android:layout_width="match_parent" android:layout_height="match_parent" android:elevation="7dp"> <!--<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"

java - Fragment Crashing whenbtrying to receive an object from an activity -

good day all, i have issue activity making network call , when network call completed, makes changes in activity using data json object received call, passes object down fragments in same activity. these fragments in tablayout. the issue have if put system.out.println() prints out correct data. minute want set textview data receive in fragment app crashes nullpointer. when debug debug in android studio, textview i'm setting null reason. activity code initial network call: @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_listings); butterknife.bind(this); setsupportactionbar(toolbar); handleintent(getintent()); } private void handleintent(intent aintent) { if (aintent != null) { string tradetype = aintent.getstringextra("itemtype"); string tradeid = aintent.getstringextra("itemid"); presenter = new itempresenterimpl(this, itembuynowactivity.this); pres