Posts

php - Accept username that is ecrypted by hash in the database -

php - Accept username that is ecrypted by hash in the database - when i'm creating user, username , password saves in hash. want username , password when log in, can read system. using laravel below code user controller public function postsignin() { if (auth::attempt(array('username'=>input::get('username'), 'password'=>input::get('password')))) { homecoming redirect::to('admin/dashboard')->with('message', 'you logged in!'); } else { homecoming redirect::to('users/login') ->with('message', 'your username/password combination incorrect') ->withinput(); } } case sensitivity not require hashing. utilize non _ci encoding in database table. ci stands case insensitive. assuming still want hash username, need hash user input (username), in same manner stored in database, before passin...

node.js - query using column from junction table -

node.js - query using column from junction table - i have node entity many many relationship through edge var node = db.define('nodes', { 'name': sequelize.string }); var border = db.define('edges', { 'weight': sequelize.string }); node.hasmany(node, { as: 'parents', foreignkey: 'parent_id', through: edge}); node.hasmany(node, { as: 'children', foreignkey: 'child_id', through: edge}); i want nodes children created after specific time using query following node.getchildren({ include: [edge], where: ['createdat > ?', 1413000965754] }).complete(function(err, children){ // ... }); but cant work. node.js sequelize.js

java - Maven : NoClassDefFoundError Xms256m while running Maven Command -

java - Maven : NoClassDefFoundError Xms256m while running Maven Command - i below exception while running maven command mvn --version mvn --version exception in thread "main" java.lang.noclassdeffounderror: xms256m caused by: java.lang.classnotfoundexception: xms256m @ java.net.urlclassloader$1.run(urlclassloader.java:202) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:190) @ java.lang.classloader.loadclass(classloader.java:306) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301) @ java.lang.classloader.loadclass(classloader.java:247) not find main class: xms256m. programme exit. 'cmd' not recognized internal or external command, operable programme or batch file. what can reason. have set below maven environment variables m2_home m2 maven_opts java maven maven-2 maven-3

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005 -

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005 - i getting error below in 1 of ssis task ssis error code dts_e_oledberror. ole db error has occurred. error code: 0x80004005. ole db record available. source: "microsoft ole db provider sql server" hresult: 0x80004005 description: "syntax error or access violation". its oledb source task in dataflow task , having query below: select patientser changetable(changes dbo.patient,?) ct ct.sys_change_operation = 'i' when execute same query on server replacing ? "0" works fine. any thought wrong query missing in ssis? ssis syntax-error oledb oledbexception

html - Clicking on anchor links moves whole page to top -

html - Clicking on anchor links moves whole page to top - so have webpage whole html's overflow hidden html { overflow: hidden; } and have nav bar has anchor links , div has content has overflow auto, it's scrollable. nav: <ul> <li><a href="#events">events</a></li> <li><a href="#jazz">jazz</a></li> <li><a href="#weddings">weddings</a></li> </ul> content div: <div class="content"> <div id="events">events</div> // content <div id="jazz">jazz</div> // content <div id="weddings">weddings</div> // content </div> now, problem when click on link on nav, illustration jazz, whole page goes top, everything: nav, div content , obviously, div shows jazz section . there way stays in place , div content box scrolls section? thanks! given i...

Changing Delphi XE5 workspace to Delphi 7 -

Changing Delphi XE5 workspace to Delphi 7 - is possible alter xe5's workspace delphi 7 like? designing forms within window pain , move components palette , design form outside of canvas. you can switch classic undocked desktop in desktop drop down. it's not identical delphi 7, perchance close you'll out of box. the other thing can seek enable floating designer, disabled default. more details here: http://francois-piette.blogspot.co.uk/2013/04/enabling-floating-form-designer-in.html you'll need adapt registry key version. article has key xe4. xe5 is: hkey_current_user\software\embarcadero\bds\12.0\form design set embedded designer value false . restart ide , you've got familiar floating design surface. delphi delphi-xe5

spring - @Autowired with JUnit tests -

spring - @Autowired with JUnit tests - i´ve using junit tests have issues, these tests have @autowired annotation within spring beans , when reference them beans @autowired null. here illustration code: public class test { protected applicationcontext ac; @before public void setup() { ac = new filesystemxmlapplicationcontext("classpath:config/applicationcontext.xml" "classpath:config/test-datasources.xml"); } @test public void testrun() throws exception { imanager manager = (imanager)this.ac.getbean("manager"); manager.dosomething(); } } @service public class manager implements imanager { public boolean dosomething() throws exception { parametersjcscache parametersjcscache = new parameter...