Posts

xaml - Xamarin.Forms - x:Reference 2nd level -

i'm working in new contentpage application , have controls datatemplates. i use command in contentpage's viewmodel in 1 of datatemplates, i'm not sure how right reference work properly. here's xaml code: <?xml version="1.0" encoding="utf-8"?> <contentpage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:class="maverickmobileonline.imageslistingpage" --many namespace references-- > <contentpage.resources> <resourcedictionary> <c:itemtappedeventargsconverter x:key="itemtappedconverter" /> <c:itemappearingeventargsconverter x:key="itemappearingconverter" /> <c:booleannegationconverter x:key="not" /> </resourcedictionary> </contentpage.resources> <stacklayout spacing="0"> ...

regex - Get multiple matches from text in curly braces -

i have sample file: authoritative; subnet x.x.x.x netmask x.x.x.x { range x.x.x.x x.x.x.x; deny unknown-clients; default-lease-time 86400; max-lease-time 86400; option domain-name "bla"; option domain-name-servers x.x.x.x; option broadcast-address x.x.x.x; option subnet-mask x.x.x.x; option routers x.x.x.x; host host1 { hardware ethernet 00:e1:4c:68:00:53; fixed-address 1.1.1.1; } host host2 { hardware ethernet 01:e2:4d:69:01:54; fixed-address 2.2.2.2; } host host3 { hardware ethernet 02:e3:4e:70:02:55; fixed-address 3.3.3.3; } host host4 { hardware ethernet 03:e4:4f:71:03:56; fixed-address 4.4.4.4; } host host5 { hardware ethernet 04:e5:5f:72:04:57; fixed-address 5.5.5.5; } } now i'm trying extract mac address , ip address parts within host x blocks. when use file structure (that includes newlines) doesn...

javascript - Regular expression for inserting span tags -

i need regular expression replacement of string below wrapper format. example input: c# regular expression combination of space, alpha , special-character. delta output: <span>c# <span>regular <span>expression <span>for <span>combination <span>of </span><span>space<span>,</span> </span><span>alpha </span><span>and </span><span>special</span><span>-</span><span>character</span>. </span><span>also </span><span>for </span><span>delta</span> you use replace call: var txt = "c# regular expression combination of space, alpha , special-character. delta"; var result = txt.replace(/[\w#]+\s*|[^\w#]+\s*/g, "<span>$&</span>\n"); console.log(result); .as-console-wrapper { max-height: 100% !important; top: 0; }

logging - Druid.io (imply): log level settings -

during druid.io work found out log files located in /druid_dir/var/sv/ takes gigabytes of space. to fix problem want set log level error i put in common.runtime.properties druid.emitter.logging.loglevel=error and in log4j2.xml : configuration status="error" but .log files still grow huge sizes (and includes info messages). what else should added config? need update root logger level in log4j2.xml: <root level="error">

javascript - JQuery - $ is not defined -

i have simple jquery click event <script type="text/javascript"> $(function() { $('#post').click(function() { alert("test"); }); }); </script> and jquery reference defined in site.master <script src="<%=resolveurl("~/scripts/jquery-1.3.2.js")%>" type="text/javascript"></script> i have checked script being resolved correctly, i'm able see markup , view script directly in firebug, must being found. still getting: $ not defined and non of jquery works. i've tried various variations of $(document).ready , jquery etc. it's mvc 2 app on .net 3.5, i'm sure i'm being dense, everywhere on google says check file reference correctly, have checked , checked again, please advise! :/ that error can caused 1 of 3 things: your javascript file not being loaded page you have botched version of jquery. happen because edited co...

SSL Failure on GET request with Groovy HttpBuilder -

i can not make request on following link using groovy's httpbuilder: https://system.planassist.mpu.mp.br/production/login.aspx i tested method below: ignoresslissues() but exception returns: error: javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure code example: import groovyx.net.http.httpbuilder import groovyx.net.http.method def http = new httpbuilder("https://sistema.planassiste.mpu.mp.br/producao/login.aspx") http.ignoresslissues() http.request(method.get) { req -> } result: javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure @ sun.security.ssl.alerts.getsslexception(alerts.java:192) @ sun.security.ssl.alerts.getsslexception(alerts.java:154) @ sun.security.ssl.sslsocketimpl.recvalert(sslsocketimpl.java:1979) @ sun.security.ssl.sslsocketimpl.readrecord(sslsocketimpl.java:1086) @ sun.security.ssl.sslsocketimpl.performinitialhandshake(sslsocketimpl.java:1332) @ sun.securi...

javascript - Nav menu won't open or close on click -

i've been trying make hamburger menu work longest time , i've tried lot, keep going in circles reason menu won't open( menu not opening problem :( ), i got menu learning how create tutorial -> youtube link please let me know how fix or refer me similar post, thanks! $(document).ready(function() { $(".burger-nav").on("click", function() { $("header nav ul").toggleclass("open"); }); }); header nav ul { height: 0; overflow: hidden; background: #6134a3; } header nav ul.open { height: auto; } .burger-nav { padding: 0px; margin: 0px; display: block; height: 40px; width: 100%; cursor: pointer; background-image: url(images/nav.png); background-repeat: no-repeat; background-size: 10%; background-position: 97%; background-color: #502196; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <h...