Posts

javascript - jquery switch to change what list is appended to -

i creating case / break loop change ul new li created in. have gotten pretty close when change variable reassign li should render value stored in variable stacks. can add li every ul there option for. here html <!doctype html> <html> <head> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link href="https://fonts.googleapis.com/css?family=anton|baloo+tammudu" rel="stylesheet"> <script type="text/javascript" src="http://code.jquery.com/jquery- 1.9.1.min.js"></script> <script type="text/javascript" src="file:///c:/users/will/desktop/js_test/script.js"></script> </head> <body> <div class=app> <div id=menu_container> <div id=menu_title> menu </div> <input id="listinput" /></input> <button id="addtolist"...

sql - SQLCode=-138 flagging on large count tables but not small DB2 -

i built view in i'm using following code pull last name field formatted 'lastname,firstname': value(rtrim(substr(a.previous_names,1,locate(',', a.previous_names)-1)), '') "previous_name", this view worked fine working in our sandbox environment, moved test, , try open view in dbvisualizer, data results provide error: the second or third argument of substr or substring function out of range. sqlcode=-138, sqlstate=22011, driver=4.22.29 the sandbox has under 11k records, test , prod systems closer 1.2 million, i'm guessing performance issue result of complexity of piece of code. view still appears have been created, can query , return specific result/set of results, guess i'm concerned on if usable large query, or if performance concern in case? is there better way can parse last name without having use substring on locate function? thanks help! most not perfo...

c# - odataV4 filter contains with case sensitive and incase sensitive -

i have tried filter contains case sensitive in odata. not working. please find query string http://services.odata.org/v4/northwind/northwind.svc/employees/?$filter=contains(toupper(firstname),%27c%27) http://services.odata.org/v4/northwind/northwind.svc/employees/?$filter=contains(tolower(firstname),%27c%27) it return both lower , upper case . possible achieve?

IntelliJ Split Window Navigation -

if split editor window (horizontal or vertical) n tab groups, how switch/toggle 1 tab group via keyboard? if of tabs in same group can switch each tab (ctrl + right/left arrow), when they're in separate tab groups can't. i've searched through key mappings , have not found 1 seems accomplish this. know can use mouse, i'm trying find ways avoid mouse , stay keyboard. tia on this. ctrl+tab , ctrl+shift+tab window | goto next splitter , goto previous splitter . however, these hotkeys may taken switcher , need remap them in settings | keymap .

amazon web services - How to autoscale Servers in ECS? -

i started using ecs. able deploy container image in ecr , create task definition container cpu/memory limits. use case each container long running app (no webserver, no port mapping needed). containers spawned on demand 1 @ time , deleted on demand 1 @ time. i able create cluster n server instances. i'd able server instances automatically scale up/down. example if there isn't enough cpu/memory in cluster, i'd new instance created. and if there instance no containers running in it, i'd specific instance scaled down / deleted. avoid auto scale down termination of server instance has running tasks in it. what steps needed able achieve this? considering have ecs cluster created, aws provides instructions on scaling cluster instances cloudwatch alarms . assuming want scale cluster based on memory reservation, @ high level, need following: create launch configuration auto scaling group. create auto scaling group, size of cluster can scaled , down. cr...

android - How to update MVVMCross from 5.1.1 to 5.2.0 -

i updated mvvmcross 5.1.1 5.2.0 in sample project (tipcalc) android , uwp. nuget offered update updated using vs2017 nuget view. after 2 things happend:the upw designer tells me views:mvxwindowspage doesn't exist in namespace mvvmcross.uwp.views. have no longer working designer. rebuild brings these warnings ...tipcalc.ui.droid.csproj : warning xa0105: $(targetframeworkversion) mvvmcross.binding.droid.dll(v7.0) greater $(targetframeworkversion) project(v6.0). need increase $(targetframeworkversion) project. ...tipcalc.ui.droid.csproj : warning xa0105: $(targetframeworkversion) mvvmcross.droid.dll (v7.0) greater $(targetframeworkversion) project(v6.0). need increase $(targetframeworkversion) project. ...tipcalc.ui.droid.csproj : warning xa0105: $(targetframeworkversion) mvvmcross.platform.droid.dll (v7.0) greater $(targetframeworkversion) project(v6.0). need increase $(targetframeworkversion) project. starting on emulator crashes app. droid project set marshmellow (6.0)....

javascript - Validating input field based on radio input and display error message -

i'm trying display error message using jquery while submitting form, when radio button selected true , input box empty, reason failing. suggestions appreciated! <div class="row col-lg-offset-2 top-buffer"> <h4> <strong> <span>is account deleted?:</span> </strong> </h4> @html.radiobuttonfor(model => model.isdeleted, true) @html.label("yes") @html.radiobuttonfor(model => model.isdeleted, false) @html.label("no") <br> </div> <div class="row col-lg-offset-2 top-buffer" id="reason"> <div class="col-sm-2"> <b>reason delete:</b> </div> <div class="col-sm-10"> @html.textboxfor(model => model.reason, new { @class = "form-control", @id = "reason" }) <br /> </div> <div class="row col-sm-12"...