Posts

substring from bash variable starting from character position -

simple question, sed command not working :( echo "some_class" | sed -e 's/.+\_\(.+\)/\1/' i want happens after _ character. please, how can fix code work? thank you. in case, "class" right answer. you don't need sed ; can use parameter expansion return substring beginning first _ : foo=some_class echo "${foo#*_}"

Perl error when using Tkx package -

i have problem tkx package. use perl 5.14.2 on centos, , know version of perl contains tkx package. when try version of tkx (with following code snipet) perl -mtkx -e 'print tkx::info("patchlevel");' and following error message: couldn't load file "/tmp/tclpwvq4s": libxss.so.1: cannot open shared object file: no such file or directory @ -e line 0. compilation failed in require. begin failed--compilation aborted. i searched sollution didn't find answer it. can tell me what's going on here?

java - Import and edit excel file in browser -

i want improt excel file desktop in browser , want edit excel in browser , save. also clicking on export save file on desktop. here want use spring, hibernate , mysql db. please suggest code example or best way have need use. note:- have googled many times nothing found suitable. thanks in advance

c# - What's the best way to target multiple versions of the .NET framework? -

i'm building class library , deploy nuget package, lets me choose different assemblies added references based on .net framework version of project it's added to. nice feature, i'm wondering whether possible have single class library project, , build against mulitple versions of .net framework? i'd rather avoid having: mylibrary40.dll , mylibrary45.dll if possible, because 2 projects have share lot of code. 4.5 version offering async functions, 4.5 feature. does know best approach is? can use multiple build configurations? or must go down separate project route? if working in c++ i'd use multiple configurations , #if blocks around functions supported in 1 configuration, worry lead me having 2 assemblies same name different things. thanks in advance! you @ least need 1 visualstudio solution 2 projects (one .net 4 , 1 .net 4.5). add codefiles .net 4-project , in other project add code files link (use "add existing item..." -dialo...

Any way to do this on a Makefile? -

i have list of strings such x y z , want transform a/liba.lib b/libb.a c/libc.a any ideas? ( $(input:%=%/lib%.a) yields a/lib%.lib b/lib%.a c/lib%.a , don't bother trying one). input := x y z output := $(foreach x,${input},${x}/lib${x}.lib) $(info input=${input}) $(info output=${output}) outputs: input=x y z output=x/libx.lib y/liby.lib z/libz.lib

Python temporarily change letter to lower case -

i have list looks this: separate=[['i','wnet','to','the','mal,'],['and','bouht','a','new','shirt.'],['what','did','you','do','todya?']] i'm going run through program identify misspelled words , replace them correct word list of words in webster dictionary using uses lowercase letters. can temporarily change of letters lowercase in end return original upper , lower case words? i know str.upper() , str.lower() , set.capitalize . it seems want use str.capwords() inversely... want split list words(already done) , make capital letters lower case. just use str.lower . return new string lower letter , keep original string unchanged. when loop through list such if string.lower() in adict: , use lower case compare , original string unchanged. >>> = 'abc' >>> a.lower() 'abc' >>> 'abc'

Openfire xmpp server and Spectrum 2 IM Solaris and Linux -

i wondering if possible run openfire , spectrum 2 im on solaris machine . have not been able compile code spectrum wanted know if knew if running spectrum im on solaris 10 feasible. if cannot run on solaris, possible run openfire on solaris server , have spectrum im run on separate linux server? i'm having slight problems downloading spectrum im on linux vm. added deb http://repo.spectrum.im $dist main to /etc/apt/sources.list says here . , ran sudo apt-get install spectrum2 spectrum2-backend-libpurple and got output e: unable locate package spectrum2 e: unable loacate package spectrum2-backend-libpurple thanks i think figured out. $dist supposed actual dist of linux box. i'll juts take lap now.