Posts

javascript - How to apply jquery ellipsis to div -

$('.more2').each(function() { var showchar = 150; var content = $(this).html(); if(content.length > showchar) { var c = content.substr(0, showchar); var h = content.substr(showchar, content.length - showchar); var html = c + '<span class="moreellipses">' + ellipsestext+ ' </span><span class="morecontent"><span>' + h + '</span> <a href="" class="morelink">' + moretext + '</a></span>'; $(this).html(html); } }); i trying build jquery accordion effect div drop down; please see example jsfiddle . here want it's on-clicking of ('+') button want show reaming part of content. @ time else div in same row should take same height active div taken don't want show content in inactive div. try adding document ready: $('a.morelink').click(function(){ $(...

ios - To get images from device and show images in uicollectionview -

i have images device these links mutiselectimagepicker and elcimagepickercontroller i have tried both links , works good. when click on done button path looks this <uiimage: 0x7fca78772510>, {485, 303} but how can selected images collection view , how can print selected images paths... what printing description of uiimage object, contains address of memory image resides , size. uiimage s don't have path because object created in heap memory, can created file doesn't bring information. once have uiimage instance can pass image property of uiimageview , not path needed.

Referencing overlapping arrays through pointers -

Image
i need perform memmove() -style operation pointers tuned overlapping arrays. more precisely, need copy b(:) a(:) . in c programming language have called memmove(a, b, n) . but, far know, fortran standard strict when comes pointer aliasing. so, of following 3 options safe use (according standard), , result in undefined behaviour: vector syntax aliased pointers (option 1), explicit do-loop aliased pointers (option 2), call routine takes overlapping arrays arguments (option 3) ? program ptr implicit none integer, parameter :: array_size = 10, n = 6 integer, target :: array(array_size) integer, dimension(:), pointer :: a, b integer :: => array(1: n) b => array(3: n+2) ! option 1 a(1: n) = b(1: n) ! option 2 = 1, n a(i) = b(i) end ! option 3 call foobar(a, b, n) contains subroutine foobar(a, b, length) integer, dimension(:), intent(out) :: integer, dimension(:), intent(in) :: b integer, intent(in) :: le...

Failed to startup Jboss 5.1 -

i on redhat , using jboss 5.1 not able start jboss. working added jar file in lib. throwing error saying failed boot jboss: java.lang.nullpointerexception at org.jboss.main.boot(main.java:136) at org.jboss.main$1.run(main.java:556) at java.lang.thread.run(thread.java:745) what can possible cause of ???

php - How to change the url without refreshing or reloading page on when radio button checked? -

question: want change url of page without refreshing when checked on radio button page refreshes , change url. example, my current page url is: www.example.com/cart/ when checked pickup, day , time radio button page refresh , shows url: www.example.com/cart/?method_choice=pickup&time=12pm-3pm&day=tue but want page not refresh , url change when radio button checked. you wanting page refresh? // reloads current page document.location.reload(); // go page window.location = "http://www.example.com/cart/?method_choice=pickup&time=12pm-3pm&day=tue";

linux - Architecture based OpenSSL package to be removed -

i trying build rpm using source code of open source tool. while doing , see below error : gcc -o9 -march=x86-64 -wall -wmissing-prototypes -wpointer-arith -wdeclaration-after-statement -wendif-labels -fno-strict-aliasing -fwrapv dbutils.o config.o repmgrd.o log.o strutil.o -l/opt/app/ionix/smarts-ncm/db/controldb/lib -lpgport -l/opt/app/ionix/smarts-ncm/db/controldb/lib -lpq -l/opt/app/ionix/smarts-ncm/db/controldb/lib -wl,-rpath,'/opt/app/ionix/smarts-ncm/db/controldb/lib',--enable-new-dtags -lpgport -lpam -lssl -lcrypto -lz -lreadline -ltermcap -lcrypt -ldl -lm -o repmgrd /usr/bin/ld: **cannot find -lssl** upon doing research , understood it's because there multiple openssl packages ( different architecture ) installed on machine : rpm -qa --queryformat '%{name}\t%{arch}\n' | grep openssl openssl097a i386 openssl x86_64 openssl i686 the question , openssl package can remove here , how ? there many dependencies might affect other packages well. h...

linux - Provide root access but not DB access -

trying give servers production access more ops people in our team. issue db access concern. tasks ops not need db access , limited people should have such access. let's have 2 servers: application server: tomcat (app needs access db server) db server: database so give root access "application server" ops can sorts maintenance on server not able gain access db server. means cannot store db pass in configuration files app read example. are there known practices solve issue that? first credential 'application server' has access 'db server' should considered handed on root on application server. since db access must limited cannot give ops complete root on application server. but not lose hope, there sudo . sudo can give users or groups access root power, limited purposes. unfortunately setting sudo correctly can tricky prevent subshells , wildcards getting full root, possible. there many permutations general answer beyond sudo ...