Posts

Showing posts from August, 2011

android - Play Song continously -

i working on music application , have recorded audio files, can play song individually have button play on need play song present in particular folder can suggest best way achieve task thanks in advance hello guys got answer question finally please check below code: public class showallrecords extends listactivity { private file file; private list<string> mylist; mediaplayer mp; listview listv; int currentposition = 0; public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); mp = new mediaplayer(); mylist = new arraylist<string>(); listv = getlistview(); listv.setbackgroundresource(r.drawable.musicapp); string root_sd = environment.getexternalstoragedirectory().tostring(); file = new file(root_sd + "/mymusicapp/"); file list[] = file.listfiles(); (int j = 0; j < list.length; j++) { mylist.add(list[j].

xamarin - Can't setup Android SDK on Visual Studio 2015 -

Image
i installed vs2015 enterprise , want try "cross platform" or "android blank app" project, in both , got message box error value cannot null parameter name:path1 when try run tools/android /android sdk manager got visual studio error: error: command did not execute uccessfully due unexpected exeption.please check output window aditional information in error window got xamarin.android visual studio requires android sdk. please set android sdk path on tools->options->xamarin->android settings menu when open start/all programs/android sdk tools/sdk manager/tools/options after while got this: it looks can't download something, guess there no android sdk installed on pc. i've tried disabling firewall it's same, idea? your jdk , android ndk locations paths might set sdk might not set. had same problem. solved in 3 steps . if have same problem shown above image, follow these steps. click on change,

date - Find most recent result in query - ms access -

i have access database, trying determine recent result in query. want know whether recent loan item complete or not. e.g. tbl_loans loanid equipment number start date return date expr:isonloan 123 78457 16/05/2001 19/06/2003 loan complete 124 79557 17/07/2016 loan in progress 125 78457 03/06/2016 loan in progress 126 79630 01/01/2015 01/01/2016 loan complete 127 79360 02/03/2016 loan in progress 128 78457 01/01/2016 01/03/2016 loan complete where expr:isonloan iif: isonloan: iif([loans]![return date] null,"loan active","loan complete") i return recent result each equipment number in column in query (probably separate query) i.e. loan id equipment number start date return date expr:isonloan 125 78457 03/06/2016 loan in progress 127 79360

javascript - setTimeout firing twice in this code? -

so have got code. var x = 0; function main() { console.log("window load occurred!"); console.log('imgchild log!'); var firstchildren = $('.imgchild'); var arrchildren = []; (var = 0, l = firstchildren.length; < l; += 3) { arrchildren.push(firstchildren.slice(i, + 3)); } console.log(firstchildren); console.log(arrchildren); arrchildren[0].fadein(); var length = arrchildren.length; function myanim() { // debugger; console.log('timeout log'); console.log(x); arrchildren[x].animate({ left: '-100%' }, function() { arrchildren[x].hide().animate({ left: '0%' }).css('top', '0'); x++; console.log(x); arrchildren[x].css({ top: '0px', left: '100%' }).show().animate({ left: '0%' }); settimeout(myanim, 3000); }

sdl 2 - How to make a SDL2 Window uncloseable? -

i created sdl2 window. how can make, can't close pressing 'x'? flags, wich? just handle close event polling it, , can whenever tries close window program should nothing...that's it.

Find index of first specific result in each group from r -

i have dataset below: outcome have no relationship contact_date, when subscriber response cold call, mark successful contact attempt(1) else (0). count how many times called subscriber. subscriber_id outcome contact_date queue multiple_number count (int) (int) (date) (fctr) (int) (int) 1 1 1 2015-01-29 2 1 1 2 1 0 2015-02-21 2 1 2 3 1 0 2015-03-29 2 1 3 4 1 1 2015-04-30 2 1 4 5 2 0 2015-01-29 2 1 1 6 2 0 2015-02-21 2 1 2 7 2 0 2015-03-29 2 1 3 8 2 0 2015-04-30 2 1 4 9 2 1 2015-05-31 2 1 5 10 2 1 2015-08-25 5 1 6 11

android - How to prevent the RecyclerView from resorting while notifyDataSetChanged -

i use staggeredgridlayoutmanager recyclerview layout manager. when try load next page data , call notifydatasetchanged method update data, while scroll recyclerview, notice resort item. i don't need resort it, how can prevent resorting. , wonder why resort. thx! @ershani gave valuable insight problem , adding more on top of it. use notifydatasetchanged() last resort when using recycler view. notifydatasetchanged() following , quoting doc this event not specify data set has changed, forcing observers assume existing items , structure may no longer valid. layoutmanagers forced rebind , relayout visible views. if writing adapter more efficient use more specific change events if can. rely on notifydatasetchanged() last resort. so in case if call notifydatasetchanged(), bound , visible layouts rebound pointless , ineffective. you use notifyitemrangeinserted() after loading page. more effective , retains default animations provided recyclerview on dat

google maps - markerWithLabel in googleMaps causes Infowindow to be displayed faraway from markerClick -

Image
i using markerwithlabel.js custommarkers , when ever clicked on marker, infowindow displayed little far away distance marker location. here code markercode: var t = this; var m = new markerwithlabel({ position: latlng, draggable: true, raiseondrag: true, icon: ' ', map: t.map.map, labelcontent: '<i class="fa fa-circle fa-2x" style="color:#8dc73f;height:22px;width:22px;"></i><i class="fa fa-arrow-up fa-stack-1x fa-inverse" style="transform: rotatez(9deg);margin-top: 5px;"></i><i style="position:relative;margin-left:-19px;" class="fa fa-circle-o fa-2x"></i>', labelanchor: new google.maps.point(30, 0), labelclass: "labels", // css class label labelstyle: { opacity: 0.75 } }) and infowindow t.popup = new google.maps.infowindow({content: popup, closebutton: false, maxwidth: 365

osx - Mac OS X Get running applications shortcuts -

i need way application available shortcuts concrete running applications have. have no idea how achieve this. not interested in listening events when happen instead interested know events shortcuts , know how invoke them. there app achieves that, named cheatsheet it looks mentioned application (cheatsheet) scans menu of target application. this how "knows" shortcut , textual definition of actions. this can done using accessibility api.

ios - How to send message to any number from app -

actually have implemented app phone call using sinch. there possibility send message number app way2sms,etc. there many services build applications. https://www.twilio.com/sms https://www.twilio.com/sms/api https://www.plivo.com/sms-api/ you can use service , create sms applications

insertion - Python "int is not subscriptable" error -

why isn't working? says int not subscriptable when run speedtest. this error: traceback (most recent call last): file "<pyshell#3>", line 1, in <module> speedtest() file "\\internal.sloughgrammar.berks.sch.uk\students$\home\2014\14khandelwala\mydocs\year8\computing\raspberry pi\test_sort.py", line 14, in speedtest insertion(a) file "\\internal.sloughgrammar.berks.sch.uk\students$\home\2014\14khandelwala\mydocs\year8\computing\raspberry pi\test_sort.py", line 41, in insertion val, j = 0[i], i-1 typeerror: 'int' object not subscriptable this code: # test_sort.py random import * time import * def speedtest(): print("*** bubble sort vs. insertion sort ***") y in [2000, 4000, 8000]: print("\narray of {} random numbers 0 999:".format(y)) = [randint(1,999) x in range(y)] b = a[:] tic = time() insertion(a) toc = time() print(&

jquery - Get a Session value from my MVC app into my Javascript -

this isn't standard, please read before marking duplicate. in our mvc app @ top of our _layout.cshtml , load our scripts this: @scripts.renderformat("<script src='{0}' defer></script>", "~/bundles/scripts") at bottom of _layout.cshtml have this: @rendersection("scripts", required: false) for reasons outside of control must have defer on that. :( this bundle includes jquery files. 1 of other files called script.js , gets loaded after jquery, , has function called setcollapse(collapse) . it looks this: function setcollapse(collapse) { debugger; alert(collapse); if (collapse == 'false') { $('.collapse').collapse("show"); } else { $('.collapse').collapse(); } } i use session value javascript function on mvc view load this: @section scripts { <script> $(document).ready(function() { debugger; var collaps

ios - Pause NSTimer when app goes to background -

i have following in touchesbegan function in gamescene timer starts when user touches sprite: let start = skaction.runblock({ nstimer.scheduledtimerwithtimeinterval(0.1, target: self, selector: "printduration:", userinfo: nsdate(), repeats: true) }) taptostartnode.runaction(start) and following function: func printduration(timer: nstimer) { if self.view?.paused == false { guard let userinfo = timer.userinfo else { return } guard let startdate = userinfo as? nsdate else { return } let duration = nsdate().timeintervalsincedate(startdate) currenttime = nsdate().timeintervalsincedate(startdate) currenttimevaluelabel.text = "\(nsstring(format:"%3.2f", duration))" } } however, when applicationdidenterbackground or applicationwillresignactive timer not paused , continues run when app in backgorund. how make stop?

android - Can't do intent on MapFragment class to another activity class -

i've searched , tried many ways on doing intent getactivity() / v.this / , app still stop working when clicking textview reservereply class simple imageview. ---- mapfragment.class ------ @override public void onclick(view v) { // put intent on front of codes test btw intent intent = new intent(mapfragment.this, reservereply.class); startactivity(intent); final string parkname = (string) v.gettag(); final string name = "testing test"; final string age = "21"; stringrequest request = new stringrequest(request.method.post, inserturl, new response.listener<string>() { @override public void onresponse(string response) { system.out.println(response.tostring()); } }, new response.errorlistener() { @override public void onerrorresponse(volleyerror error) { } }) { @override protected map<string, string> getparams() throws authfailur

c# - Task Parallel System.NullReferenceException or System.InvalidOperationException -

i getting error randomly (mostly it'll work these errors come) in of methods. errors are: an exception of type 'system.nullreferenceexception' occurred in system.data.dll not handled in user code additional information: object reference not set instance of object. and an exception of type 'system.invalidoperationexception' occurred in system.data.dll not handled in user code additional information: collection modified; enumeration operation might not execute. private void loadallcomboxdata() { var t1 = new task(() => loadincombobox1()); t1.start(); var t5 = new task(() => loadincombobox5()); t5.start(); } private void loadincombobox1() { this.loadincombobox1tableadapter.fill(this.eadbdataset.loadincombobox1); } private void loadincombobox5() { this.loadincombobox5tableadapter.fill(this.eadbdataset.loadincombobox5); } what i'm planning

php - Send form values to db error -

when try send data html form database using php, keep getting error unexpected ; in line 6 . cant seem find exact cause. this code of send.php: <?php //connecting sql db. $connect = mysqli_connect("host","user","password","database"); //sending form data sql db. mysqli_query($connect,"insert sw5_green (firstname_r, lastname_r, vid, occupation, address, firstname_s, lastname_s, country, amount, currency) values ('$_post[post_firstname_r]', '$_post[post_lastname_r]', '$_post[post_vid]', '$_post[post_occupation]', '$_post[post_address]', '$_post[post_firstname_s]', '$_post[post_lastname_s]', '$_post[post_country]', '$_post[post_amount]', '$_post[post_currency]')"; ?> you missing ) @ end of statement. put ) before last ; . try it, mysqli_query($connect,"insert sw5_green (firstname_r, lastname_r, vid, occupation, address, fi

Git Daemon Hang SO_KEEPALIVE -

i'm using git 2.9 on windows. when creating demo git training git daemon, hit so_keepalive error. @server $ git daemon --base-path=. --enable=receive-pack --verbose [18608] ready rumble [18108] connection 127.0.0.1:61111 [18108] unable set so_keepalive on socket: no error [18108] extended attributes (16 bytes) exist <host=127.0.0.1> [18108] request receive-pack '/hello-world.git' @acommitter $ git push -u origin "john--01--create-app-saying-hello" why happening? as of git windows 1.9.4, following command should fix issue: git config --global sendpack.sideband false https://stackoverflow.com/a/24461876/1250319

amazon s3 - Upload empty folder to s3 using sdk -

is possible upload empty folder s3 using sdk (preffer .net)? far know, can't using aws console. has idea how can workaround using sdk make possible upload empty folder? because need create application make user possible upload entire folder including empty folder. many & regards as workaround, aws suggests simulating empty folder creating 0 byte file , deleting once first object in folder being created. can find more details here: https://forums.aws.amazon.com/thread.jspa?threadid=50849

javascript - html canvas Drawing tool and highlight fucntion -

i javascript function copy paste image clipboard html canvas, futher have function let user draw(highlight) on image pasted on canvas. however, drawing tool function seems override copy paste function anonymous. need make these 2 functions operate. this function copy clipboard. function clipboard_class(canvas_id, autoresize) { alert("blah"); var _self = this; var canvas = document.getelementbyid(canvas_id); var ctx = document.getelementbyid(canvas_id).getcontext("2d"); var ctrl_pressed = false; var reading_dom = false; var text_top = 15; var pastecatcher; var paste_mode; //handlers document.addeventlistener('keydown', function (e) { _self.on_keyboard_action(e); }, false); //firefox fix document.addeventlistener('keyup', function (e) { _self.on_keyboardup_action(e); }, false); //firefox fix document.addeventlistener('paste', function (e) { _self.paste

Makefile to depend on third-party libs with cmake -

all. my main program uses third-party library a. main program uses autoconf , library uses cmakefile build. since converting 1 framework pain me, want keep 2 different build mechanism. since main depends on liba , made main depend on liba , liba force-build target. when change source file of main , make on main , liba gets cmake , keep intact since nothing on liba changed, main gets build. when change source file in liba , make on main , liba gets build forcefuly. main 's dependency liba computed before building new liba , linking not done. make twice each time main safely. how can improve build? summarize: main depends on liba (a) when make after changing source file of liba , want build liba first , build main (b) when make after changing source file of main , want build main original liba (c) when make without doing anything, want build nothing. (d) with current setup, cannot (b). any helps appreciated. what old shell scrip

jquery - bootstrap input-group not grouping -

Image
i'm trying use input-group group these 2 divs looks this, first item being dropdown select. what looks now i've heard bootstrap doesn't work using select inside of here. possible in here? how can 2 being next each other first pic? p.s. @ structure please, remove names of stuff because proprietary. thanks! <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> <div class="input-group"> <div class="col-md-4 col-sm-3" ng-init="vm.current = vm.interval"> <select class="form-control" ng-model="vm.current" ng-options="interval.set interval in vm.intervals"></select> </div> <ng-form name="intervalsform"> <div class="col-md-5 col-sm-9" ng-repeat="interval in vm.intervals" ng-show="vm.current == interval"> <ng-form na

elixir - List.flatten returns unexpected value -

version: 1.2.2, error: list.flatten ([a,[b]]) expected return ([a,b]). however, not work cases. example, list.flatten ([11, [[12], 13]]) returns '\v\f\r', when ([11,12,13]) expected. list.flatten([10]) returns '\n'. why happening , workaround, if any? as greggreg explained, reason why final list - [11,12,13] - looks '\v\f\r' instead, because contains printable acsii codepoints. hence output charlist. if need numbers list, instead of characters, here can do: iex> sample_list = [11,12,13] iex> [first | rest] = sample_list iex> [second | rest] = rest iex> [third | rest] = rest iex> first iex> 11 iex> second iex> 12 iex> third iex> 13 so basically, when taking out number list, being converted integer. since not list, cannot converted charlist.

java - How to write a Sql query in Jpa repository? -

i trying display set of records database based on user's search request.i dont think there predefined method in jpa repository this.hence write query in repository this. but during build, there exception stating "illegalargumentexception". can me write proper query? if there better way of doing it, let me know. the loanreport in argument object has user's search request public interface loanreportrepository extends jparepository<loanreport, long> , jpaspecificationexecutor<loanreport> { public final static string get_loan_reports = "select * loan_report product=loanreport.product"; @query(get_loan_reports) list<loanreport> findbypreference(final loanreport loanreport); } you can invoke jpql query this, public interface loanreportrepository extends jparepository<loanreport, long> , jpaspecificationexecutor<loanreport> { public final static string get_loan_reports = "select lr loa

grails - How to compare collection item using createCriteria? -

registration domain has collection of discounts. static hasmany = [ discounts: discount] i want extract registrations have particular discount applied. in following code want registrations collection has discount of id disid. how can achieve that? appreciate help! def disid = discount.get(1).id def regs = registration.createcriteria().list(){ eq('compositeevent', cod.compositeevent) } try this: def disid = discount.get(1).id def regs = registration.withcriteria() { discounts { eq 'id', disid } } see http://emmanuelrosa.com/articles/gorm-for-sqladdicts-where-clause/

How to create tree in php? -

i trying generate tree in php. here code it $company = array(); $i = 1; foreach($final_array3 $key => $value) { array_push($company, $value); $i++; } main array is array ( [ordinary income/expense] => array ( [0] => stdclass object ( [compid] => 1 [coaid] => 12877 [item] => ordinary income/expense [category] => 0 [auto] => 0 [jan_2015_budget] => 0 [feb_2015_budget] => 0 [mar_2015_budget] => 0 [apr_2015_budget] => 0 [sum(if(`trl`.`entrydate` between '2016-1-01' , '2016-02-26', `trl`.`itemvalue`, 0))] => 0 [istotal] => 0 [isparent] => 1 ) [1] => stdclass object

android - Can not resolve org.apache.http.entity.mime.MultipartEntity , HttpMultipartMode -

Image
snapshot of android studio screen snapshot of error messages inside android studio i followed suggestions mentioned here not resolve errors. how add external dependencies (jar file) android studio? please suggest missing here? 1 : 1 : 1) add line android tag of build.gradle file uselibrary 'org.apache.http.legacy' it after adding line : android { compilesdkversion 23 buildtoolsversion "23.0.2" uselibrary 'org.apache.http.legacy' please check link know why need add : https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client 2) if have downloaded jar skip step, have seen in screenshot have added build.gradle file. download file , extract jar it. http://www.java2s.com/code/jardownload/httpmime/httpmime-4.1.1.jar.zip and add library library folder. right click on jar file , click on option "add library..." this should work

python - How do I time script execution time in PyCharm without adding code every time? -

Image
currently add following lines around code: import time start_time = time.time() # code here print "time elapsed: {:.2f}s".format(time.time() - start_time) is possible achieve same without adding code every script want time? either adding in run configuration or using plugin? you can profile script hitting 'profile' button (it right of 'run', 'debug', , 'run coverage' buttons): among output, find name of script itself, , time needed run it. note: function available in pycharm professional 2017.1 linux platform; other installations might not provide profiler button.

Javascript won't read from "select" in a form -

i trying code read value based off selected item select list in form, says it's undefined. when give function value , tell return value, reads, won't take values form. the following code i'm using for form (in html): <form action="" id="orderform" name="orderform" onsubmit="return false;"> <select id="item" name='item' onchange="calculatecost()"> <option value="none">select item</option> <option value="candlestick">candlestick ($10)</option> <option value="bowl">bowl ($10)</option> <option value="burl_bowl">burl bowl ($20)</option> <option value="clock">clock ($15)</option> <option value="vase">vase ($5)</option> <option value="pen">pen ($2)</option> <option value="top">spinning top (

fortran - Check values of local variables in subroutines from outside -

how check values in fortran in matlab? example in little program under, why show c=0 in main when c=36 in subroutine testing ? how make c=36 in main program? can call on value c in sort of way? understand in main program variable c either undefined or has value 0 , there way save value of c in subroutine can use again in other subroutines, without calculating again? when program quite large handy check values go. program main use test implicit none integer :: a,b,c call testing(a,b) write(*,*)'test of c in main program',c end program main module test implicit none contains subroutine testing(a,b) integer :: a,b,c a=2 b=3 c=(a*b)**a write(*,*)'value of c in subroutine',c end subroutine testing end module test it important learn scope in programming languages. every name (identifier) has limited range of validity. if declare variable inside subroutine subroutine s integer :: end subroutine than i valid in subrouti

angularjs - Angular multi selector autocomplete . -

i want use angular multi selector autocomplete below working demo select 1 item. html <!doctype html> <html ng-app="plunker"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js"></script> <script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.4.0.js"></script> <script src="script.js"></script> <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"> </head> <body> <div class='container-fluid' ng-controller="typeaheadctrl"> <p></p> <b>selected user</b> enter name: <input type="text" ng-model="selected" typeahead="user (user.first + ' ' + user.last) user in users | filter:$viewvalue" /> </div> &

parsing - How can I read and parse CSV files in C++? -

i need load , use csv file data in c++. @ point can comma-delimited parser (ie don't worry escaping new lines , commas). main need line-by-line parser return vector next line each time method called. i found article looks quite promising: http://www.boost.org/doc/libs/1_35_0/libs/spirit/example/fundamental/list_parser.cpp i've never used boost's spirit, willing try it. if there isn't more straightforward solution i'm overlooking. if don't care escaping comma , newline, , can't embed comma , newline in quotes (if can't escape then...) 3 lines of code (ok 14 ->but 15 read whole file). std::vector<std::string> getnextlineandsplitintotokens(std::istream& str) { std::vector<std::string> result; std::string line; std::getline(str,line); std::stringstream linestream(line); std::string cell; while(std::getline(linestream,cell, ',')) {

html - Couldn't apply pagebreak -

i have list of months want show 1 per page while printing, thought of using page breaks issue couldn't apply page breaks. have tried putting <div class="pagebreak"></div> don't understand why isn't taking effect. here code: .pagebreak{ page-break-after: always; } <table class="fc-year-main-table fc-border-separate"> <tr> <td class="fc-year-month-border fc-first"></td> <td class="fc-year-monthly-td" style=""> <div class="fc-year-monthly-name fc-first"><a name="201401" data-year="2014" data-month="0" href="#">january</a></div> <div class="fc-row fc-widget-header"> <table class="fc-year-month-header"> <thead> <tr class="fc-year-week-days&qu

node.js - Tcp server not accepting connection after certain time -

i implementing tcp server in nodejs accepts connections gps devices , code being monitored forever. code not crashing after time server not accepting new connections. once restart server works fine again. don't have clue whats wrong. os ubuntu 14.04. appreciated. edit: time after server not accepting connections around 6 days. net.createserver(function(sock){ sock.on('data',function(data){ //converting data ascii. //parsing data,doing calculation //fetching user_id redis.(i device id gps device, there user_id associated device ids). //posting api using rest-client }); }); edit 2: there size of virtual memory. virtual memory size around 940mb. ? i've worked depeloping same type of system, question have nostalgia me. problem file descriptor: in unix , related computer operating systems, file descriptor (fd, less fildes) abstract indicator (handle) used access file or other input/output resource

php - Lighttpd caching shell_exec() output? -

i have php script runs external process. the external process outputs json string data system changes every , then. when run external process can see json string different every time run it. however, when call php script using ajax web browser json string not updated after first call php script. the time json string gets updated if refresh page or run external process manually while i'm inside website. why happening? does lighttpd cache output? edit: here's lighttpd config file content: server.modules = ( "mod_access", "mod_cgi", "mod_alias", "mod_compress", "mod_redirect", # "mod_rewrite", ) server.document-root = "/var/www" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username

c# - How to save dictionary data or array list data to playerprefs more effeciently? -

does know how save dictionary data or array list data playerprefs more efficiently? for example have class item: using unityengine; using system.collections; using system.collections.generic; // make class item public class item { public string itemname; public int itemid; public string itemdesc; public string itemicon; public gameobject itemmodel; public int itemtime; public int hightprice; public int stdprice; public int itemstock; public int harvest; public rawtree rawtree; public itemtype itemtype; public itemprod itemprod; public itemlocation itemlocation; public itemmerchant itemmerchant; public int lvlunlock; private string basename; public int spawnrate; public int minqtyspawnbuy; public int maxqtyspawnbuy; public int minqtyspawnsell; public int maxqtyspawnsell; public int itemexp; public enum itemtype { raw, admirable, valuable } public en

java - JMC doesn't show hot methods and packages -

Image
i'm trying find problem methods in server program jmc. when run server locally (on windows) , start flight recorder jmc - works fine. jmc shows data in code tab: hot methods, call tree, etc when trying profile server on remote platform (on linux) got empty window. start jfr on platform use this: /opt/java/java8/bin/jcmd 38390 vm.unlock_commercial_features /opt/java/java8/bin/jcmd 38390 jfr.start duration=10m compress=true filename=dxstress3_cross_try1.jfr settings=/opt/dxstress/settings_for_jmc.jfc i use oracle jdk 8u40 settings file settings_for_jmc.jfc exported jmc. contains execution_sample settings <event path="vm/prof/execution_sample"> <setting name="enabled">true</setting> <setting name="period">10 ms</setting> </event> is there option record or not such data? did miss? does work if don't specify custom settings file? if does, problem in .jfc-file. should on jdk 7/8 <ev