Posts

Can I make an alias for `set -l` in the fish shell? -

i make liberal use of set -l / set --local in fish scripts, considered making alias it. name local seems apt. unfortunately, obvious approach doesn't work: function local set -l $argv end this fails because, of course, variable creates local local function itself. using alias doesn't work, either, since it's (perhaps legacy) shorthand above function. is there way can create local variable in calling scope without doing more complicated local foo 'bar' ? make eval (local foo 'bar') work, sort of defeat purpose. i'm open sort of trickery or hacks make work, if exist. i'm afraid not, local variables local topmost scope, , there's no way wrap set without creating new scope. best can this: function def --no-scope-shadowing set $argv end this creates variable in calling function scope. subtly different local: local scoped block, while above scoped function. still may sufficient use case.

ios - Memory Growth Mystery (Objective-C) -

i have memory growth issue in app. since describing full code here intimidating, narrowed down simple scenario switch , forth between 2 view controllers learn basic memory dynamics. - (void)viewdidload { [super viewdidload]; (int i=0; i<100000; i++) { __weak nsstring* str = [nsstring stringwithformat:@"abcsdf"]; str = nil; } } this supposed show no memory growth, because allocate 'str' , deallocate 'str' making 'str' becomes nil, losing owner. but, memory keeps growing. everytime load view controller, memory keeps growing , never coming back. can tell me why that? using arc. your code snippet includes several interesting things ios/os x memory management. __weak nsstring* str = [nsstring stringwithformat:@"abcsdf"]; str = nil; the code same following without arc. nsstring* str = [[[nsstring alloc] initwithformat:@"abcsdf"] autorelease]; str = nil; because stri...

hashmap - how to show map object data on jsp file using spring mvc -

@modelattribute(value = "tempmap") public map<integer, string> getetypemap(httpservletrequest request) throws employeebusinessexception { map<integer, string> tempmap = employeebs .fetchemployeementtype(userdetails.gettenantid(), userdetails.getlocaleid()); return tempmap; } here have tempmap ie hashmap type of object, problem want use oblect in jsp file using springmvc framework. use jstl foreach loop iterating map follows: <c:foreach var="tempmap" items="${tempmap}"> key: ${tempmap.key} - value: ${tempmap.value} </c:foreach> hope you.. use link more details jstl enabling javaserverpages standard tag library (jstl) in jsp

centos7 - Install postfix in CentOS 7 without maria-db -

i trying install postfix using yum in centos 7. i'm using version of mysql (5.5.28) installed directly rpm file. the default postfix has dependency on mariadb. since mariadb conflicts mysql i'm unable use this. tried using centosplus repository has mysql support. after installing compat-mysql rpm, able install postfix using following command: yum install --exclude=mariadb-libs --exclude=mysql-community-libs postfix but after when try start postfix following error: /usr/sbin/postconf: relocation error: /usr/sbin/postconf: symbol mysql_real_connect, version libmysqlclient_18 not defined in file libmysqlclient.so.18 link time reference i kind of stuck @ here. can 1 please help? thanks in advance. you need required packages. install deendency packages. note installing mariadb mot mean need running. take space on disk.

importing XML data in Oracle DB -

i'm new in dbadministration , have been asked design db structure starting big (8gb) xml files. building structure, , finished. i'm testing importing of data xml tables. have stored content of file column in table, when try export 1 column value, have no results (and no errors). here code: create table testtable2 ( xml_file xmltype ) xmltype xml_file store securefile binary xml; insert testtable2 (xml_file) (select xmltype(bfilename('export_dumps','test001.xml'), nls_charset_id('we8iso8859p1')) dual ); select 'cd_uid' xmltable('xml/records/rec/uid' passing (select xml_file testtable2) columns cd_uid varchar2(4000)); the xml starts this: <?xml version="1.0" encoding="utf-8"?> <records xmlns="http://xxxxxxxxxxxxxx"> <rec r_id_disclaimer="yyyyy"> <uid>uid_number</uid> i have tried extracting data directly xml file, have stored ...

ClassNotFoundException after updating to SoapUI 5.2.0 -

after having updated soapui 5.2.0 i'm getting 15:58:00,756 error [soapui] error occurred [com.eviware.soapui.plugins.auto.factories.autoimportmethodfactory], see error log details java.lang.classnotfoundexception: com.eviware.soapui.plugins.auto.factories.autoimportmethodfactory @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ java.lang.class.forname0(native method) @ java.lang.class.forname(unknown source) @ com.eviware.soapui.plugins.loaderbase.loadautofactories(loaderbase.java:96) @ com.eviware.soapui.plugins.loaderbase.loadfactories(loaderbase.java:64) @ com.eviware.soapui.plugins.pluginloader.loadpluginfact...

java - Why can't I use REST Web App while SOAP web app is on the same Tomcat Server? -

i have tomcat 8.0 server rest api in webapps folder (activiti-rest). make successful rest calls until made soap project using jax-ws , placed jax-ws jars tomcat libs folder. soap service works rest api keeps returning 404 errors. what's problem or how can find out problem? log files in tomcat barebones, giving url , error code.