Posts

C++ Class Specification, Implementation problem -

i'm having problem getting separate compilation done. it's simple, can't figure out error. i'm getting these exceptions: > 36 c:\cpp\p6\employee.cpp expected `)' before ',' token 36 > c:\cpp\p6\employee.cpp expectedinit-declarator before ')' token 36 > c:\cpp\p6\employee.cpp expected `,' or `;' before ')' token 42 > c:\cpp\p6\employee.cpp expected `)' before ',' token 42 > c:\cpp\p6\employee.cpp expected init-declarator before ')' token 42 > c:\cpp\p6\employee.cpp expected `,' or `;' before ')' token for code: /*line 36*/ employee::employee(n, id) { //constructor name , id setname(n); setid(id); }; /*line 42*/ employee::employee(id, d, p, n) {//constructor member variables setid(id); setdept(d); setpos(p); ...

Spring Security Custom Authentication and Password Encoding -

is there tutorial out there or have pointers on how following spring-security? task: i need salt database authenticating username , use encrypt provided password (from login page) compare stored encrypted password (a.k.a. authenticate user). additional information: i use custom database structure. userdetails object created via custom userdetailsservice in turn uses custom daoprovider information database. my security.xml file far: <authentication-manager> <authentication-provider user-service-ref="userdetailsservice"> </authentication-provider> </authentication-manager> now guess i'll need <password-encoder hash="sha" /> but else? how tell spring security use databaseprovided salt in order encode password? edit : i found this so post informatative not sufficient: if define salt source in xml used password encoder, so: <password-encoder ref="passwordencoder"> ...

iphone - callout bubble MKMapView move problem -

im developping app uses mkmapview. wenn map moved perform server request new annotations based on coordinates. wenn annotation clicked sometines moves map. in case don't want perform request. has solution how know if callout buble moved map ? i tried - (void)mapview:(mkmapview *)mapview didselectannotationview:(mkannotationview *)view{ without success ! look @ this answer explain several methods track mkmapview has moved. that answers different problem, think might you.

.net - Is socket communication reliable protocol for Inter-process communication? -

i'm designing communication protocol used communicate between 2 pc applications using socket connection. common case when both application work on same machine, possible run 1 application on remote machine. application can exchange data 2mb/s. question is: shall use confirmation packets ensure packet sent 1 application received other one? know socket uses tcp connection confirmation/retransmission implemented need feedback used in practice. the technologies used: - socket server: .net application uses following library: http://www.codeproject.com/kb/ip/asyncsocketserverandclien.aspx - socket client: .net or delphi application this fine, traffic short-circuited in tcp/ip driver stack. there no great difference other ipc mechanism, takes memory-to-memory copy operates @ bus speeds. 5 gigabytes/sec typ microsecond or overhead. plus whatever context switching needs happen, far largest cost. named pipe operate same. falls off cliff of course once need go through ni...

flickr - Tutorial for uploading a photo from android -

hi there i'm looking tutorials upload photo android device service such flickr or photobucket etc. im not fussy! (i mean code tutorials, not how use android device ;) ) thanks, rich for flickr, start exploring flickr api @ http://www.flickr.com/services/api/ . there dedicated wrapper android, called flickrj-android . built upon flickrj , has extensive documentation , example implementing calls java code. for photobucket, start exploring public photobucket api documentation. good luck!

sql server - T-SQL and transaction flow - from first to last -

let's have table taba columns: col1 - primary key (but not identity) col2 - foreign key col3 - unique constraint col4 - check constraint col5 - not null constraint also, taba has 2 triggers: instead of insert - 1 cancel insert taba (of course), in it's own code insert new row taba . values column in new row guaranteed correct after insert - 1 print string now, ready insert new row taba (insert taba values(...)). obviously, have expect events: value col1 must checked uniqueness , not null(primary key) value col2 must checked conformity parental table(foreign key) value col3 must checked uniqueness value col4 must checked against check constraint value col5 must checked not null instead of trigger must executed after trigger must executed what want reorder list(1-7) number 1 on event happen first, 2=event happen second, ..., , 7 last event. also, if event x produce error (col5=null, example) - mean events x+1,x+2.. not happen? thanks hel...

documentation - Self documenting SQL -

i have used doxygen self document code in languages such php. not support sql. there equilivant program produce documentation sql? did take @ izzysofts hypersql ?