Posts

java - JSESSIONID not expired, SPRING_SECURITY_REMEMBER_ME expired -

java - JSESSIONID not expired, SPRING_SECURITY_REMEMBER_ME expired - so, have in application spring security , have introduced remember me functionality when checkbox checked in. i wanted know exact behavior: if set </remember-me> tag , specify remembermeservices tokenvalidityseconds 20 seconds, shouldn't session expire , and inquire me log in again? have set: <session-config> <session-timeout>xx</session-timeout> </session-config> so matches spring_security_remember_me cookie tokenvalidityseconds ? update does matter if i've implemented own persistenttokenbasedremembermeservices ? had override default persistenttokenbasedremembermeservices coming spring, because persistentremembermetoken did not have no-arg constructor, unable utilize hibernate that, did wrote own persistentremembermetoken , persistenttokenbasedremembermeservices (which, way, no have special beside me introducing no-arg constructor in persistentreme...

php - MYSQL - First Database Structure help Please -

php - MYSQL - First Database Structure help Please - thanks taking time read , attempting help me, appreciate information! this first time making own mysql database, , hoping pointers. i've looked through previous questions , found possible search multiple tables @ once... expanded posibilities. what trying do, have searchable / filterable listing of snowmobile clubs on php page. these clubs should listable state, county or searchable name / other contained info. i'd them alphabetized in results, despite order of entry. currently mind in place of , have table ny, pa etc with columns county(varchar), clubname(varchar), street address (long text) , phone (varchar) email (varchar) website address (varchar) should making multiple tables each county, such ny.albany , ny.madison are field formats have chosen sensible ones? should address broken subcomponents... such street1, street2, city, state, zip thank much input can provide eventually, think i'd c...

ios - local notification style coming up as banner, instead of alert -

ios - local notification style coming up as banner, instead of alert - so i'm working on first app. i'm trying create alarm other stuff. i've found, want uilocalnotification. i've followed few tutorials on subject, , have notification fire. however, shows banner disappears. want alarm clock alert... or client alert ok, cancel. upon farther reading in forum, else asked question, , if i'm reading correctly user can specify how alert style looks. is right? can not forcefulness alert box popup @ specified time? , uialertview... looks i'm looking also... can used go off alarm clock , x time in future? appreciate input, thanks no, cannot that. user 1 decides kind of notification he/she gets. ios

java - JPARepository's findAll query on baseclass of @MappedSuperClass just returns entries of baseclass -

java - JPARepository's findAll query on baseclass of @MappedSuperClass just returns entries of baseclass - i have jpa mappedsuperclass this: @mappedsuperclass public abstract class foo extends abstractpersistable<long> { private status status; @manytoone(cascade=cascadetype.all) private user owner; and 2 subclasses inheriting foo, namely defined follows: @entity @table(name="barfoo") @equalsandhashcode(callsuper=true) @primarykeyjoincolumn(name="id", referencedcolumnname="id") public @data class bar extends foo { private string beer; and @entity @table(name="blubfoo") @equalsandhashcode(callsuper=true) @primarykeyjoincolumn(name="id", referencedcolumnname="id") public @data class blub extends foo { private string cider; now when save info in object of type bar or blub expect myrepository.findall homecoming cider or beer , both status , owner mappedsuperclass. instead, returns cider ...

git - How to push a branch back to a private github repo -

git - How to push a branch back to a private github repo - i've cloned private repo in github local machine. after i'm done making changes, want force branch github propose merge (or pull request, github calls it). how do that? i'm absolutely new github (i utilize bzr/launchpad, , command bzr force lp:~<username>/<master-branch>/<name of new kid branch> . equivalence of in git ?). [edit: found wording confusing due little understanding of git's terminologies, going re-describe did] ( bar private repo) $git clone git@github.com:foo/bar.git $cd bar $touch <some file> # ie., create changes $git commit ... $ <<<<< need force github here. from comments above , original question, want pull request on github you've modified master locally ... that's problem. wanted branch first, create changes, commit locally, , force branch. create pull request on github branch. first need prepare is: gi...

Bash: A multiword variable breaking curl -

Bash: A multiword variable breaking curl - i having little problem in bash. i have rather ugly line curl -u "$user:$pass" --request post --data '{"title": "'$branch_name'", "body": "'$description'", "head": "'$owner':'$branch_name'", "base": "develop"}' https://api.github.com/repos/$owner/$repo_name/pulls where of these variables single words $description can more 1 seems breaks line. is there way create $description not break curl command when has more 1 word in it? using shell here-doc, safer (y)our brain(s) : curl \ -x post \ -h "content-type:text/json" \ -d@- \ "https://api.github.com/repos/$owner/$repo_name/pulls" <<eof { "title": "$branch_name", "body" : "$description", "head" : "$owner:$branch_name...

persistence - JAVA: an EntityManager object in a multithread environment -

persistence - JAVA: an EntityManager object in a multithread environment - if have multiple threads, each utilize injector entitymanager object, each utilize em object select list of other class objects. ready used in loop. if thread finishes first , calls clear(), impact other threads? loop have exception? how close()? if reply "it depends", (class definition? method call?) , (java code? annotation? xml?) should @ find out how depended? i did not write source, using else's library without documentation. thank you. here total working thread-safe entity manager helper . import javax.persistence.entitymanager; import javax.persistence.entitymanagerfactory; import javax.persistence.persistence; public class entitymanagerhelper { private static final entitymanagerfactory emf; private static final threadlocal<entitymanager> threadlocal; static { emf = persistence.createentitymanagerfactory("persistent_name");...