Posts

sql server - How to find out how many times identity column is RESEEDED -

i using sql server 2008 r2, can reset identity using dbcc reseed command, or using truncate table statement. is there information stored how many times identity value of column has been reseeded? you can not information sql server. once reseed updated. more details check link

javascript - Toggling two CSS animations with jQuery only works once through -

i trying toggle between 2 css animations using jquery, work once! how can keep toggling? also, doesn't seem work in jsfiddle @ reason. please , thank you. //hide , show counter-button $('#counter-button').click(function() { $('#counter').toggle(); //move button down/up on click if ($('#counter-button').attr('class') === 'movedown') { $('#counter-button').addclass('moveup'); } else { $('#counter-button').addclass('movedown'); } }); #counter-button { font-size: 20px; position: fixed; right: 90px; bottom: 190px; z-index: 2; cursor: pointer; } .movedown { animation: down ease forwards 0.5s; } @keyframes down { { right: 90px; bottom: 190px; } { right: 90px; bottom: 100px; } } .moveup { animation: ease forwards 0.5s; } @keyframes { { right: 90px; bottom: 100px; } { right: 90px; b...

django - Set field as the second field of my form -

i use django-allauth. how can set item_name form field second field of form?(currently first field after rendering in html) class customsignupform(forms.form): item_name = forms.charfield(...) def signup(self, request, user): pass account_signup_form_class = 'app.forms.customsignupform'

java - Data from list of objects of model class is not retrieving correctly? -

when try retrieve single object listconcard (in activity class contactcard.class), "conname" contactcards receives correctly not getting correct data sibling arrays "conphonetype", "conphonevalue", "conemailtype", "conemailvalue". listconcard list of objects of model class contactcardmodel.class. i adding "contactcardmodel" objects in listconcard follows listconcard.add(new contactcardmodel(conname, conphonetype, conphonevalue, conemailtype, conemailvalue)); and retrieving data of "contactcardmodel" objects follows for(int = 0; < listconcard.size(); i++){ log.e("inadp", listconcard.get(i).getconname()); // name returing correctly. for(int x = 0; x < listconcard.get(i).getconphonetype().size(); x++) log.e("inadp conphone", listconcard.get(i).getconphonetype().get(x) + ": " + listconcard.get(i).getconphonevalue().get(x)); for(int x = 0; x < ...

node.js - POST request 404 (Not Found) - express-http-proxy -

Image
i'm trying send post request api gives me following error: i'm using express-http-proxy package node send request. here code: app.use('/api', proxy(targeturl, { forwardpath: (req, res) => { return require('url').parse(req.url).path; } })); in reactjs application, i'm using superagent pass request , here request creation code: methods.foreach((method) => this[method] = (path, data = {}, params = {}) => new promise((resolve, reject) => { const request = superagent[method](formaturl(path)); request.set('token', 'cb460084804cd40'); if (params) { request.query(params); } if (__server__ && req.get('cookie')) { request.set('cookie', req.get('cookie')); } if (data) { request.send(data); } console.log('sending: ', request); // request.end((err, { text } = {}) ...

java - My Second Activity [TabLayout] Not Supporting on all other device -

i beginner of android development.i planed create application helps education seeker of country.at posting time have created 2 activity. first activity created listview. , second activity created tablayout contains 3 fragments. when launched app on lollipop device,all activity working fine.but when launched on marshmallow device,first activity working when clicked on other list item,my apps getting closed automatically.but why??? here important information understood easily. build.gradle apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "24.0.2" defaultconfig { applicationid "waystoprogram.mcquniversityadmission" minsdkversion 10 targetsdkversion 25 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" } buildtypes { release { minifyenabled false ...

spring - log4j configuration in Hibernate -

i want show sql queries executed ihbernate in logs. this current log4j configuration: <?xml version="1.0" encoding="utf-8" ?> <!doctype log4j:configuration system "log4j.dtd"> <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'> <appender name="ca" class="org.apache.log4j.consoleappender"> <layout class="org.apache.log4j.patternlayout"> <param name="conversionpattern" value="%d{dd-mm-yyyy hh:mm:ss,sss} [%t] %-5p %c %x - %m%n" /> </layout> </appender> <root> <level value="info" /> <appender-ref ref="ca" /> </root> <logger name="org.hibernate.sql" additivity="false"> <level value="debug" /> <appender-ref ref="ca" /> </logger> <logger name="org.hibernate.hql" additivity="false"...