Posts

Showing posts from February, 2010

javascript - detect when user check or uncheck row on client side in primefaces datatable -

i use this row editing primefaces datatable , added multiple selection feature through this example then want detect on client side when user check or uncheck 1 row , number of rows checked @ each change i tried many ways firebug .... no result here 1 of essays (just testing): $(function(){ $('.ui-chkbox-box.ui-widget.ui-corner-all.ui-state-default').mousemove(function(){ if(('.ui-chkbox-box.ui-widget.ui-corner-all.ui-state-default').hasclass('ui-state-active')) alert('show'); }); do have idea if want know when user clicked checkbox located in datatable, can use code listen click , verify if checked or not: jquery(".ui-chkbox").click(function () { if(jquery(this).find("span").first().hasclass("ui-icon-check")) alert("unchecked"); else alert("checked&

what is purpose of order in mysql index -

i have table person in there field contact number want add indexing on contact number. in mysql purpose on ordering while indexing field. index contact_number ( contact_number asc)) right (mysql 5.7) asc/desc ignored mysql. http://dev.mysql.com/doc/refman/5.7/en/create-index.html an index_col_name specification can end asc or desc. these keywords permitted future extensions specifying ascending or descending index value storage. currently, parsed ignored; index values stored in ascending order. if implemented day might useful composite indices: http://explainextended.com/2009/04/27/descending-indexes/

sensor - Get Forward, Backward left right sesnor android -

i have small project, in need detect movement of device ex: have mobile held on table if move device left "like moving pc mouse", need know if move right, need know if move forward, , backward need know i searched , used many tutorials, tutorials gave me numbers changes lot when device not moved!! tried this if (event.sensor.gettype() == sensor.type_accelerometer){ mgravity = event.values.clone(); // shake detection float x = mgravity[0]; float y = mgravity[1]; float z = mgravity[2]; maccellast = maccelcurrent; maccelcurrent = (float)math.sqrt(x * x + y * y + z * z); float delta = maccelcurrent - maccellast; maccel = maccel * 0.9f + delta; // make higher or lower according how // motion want detect if(maccel > 0.0005){ ((textview)findviewbyid(r.id.xfield)).settext("x:" + string.valueof((x)));

find last merge done to a branch clearcase -

Image
i have 2 integration branch int_1 , int_2 . in time there has been merged int_1 int_2 . i want know when last time merge done on int_2 branch int_1 branch. there command that? if talking ucm integration branches, means have done delivered 1 integration stream of 1 ucm project integration stream of project. in case, go destination branch int_2 , , deliver.xxx activities. recent 1 tell when last deliver done. with base clearcase, isn't straightforward. need list last version of int_2, describing them in order merge hyperlink. see " how files , directories merged " here see, going recent oldest version of test , last merge main on version 3. describing version return: cleartool describe util.h@@/main/3version "util.h@@/main/3" . . . hyperlinks: merge@278@/vob_3 /vob_3/src/util.h@@/main/rel2_bugfix/1 -> /vob_3/src/util.h@@/main/3 you can try: cleartool describe -l util.h@@/main/3version

how to avoid #{...} replaced in custom maven archetype? -

here mybatis mapper.xml in custom maven archetype : ... <sql id="selectsql"> <where> <if test="id != null"> id = #{id} </if> <if test="parentid != null"> , parent_id = #{parentid} </if> ... mybatis symbol #{..} not maven archetype symbol ${...} , problem mapper.xml goes wrong in replacing #{...} #..., lose {} after new maven project custom archetype : <sql id="selectsql"> <where> <if test="id != null"> id = #id </if> <if test="parentid != null"> , parent_id = #parentid </if> i named 2 propertyies key follow , having nothing mybatis mapper xml : <requiredproperties> <requiredproperty key="projectname"> <defaultvalue>hntest</defaultvalue> </requiredproperty> <

asp.net mvc - Is MVC Framework ill-equipped for rich page design? -

just prefix question, i've decided take @ moving our works old legacy systems (40+ programs vb6, vba, vb.net c#.net) 2 separate systems using same dal (barcoding terminals , 1 web based system) spend day fixing crummy or non existant business logic in 15 year old vba programs. i've built entity framework model complete fluent validation , couldn't happier after using bit. the small team familiar webforms (but not very) last few days i've explored mvc razor. loving mvc framework until tried start trying add more functions onto same page , seemed arbitrarily hard replicate our recent system put in webform. before, eager load customer , it's child entities , bind single page customer access (which wanted), works okay , isn't slow. single page edit account details/contacts/emails/phones/jobs. all examples i've done , seen in mvc handle single update, single edit etc surely can't separate out every single action new view/page? can pass rich model th

javascript - Is there a big difference between reference and primitive types of boolean, number etc.? -

i rad, can create numbers as: var num = 10; and: var num = new number(10); may use first variation of declaration? yes, use first 1 always , returns primitive value. the second method looks returns primitive value doesn't. infact, returns object boxed primitive value. to explain this, lets declare 2 variables: var = 2; var b = new number(2); the expression a == b return true since javascript coerces b primitive value of 2. however, expression a === b return false types different: a being primitive , b being object.

Moveable Marker Android Mapbox 3.1.0 -

is there way update latlng of marker in mapbox-android 3.1.0? setlocation method private , marker class final. i'm trying avoid removing , readding marker mapview. option implement moveable marker , build mapbox. in upcoming 4.0.0 version of android mapbox sdk you'll able update marker position. pretty handy making cool animations marker. use can use 4.0.0-snapshot adding app build.gradle: repositories { ... maven { url "http://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { ... compile('com.mapbox.mapboxsdk:mapbox-android-sdk:4.0.0-snapshot@aar') { transitive = true } } source

python - special method for an object to override tuple expansion? -

i provide example of problem in question, in case title not clear enough. let's have class point(object) represent 2d coordinates. possible create "magic" method allow following? x, y = point maybe hacks iterators? just provide __iter__ method. class point(object): def __init__(self, x, y): self.x = x self.y = y def __iter__(self): yield self.x yield self.y p = point(1, 2) x, y = p assert (1, 2) == (x, y) be careful though. means class becomes safe use in many other places might have thrown type error. eg. def add_1(x): return x + 1 l = list(map(add_1, p)) # works, because point iterable ergo, may want provide method other __iter__ provides iterator. eg. class point(object): def __init__(self, x, y): self.x = x self.y = y def coords(self): yield self.x yield self.y p = point(1, 2) x, y = p.coords() assert (1, 2) == (x, y)

javascript - Difference between setAttribute and setAttributeNS(null, -

what difference between calling setattribute , setattributens null namespace parameter? also there issue using getattribute() , setattributens ? setattribute() dom 1 function. setattributens() dom 2 function resolves problem of conflicting tag or attribute names specifying xmlns namespace should apply tag/attribute in first argument. if attribute not have defined namespace prefix, first argument must null . use setattribute() consistency advisable stick setattributens() . see: https://developer.mozilla.org/en/docs/web/svg/namespaces_crash_course#scripting_in_namespaced_xml "however, note carefully: namespaces in xml 1.1 recommendation states namespace name attributes without prefix not have value. in other words, although attributes belong namespace of tag, not use tag's namespace name. instead, must use null namespace name unqualified (prefixless) attributes."

angularjs - Unit Test Angular Form Validation With $validators -

my webapp using angular 1.4.8 . have directive validates form input using $validators . input starts number 5, 6 , 9 , contains 8 numbers valid. angular .module('directive.customnumber', []) .directive('customnumber', customnumber); function customnumber() { var regexp = /^([569][0-9]{7})/; return { require: ['ngmodel', '^form'], link: function(scope, elm, attrs, ctrl) { ctrl.$validators.customnumber = function(modelvalue, viewvalue) { if(ctrl.$isempty(modelvalue)) { // consider empty models valid return true; } return regexp.test(viewvalue); }; } }; } usage: <form name="form"> <input type="text" name="myinput" custom-number> </form> now want write unit test directive using jasmine . test case: describe('directive', function()

Forked Grails VM exited with error -

i newbie work on grails, facing problem running odinweb project grails, using grails version 2.4.4 required odinweb. check link1 , link2 , found no luck. getting following runtime error. configuring classpath | compiling 10 source files | compiling 85 source files | packaging grails application..... | running grails application | enabling tomcat nio connector application context shutting down... application context shutdown. | server running. browse http://localhost:8090/odinweb | error forked grails vm exited error jdk verison 1.8.0_72 tomcat log in target/work/tomcat/logs/odinwe.log 2016-01-29 05:56:05,556 [localhost-startstop-1] info conf.bootstrap - (bootstrap.init): hostname=nlplight 2016-01-29 05:56:05,610 [localhost-startstop-1] error context.grailscontextloaderlistener - error initializing application: cannot invoke method geturi() on null object java.lang.nullpointerexception: cannot invoke method geturi() on null object @ org.codehaus.groovy.runtime.nul

tags - Adobe Analytics visitorID overwriting with s_vi value -

i need put default "s_vi" cookie value (for ex: [cs]v1|2b54ed85051d673d-400019096000016d[ce] ) s.visitorid variable, in cross-domain tracking scenario. unfortunately, seems var not accept hyphen ("-") values, , "s_vi" 1 including it. this reference: https://marketing.adobe.com/resources/help/en_us/sc/implement/visitorid.html how achieving overwriting so? thanks

openshift - Upgrading to Spring 4 -

i have spring 3 app deployed in openshift jboss eap6, , want upgrade ver 4. want upgrade java8. has here been successful in doing so? things must considered? how can make transition easier? i'm afraid of jar hell. solution question don't worry spring 4 100% compatible java 8 for jars need use bill of materials of spring 4 jars can obtained in link . use only these jars take care of dependencies issues. typically replace these jar files in web applications , try build , deploy application. got jar upgrade if runs without issues. 100% run without issues. then depending scenarios can apply spring-framework components.

php - How to use variable name to call a class? -

i want use variable (string value) call class. can ? search php reflectionclass not know how use method reflection result. this: foreach($menutypes $key => $type){ if($key != 'link'){ $class = new \reflectionclass('\app\models\\' . $key); //now $class reflectionclass object //example: $key "product" //i'm fail here , cannot call method get() of //the class product $data[strtolower($key) . '._items'] = $class->get(); } } without reflectionclass: $instance = new $classname(); with reflectionclass: use reflectionclass::newinstance() method : $instance = (new \reflectionclass($classname))->newinstance();

apache spark - "java.io.IOException: Class not found" on long running Streaming application -

i getting exception below on long running spark streaming application. exception occur after few minutes, may may not happen days. pretty consistent input data. i have seen this jira ticket don't think same issue. java.lang.illegalargumentexception , java.io.ioexception: class not found . my application streaming data , writing parquet using spark sql. i using spark 1.5.2. ideas? 28-01-2016 09:36:00 error jobscheduler:96 - error generating jobs time 1453973760000 ms java.io.ioexception: class not found @ com.esotericsoftware.reflectasm.shaded.org.objectweb.asm.classreader.a(unknown source) @ com.esotericsoftware.reflectasm.shaded.org.objectweb.asm.classreader.<init>(unknown source) @ org.apache.spark.util.closurecleaner$.getclassreader(closurecleaner.scala:40) @ org.apache.spark.util.closurecleaner$.getinnerclosureclasses(closurecleaner.scala:81) @ org.apache.spark.util.closurecleaner$.org$apache$spark$util$closurecle

python - how to include null results in Django ORM queries -

i using django orm system. have model of students each student has his/her prefered state of work. few students wanna work in "mahrashtra' state , others wanna work in other state. let's suppose wanna search students have prefered working state 'california'. following query result= students.object.filter(prefered_state='california') and of course desired result wanna include students in results haven't yet entered preferred state. means students state null or '' . isn't there way specify include null results criteria other using or statement. have many more criteria many other fields , don't wanna include or xyz null every field you use q . note answer takes account both null values , empty strings. from django.db.models import q states = ['california', ''] item.objects.filter(q(prefered_state__in=states)|q(prefered_state__isnull=true))

dll - Why doesn't Azure load properly the Interop? -

i have webapp on azure uses dll. library needs interop libraries x86 , x64. sometimes, @ restart of app (i suppose), app fails due exception: system.entrypointnotfoundexception: unable find entry point named 'sqlite3_config' in dll 'sqlite.interop.dll'. @ system.data.sqlite.unsafenativemethods.sqlite3_config_none(sqliteconfigopsenum op) @ system.data.sqlite.sqlite3.staticisinitialized() @ system.data.sqlite.sqlitelog.initialize() @ system.data.sqlite.sqliteconnection..ctor(string connectionstring, boolean parseviaframework) @ t_dox.webservice.sqlitedb.createconnection() @ webservice.cedb.connect() the sqlite used sqlcipher's one. missing here? don't understand why app stops working if don't make changes. the app web service (.asmx file) uses data access layer perform business logic. it under web site project, moved project, webapi\mvc project. routing bypasses extension, works before, simple web service call. the called web method initiali

ruby - How to Convert SQL Query to Rails Active Record Query -

query statement select * timetables user_id in (select user_id timetables group user_id having count(*) > 1) i don't want use find_by_sql. because find_by_sql returns array. i want use mixture of (.where, .group, .having...) help me... the problem approach result of subquery interpreted ruby, not mysql, drastically slowing down performance, here go: timetable.where(user_id: timetable.group(:user_id) .having('count(*) > 1') .pluck(:user_id)) #⇒ timetable::friendlyidactiverecordrelation < activerecord::relation

html - JavaScript IE read data from json file Access Denied -

i have problem code on ie browser , chrome in firefox works done. var currentpage = 1; var max = 0; var mylist = []; var links = []; $.ajax({ cache: false, type : 'get', crossdomain: true, contenttype: "application/json", datatype : 'json', url: 'list.json', success : function(data) { $.each(data, function(key, value){ if(window.location.href == value.link){ document.getelementbyid("count").innerhtml = value.page; currentpage = value.page; } document.getelementbyid("countall").innerhtml = value.page; mylist.push("<li><a href=" + value.link +"><b>"+value.page+"</b></a></li>"); max = value.page; links.push(value.link); }) $('

jQuery popup overlay - get content -

i'm using jquery popup overlay - http://www.jqueryscript.net/demo/responsive-accessible-jquery-modal-plugin-popup-overlay/ instead of embedding popup content in html , wanting page on click. have working content on click , issue have using 4 popup tablinks , , if click 1 , getting duplicate results. tried use .one click , slice neither worked. here html , script <li class="tablink rafters_btn_open"><a>rafter popup tab</a></li> <li class="tablink postseason_btn_open"><a>postseason popup tab</a></li> <li class="tablink alpha_btn_open"><a>alpha popup tab</a></li> <li class="tablink hof_btn_open"><a>hof popup tab</a></li> $('.tablink').one('click',function(){ $.get('http://mysite.page2.com', function (data) { $(data).find('#rafters').appendto('#rafters_btn'); $(data).find('#hof&

php - Issues with greediness in regex -

in php, i'm matching text here http://siba.thenetworksolution.it/allegati/h3018500d7fdde9aca05671f49f4f3746a69daf96.1329514.pdf.txt following regex: preg_match('#(.*(?s))(particella |particelle |p\.|part\.|p |part |mappale |mapp\.|mapp |n\.|\*)\s*(\d+[\d /\p{pd}]*)($|.{0,20}(?s)(graffati|particella |particelle |p\.|.*part\.|p |part |mappale |mapp\.|mapp |n\.|subalterno |subalterni |sub\.|s\.|sub |s |\bcat\b|\bcategoria\b|\brendita\b|\bvani\b|\bconsistenza\b|\br\.c\.\b))#i', $txt, $matches, preg_offset_capture, $offset) with offset = 1155 (that offset of word "foglio" in text). i expected them match 454 (that after offset) matches 57/1998 instead (that many rows after). after tests on regex101.com discovered issue carriage return between prefix particella , 454 , expected \s match line feeds. how can correct greediness regex match 454 ? solved. there space after particella in second group.

Splitting python class into multiple files -

i wondered if tell me possible divide following code 2 python classes placed in 2 different files: from gui import maingui gui import subwindowgui class myapp(qmainwindow, maingui.ui_mainwindow): def __init__(self, parent=none): qmainwindow.__init__(self, parent) self.setupui(self) # maingui contains qmdiarea in opens # subwindow calling function mysubwin(self) # qmdiarea name 'body' self.opensub.triggered.connect(self.mysubwin) def mysubwin(self): self.mysubwin = qwidget() self.mysubwin.setobjectname('module window') self.mytabs = qtabwidget(self.mysubwin) self.mytabs.setobjectname('mytabs') # call function display # gui elements inside 'module window' self.create_module_gui() self.body.addsubwindow(self.mysubwin) self.mysubwin.shownormal() def create_module_gui(self, *args): module_gui = subwindowgui

typescript - Angular 2 - Redirct a user to homepage if they try to access a logged in page. (I need it not to hit the components constructor) -

angular 2 - redirct user homepage if try access logged in page. (i need not hit components constructor) i'm using typescript , angular2. currently works if have no calls services in components constructor. currently i'm using doing (but keeps hitting internal components constructor still , causing errors): import {directive, attribute, elementref, dynamiccomponentloader} 'angular2/core'; import {router, routeroutlet, componentinstruction} 'angular2/router'; @directive({ selector: 'router-outlet' }) export class loggedinrouteroutlet extends routeroutlet { publicroutes: any; private parentrouter: router; constructor(_elementref: elementref, _loader: dynamiccomponentloader, _parentrouter: router, @attribute('name') nameattr: string) { super(_elementref, _loader, _parentrouter, nameattr); this.parentrouter = _parentrouter; this.publicroutes = { '/home': true }; } activate(instruction: compone

Spring Data JPA custom query with entity as a parameter doesn't work -

when use custom query entity parameter in spring data jpa exception: java.sql.sqlexception: no value specified parameter 1 here related entities. have 2 entities @onetoone relationship, below: car: @entity @table(name = "car") public class car { @id @generatedvalue(strategy = generationtype.identity) @column(name = "car_id") private long id; @onetoone(cascade = cascadetype.all) @joincolumn(name = "order_id", unique = true, nullable = true, insertable = true, updatable = true) private order order; ... } order: @entity @table(name = "order") public class order { @id @generatedvalue(strategy = generationtype.identity) @column(name = "order_id") private long id; @onetoone(mappedby="order") private car car; ... } i have spring data jpa repository created custom query find order car: public interface orderrepository extends crudrepository<order, long> { optional<order> findbycar(car car); }

SQL Query - Convert data values into attributes into antother table. -

i building report , stuck formulating query. bringing following data multiple tables after lot of joins. id type rating ----- ---- ------ id_r1 1 id_r1 b 3 id_r2 2 id_r2 b 1 id_r3 4 id_r3 b 4 id_r4 2 id_r4 b 3 id_r5 2 id_r5 b 3 what happening every id have rating type & b need transform above following id type_a_rating type_b_rating ----- ------------- ------------- id_r1 1 3 id_r2 3 1 id_r3 4 4 id_r4 2 3 id_r5 2 3 i have think group , different techniques far unable come solution. need f1! f1! p.s record end game getting count of (a,b) combinations type_a_rating type_b_rating count ------------- ------------- ----- 1 1 0 1 2 0 1 3 1 1

javascript - jQuery Ajax: VM845:1 Uncaught SyntaxError: Unexpected token < -

i have small issue. website has been working few month without issue. 2 errors in chrome browser: vm845:1 uncaught syntaxerror: unexpected token < and 2nd error 404 /engine_prodjson.php used in 1 of ajax requests. yeah, have managed track error $.ajax function is: var urlfetch = "/content/engine/engine_prodjson.php"; $.ajax({ type: 'post', url: urlfetch, datatype: 'json', cache: false, async: true, success: function(resp){ prodarr = resp; $('.search').prop('disabled', false); }, error: function(xhr, status, error) { var err = eval("(" + xhr.responsetext + ")"); console.log(err.message); } }); i note that, knowledge, neither function, nor engine_prodjson.php has been moved/changed in way. have triple checked via ftp file in fact in correct folder. have checked file permissions set 644. i have been wondering if hosting's fault has

c# - Why MouseLeftButtonUp Event not Fired in this case -

why mouseleftbuttonup event stackpanel not fired?? mouseleftbuttondown event happens not buttonup. <stackpanel x:name="close_btn" grid.row="1" grid.column="0" orientation="vertical" height="41" horizontalalignment="left" width="19" verticalalignment="top" > <button height="19" width="19" click="button_click"> <button.template> <controltemplate targettype="button"> <stackpanel> <image name="image1" source="..\..\images\ixs.png" stretch="fill" height="19" width="19" visibility="collapsed" /> <image name="image2" source="..\..\images\ixs-hover.png" stretch="fill" height="19" width="19" visibility="visible" />

r - Dplyr, filter and SE -

i have data frame 3 columns a, b, c , i'd build function keep rows column lower column (could column b or c) i know need use filter_ , se make possible dplyr , had @ vignette don't understand how works.' how transform function se function? df = data.frame(columna = 1:100, columnb = rnorm(100, 50, 10), columnc = rnorm(100, 50, 10)) fct = function(df,column_name){ df2 = df %>% filter(columna < column) return(df2) } transforming expression inside filter_ string 1 way it: fct = function(df, column_name){ df2 = df %>% filter_(paste("columna <", column_name)) return(df2) } nrow(fct(df, "columnb")) ## [1] 50

c# - Visual Studio 2015, entity framework and enable-migrations error -

as usual have strange problem in visual studio 2015 entity framework. i've created entity project 1 table , 1 context. when in package manager console tried enable migrations enable-migrations receive following error: type name 'microsoft.visualstudio.shell.package' ambiguous, 'microsoft.visualstudio.shell.package, microsoft.visualstudio.shell.14.0, version=14.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 'microsoft.visualstudio.shell.package, microsoft.visualstudio.shell.10.0, version=14.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a'. @ c:\program files (x86)\microsoft visual studio 14.0\common7\ide\extensions\34ki2dkf.cbd\modules\nuget\profile.ps1:126 char:5 + $service = [microsoft.visualstudio.shell.package]::getglobalservi ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : invalidargument: (:) [], runtimeexception + fullyqualifiede

selenium - When does Protractor throw 'unknown error: cannot determine loading status'..... exception -

can tell me when protractor throw 'unknown error: cannot determine loading status unknown error: unhandled inspector error: {"code":-32000,"message":"internal error: main world execution context not found."}' exception. i understand "unknown error" thrown wireprotocol , means application returned 4xx or 5xx status code. not sure " internal error: main world execution context not found. " means thanks in advance! conf.js exports.config = { framework: 'jasmine', allscriptstimeout: 600000, onprepare: function () { browser.ignoresynchronization = true; browser.manage().timeouts().pageloadtimeout(600000); require('jasmine-reporters'); var jreporter=new jasmine.junitxmlreporter(__dirname + '\\logs', true, true, undefined, true); jasmine.getenv().addreporter(jreporter); }, rootelement: 'body'

functional programming - What is the Swift equivalent of C#/.NET/LINQ's Enumerable.All method? -

i want function applies given function sequence , returns true iff given function returns true every element of sequence, enumerable.all c#/.net/linq world. there isn't built-in function this, can add own protocol extension method: extension sequencetype { func all(@noescape predicate: (self.generator.element) throws -> bool) rethrows -> bool { in self { if !(try predicate(i)) { return false } } return true } } and use on sequence like: let allpositive = [1, 2, 3].all { $0 > 0 }

bash - How to display column headers in 'ls -l' command in unix/linux? -

i want display column headers when type ls -l command in bash shell in unix/linux when type ls -ltr on command prompt following. -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample3 -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample1 what want know whether ls ' has options display column headers: file_permissions owner group size modified_time name -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample3 -r--r--r-- 2 makerpm root 1898 jan 28 14:52 sample1 no, there's no such option in ls. you can add like: alias ll="ls -l | sed '1ifile_permissions owner group size modified_time name'" then ll show result of ls -l header. doesn't because it's not aligned on columns ...

Regex is working on Regex101 but not inside Powershell -

i have text file: [tabs] mailboxsend=1 mailbox=8 users=6 documents_q=9 med_webservcalls_loa=3 fclmna=1 inczoomform=1 usersb=1 usersb_one=1 datapriv=1 med_webservcalls=2 tinvoices=1 porders=9 porderstotal=1 logpart=1 logcounters=1 partmsg=1 [external mail] send=y hostname=server domain=domain myemail=my@email.com myname=my test port=25 ssl=0 [search] suppliers=5,1 startbutton=1 ignore case=0 part=6,1 i'm trying capture text between [external mail] next [] brackets group, i have regex job , tested in regex101, after testing's found it's not working inside powershell: $text = get-content c:\text.txt $text -match '(?s)(?<=\[external mail\]).*?(?=\[.*?\])' or: $text | select-string '(?s)(?<=\[external mail\]).*?(?=\[.*?\])' nothing return do have idea i'm missing? thanks since trying multiline regex match need working against single multiline string. difference between 2 cases of regex101 , powershell. get-content returning

diff - how to end git difftool session (beyond compare )? -

i'm using command git difftool --tool=bc3 , git opens first file beyond compare , wait me close it, opens next file , go on , on again. how can force git close session? thanks. you need kill git process stop launching diffs. there several methods can use this. click x close shell window running git. hit control+c kill git process in shell running git. launch new shell, use ps find git's process id, use kill command terminate process. user@machine:~$ ps x | grep "git difftool" 23879 pts/0 s+ 0:00 git difftool 23935 pts/8 s+ 0:00 grep --color=auto git difftool user@machine:~$ kill -9 23879 see earlier question: how cancel external git diff?

css - display configurable products attributes below short description -

Image
please visit link: configurable product here can see color , charactar attributes options. i want display in 1 line below short description "color ": "choose option" , "charactar" : "choose option" should display in 1 line below short description : this view.phtml : <?php ?> <?php $_helper = $this->helper('catalog/output'); ?> <?php $pagelayout = str_replace(array('page/','.phtml'),'',mage::app()->getlayout()->getblock('root')->gettemplate()); ?> <?php $_product = $this->getproduct(); ?> <?php $setting = mage::helper('em0113settings'); ?> <script type="text/javascript"> var optionsprice = new product.optionsprice(<?php echo $this->getjsonconfig() ?>); </script> <div class="individual"> <div id="messages_product_view"><?ph