Posts

Showing posts from February, 2014

c# - T-SQL Find when a amount has reached a set value -

i have table data like: id amount status 1 15.00 paid 2 3.00 paid 3 10.00 awaiting 4 12.00 awaiting the system looks @ table see if customer has paid enough subscription. uses table record payments. once day need see if customer has met requirement. the solution looks nothing above table more complex, issue remain same , can broken down this. i need find way add amounts up, when amount goes on 20, change data in table follows: id amount status 1 15.00 paid 2 3.00 paid 3 2.00 paid <= customer has reached payment level 4 12.00 cancelled <= subsequent payment cancelled 5 8.00 bforward <= money brought forward currently using cursor, performance bad, expected. does know of better way? generates desired results. not sure why want update original data (assuming transnational data) declare @table table (id int,amount money,status varchar(50)) insert @table values (1,15.00,'p...

python - Pycharm import RuntimeWarning after updating to 2016.2 -

after updating new version 2016.2, getting runtimewarning: parent module 'tests' not found while handling absolute import import unittest runtimewarning: parent module 'tests' not found while handling absolute import import datetime dt 'tests' package inside main app package, , receive these warnings when try execute unit tests inside folder. issue came after updating 2016.2. besides warnings, remaining code works fine. edit: known issue - https://youtrack.jetbrains.com/issue/py-20171 . suggesting replace utrunner.py in pycharm installation folder. this known issue introduced 2016.2 release. progress can followed on jetbrains website here . according page due fixed in 2017.1 release. can follow utrunner.py workaround others have mentioned in meantime - copy of file attached linked ticket.

use --login-path=local in perl DBD::mysql -

mysql supports passwordless login using stored local authentication credentials in file named .mylogin.cnf (see here more details). for example: mysql --login-path=local my questions is: how in perl using dbd::mysql? dbd::mysql uses mysql c api, doesn't appear support login paths. alternative, can use option file , mysql_read_default_file , mysql_read_default_group options in connect call: use strict; use warnings 'all'; use dbi; $dsn = 'dbi:mysql:' . ';mysql_read_default_group=local' . ';mysql_read_default_file=/path/to/config'; $dbh = dbi->connect($dsn, undef, undef, { printerror => 0, raiseerror => 1 }); your option file should this: [local] host = localhost database = foo user = myuser password = mypassword [remote] host = remote.example.com database = foo user = myuser password = mypassword note unlike .mylogin.cnf (the file used --login-path ), regular opti...

cordova - Phonegap app with CORS request via HTTPS using self-signed certificate -

i developing phonegap application, consumes web service via ajax calls. service running on https using self-signed ssl certificate. tried edit config.xml in different ways, using cordova-plugin-whitelist v1.2.1 access origin="*" and allow-intent href="http://*/*" allow-intent href="https://*/*" allow-navigation href="http://*/*" allow-navigation href="https://*/*" after digging here, found out, usage of self-signed certificates in phonegap app may lead ssl error, not shown when app running, resulting in unavailability perform ajax calls (though on android, surprisingly, works, problem exists on ios , wp8/10 devices). read overriding "onsslerror" procedures in application sources, , doing made application work, have upload app stores, meaning can not use workaround. on other hand trying evade necessity issue authorized ssl cert because costs. decided manually install certificate on test devices pri...

Copying from non-filtered rows to filtered-rows in excel -

i have number of rows in 1 worksheet doesn't have filtered data data visible. have worksheet containing rows filtered applied on it. when trying copy non-filtered worksheet filtered worksheet, data pasted non-visible cells in filtered worksheet. i have tried using goto special , visible cells no success. 1) copy cells want pasted. 2) highlight range want paste in 3) go home ribbon, editing box, find & select. 4) choose option - go special 5) bottom right of box choose visible cells only. 6) paste. this should paste visible cells , don't have run code macro.

sql server - Filling in missing ranges in a set -

this question on filing missing ranges of data. specifically, have result set each row contains startdate , enddate value. let's have: start end 1/15 1/20 1/12 3/15 i need query produces adds following row data: 1/21 2/11 most other related questions filling gaps know set (like list of dates). case i'm looking start/end of missing data. assuming meant write 1/21 instead of 2/21, here's way it: with dates ( select '2016-01-15' dtstart, '2016-01-20' dtend union select '2016-02-12', '2016-03-15' union select '2016-03-21', '2016-04-11' ), calcs ( select dateadd(day, 1, dtend) rangestart, (select dateadd(day, -1, min(dtstart)) dates d2 d2.dtstart > d.dtend) rangeend dates d ) select * calcs c c.rangeend >= c.rangestart the table dates 3 rows of sample dates. in the calcs table, rangestart column next day after each dtend . ra...

c# - Is there a way to determine if the default signature is used in a mail in Outlook? -

i developing add-in outlook 2010. there way detect if default signature used in email? i know there bookmark in outlook called "_mailautosig". possible find bookmark in mailbody , read it? compare text default signature text. thank or hint in advance!

javascript - Change background url of div via HTML tag -

i have div (css - height: 250px, width: 70%) , have set background via css. want change background onhover. that's simple, know. want sources of backgrounds html tag. ex.: <div class="somediv" data-imgbefore="img1.png" data-imgafter="img2.png"></div> can me please? if you're not using jquery can achieve desired effect using basic event listeners . https://jsfiddle.net/gnu9utos/3/ // first element we'll interacting var element = document.queryselector('.somediv'); // assuming managed element document if(element) { var before = element.getattribute('data-imgbefore'); var after = element.getattribute('data-imgafter'); if(before && after) { element.style.background = 'url(' + before + ')'; // set initital state element.addeventlistener('mouseover', function(event) { element.style.background = 'url(' + after +...

material design - badge attribute data-badge-caption in materialize css not working? -

<span class="new badge" data-badge-caption="custom caption">4</span> this still getting me "4 new" instead of "4 custom caption". i'm using materialize version 0.97.6 find fiddle https://jsfiddle.net/x8w11aa0/ did load materialize.js file? it seems working me here: https://jsfiddle.net/xpoh33m6/1/ using same code you: <nav> <span class="new badge" data-badge-caption="custom caption">4</span> </nav> edit: code working v0.97.7 not v0.97.6 (this feature possibly introduced in v0.97.7 )

c# - deleting selected row from the gridview using dropdown list -

i using gridview , in gridview im using dropdown list. <div class="container" style="padding-right: 15px; padding-left: 15px; margin-top:auto"> <br /><br /><br /> <asp:gridview id="grduser" runat="server" allowpaging="true" allowsorting="true" captionalign="left" onpageindexchanging="grduser_pageindexchanging" onsorting="grduser_sorting" pagesize="5" cssclass="table table-hover table-striped table-responsive"> <alternatingrowstyle backcolor="#9999ff" /> <headerstyle backcolor="#009933" font-bold="true" font-size="medium" horizontalalign="center" verticalalign="middle" /> <pagersettings firstpagetext="first" mode="numericfirstlast" lastpagetext="last" pagebuttoncount="4" nextpagetext="" /...

Join Query for Count in mysql statement -

sql fiddle i have 3 db tables , i'd select 10 used tags song_tag table, can sql query below select `tag_id`, count(`tag_id`) `value_occurrence` `song_tag` group `tag_id` order `value_occurrence` desc limit 10; how tag name value tags table in same query? possible? have set fiddle dummy data , 3 tables needed.(link @ top of post). this used in wordpress wpdb query. don't think there else add configuration setup, languages etc. you need join tags table result. like: select s.tag_id, count(s.tag_id) value_occurrence, t.name song_tag s left join tags t on s.tag_id = t.id group s.tag_id order value_occurrence desc limit 10;

javascript - Paypal Express Checkout with AngularJS -

has had success integrating paypal express checkout api angularjs web app? have tried adapt "in-context" integration steps angular site; however, works once. my scenario this: i have paypal button on page clicking paypal button calls paypal.checkout.initxo() , , makes server-side call generate express checkout token when call returns, pass token paypal.checkout.startflow(tokenfromserver) the paypal api creates popup , collects paypal account info the browser gets navigated confirm page based on set server-side when generated express checkout token. as said above, works fine once; paypal api navigates browser confirmation page expect. however, subsequent attempts use express checkout api don't navigate browser after finishing paypal popup window. refreshing browser allows me use express checkout again, once. i'm not seeing errors in javascript console. in meantime i've added ui.router state start point of "purchase" workflow: ...

javascript - Redux Dev Tools not working for large action payload -

update: i've narrowed down issue quite bit first post. please see latest update. problem appears to size or complexity of action payload rather being because action invoked following async call. i'm working on react/redux application , having problem using time travel feature in redux dev tools chrome extension. when replay application in slider monitor first async call webapi action not replay. synchronous actions , async network calls except first work fine. first doesn't render. i've tried using redux-thunk async, have tried redux-saga (the current configuration). im running application in webpack-dev-server the application working function (all code in typescript) i've tried kinds of configuration changes, nothing seems have effect. ideas appreciated. heres configurestore file function configurestore() { const sagamiddleware = createsagamiddleware() const store = createstore(rootreducer, compose( applymiddleware(invariant(), sagamiddleware,...

html5 - How to design my all records? -

i retrieve image , display view.but don't know popup images when hover images.i tried every-time image pop @ once hover @ once.so how divided each image different div's can individually make them pop when hover.following view <?php include('inc/header.php');?> <div class="main"> <?php foreach ($view $row) { echo "<img src='".base_url()."images/".$row->image."'>" ; }//end each ?> </div> <?php include('inc/footer.php');?> and when add divs , css <?php include('inc/header.php');?> <div class="main"> <div id="thumbwrap"> <a class="thumb" href="#"><?php echo "<img src='".base_url()."images/".$view->image."'>"; }//end each ?> <span><?php forea...

excel - Error when setting workbook variable - 2147352565 -

i have simple code runs upon initialization of userform sets few workbook , worksheet variables can used throughout rest of modules, , references can changed in 1 place if file moves. migrated workbooks desktop separate server/drive, , accordingly updated file pathways; however, when try run code message: "run-time error '-2147352565 (8002000b)': can't move focus control because invisible, not enabled, or of type not accept focus." this error occurs on line set reportwkbk = workbooks("n:\ rest of file pathway here\quart_template.xlsm") is there can happening on server/drive causing issue? if so, there can fix it? work other excel workbooks saved in same location seem have no issue being referenced, though references in workbook itself, not through visual basic. the subscript out of range error occurs because excel workbook being referenced not open (or opening) in the same instance of excel. can reproduce error creating 2 workbo...

Doxygen-produced PDF - change url color? -

i’m using doxygen 1.8.10 (on windows) generate latex files, , miktex 2.9 generate pdf. pdf functional, not pretty. i’ve figured out how customize title page (i added graphics , non-default text) , how images pdf. but... how change styling things such color of urls (which text in doxygen comments, , doxygen turns them \href items)? **** believe need change in hyperref package’s config or doxygen writes .tex files, i’m not sure approach right, nor how either one... i’ve created custom_doxygen.sty file, , assigned latex_extra_stylesheet. assume it’s being picked doxygen because doxygen picking custom latex_header file, in same directory custom_doxygen.sty file. don’t know put custom_doxygen.sty file? if run default (that is, no latex_extra_stylesheet), following code gets written refman.tex file: % hyperlinks (required, should loaded last) \usepackage{ifpdf} \ifpdf \usepackage[pdftex,pagebackref=true]{hyperref} \else \usepackage[ps2pdf,pagebackref=true]{hyperref} \fi \hy...

excel - VBA code to change file format of multiple files in a folder -

the following code below changes file format of multiple files saved .xml .xlsx files. opens files in specific folder , "saves as" .xlsx . don't know how make run on files in target folder. of pointing 1st file in folder. sub m_convertformat() ' ' m_convertformat macro ' ' dim wb workbook dim sht worksheet dim mypath string dim myfile string dim myextension string dim fldrpicker filedialog 'optimize macro speed application.screenupdating = false application.enableevents = false application.calculation = xlcalculationmanual 'retrieve target folder path user set fldrpicker = application.filedialog(msofiledialogfolderpicker) fldrpicker .title = "select target folder" .allowmultiselect = false if .show <> -1 goto nextcode mypath = .selecteditems(1) & "\" end 'in case of cancel nextcode: mypath = mypath if mypath = "" goto resetsettings 'target file extension (must include wi...

function - MS Excel: List all cell values that meet a certain criteria -

i have few worksheets transaction numbers refer each other. need formula lists, each transaction, other transactions relate it. each transaction number has four-letter code (for instance expe expenses, trav travel, etc.) , three-digit number. transaction identifier, , each transaction has unique identifier, ex. expe-001, trav-010, etc. each transaction can connected other transactions. so, instance, if expense related travel, expe-001 connected trav-010. my data set tables below. related transactions column list transactions specific transaction related to, , other transaction #s column excel enter other transactions specific 1 related. cells in other transaction #s column need excel autopopulate me. in expenses worksheet, trans. # date cost related transactions other transaction #s expe-001 2016-07-10 $1.12 trav-010 ____, ____, ____ expe-002 2016-07-10 $18.41 trav-010 ____, ____, ____ expe-003 2016-07-10 $7.80 trav-...

javascript - How to inject 2 different instances of a module in AngularJs -

say have crudservice.js file: crudservice.module('genericcrudservice', ['$http', '$log', 'config', function ($http, $log, config) { .... return { setsomeattribute: function(m) { // set attribute } } }]); and have module need differently configured instances of crud service: module.factory('task', ['genericcrudservice','genericcrudservice', function (service, actionservice) { ... return { init: function(p) { service.setsomeattribute('a'); actionservice.setsomeattribute('b'); } } }]); but noticed when trying use service variable, attribute set 'a'. doing wrong? angular services are singletons cached on first injection: all services in angular singletons. means injector uses each recipe @ once create object. injector caches reference fu...

PHP mysqli get_result() returns false -

when using get_result() on statement returns false instead of valid object. function getgames() { $ret = array(); $stmt = db::getconnection()->prepare("select * games order position desc"); $stmt->execute(); var_dump($stmt); $result = $stmt->get_result(); while ($row = $result->fetch_assoc()) { echo "read 1 entry"; } return $ret; } the listed var_dump returns message can't extract information form: object(mysqli_stmt)#3 (10) { ["affected_rows"]=> int(-1) ["insert_id"]=> int(0) ["num_rows"]=> int(0) ["param_count"]=> int(0) ["field_count"]=> int(5) ["errno"]=> int(2006) ["error"]=> string(26) "mysql server has gone away" ["error_list"]=> array(1) { [0]=> array(3) { ["errno"]=> int(2006) ["sqlstate"]=> string(5) "hy000" ["error"]=> string(2...

datastax - NO_AGENT_DETECTED opscenter -

i have installed dse 5.0.1 , opscenter on ec2 instance. plan use opscenter/lifecycle manager provision additional nodes on ec2. i can see opscenter gui , can connect cluster using cqlsh. however, when check agents view, error - http://imgur.com/aiqwb7u i installed datastax agent manually , i've opened ports on ec2 instance. on clicking agent, following status. 127.0.0.1 agent status { "rack": "rack1", "agent_status": { "storage_cassandra": { "updated_at": null, "last_up": 0, "status": "unknown" }, "last_seen": null, "version": null, "condition": "no_agent_detected", "install_status": { "error-message": null, "state": null }, "jmx": { "updated_at": null, "last_up": 0, "status": "unknown" ...

node.js - unable to complete promises due to out of memory -

i have script scrape ~1000 webpages. i'm using promise.all fire them together, , returns when pages done: promise.all(urls.map(url => scrap(url))) .then(results => console.log('all done!', results)); this sweet , correct, except 1 thing - machine goes out of memory because of concurrent requests. i'm use jsdom scrapping, takes few gb of mem, understandable considering instantiates hundreds of window . i have idea fix don't it. is, change control flow not use promise.all, chain promises: let results = {}; urls.reduce((prev, cur) => prev .then(() => scrap(cur)) .then(result => results[cur] = result) // ^ not nice. , promise.resolve()) .then(() => console.log('all done!', results)); this not promise.all... not performant it's chained, , returned values have stored later processing. any suggestions? should improve control flow or should improve mem usage in scrap(), or there way let nod...

java - SQLIntegrityConstraintViolationException, -

im trying create basic program can add , delete data within java derby database. problem throws exception 'the statement aborted because have caused duplicate key value in unique or primary key constraint or unique index identified 'sql160724181654400' defined on 'contacts_list'. ' main objective add strings of text within 2 jtextfields , import database has 2 colums. not understand problem though. try { string writestring = "insert contacts_list(name, number) values(?,?)"; preparedstatement pst = connection.preparestatement(writestring); pst.setstring(1, namef.gettext()); pst.setstring(2, numberl.gettext()); pst.execute(); showmessagedialog(this, " contact's added! "); namef.settext(" "); numberf.settext(" "); pst.c...

c# - MVC Intermediate page between redirecting to another long load time page -

how using mvc c# (without use of js or jquery) can send user /home/stasis load loader image (already implemented using css), , send them final url (which has long load time, , users end clicking multiple times - not helping themselves) the problem use of js , jquery won't work, needs work in-app webview (which doesn't support either js or jquery). go /home/index click on link take me /home/stasis load, automatically begin loading final url lets google.com example. without javascript, have hope browser , server right thing: the browser display entity content when server returns 307 redirect. the server not return partial entity while long-running request pending. in other words. long-running request should return entity data in final second request. the browser won't clear screen until first bytes of next entity have arrived. assuming browser , server behave this, mvc doesn't offer easy way it. need to: create new class derived actionresul...

java - Failed to parse asynchronously multiple XML documents using aalto -

i'm trying parse xml message coming out tcp socket using aalto-xml https://github.com/fasterxml/aalto-xml this xml i'm trying parse: <?xml version=\"1.0\" encoding=\"utf-8\"?> <employee> <id>1</id> <name>alba</name> <salary>100</salary> </employee> the first xml message parsed successfully, on 2nd 1 throws exception. here parse method in class define class member: private asyncxmlstreamreader<asyncbytearrayfeeder> parser = new inputfactoryimpl().createasyncforbytearray(); parse method: try { parser.getinputfeeder().feedinput(buffer, 0, buffer.length); int type = 0; //keep looping till event complete while(!parser.getinputfeeder().needmoreinput()) { type = parser.next(); //handle parser event , extract parsed data switch (type) { case xmlevent.start_document: ...

c# - WCF Web Service Windows Form Interaction -

what achieve have windows form application host application, following: when user makes request service, user supplied data service , @ same time response sent server host application(for example change label text "done"). client -> service -> "host" i have tried creating wcf service library, referencing form application , form1 frm = new form1(); frm.label1text = "done"; label1text property of label1 . by had no success. p.s. open suggestions such scenario.

Unable to create VM with Windows Server 2016 Core with Containers Tech Preview 5 in Azure Portal -

i trying create vm in azure portal image "windows server 2016 core containers tech preview 5". selected resource manage , entered name , password. on location drop down shows error message "the selected image not valid specified location. select different location" tried locations available in drop down no luck. same error message shown. missing anything? regards luqman had error too. sure user logged in azure portal create vm registered user of subscription: in portal, click "subscriptions", select subscription (i.e. "visual studio enterprise") - new window opens - click on access-symbol (icon 2 users) in upper right corner - window "users" opens. check if user listed, add, if not. hope, helps. regards, rainer

angular - Angular2 modify constant data returned from service -

my problem: want have default data in separate file can call reset default value if want to, const data updated. i hardcode value straight in constructor, block me using same "blank state" across different module. flow: data in const variable exported export const const_data: constdatastructure { item1: 'basic string 1', item2: 'basic string 2' item3: 'basic string 3' } service return promise of data. import { const_data } './data.blank'; @injectable() export class dataservice { getdefaultvalue() { return promise.resolve(const_data) } } set service in private item inside constructor. export class app implements oninit { defaultdata: constdatastructure; constructor(private dataservice: dataservice) {} ngoninit() { this.resetdefaultdata(); } resetdefaultdata() { this.dataservice.getdefaultvalue().the...

c# - ECommerce Add Checkout Step -

i trying add step kentico 9 e-commerce checkout process . went pages > special pages > checkout , added new checkout page. added new web part kentico called entityuse code. when add step, error: message: unable cast object of type 'asp.cmsmodules_ecommerce_controls_shoppingcart_shoppingcartnonprofit_ascx' type 'cms.portalcontrols.cmsabstractwebpart'. here code: public partial class cmsmodules_ecommerce_controls_shoppingcart_shoppingcartnonprofit : shoppingcartstep { #region "viewstate constants" private const string shipping_option_id = "ordershippingoptionid"; private const string payment_option_id = "orderpaymenoptionid"; private const string federal_tax_id = "federaltaxid"; #endregion /// <summary> /// on page load. /// </summary> /// <param name="sender">sender.</param> /// <param name="e">event arguments.</param> protected vo...

hadoop - Apache Spark on EMR 10 node cluster for 150TB of data not completing -

i have s3 bucket, taking data , saving hdfs on different emr cluster. read these stored files stored on hdfs apache spark , perform joins , data filtering, save resultant dataset of around 150tb in csv format on hdfs. operation taking forever. using 64 executor, executor memory of 120gb , driver memory of 100gb. using databricks saving data in csv. rest of hadoop setting of emr cluster on spark running default. while running spark-submit gets following error: error yarnscheduler: lost executor 5 on ip-xx-xx-xx.ec2.internal: container marked failed: container_14687884542720_0157_01_000006 on host: ip-xx-xx-xx.ec2.internal. exit status: 143. diagnostics: container killed on request. exit code 143 container exited non-zero exit code 143 killed external signal kindly point me in right direction, fix this

jquery - CakePHP Return Array From Ajax Post Call -

i know there ton of other 'duplicate' questions out there, regarding topic. i'm still stuck. i'm trying console log array passed php through ajax. in cakephp 2.x: in view: <button class="quarter q1" value="1" value>quarter 1</button> <button class="quarter q2" value="2">quarter 2</button> <button class="quarter q3" value="3">quarter 3</button> <button class="quarter q4" value="4">quarter 4</button> <script type="text/javascript"> jquery(document).ready(function($){ $('.quarter').click(function(e){ e.preventdefault(); var quarter_val = this.value; $.ajax({ url: "/rep/testqueue", type: "post", data: {quarter_val:quarter_val}, success: function(data) { var months = <?php echo json_encode($months);...

javascript - CSS flip animation? -

i have simple html form asking general information button @ bottom labeled "next". once button pressed, have jquery triggered cause "card flip" animation. reveal additional questions on "back" side of flip, containing "submit" button @ bottom of side. need way create blank page on side, can enter additional input fields. what easiest way remove input fields on front side of form, can create additional questions on side of form? $(document).ready(function() { $("input[name='next']").on("click", function() { // console.log( "the button worked!" ); $(".form").css("transform", "rotatey(180deg)"); }) }); /*css form*/ .form { transform-style: preserve-3d; -webkit-transition-duration: 2s; -moz-transition-duration: 2s; -o-transition-duration: 2s; transition-duration: 2s; } .flex { display: flex; flex-direction: column; flex-wrap...

javascript - How do I use ChartJS with a background color in the space between two line charts? -

Image
i create chart similar following chartjs. it's 2 line charts space between 2 lines filled in. the x axis time of each sample, y axis min & max temperature recorded @ time. the area between min/max bit needs filled in, outside min/max lines should remain unfilled. is possible chartjs? thanks shawty did know abut hicgcharts $(function () { $('#container').highcharts({ chart: { type: 'area' }, title: { text: 'temp' }, xaxis: { categories: ['1pm', '2pm', '3pm', '4pm', '5pm'] }, credits: { enabled: false }, colors: [ '#910000', '#00ffff'], series: [{ name: 'max temp', data: [5, 3, 4, 7, 2] }, { name: 'min temp', data: [2, 2, 3, 2, 1] }] }); ...

powershell - combining get-wmiobject, get-acl and get-childitem -

i trying capture shares on given file server. getting acl (access control list) share (doing manually atm). share, getting get-childitem. can me consolidate 1 line? eventually have dump output csv. get shares get-wmiobject -class win32_share -computer server01 | ft path, name -autosize get acl given share (get-acl c:\fileshare\testfolder01).access get-childitem given share get-childitem c:\fileshare\testfolder02 -rec | select-object directoryname, name, creationtime, lastwritetime, extension | sort directoryname, name a oneliner pretty crazy do-able crazy. when ever run use loop of kind foreach , create ps custom object. below great blog post on how create custom ps objects. i'd recommend looking @ doing that. http://www.powershellmagazine.com/2013/02/04/creating-powershell-custom-objects/

wordpress - Paste Special in Live Writer breaks links on Windows 10. Can we workaround it? -

we use windows live writer interface standalone wordpress sites behind firewall. after upgrading windows 10, see problem using 'paste special: keep formatting' when copying table microsoft word or excel lw. the html generated should be: <a href="mailto:username.usersurname@companysite.com"> but looks this: <a style="href: &quot;mailto:username.usersurname@companysite.com&quot;"> the end result mailto: name underlined if it's link mailto: doesn't work (regardless of browser). windows live writer no longer supported , open live writer has same mistaken behavior. i'm trying find workaround process because our many contributors maintain tables in spreadsheets or docs , copy them lw post. notes on investigation far: similar problem identified in http://answers.microsoft.com/en-us/windowslive/forum/livemail-email/windows-live-mail-2012-missing-links-while-copying/fb67856e-a4b5-42ec-9ada-e1b08561157f?auth=1...

java - Cipher Options In Tomcat -

i see 2 ways use cipher , tls1_2 tomcat. add java startup options -dhttps.protocols=tlsv1.2 -dhttps.ciphersuites=tls_ecdhe_rsa_with_aes_128_cbc_sha256 or edit server.xml, in connector block <connector sslprotocol="tlsv1.2" ciphers="tls_ecdhe_rsa_with_aes_128_cbc_sha256" ....> my question is, both required? 1 trump other? 1 preferred? if choose server.xml, sslenabled="false" have set "true".

How to install gtk themes under NixOS without hacky scripts? -

i can't find proper way of setting gtk themes under nixos. usual approach lxappearance, after installing gtk-themes nix lxappearance can't find them (as there no /usr/share/themes, themes aren't under .local/share/themes). in case of fonts can use fonts.fonts option in configuration.nix, there no option in case of icons , themes. thing found far old config.nix scripts, hacky solution, rather not use. i using bspwm window manager. also, tried installing configuration.nix nix-env -i.

trigger mysql unknown table -

i've been trying solve problem. here code: create trigger some_trigger after update on table_a each row begin declare tname varchar(20); if (table_a.field_offer=1) set tname='table_b'; elseif (table_a.field_offer=0) set tname='table_c'; end if; if ((new.field_state = 0)) update tname join table_a on tname.id=table_a.ref_field set tname.stock = tname.stock -1; elseif ((new.field_state = 1)) update tname join table_a on tname.id=table_a.ref_field set tname.stock = tname.stock +1; end if; end; i getting: unknown table 'table_a' in field list. field_offer , field_state can null. i've shown below said in comments question: create trigger some_trigger after update on table_a each row begin declare tname varchar(20); if (new.field_offer=1) update `table_b` set stock = case new.field_state when 0 stock...

Is there a way to specify an editor on a git command in a one-off style -

this question has answer here: how make git use editor of choice commits? 17 answers as mentioned above, looking this: $ git commit -m "my first commit" --editor="vim" that allow me one-off swap editor single run. examples might useful when squashing lengthy histories or writing messages feature commit. you can override editor environment variable 1 git execution: editor=nano git commit -a

ruby on rails - <internal:gem_prelude>:1:in `require': -

i working on learn.co web development fundamentals track. when try run on terminal ruby file ruby looping.rb i following error: <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (loaderror) <internal:gem_prelude>:1:in `<compiled>' this wasnt happening before, had reinstall learn environment setup, not working. i fixed problem doing following: rvm fix-permissions and then: rvm reinstall 2.2.3

Railties installed but throws error on port binding with rails s -b -

i'm attempting access locally hosted rails app via smartphone, , wanted bind rails server new port using rails s -b 0.0.0.0 -p 80 however, when do, following error thrown: /users/alex/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': not find 'railties' (>= 0.a) among 16 total gem(s) (gem::loaderror) i using rvm @ moment, , running ls `rvm gemdir` gems gives me: ... rails-html-sanitizer-1.0.3 rails4-autocomplete-1.1.1 railties-4.2.6 rake-11.2.2 rdoc-4.2.2 ... i'm puzzled why railties found other dependent things in gemset, except in 1 case.

No way to get per-transaction commission fee in new Yodlee API? (/ysl/restserver/v1) -

i trying extract commission cost @ per-transaction basis, field exist in old aggregation style api not in new api data model. any suggestions / alternative solutions? can please explain in detail- -end-point url using in old api. -the field details in response , returns required commission cost. so give suggestions accordingly. regards, krithik

ruby on rails - capybara not passing select parameters -

i testing form in rails app using capybara. the form has 2 select boxes, each default options. these options passed parameters when form submitted in development , production, reason capybara not submitting them in testing. capybara finding select boxes , options ok, because if put in non-existent options in throws error. capybara not pass either default or selected option parameter when submits form. the form snippet follows: <%= form_for(@reservation, :url => account_reservations_path(account.id), remote: false, :html=>{:id=>'dates_form'}) |f| %> <tr> <td style:"text-align:center" colspan="2"><%= f.submit 'submit dates, source of booking & room preference', class: "btn btn-primary btn-sm" %></td> </tr> <td> <%= f.text_field :check_in_date, id: check_in_date_id, placeholder: "check in date" %></td> <td...

ios - RxSwift: using rx_refreshing for uirefreshcontrol -

i using uirefreshcontrol + variable binding reload data. it working, however, following feels wrong me: 1) know there rx_refreshing variable in rxcocoa extension, unable work in context. 2) binding answers (which variable of array) twice. once when load view controller , again when uirefreshcontrol refreshing. 3) parts check whether uirefreshcontrol refreshing or not looks awkward. feels defeats purpose of using reactive? ... let answers: variable<[answer]> = variable([]) override func viewdidload() { loadanswers() .sharereplay(1) .bindto(answers) .adddisposableto(self.disposebag) setuprx() } func loadanswers() -> observable<[answer]> { return network.rxarrayrequest(spark.answers) } func setuprx() { rc.rx_controlevent(.valuechanged) .map { _ in !self.rc.refreshing } .filter { $0 == false } .flatmaplatest { [unowned self] _ in return self.loadanswers() } .bindto(answers) .adddisposablet...

c# - How do I isolate a group of classes for reuse? -

i have solution classes isolate them in ordem reuse them in solution. new in c# , don´t know if should consider library. want organize them in separated module. how procedure? create class library? define new solution classes want isolate? thank you. you create separate class library project. if classes closely related project might put them in same solution project. keeping them in separate project means build own assembly (.dll) can reference other projects. one example when creating wcf service might add separate project in solution containing interfaces services implement , input/output models use. project in same solution wcf service , wcf service references it. then, if project needs interact wcf service references interface assembly.

javascript - how to include a prototype in typescript -

i learning angular 2 , have written ts definition truncate method want use in 1 of services. truncate.ts interface string { truncate(max: number, decorator: string): string; } string.prototype.truncate = function(max, decorator){ decorator = decorator || '...'; return (this.length > max ? this.substring(0,max)+decorator : this); }; how import typescript module or @ least make available use globally. how import typescript module or @ least make available use globally. move file stringextenions.ts : interface string { truncate(max: number, decorator: string): string; } string.prototype.truncate = function(max, decorator){ decorator = decorator || '...'; return (this.length > max ? this.substring(0,max)+decorator : this); }; and import file like: import "./stringextensions" more https://basarat.gitbooks.io/typescript/content/docs/types/lib.d.ts.html

javascript - Add and remove class to elements in sequence from array -

for had trouble understanding me before rephrased question. have array of variables corresponds ids of 5 divs. trying make each div change color few seconds 1 one color changes before next div changes color (similar lights on traffic light or game of simon). using loop iterate through each array item. using jquery's .addclass() , removeclass() settimeout try achieve effect. here code: //css .color{background-color: red;} //javascript var div1 = document.getelementbyid('divid'); etc... var total = [div1, div2, div3, div4, div5]; for(var n=0; n<counter; n++){ $(total[n]).addclass("color"); settimeout(function(){ $(total[n]).removeclass("color"); }, 3000); } update i found solution. posting having same problem. used jquery .delay() , .queue() create effect of each div receiving class 1 @ time .addclass() , .removeclass() . thank help. for(var n=0; n<counter; n++){ flash(n); } function flash(num){ var int = num + 1; $(total[num]).delay(2...

three.js - Control multiple cameras with the same controls -

i have 2 different threejs scenes , each has own camera. can control each camera individually corresponding trackballcontrols instance. is there reliable way 'lock' or 'bind' these controls together, manipulating 1 causes same camera repositioning in other? current approach add change listeners controls , update both cameras either's change, isn't neat as, one, both controls can changing @ once (due dampening). i believe should work if set matrices of second camera values of first , disable automatic matrix-updates of both cameras: camera2.matrix = camera1.matrix; camera2.projectionmatrix = camera1.projectionmatrix; camera1.matrixautoupdate = false; camera2.matrixautoupdate = false; but need update matrix manually in renderloop: camera1.updatematrix(); that call take values position , rotation , scale (that have been updated controls) , compose them camera1.matrix , per assignment before used matrix second camera. however, feels bit ...