Posts

Showing posts from June, 2011

c++ - Requires 2 right clicks to switch context menus among items? -

code below #include <qtwidgets> #include <qglwidget> int main(int argc, char *argv[]) { qapplication a(argc, argv); qmainwindow w; w.setcentralwidget(new qglwidget(&w)); // w.setcentralwidget(new qwidget(&w)); qtreewidget* tree = new qtreewidget(&w); qtreewidgetitem* item0 = new qtreewidgetitem(tree, qstringlist("a")); qtreewidgetitem* item1 = new qtreewidgetitem(tree, qstringlist("b")); tree->setcontextmenupolicy(qt::customcontextmenu); qobject::connect(tree, &qtreeview::customcontextmenurequested, [](){ qmenu menu; menu.addaction("a"); menu.exec(qcursor::pos()); }); qdockwidget* dock = new qdockwidget("tree", &w); dock->setwidget(tree); w.adddockwidget(qt::leftdockwidgetarea, dock); w.show(); return a.exec(); } compile , run it. requires 2 right clicks switch context menus among items. however, if change qglwidget

javascript onsubmit and 2 functions error -

can please tell me going wrong? i trying create basic login page , opens when correct password written <html> <head> <script> function validateform() { var x=document.forms["myform"]["fname"].value; if (x==null || x=="") { alert("first name must filled out"); return false; } var x=document.forms["myform"]["fname2"].value; if (x==null || x=="") { alert("password must filled out"); return false; } } function isvalid(mynorm){ var password = mynorm.value; if (password == "hello_me") { return true; } else {alert('wrong password') return false; } } </script> </head> <body> <form name="myform" action="helloworld.html" onsubmit="return !!(validateform()& isvalid())" method="post"> login id: <input type="text" name="fname"> <br /> <br> password: <

jquery - InfoWindow not showing above Marker Google Maps JavaScript API v3 -

so have created jsfiddle demonstrating issue: http://jsfiddle.net/6vpc2/1/ hover on marker in jsfiddle see infowindow placement. i have googlemap "object" creates google maps. after creating google map so: var mapoptions = { zoom: 8, // initial zoom level when map loads (0-20) minzoom: 6, // minimum zoom level allowed (0-20) maxzoom: 17, // maximum soom level allowed (0-20) zoomcontrol: true, // set true if using zoomcontroloptions below, or false remove zoom controls. zoomcontroloptions: { style: google.maps.zoomcontrolstyle.default // change small force + , - buttons. }, //center: location, // centre map our coordinates variable maptypeid: google.maps.maptypeid.roadmap, // set type of map scrollwheel: false, // disable mouse scroll zooming (essential responsive sites!) // of below set true default, remove if set true: pancontrol: false, // set false disable maptypecontrol: false, // disable map/satellite swi

python - call Django view function from django HTML template -

i have simple upload function in python have put in views.py. def upload(): global original_img,img,img2,img3,image_path,old_label_image,photo,label,image_path,image,ax,fig print "upload" image_path=tkfiledialog.askopenfilename() image = image.open(image_path) original_img= image.copy() image.thumbnail((1000,625)) photo = imagetk.photoimage(image) label = label(image=photo) label.image = photo if old_label_image not none: old_label_image.destroy() old_label_image = label label.pack() i want function called onclick of button html template file(current.html) in django. <button> upload pc</button> how call view function on click of button in html? have make changes in urlconfs this? please help in html, can use javascript's onlick way: <input type="button" onclick="window.location.href='/upload/'"> </input> note: "/upload/" red

Expose mutable C++ object (float) to boost python -

i expose float object c++ code, boost python module. current attempt looks this: float timeinterval = 0.0f; ... boost_python_module(engine) { scope().attr("timeinterval") = object(ptr(&timeinterval)); ... } i found example here: https://wiki.python.org/moin/boost.python/howto#mutable_c.2b-.2b-_object however, appears used class instances , not primitives? i'm wondering if can expose primitive variable in similar manner , if so, how? tried see if def_readwrite available @ module level, , not.

twitter bootstrap - CSS not working in JSF 2.0 project -

Image
my jsf 2.0 web project isn't rendering graphics css. loads images cannot load background color or @ all. doing wrong here? css file contains code coloring , other things. using bootstrap. output page plain black , white. not see error messages in eclipse. <?xml version="1.0" encoding="utf-8"?> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <h:head> <f:facet name="meta-tags"> <meta content="text/html; charset=utf-8" http-equiv="content-type" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta name="

codeigniter - How do I Populate Multi Select drop dwon using php -

here listing cars.customers want compare car select drop down. person can select multiple cars. @ first time selecting 'audi' , saab' store data base next if came need populate saab , audi select how can using php <select name="cars" multiple> <option value="volvo">volvo</option> <option value="saab">saab</option> <option value="opel">opel</option> <option value="audi">audi</option> </select> here code <select id="cars" class="multiselect" multiple="multiple" name="cars[]"> <?php if($carslist->num_rows() >0) { foreach($carslist->result_array() $entry): ?> <option value="<?php echo($entry['id']); ?>" ><?php echo($entry['car_name']); ?></option> <?php

android - Rendering in openGL only after turning my screen off and then on -

the following problem reported on devices having ardeno gpu. devices having mali gpu, problem doesn't exist. the problem: i'm rendering textures , using render when dirty.the rendering of textures not happen , see black screen. however, if turn off screen, , turn on again, , request render (by glsurfaceview.requestrender();), renders textures properly. any ideas why behavior happening?

OpenSSL public key for Firefox extension signing -

i'm trying bring old extension made firefox 1.5 written in javascript. 1 of changes introduced in firefox 3.0 need extension updates secured via either https or pki. since can't use ssl solution on website, need use pki solution. so, first generating private , public keys. able create ca , client (code signing) certificates using openssl following this guide . so, how have 2 key , certificate pairs: ca.crt , ca.key , code.crt , code.key . now, have put public key install.rdf 's <em:updatekey> field. did command openssl -in code.key -outform der -pubout , copied resulting output (sans ^-----.* lines) install.rdf . now, public key generated in way base64-encoded , ends couple equals signs. haven't seen examples have these trailing characters. ok, or did pass wrong options openssl? aside this, using uhura sign update.rdf seems straight-forward, again there no trailing =='s, seems odd output got via openssl command above. any appreciated!

c# - Access to the path denied -

Image
i know question has been many times,but doesn't me tackle equation. i have folder shared respective users zipped when user calls service. access path \\ip\foldername denied . on research, found out several solutions issue, none worked. i tested trying zip files inside folder , able successfully. not know might issue! tried going bad way giving permission everyone folder (out of frustration though) , still not successful. my anonymous, asp.net impersonate , windows authentication enabled.i not know might issue. ps: know in identity iis accessing folder, can give permissions user. i can not main problem, following: could know in identity iis accessing folder, can give permissions user. you need check application pool assigned application in iis. go application pools section , there user listed:

multithreading - Thread Pool Class developement -

i run multithread application , want limit number of threads on machine code concept goes (it drft show major ideas behind) // list threads have class mythreadlist = list<tmycalcthread>; // pool class, check how many threads active // try start additions threads once nr. of running threads // below max_thread_value_running class mytheardpool = class threadlist : mythreadlist; stillrunningthreads : integer; startfromthreadid : integer; end; var athreadlist : mythreadlist; procedure mainform.callcreatethreadfunction( < thread params > ); begin // create not start here mythread := tmycalcthread.create ( < thread params > ); mythread.onterminate := what_to_do; // add threads list athreadlist.add(mythread); end; /// (a) procedure mainform.what_to_do ()

android - How to add selected spinner values dynamically in listview is in another activity -

how add selected spinner values dynamically in listview in activity. when have changed spinner value in second time,and open listview activity values replaced in listview not added. public class mainactivity extends activity implements onclicklistener { sharedpreferences sharedprefs; string sp_selected; spinner sp; string s1; string partname; string partname1; button parts_history; imageadapter image_adapter; private static final string[] paths = { "select choice", "type1", "type2", "type3", "type4" }; private static final int position = 0; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); this.requestwindowfeature(window.feature_no_title); setcontentview(r.layout.partsrepair); image_adapter = new imageadapter(this); sharedprefs = getsharedpreferences("preference", mode_private); gridview gridview = (gridview) findviewbyid(r.id.grid

javascript - Why my protocol handler registered cannot trigger chrome app's url_handlers directly? -

to launch chrome app, set url_handlers in manifest.json below: "url_handlers": { "view": { "matches": [ "http://test.view.com/start.html*" ], "title": "view" } } so when open link " http://test.view.com/start.html *", chrome app can started successfully. register protocol handler create own url schema below: var url = "http://test.songli.com/start.html?data=%s"; window.navigator.registerprotocolhandler("web+view", url, "test"); here comes question. when open link "web+view:data", browser can open " http://test.view.com/start.html?data=blahblah ". however, chrome app cannot started time. after refreshing page, app can opened. in fact, want open chrome app directly open link "web+view:data". there wrong in way?

angularjs ng-repeat inside ng-repeat,the inside array can't update -

i come china,my english poor,so demo .how can update array inside ng-repeat ? the html: <body ng-app="main" ng-controller="democtrl"> <table ng-table class="table"> <tr ng-repeat="user in users"> <td data-title="'name'">{{user.name}}</td> <td data-title="'age'">{{user.age}}</td> <td> {{user.spms|json}} <div ng-repeat="u in user.spms"> <span ng-bind="u"></span> <input type="text" ng-model="u" ng-change='updatearray($parent.$index, $index, u)'> </div> </td> </tr> </table> </body> the js: var app = angular.module('main', []). controller('democtrl', function($scope) { $scope.users = [{ name: "moroni", age: 50, spms: [

wordpress - Why does wpmu_new_user not fire inside of a plugin but does inside functions.php? -

i have project complete sites within wordpress multisite blog automatically add users corresponding sites (where plugin enabled) i hope worded correctly. the problem: wpmu_new_user hook not fire inside of plugin inside of functions.php this code: add_action( 'wpmu_new_user', 'register_hack_action', 10, 1 ); add_action( 'wpmu_activate_user', 'register_hack_action', 10, 1); function register_hack_action( $user_id ) { $this_id = get_current_blog_id(); if ( !defined('abspath') ) { // nothing } else { include_once( abspath . 'wp-admin/includes/plugin.php' ); } $blog_list = get_blog_list( 0, 'all' ); foreach ($blog_list $blog) { switch_to_blog($blog['blog_id']); if ( is_plugin_active( 'register-hack/register-hack.php' ) ) { // add user blog add_user_to_blog($blog['blog_id'], $user_id, 'subscriber'); } } } this works fine when add snippe

javascript - Setting default value in bootstrap datetimepicker results in NaN on popup -

i working on project using ruby + bootstrap framework, including bootstrap datetimepicker plugin. i have field in form thus: <div class='datetimepicker-input input-group' id='logged_at'> <input class='form-control' data-format='dd/mm/yyyy hh:mm a' name='logged_at' type='text' value='27/06/2014 05:08 pm'> <span class='input-group-addon'> <i class='fa fa-calendar'></i> </span> </input> </div> as can see, want datetimepicker use dd/mm/yyyy hh:mm a formatting, however, when enter default date , time in value attribute of <input> tag when generating form, , click on calendar icon pop picker, picker window gives me nan in heading , won't let me select date or time. if however, leave value attribute blank when generating form, popup works fine. i have noticed if type on default date in field, , swap month , day

java - JUnit test with Maven in a Jenkins plugin -

i have problem when tried run junit tests maven. jenkins plug-in wrote class test. example: have class consoleparser in package com.jenkins_plugin in folder src/main/java . junit test case consoleparsertest in package com.jenkins_plugin in folder src/test . running junit test added dependency in pom: <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.11</version> </dependency> </dependencies> and ran in cmd next command: mvn -dtest=consoleparsertest test the problem i've got following error: [error] failed execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 12:test (default-test) on project swatt_jenkins: no tests executed! (set - dfailifnotests=false ignore error.) -> [help 1] the full pom.xml is: <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlsche

javascript - How to add multiple event(mouseover/mouseout) into one selector -

if mouseover/mouseout fast more 1 time during animation times (here 900). button animating more 1 time; when stopped mouse activity. i want take 1 event animation during animation times .even when multiple event triggered. other way want if triggered multiple mouseover event during 900 terminate when triggered mouseout , vice-versa. $(document).ready(function () { $("button").mouseover(function () { $(this).css({ background: 'transparent', color: '#09f' }); $("button").animate({ width: "110%", }, 900); $(this).text("show more >"); }); $("button").mouseout(function () { $(this).css({ background: '#09f', color: '#fff' }); $("button").animate({ width: "100%", }, 900); $(this).text("show more"); }); }

post - Jinput not working for joomla -

i've been stuck on problem no clue why doesn't work. i'm using joomla 2.5 , building own component. i have 'books' , 'book' view. 'books' lists books database , 'book' add/edit book item. i'm trying pass value 'books' 'book' doesn't work. i've set input text value pass on. <input type="text" id="test" name="test" value="testvalue" /> views/books/tmpl/default.php <form action="<?php echo jroute::_('index.php?option=com_test'); ?>" method="post" name="adminform"> <table class="adminlist"> <thead><?php echo $this->loadtemplate('head');?></thead> <tfoot><?php echo $this->loadtemplate('foot');?></tfoot> <tbody><?php echo $this->loadtemplate('body');?></tbod

sql - Cumulative sum across two tables -

Image
i have 2 tables bill & payment. have show balance sheet these 2 tables. the data in tables are: tblbill tblpayment my current output is: the query i'm trying use is: select particulars,date,billamount,0'paidamount' tblbill union select particulars,date,0'billamount',paidamount tblpayment order date however, need output in format: is possible required format? there go: assuming there 1 transaction in day.... with tb1 (select date,particulars,billamount,0'paidamount' tblbill union select date,particulars,0'billamount',paidamount tblpayment ) select t1.particulars,t1.[date],t1.[billamount],t1.[paidamount],(sum(t2.billamount) - sum(t2.paidamount)) balance tb1 t1 inner join tb1 t2 on t1.[date] >= t2.[date] group t1.particulars,t1.[date],t1.[billamount],t1.[paidamount] order [date] in case of more 1 transactions in day.... with tb0

Why does jQuery's remove() method accept a selector? -

i noticed strange thing when using remove jquery. although jquery cleary states that: selector type: string selector expression filters set of matched elements removed. if try code: $element.remove('.k-grouping-header,.k-group-cell,.k-group-col,.k-grouping-row'); it won't work expected , have use $element.find('.k-grouping-header,.k-group-cell,.k-group-col,.k-grouping-row').remove(); did guys noticed or me doing wrong? jsfiddle: http://jsfiddle.net/yzfrt/ remove() take elements selected out of dom, whether pass argument or not. passing argument (selection) remove() filter elements match selection. presumably in first instance, have parent selected. remove() try remove element, since (probably) doesn't match .k-grouping-header,.k-group-cell,.k-group-col,.k-grouping-row stay is. your confusion comes not understanding difference between filtering , finding your second attempt correct. why allow selector @ all? ch

android - getTag = null pointer -

i keep getting null pointer part of code. private onclicklistener fbutton = new onclicklistener() { public void onclick(view v) { intent myintent = new intent(intent.action_view); int intid = (integer) v.gettag(); string finalurl = minfo.get(intid).final_url; myintent.setdata(uri.parse(finalurl)); startactivity(myintent); } }; it auto boxing/unboxing java feature. object casting object accessed retrieve int value, in case, trough integerinstance.intvalue() . if forgot set tag, returned value null, causing npe. you should check null values. int intid = (v.gettag() == null) ? -1 : (integer) v.gettag();

c# - Getting STA error when try to open OpenFileDialog box in Excel addin project -

Image
i have created excel addin project using visual studio insert data database. problem i'm unable open file upload box in this. getting following error. my code [obsoleteattribute()] [stathread] private void save(progressbarform pbar) { openfiledialog openfiledialog1 = new openfiledialog(); dialogresult result = openfiledialog1.showdialog(); if (result == dialogresult.ok) { //execute code i tried give attribute save method also giving me same error. can me out.? you need put [stathread] on main method, so: [stathread] static void main() { alternatively, start new thread saving, along these lines: var thread = new thread(mysavemethod); thread.setapartmentstate(apartmentstate.sta); thread.start(); thread.join();

c++ - how to solve name collision between Type Name, Function Name and parameter name? -

for example ,i has code: struct range { } struct fooobj { void range(int x, range** r){....} //!< ok. void foo(int x, range** r) {....} //!< not ok, why? } then fix function foo(int,range**) to: void foo(int x, struct range** r){...} the name collision has been solved,but why function range() has no name collision? btw, test code in vs2010. because ::foo::range hides ::range . @ easier example: int i; void foo() { int i; = 1; // local variable `i`. ::i = 1; // global variable `i`. } yes. q.e.d. to use struct range , use ::range . (and need remove void of void foo(.. . constructor. live example )

java - AspectJ Pointcut to exclude annotation -

i'm using spring aop logging. want create pointcut applies methods except have specific annotation, have no idea how go it. i've found how include methods annotation. sample annotation: package de.scrum_master.app; import java.lang.annotation.retention; import java.lang.annotation.retentionpolicy; @retention(retentionpolicy.runtime) public @interface nologging {} driver application: package de.scrum_master.app; public class application { public static void main(string[] args) throws exception { foo(); bar(); zot(); baz(); } @nologging public static void foo() {} public static void bar() {} @nologging public static void zot() {} public static void baz() {} } aspect in native aspectj syntax: package de.scrum_master.aspect; import de.scrum_master.app.nologging; public aspect myaspect { before() : execution(* *(..)) && !@annotation(nologging) { system.out.println(thisjoinpoint)

java - Related jobs in JSprit -

Image
is possible handle relations between jobs (in case services) in jsprit? for instance 1 job has start @ same time 1 or more other jobs. or 1 job must not start before end of job (normal sequence). if not, know other java libraries can handle such kind of restrictions? thank you! yes can handle such relations jsprit . bit of coding, - think - easy implement. illustrate it, prepared 5 examples based on vehicle routing problems (vrp) developed christofides-mingozzi-toth's* (first benchmarking instance). follow links behind individual headlines , code. note first activity in route marked triangle. labels denote jobids. noconstraints capacityconstraints job 13 , 21 in same route job 13 , 21 in same route , 21 before 13 job 13 , 21 in same route , 13 right after 21 visit http://jsprit.github.io/ , number of code examples , docs. *n. christofides, a. mingozzi, , p. toth. vehicle routing problem. in n. christofides, a. mingozzi, p. toth, , c. sand

C++ How to search files in a directory with certain name? -

i want find files start words. example abc , abc22424 , abc44646, abc353535 found on other question. please me. new in c++ #include <sys/types.h> #include <dirent.h> #include <errno.h> #include <vector> #include <string> #include <iostream> using namespace std; int getdir (string dir, vector<string> &files) { dir *dp; struct dirent *dirp; if((dp = opendir(dir.c_str())) == null) { cout << "error(" << errno << ") opening " << dir << endl; return errno; } while ((dirp = readdir(dp)) != null) files.push_back(string(dirp->d_name)); closedir(dp); return 0; } int main() { string dir = string("c:\\test"); vector<string> files = vector<string>(); getdir(dir,files); (unsigned int = 0;i < files.size();i++) cout << files[i] << endl; return 0; } now can file names. compa

testing - "No tests were found" for Android Studio -

i'm migrated eclipse. project keeps old structure below projroot\ src\ res\ ... androidmanifest.xml tests build.gradle here's content of build.gradle buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.12.+' } } apply plugin: 'android' dependencies { compile filetree(dir: 'libs', include: '*.jar') } android { compilesdkversion 19 buildtoolsversion '19.1.0' sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } androidtest.setroot('tests/src') debug.setroot('build-

javascript - jQuery UI sortable plus showing the ID and value -

i have list of items using sortable jquery.and each item has value (first,second,third) , each vaue id (1,2,3) i want when user moves first position third, id of first should 3 , of third should 1. , want id displayed next value example: first-1 second-2 third-3 ..after changing position: third-1 second-2 first-3 this javascript $(function () { $('#sortable').sortable({ //to prevent items moving around when draging containment: "parent", start: function (event, ui) { // initial position(index) of item var start_pos = ui.item.index(); ui.item.data('start_pos', start_pos); }, update: function (event, ui) { var index = ui.item.index(); var start_pos = ui.item.data('start_pos'); //update html of moved item current index $('#sortable li:nth-child(' + (index + 1) + ')').appendto(inde

java - [Android]Does Android System gerrentee the execution order of user defined Broadcast Receiver according to their android:priority? -

i designed component(packed in .jar file) contians service, , component contained in many applications(let's there might many applications have component in them, installed on 1 device). 1 instance of component expected exist on 1 deivce, means if component in 'a' application has been started, component in 'b' application not going started during 'a''s lifecycle. and maybe day, there new application installed on device, new version of component. want make sure started component newest version. so, want use broadcastreceiver , android:priority solution(the new version has higher priority). have make sure whether android system gerrentee sequence of excution(of broadcastreceiver.onreceive) according priority. any 1 give me hint? thankful:) in short: yes if use ordered broadcast. according android doc : ordered broadcasts (sent context.sendorderedbroadcast) delivered 1 receiver @ time. each receiver executes in turn, can propagate

android - How to prevent user back up PAID app? -

Image
i did below : back app , download play store , astro file manager: finally, can .apk file i think serious security problem , user can download paid app , share other, thank reading...

python - Get author_id from mail_message in openERP -

i'm trying field openerps mail_message model using python code executed in server action (so not module can debug! cannot print in state) (when new email being fetched) unable useful it. basicly when throwing me email, new task created openerp. newely created ticket not connected user send me mail. when new email fetched, server action gets executed. in table called mail_message can find email (+ author_id, + email, + res_id (which id of created task), therefore i'd fetch author_id table. (a query this: select author_id mail_message type = 'email' , res_id = '<task.id>' ) this current code #initialize object. 1 points mail_message model. mailmessage_obj = self.pool.get('mail.message') #created id in project_task myid = object.id #browse whole object id #message = mailmessage_obj.browse(cr,uid,[myid]) #select field messageids = mailmessage_obj.search(cr,uid,[('type','=','email'),('res_id','=

javascript - open jQuery UI dialog in front of edit/add dialog jqGrid -

i costomize edit-/add-dialog jqgrid. in "beforeshowform" event add buttons , fields. after pressing button there jqui dialog. can achieve opening of new jquery ui dialog, opens behind edit-/add-dialog jqgrid. how can make opening in front of edit-/add-dialog jqgrid? this code: var gridwidth = 1000, gridheight = 600; var pagersettings = { add: true, addtext: "Добавить", edit: true, edittext: "Редактировать", del: true, deltext: "Удалить", search: false, refresh: false }; var editsettings = { closeafteredit: true, }; var addsettings = { closeafteradd: true, closeonescape: true }; var searchsettings = deletesettings = { closeonescape: true }; function customform(form) { addselector(form); addbuttons(form); }; function addselector(form) { var namecolumnfield = $('#tr_weburi', form).show(); var tr = $('<tr />', { class: "formdata"

ios - Parse analytics not tracking custom events -

i using parse track custom events project. on first version had using: [pfanalytics trackevent: @"some event string"]; // works but decided put track more events, specially in-app purchases, created few more dictionary so: nsdictionary *dict = @{ @"item name" : itemname, @"price" : pricestring }; [pfanalytics trackevent:@"user purchase" dimensions:dict]; but somehow after shipping second version event doesn't show on dashboard, @"some event string" event does. there i'm doing wrong? i've checked keys , values dimensions dictionary appears ok, , i've tried "user purchase" event without dimensions, doesn't work either. it seems these code simple in config inside parse. can't explain why first event kept working, can pfanalytics class have bug? update: seems not familiar dashboard functionality , events being recorded. have go "custom breakdown"

performance testing - Jmeter: what happens when I stop the Script in between? -

i running scenario 200user in jmeter. login addtask logout in between stopped script. login(all 200 ran) add task(160ran) logout(80ran) all 80 logged out now. other 120. still loged in? it depends on application. usually, - login , close browser. webserver destroy session created in 30mins (as per config).

Does session_start in PHP prevent session expiration? -

i'm bewildered using session_start in php . should use in scripts both when user creates session , when resumes on consequent queries - or when creating? currently not call when session exists have found session expires unexpectedly fast: for example, public log of site see: srinivasvarma678 09:14:34 27-jun-14 i've logged in... ... srinivasvarma678 08:59:38 27-jun-14 i'm proud tell i've solved vowel count! i.e. user's last interaction site @ 8:59 , in 15 minutes needs log in again (though session.gc_maxlifetime=1440 ) could behavior explained fact not calling session_start every time? short answer: yes as stated here in php docs: session_start() creates session or resumes current 1 based on session identifier passed via or post request, or passed via cookie. so if want continue session, should use session_start() on every page...

Excel Vlookup error -

i have spreadsheet stored in shared location on website need vlookup on in order gather data. in order test have workbook stored in documents. have vba in workbook not affect data in question. the formula attempting is =vlookup("activated",$a4,4,true) what need pull data several columns in sheet have not used vlookup in long time trying start small. have formatted of cells general has not helped. i have tried =vlookup("activated",$a2:$a71,4,true) however #ref error putting following return activated know in principal formula correct =vlookup("activated",$a2:$a71,1,true) i have looked @ answer submitted in excel vlookup #ref error has not resulted in correction of errors any appreciated the third argument column want return... there 1 column in range $a2:$a71 can't put 4 argument... you need =vlookup("activated",$a2:$d71,4,true) also should use false last argument, can return next closest match, if use t

java - Which regular expression or pattern should be used to grab following contents from the text file? -

i need split text starting "9=dexter" upto next "9=dexter". how write pattern regex in java. using end of line doesnt works since phrase merged previouse phrase line. 9=dexter.1.19=14161035=x49=parfx56=c3_user134=847152=20130408-22:27:59.606262=aquru2d00000016268=1618279=2269=055=usd/jpy270=27426.89271=01023=35336=3346=0273=22:27:22.935279=0269=055=usd/jpy270=27386.32271=460000001023=489336=3346=1273=22:27:22.9358722=0279=2269=055=usd/jpy270=27388.25271=01023=472336=3346=0273=22:27:22.935279=0269=055=usd/jpy270=27429.08271=440000001023=7336=3346=1273=22:27:22.9358722=0279=0269=055=usd/jpy270=27410.08271=440000001023=233336=3346=1273=22:27:22.9368722=0279=2269=055=usd/jpy270=27375.1271=01023=635336=3346=0273=22:27:23.013279=0269=0279=2269=055=usd/jpy270=27429.01271=01023=9336=3346=0273=22:27:23.015279=0269=055=usd/jpy270=27377.79271=410000001023=599336=3346=1273=22:27:23.0158722=0279=2269=055=usd/jpy270=27372.1271=01023=679336=3346=0273=22:27:23.019279=0269=055