Posts

.net datatable skips rows load(datareader)

i'm perplexing stock datatable, build localreport, controlling following: mysqlcommand cmd = new mysqlcommand(); cmd.connection = new mysqlconnection(properties.settings.default.dbconnectionstring); cmd.commandtype = commandtype.text; cmd.commandtext = "select ... left join ... where ..."; /* query snipped */ // prepared data datatable.clear(); cn.open(); // fill datatable dt.load(cmd.executereader()); // fill report rds = new reportdatasource("invoicesdataset_invoicetable",dt); reportviewerlocal.localreport.datasources.clear(); reportviewerlocal.localreport.datasources.add(rds); at indicate i beheld news deficient blank record. i've altered few conditions query relapse accurately twin rows and... surprise : news shows wholly quarrel instead two. i've attempted debug where problem i got stranded at dt.load(cmd.executereader()); when i've beheld datareader contains twin annals nonetheless datatable contains wholly one. accident, i've total an o...

c++ template instantiation duty template parameters

i have following problem controlling template instantiation [*]. file foo.h class foo { public: template <typename f> vacant func(f f) private: int member_; }; file foo.cc template <typename f> foo::func(f f) { f(member_); } file caller.cc foo::func(boost::bind(&bar::bar_func, bar_instance, _1)); while compiles fine, linker complains an capricious symbol: void foo::func<boost::_bi::bind_t...> how i instantiate function foo::func ? given takes duty argument, i am small bit confused. i attempted supplement an instantiation duty foo.cc , i am used unchanging non-function types: instantiate() { template<> vacant foo::func<boost::function<void(int)> >(boost::function<void(int)>); } obviously, does work. i conclude someone indicate me right direction. thanks! [*] yes, i review parashift faq lite.

what best proceed emanate tablea habtm tablea charge cakephp application?

i have need emanate functionality grant purebred users associate themselves uses emanate family. database tables feeling something this: db.persons - (bob, jane, timmy, etc) id name email db.persons_persons id person__id_parent person_id_child relationtype_id db.relationtypes - (spouse, child, nephew, etc) id name with structure, i should means mention slip associate jane persons_persons table. record db.persons_persons feeling something (psuedo): id | person_parent | person_child | relationtype 1 | slip | jane | spouse 2 | slip | timmy | child i comprehend means information fragmentation given slip jane married, following child have compared other. however question. doubt presumably database setup 'most-correct' cakephp application.

how emanate / family database?

i have banking table. banking convenient certain equipment wholly whole problem items. for example: 5$ banking pizza 12" and (1l pepsi or french fries) the best i adult couponmenuitems list containing coupon_id bit fields such isor isand. doesn't work since i have 2 groups equipment example. second being union between 2 items. any thought i explanation exercise rudimentary possible? any assistance evidence appreciated! thanks, teebot

protecting user passwords desktop applications (rev 2)

i'm origination nonsense client, i'm evaluating several ways safeguarding user's login information. important: i need strengthen user's information other applications. instance suspect happens bot starts going around dark twhirl passwords hotmail/gmail/yahoo/paypal applications run user's desktop. clarification: i asked before but 'important' apportionment nonetheless smoke-stack 's ui doesn't assistance adding sum after inside q/a conversation. hashing apparently doesn't it obfuscating reversable proceed perplexing bury behind finger plain calm sounds propably promiscuous requiring user form evidence each concentration tiresome any ideas ?

text popping by settlement replacement

i've used customary settlement deputy technique links, (the nested camber technique) nonetheless settlement spin & pristine during edges, underlying calm couple popping through. heres screenshot explains i mean. whats best proceed bury text? i don't wish display:none the bad practice, i feeling sourroundings calm distance 0 also no-no?

is improved some-more targeted stored way fewer parameters?

say i have stored way advantage information name query. i rather opposite cut those law depending parameters i pass through. i'm wondering presumably improved settlement have churned stored procedures take parameters (for example, getxbydate getxbyuser), stored way churned parameters does lot (for example, getx)? the advantage initial choice it's easier maybe faster, nonetheless rubbish idea query repetitious opposing stored procedures needs reliable several places. the advantage second choice query wholly donation once, nonetheless rubbish query some-more challenging harder troubleshoot. what your solutions why?