Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

performance - Efficient number reading in Haskell -


i'm looking efficient way read numbers text file without installing additional packages. data.bytestring.lazy.char8.readint seems trick integers. i've read bytestring has readdouble method, when write import data.bytestring.lex.lazy.double (readdouble) compiler complains:

     main.hs:4:7:         not find module `data.bytestring.lex.lazy.double':           locations searched:             data/bytestring/lex/lazy/double.hs             data/bytestring/lex/lazy/double.lhs 

my bytestring package version 0.9.1.5.

so, doing wrong? or maybe there better solution problem? thanks.

update: ok, seems readdouble in package bytestring-lexer not installed default. other idea?

the time encountered parsing doubles on critical path, used this:

{-# language foreignfunctioninterface #-} import qualified data.bytestring.char8 b import foreign.c.types import foreign.c.string import system.io.unsafe  foreign import ccall unsafe "stdlib.h atof" c_atof :: cstring -> io cdouble unsafereaddouble = unsafeperformio . flip b.useascstring c_atof 

there wasn't looked readdouble in bytestring @ time, though. better solution if it's standard.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -